/* ============================================================
   DESIGN TOKENS — OKLCH Color Palette
   Marina brand: Deep sea luxury, Mediterranean warmth
============================================================ */
:root {
  /* ── Brand Colors (OKLCH) ── */
  --ocean-900:  oklch(18% 0.06 245);   /* Darkest navy — backgrounds */
  --ocean-800:  oklch(24% 0.09 248);   /* Deep navy — navbar scrolled */
  --ocean-700:  oklch(32% 0.11 250);   /* Rich navy */
  --ocean-600:  oklch(42% 0.13 252);   /* Mid blue */
  --ocean-400:  oklch(58% 0.14 245);   /* Mediterranean blue */
  --ocean-200:  oklch(82% 0.07 245);   /* Soft blue */
  --ocean-50:   oklch(96% 0.02 245);   /* Sky tint */

  --gold-500:   oklch(72% 0.13 75);    /* Warm gold — primary accent */
  --gold-400:   oklch(80% 0.11 75);    /* Light gold — hover */
  --gold-200:   oklch(90% 0.06 75);    /* Pale gold — subtle tints */

  --white:      oklch(100% 0 0);
  --surface:    oklch(98.5% 0.005 245);
  --text-main:  oklch(16% 0.03 248);
  --text-muted: oklch(52% 0.04 245);
  --border:     oklch(88% 0.025 245);

  /* ── Semantic Aliases ── */
  --color-ocean:      var(--ocean-900);
  --color-med-blue:   var(--ocean-600);
  --color-sky:        var(--ocean-50);
  --color-white:      var(--white);
  --color-gold:       var(--gold-500);
  --color-gold-light: var(--gold-400);

  /* ── Typography ── */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* ── Spacing Scale (8pt grid) ── */
  --s-1:  0.25rem;   /*  4px */
  --s-2:  0.5rem;    /*  8px */
  --s-3:  0.75rem;   /* 12px */
  --s-4:  1rem;      /* 16px */
  --s-5:  1.25rem;   /* 20px */
  --s-6:  1.5rem;    /* 24px */
  --s-8:  2rem;      /* 32px */
  --s-10: 2.5rem;    /* 40px */
  --s-12: 3rem;      /* 48px */
  --s-16: 4rem;      /* 64px */
  --s-20: 5rem;      /* 80px */
  --s-24: 6rem;      /* 96px */

  /* ── Shape ── */
  --r-sm:   6px;
  --r-md:   14px;
  --r-lg:   24px;
  --r-full: 999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 4px oklch(18% 0.06 245 / 0.1);
  --shadow-md: 0 4px 20px oklch(18% 0.06 245 / 0.14);
  --shadow-lg: 0 16px 48px oklch(18% 0.06 245 / 0.22);
  --shadow-xl: 0 32px 80px oklch(18% 0.06 245 / 0.3);

  /* ── Motion ── */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:  0.15s;
  --t-base:  0.3s;
  --t-slow:  0.6s;

  /* ── Layout ── */
  --nav-h: 72px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
  background: var(--white);
  overflow-x: hidden;
}

img     { display: block; max-width: 100%; }
a       { color: inherit; text-decoration: none; }
ul      { list-style: none; }
address { font-style: normal; }

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-out-expo),
              transform var(--t-slow) var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Section anatomy ── */
.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--s-4);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ocean-900);
  position: relative;
  display: inline-block;
  margin-bottom: var(--s-2);
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold-500);
  margin-top: var(--s-3);
}

.section-title.on-dark         { color: var(--white); }
.section-title.on-dark::after  { background: var(--gold-400); }
