/* ============================================================
   GLOBAL.CSS
   Design tokens, reset, typography, shared utility classes
   and components used across all pages.
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* Colors */
  --white:      #ffffff;
  --bg:         #fafaf8;
  --bg-warm:    #f5f3ee;
  --bg-warm-2:  #ede9e0;
  --ink:        #1a1916;
  --ink-2:      #3d3b36;
  --ink-3:      #6b6760;
  --ink-4:      #9e9b96;
  --coral:      #e8432d;
  --coral-dk:   #c73520;
  --coral-lt:   #fdf0ee;
  --coral-mid:  #f4c4bc;
  --teal:       #0e7c7b;
  --teal-lt:    #e6f4f4;
  --amber:      #b07d2a;
  --amber-lt:   #fef9ee;
  --blue:       #2d5be3;
  --blue-lt:    #eef3fd;
  --border:     #e8e5df;
  --border-dk:  #d4d0c8;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(26,25,22,0.06);
  --shadow-sm: 0 1px 4px rgba(26,25,22,0.06), 0 2px 12px rgba(26,25,22,0.04);
  --shadow-md: 0 4px 16px rgba(26,25,22,0.08), 0 1px 4px rgba(26,25,22,0.04);
  --shadow-lg: 0 8px 32px rgba(26,25,22,0.10), 0 2px 8px rgba(26,25,22,0.06);

  /* Border radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1300px;
  --nav-height: 68px;
}


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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--coral);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.1s;
}
.skip-link:focus {
  top: var(--space-4);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ── TYPOGRAPHY ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.5vw, 4.8rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

em { font-style: italic; }

p { line-height: 1.72; }

.text-large  { font-size: 1.1rem; line-height: 1.75; }
.text-base   { font-size: 1rem;   line-height: 1.7;  }
.text-sm     { font-size: 0.9rem; line-height: 1.65; }
.text-xs     { font-size: 0.82rem; }
.text-xxs    { font-size: 0.75rem; }

.text-muted  { color: var(--ink-2); }
.text-faint  { color: var(--ink-3); }
.text-coral  { color: var(--coral); }
.text-white  { color: var(--white); }

.italic      { font-style: italic; }
.font-display { font-family: var(--font-display); }

/* Section label (small caps tag above headings) */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--space-3);
}
.section-tag::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  flex-shrink: 0;
}


/* ── LAYOUT UTILITIES ── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-12);
}

.section-pad {
  padding-block: var(--space-24);
}

.section-pad-lg {
  padding-block: var(--space-32);
}

.bg-white    { background: var(--white); }
.bg-bg       { background: var(--bg); }
.bg-warm     { background: var(--bg-warm); }
.bg-ink      { background: var(--ink); }
.bg-coral    { background: var(--coral); }


/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.82rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s,
              transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary — coral fill */
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(232,67,45,0.26);
}
.btn-primary:hover {
  background: var(--coral-dk);
  box-shadow: 0 4px 16px rgba(232,67,45,0.32);
}

/* Secondary — outlined on white */
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-dk);
}
.btn-secondary:hover {
  background: var(--bg-warm);
  border-color: var(--ink-3);
}

/* Ghost — for dark backgrounds */
.btn-ghost-dark {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost-dark:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
}

/* White — for coral backgrounds */
.btn-white {
  background: var(--white);
  color: var(--coral-dk);
  box-shadow: 0 2px 8px rgba(26,25,22,0.1);
}
.btn-white:hover {
  background: var(--bg);
  box-shadow: 0 4px 14px rgba(26,25,22,0.14);
}

/* Outline white — for coral backgrounds, secondary */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* Icon arrow helper */
.btn-arrow svg {
  transition: transform 0.2s;
}
.btn-arrow:hover svg {
  transform: translateX(3px);
}


/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-sm {
  border-radius: var(--radius-md);
  padding: var(--space-6);
}


/* ── PILLS / TAGS ── */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
}

.pill-coral {
  background: var(--coral-lt);
  color: var(--coral-dk);
  border-color: var(--coral-mid);
}


/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 0;
}


/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ── QUOTE CALLOUT ── */
.callout-quote {
  background: var(--coral-lt);
  border-left: 3px solid var(--coral);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--coral-dk);
  line-height: 1.55;
  margin-block: var(--space-6);
}


/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 0.9rem 0;
  overflow: hidden;
}
.marquee-track {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee-item {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}
.marquee-item::after {
  content: '●';
  font-size: 0.32rem;
  color: var(--coral);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── PHOTO PLACEHOLDER ── */
.photo-placeholder {
  background: var(--bg-warm-2);
  border: 2px dashed var(--border-dk);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--ink-4);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  min-height: 280px;
}
.photo-placeholder svg {
  color: var(--ink-4);
  opacity: 0.5;
}


/* ── RESPONSIVE HELPERS ── */
@media (max-width: 960px) {
  .container {
    padding-inline: var(--space-6);
  }
  .section-pad    { padding-block: var(--space-20); }
  .section-pad-lg { padding-block: var(--space-24); }
  .hide-mobile    { display: none !important; }
}

@media (min-width: 961px) {
  .hide-desktop { display: none !important; }
}
