/* ============================================================
   [PROJECT NAME] — Main Stylesheet
   Cormorant Garamond display / DM Sans body
   Terracotta accent, stone neutrals, auto light/dark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Custom Properties ───────────────────────────────────── */

:root {
  /* Accent (Lavender family) */
  --accent:        #7A6FA1;                 /* Deep Lavender */
  --accent-light:  #A998D4;                 /* Soft Lavender Highlight */
  --accent-dim:    rgba(122, 111, 161, 0.12); /* Lavender haze */

  /* Light mode (Slate + Lavender neutrals) */
  --bg:            #F5F4FA;                 /* Porcelain Lavender */
  --bg-alt:        #ECEAF2;                 /* Pale Fog Grey */
  --surface:       #FBFAFE;                 /* Soft Lavender Surface */
  --border:        rgba(46, 47, 58, 0.12);  /* Slate border */
  --text:          #1F1F26;                 /* Ink Slate */
  --text-secondary:#5A5866;                 /* Muted Slate-Lavender */
  --text-muted:    #9A97A8;                 /* Soft Lavender Grey */
  --nav-bg:        rgba(245, 244, 250, 0.92); /* Translucent lavender */
  --shadow:        0 2px 24px rgba(46, 47, 58, 0.08);
  --shadow-lg:     0 8px 48px rgba(46, 47, 58, 0.14);

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  /* Layout */
  --max-w:     1200px;
  --max-w-text: 720px;
  --nav-h:     72px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-mid:  300ms ease;
  --t-slow: 600ms ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #1A1821;               /* Deep Slate-Lavender */
    --bg-alt:        #22212B;               /* Slightly lighter slate */
    --surface:       #262533;               /* Rich slate surface */
    --border:        rgba(201, 195, 230, 0.1); /* Lavender border */
    --text:          #E8E6F2;               /* Pale lavender text */
    --text-secondary:#B8B4C8;               /* Muted lavender-grey */
    --text-muted:    #6F6C7A;               /* Dim slate-lavender */
    --nav-bg:        rgba(26, 24, 33, 0.92); /* Translucent dark slate */
    --shadow:        0 2px 24px rgba(0, 0, 0, 0.32);
    --shadow-lg:     0 8px 48px rgba(0, 0, 0, 0.48);
  }
}

/* ── Reset & Base ────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--t-slow), color var(--t-slow);
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* ── Typography Scale ────────────────────────────────────── */

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
}

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.body-lg {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.75;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── Layout Utilities ────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-text {
  width: 100%;
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-sm {
  padding: var(--space-lg) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Navigation ──────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-slow), border-color var(--t-slow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color var(--t-fast);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-links a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-sm);
  border-bottom: none;
  letter-spacing: 0.06em;
  transition: background var(--t-fast), transform var(--t-fast);
}

.nav-links a.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--t-mid), opacity var(--t-mid);
}

/* ── Image / Video Placeholders ──────────────────────────── */

.placeholder {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      var(--border) 20px,
      var(--border) 21px
    );
  opacity: 0.4;
}

.placeholder-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-md);
}

.placeholder-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-xs);
  opacity: 0.3;
}

.placeholder-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.placeholder-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  max-width: 200px;
}

.ph-hero {
  aspect-ratio: 16/7;
  border-radius: 0;
}

.ph-square {
  aspect-ratio: 1;
}

.ph-portrait {
  aspect-ratio: 3/4;
}

.ph-landscape {
  aspect-ratio: 16/9;
}

.ph-wide {
  aspect-ratio: 21/9;
}

.ph-video .placeholder-icon::after {
  content: '▶';
  font-size: 2rem;
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all var(--t-mid);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(184, 92, 56, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid transparent;
  padding: 0.75rem 0;
}

.btn-ghost:hover {
  border-bottom-color: var(--accent);
}

/* ── Cards ───────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: var(--space-md);
}

/* ── Dividers ────────────────────────────────────────────── */

.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: var(--space-sm) 0;
}

.divider-center {
  margin: var(--space-sm) auto;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0 var(--space-lg);
}

.page-hero {
  padding-top: calc(var(--nav-h) + var(--space-xl));
  padding-bottom: var(--space-lg);
}

/* ── Accent treatments ───────────────────────────────────── */

.accent { color: var(--accent); }
.accent-bg {
  background: var(--accent-dim);
  border-radius: var(--r-md);
  padding: var(--space-lg) var(--space-md);
}

.tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Scroll animations ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Utility ─────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --space-xl: 5rem;
    --space-2xl: 7rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    z-index: 99;
    height: fit-content;
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Modal overlay ─────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
}

/* ── Modal card ─────────────────────────────────────────────── */

.modal-card {
  width: 360px;
  max-width: 92%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.show .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.modal-card p.modal-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.modal-card input,
.modal-card select {
  width: 100%;
  margin-bottom: var(--space-sm);
  padding: 0.6rem 0.7rem;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  box-sizing: border-box;
}

.modal-card button.modal-submit {
  width: 100%;
  padding: 0.7rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--t-fast);
}

.modal-card button.modal-submit:hover {
  filter: brightness(1.1);
}

.modal-close {
  float: right;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-card small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.gdpr-row, .newsletter-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: var(--space-xs);
}

.gdpr-row input, .newsletter-row input {
  margin-top: 2px;
  flex-shrink: 0;
  width: auto;
}

.gdpr-row a, .newsletter-row a {
  color: var(--accent);
  text-decoration: underline;
}

.modal-card.success {
  animation: modalPop 0.35s ease;
}

@keyframes modalPop {
  0%   { transform: scale(0.95); }
  60%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.hidden {
  display: none;
}
