/* ====================================================================
   Sagittarius Systems — styles.css
   Mobile-first. Edit the variables in :root to retheme the whole site.
   ==================================================================== */

/* -------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------- */
:root {
  /* Brand */
  --orange:        #E07B00;
  --accent-strong: #C46A00;   /* italic headline accents (AA for large text) */
  --orange-text:   #9A5500;   /* orange that passes AA on ivory/paper for small text */
  --gold:          #F2B33D;

  --ink:           #151413;
  --ink-muted:     #5C5852;
  --stone:         #8F897F;
  --hairline:      #E3DDD2;
  --paper:         #F2EEE6;
  --ivory:         #FAF8F4;

  /* Semantic */
  --bg:            var(--ivory);
  --bg-alt:        var(--paper);
  --bg-card:       var(--ivory);
  --fg:            var(--ink);
  --fg-muted:      var(--ink-muted);
  --border:        var(--hairline);
  --accent:        var(--orange);
  --accent-text:   var(--orange-text);
  --header-bg:     rgba(250, 248, 244, 0.88);

  /* Dark surfaces (CTA, footer, about panel) */
  --dark-bg:       #121110;
  --dark-bg-2:     #1B1A18;
  --dark-fg:       #F4F1EA;
  --dark-fg-muted: #A9A39A;
  --dark-border:   rgba(244, 241, 234, 0.12);

  /* Type */
  --font-heading:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:     "Inter", "Segoe UI", system-ui, sans-serif;

  /* Fluid type scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.9375rem;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lg:   clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h3:   clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --fs-h2:   clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  --fs-h1:   clamp(2.75rem, 1.6rem + 5.4vw, 5.75rem);
  --fs-stat: clamp(2.75rem, 2.1rem + 2.6vw, 4.25rem);

  /* Spacing & shape */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --container:     1240px;
  --gutter:        clamp(1rem, 4vw, 2rem);
  --radius-sm:     4px;
  --radius:        6px;
  --radius-lg:     10px;
  --radius-btn:    2px;

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --dur:      0.35s;

  --header-h: 76px;
}

/* -------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;          /* belt-and-braces against horizontal scroll */
  -webkit-font-smoothing: antialiased;
}

::selection { background: #F3D7AE; color: var(--ink); }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.1;
  letter-spacing: -0.008em;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent-strong); }
p { margin: 0; }
/* :where() keeps this reset at zero specificity so component spacing always wins */
:where(ul[role="list"], ol[role="list"], .nav-list, .timeline, .industries-grid, .about-points, .footer-legal, .service-list, .hero-meta) {
  list-style: none; margin: 0; padding: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }

button { font: inherit; color: inherit; cursor: pointer; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--ink); color: var(--ivory);
  padding: 0.75rem 1rem; border-radius: var(--radius-sm); z-index: 1000;
  font-weight: 500;
}
.skip-link:focus { top: 1rem; color: var(--ivory); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* -------------------------------------------------------------------
   3. SHARED COMPONENTS
   ------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); flex: none; }
.eyebrow-star::before { display: none; }
.star-icon { width: 12px; height: 12px; fill: var(--orange); flex: none; }

.section { padding-block: var(--space-section); }
.section-alt { background: var(--bg-alt); }

.section-title { font-size: var(--fs-h2); }
.section-intro { color: var(--fg-muted); font-size: var(--fs-lg); max-width: 36rem; }

.section-head {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-bottom: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}
.section-head .section-title { max-width: 18ch; }
@media (min-width: 900px) {
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 4rem; }
  .section-head .section-intro { max-width: 26rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.6rem;
  border-radius: var(--radius-btn);
  font-weight: 500; font-size: 0.9375rem; line-height: 1; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-lg { min-height: 54px; padding: 0 1.9rem; font-size: 1rem; }
.btn-sm { min-height: 42px; padding: 0 1.2rem; font-size: 0.875rem; }

.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--accent-text); color: var(--ivory); }

/* Secondary action: a quiet text link with an animated underline */
.btn-ghost {
  background: transparent; color: var(--fg);
  padding-inline: 0; border: 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 calc(50% + 0.8em); background-repeat: no-repeat;
}
.btn-ghost span { transition: transform var(--dur) var(--ease); }
.btn-ghost:hover { color: var(--accent-text); }
.btn-ghost:hover span { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

/* Scroll-reveal (JS adds .is-visible) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* -------------------------------------------------------------------
   4. HEADER / NAV
   ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand img { height: 38px; width: auto; }
@media (min-width: 768px) { .brand img { height: 44px; } }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-cta { display: none; }
.btn.header-cta { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.header-cta:hover { background: var(--ink); color: var(--ivory); }

/* Hamburger (44×44 touch target) */
.nav-toggle {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: transparent; border: 0; border-radius: var(--radius-sm);
}
.nav-toggle-bar { width: 24px; height: 1.5px; background: var(--fg); transition: transform var(--dur) var(--ease), opacity var(--dur); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav: slide-down panel under the header */
.nav {
  /* Absolute (not fixed): the header's backdrop-filter makes it the containing block anyway */
  position: absolute; left: 0; right: 0; top: 100%;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  background: var(--bg);
  padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 2rem;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
body.nav-open { overflow: hidden; }

.nav-list { display: flex; flex-direction: column; }
.nav-link {
  display: flex; align-items: center; min-height: 60px;
  font-family: var(--font-heading); font-size: 1.75rem; font-weight: 400;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}
.nav-link.is-active { color: var(--accent-text); font-style: italic; }

.nav-mobile-extras { display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile-extras .btn { width: 100%; min-height: 54px; }
.nav-contact { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; color: var(--fg-muted); font-weight: 500; }

/* Desktop nav */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .nav {
    position: static; height: auto; transform: none; opacity: 1; visibility: visible;
    padding: 0; background: transparent; overflow: visible; display: block;
  }
  .nav-list { flex-direction: row; gap: 2.25rem; }
  .nav-link {
    min-height: 44px; font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em;
    border: 0; color: var(--fg-muted); position: relative;
  }
  .nav-link.is-active { font-style: normal; }
  .nav-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }
  .nav-link:hover, .nav-link.is-active { color: var(--fg); }
  .nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
  .nav-mobile-extras { display: none; }
}

/* -------------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(60rem 36rem at 85% 10%, rgba(242, 179, 61, 0.10), transparent 70%), var(--bg);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.hero-grid {
  position: relative;
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); gap: 4rem; }
}

.hero-copy { display: flex; flex-direction: column; gap: 1.75rem; }
.hero-copy .eyebrow { margin-bottom: 0; }
.hero-title { font-size: var(--fs-h1); font-weight: 300; line-height: 1.04; letter-spacing: -0.01em; word-spacing: 0.04em; max-width: 15ch; }
.hero-title em { font-weight: 300; }
.hero-lede { font-size: var(--fs-lg); color: var(--fg-muted); max-width: 34rem; }
.hero-copy .btn-row { margin-top: 0.5rem; }

/* Logo mark inside a fine-line compass (decorative) */
.hero-visual { display: flex; justify-content: center; }
.hero-compass { width: min(78%, 20rem); height: auto; overflow: visible; }
@media (min-width: 1024px) { .hero-compass { width: min(100%, 27rem); } }
.hero-compass .c-line { stroke: var(--ink); stroke-width: 0.75; opacity: 0.35; }
.hero-compass .c-faint { opacity: 0.15; }
.hero-compass .c-tick { stroke: var(--ink); stroke-width: 0.75; opacity: 0.4; }

.hero-meta {
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.6rem;
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted);
}
@media (min-width: 768px) {
  .hero-meta { flex-direction: row; flex-wrap: wrap; gap: 0; }
  .hero-meta li + li::before { content: ""; display: inline-block; width: 1px; height: 0.9em; background: var(--border); margin-inline: 1.5rem; vertical-align: -0.1em; }
}

/* -------------------------------------------------------------------
   6. STATS
   ------------------------------------------------------------------- */
.stats { border-block: 1px solid var(--border); background: var(--bg); }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 0;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column; gap: 0.6rem; padding-inline: clamp(1rem, 0.5rem + 1.5vw, 2rem); border-left: 1px solid var(--border); }
.stat-value { font-family: var(--font-heading); font-weight: 300; font-size: var(--fs-stat); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.stat-label { color: var(--fg-muted); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }

/* -------------------------------------------------------------------
   7. SERVICES (numbered list)
   ------------------------------------------------------------------- */
.service-list {
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) { .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; } }

.service { border-top: 1px solid var(--border); }
.service-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 0.5rem 1.5rem;
  padding-block: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  color: var(--fg); height: 100%;
}
.service-link:hover { color: var(--fg); }
.service-num { font-family: var(--font-heading); font-style: italic; font-size: 1.05rem; color: var(--accent-text); line-height: 1.6; min-width: 1.75rem; }
.service-body { display: flex; flex-direction: column; gap: 0.5rem; }
.service-title { font-size: var(--fs-h3); transition: color var(--dur) var(--ease); }
.service-text { color: var(--fg-muted); font-size: var(--fs-sm); max-width: 32rem; }
.service-arrow { font-size: 1.25rem; line-height: 1.4; color: var(--stone); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.service-link:hover .service-title, .service-link:focus-visible .service-title { color: var(--accent-text); }
.service-link:hover .service-arrow, .service-link:focus-visible .service-arrow { transform: translateX(4px); color: var(--accent-text); }

/* -------------------------------------------------------------------
   8. WHY US + TIMELINE
   ------------------------------------------------------------------- */
.why-grid {
  display: grid; gap: 2.75rem 4rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.why-item { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.why-num { font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: var(--accent-text); }
.why-item h3 { font-size: var(--fs-h3); }
.why-item p { color: var(--fg-muted); font-size: var(--fs-sm); max-width: 32rem; }

.process { margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
.process-title { font-size: var(--fs-h3); margin-bottom: 2.25rem; display: flex; align-items: center; gap: 1.25rem; }
.process-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.timeline {
  position: relative; counter-reset: step;
  overflow: clip; /* connector lines that run into the gap never widen the page */
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.timeline-step { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 2rem; }
/* Connector line + dot node */
.timeline-step::before {
  content: ""; position: absolute; top: 3px; left: 14px; right: -2rem; height: 1px; background: var(--border);
}
.timeline-step:last-child::before { right: 0; }
.timeline-step::after {
  content: ""; position: absolute; top: 0; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
}
.timeline-num { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.16em; color: var(--accent-text); }
.timeline-step h4 { font-size: 1.4rem; }
.timeline-step p { color: var(--fg-muted); font-size: var(--fs-sm); }
@media (max-width: 599px) {
  .timeline { grid-template-columns: 1fr; gap: 1.75rem; }
  .timeline-step { padding-top: 0; padding-left: 2rem; }
  .timeline-step::before { top: 16px; bottom: -1.75rem; left: 3px; right: auto; width: 1px; height: auto; }
  .timeline-step::after { top: 6px; }
  .timeline-step:last-child::before { display: none; }
}

/* -------------------------------------------------------------------
   9. INDUSTRIES
   ------------------------------------------------------------------- */
.industries-grid {
  display: grid; gap: 0 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px)  { .industries-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .industries-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 3rem; } }

.industry {
  display: flex; align-items: center; gap: 0.9rem;
  padding-block: 1.15rem; border-bottom: 1px solid var(--border);
  font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.3;
}
.industry-icon { flex: none; display: inline-flex; color: var(--ink-muted); }
.industry-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 479px) { .industry { font-size: 1.05rem; gap: 0.7rem; } .industry-icon svg { width: 20px; height: 20px; } }

/* -------------------------------------------------------------------
   10. ABOUT
   ------------------------------------------------------------------- */
.about-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6rem; } }

.about-media { display: flex; flex-direction: column; gap: 1.25rem; }
.media-placeholder {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background: var(--bg-alt);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  color: var(--fg-muted); font-size: var(--fs-sm); font-weight: 500;
}
.media-brand { background: radial-gradient(circle at 50% 50%, rgba(224, 123, 0, 0.18), transparent 55%), var(--dark-bg); }
.media-brand::before, .media-brand::after {
  content: ""; position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--dark-border); transform: translate(-50%, -50%);
}
.media-brand::before { width: 46%; }
.media-brand::after  { width: 74%; }
.media-brand img { position: relative; width: clamp(80px, 20%, 120px); height: auto; }

.about-mission {
  background: var(--bg-alt); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); display: flex; flex-direction: column; gap: 0.9rem;
}
.about-mission-label { display: inline-flex; align-items: center; gap: 0.75rem; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted); }
.about-mission-label::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.about-mission-text { font-family: var(--font-heading); font-style: italic; font-weight: 300; font-size: var(--fs-h3); line-height: 1.35; color: var(--fg); }

.about-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.about-copy .eyebrow { margin-bottom: 0; }
.about-copy p { color: var(--fg-muted); }
.about-copy p strong { color: var(--fg); font-weight: 500; }
.about-copy .section-title { color: var(--fg); margin-bottom: 0.5rem; }
.about-points { display: flex; flex-direction: column; margin-top: 0.75rem; border-top: 1px solid var(--border); }
.about-points li { display: flex; align-items: center; gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--border); font-weight: 500; color: var(--fg); }
.about-points li::before { content: ""; width: 14px; height: 1px; flex: none; background: var(--accent); }

/* -------------------------------------------------------------------
   11. CTA BANNER (dark)
   ------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--dark-bg); color: var(--dark-fg);
  padding-block: clamp(5rem, 3.5rem + 5vw, 8rem);
}
.cta-glow {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, -50%);
  width: 70rem; height: 30rem; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(224, 123, 0, 0.22), rgba(224, 123, 0, 0) 65%);
  pointer-events: none;
}
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.75rem; }
.cta-title { font-size: var(--fs-h2); font-weight: 300; color: var(--dark-fg); max-width: 18ch; }
.cta-title em { color: var(--gold); font-weight: 300; }
.cta-text { color: var(--dark-fg-muted); font-size: var(--fs-lg); max-width: 32rem; }
.cta .btn-primary { background: var(--dark-fg); color: var(--ink); margin-top: 0.5rem; }
.cta .btn-primary:hover { background: var(--gold); color: var(--ink); }

/* -------------------------------------------------------------------
   12. CONTACT
   ------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 3.5rem; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 6rem; } }

.contact-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-copy .eyebrow { margin-bottom: 0; }

.contact-details { font-style: normal; display: grid; gap: 0.75rem; margin-top: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 600px) and (max-width: 1023px) { .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem; min-height: 56px;
  padding: 0.75rem; margin: -0.75rem; border-radius: var(--radius);
  color: var(--fg); font-weight: 500; line-height: 1.45;
  transition: background var(--dur);
}
a.contact-item:hover { background: var(--bg-alt); color: var(--fg); }
.contact-icon {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--bg);
}
.contact-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { display: block; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 0.2rem; }

.map-placeholder {
  margin-top: 1.25rem; aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--bg-alt);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  color: var(--fg-muted); font-size: var(--fs-sm); font-weight: 500;
}

.map-embed { overflow: hidden; }
.map-embed iframe {
  display: block; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) contrast(0.95); opacity: 0.9;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.map-embed:hover iframe, .map-embed:focus-within iframe { filter: none; opacity: 1; }

/* Email card (right column) */
.contact-form {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.contact-card .eyebrow { margin-bottom: 0; }
.contact-card h3 { font-size: var(--fs-h3); }
.contact-card p { color: var(--fg-muted); }
.contact-card .about-points { margin-top: 0; }
.contact-card .btn-row { margin-top: 0.5rem; }
.contact-card .btn { max-width: 100%; }
@media (max-width: 599px) { .contact-card .btn-primary { width: 100%; } }
.contact-card-note { font-size: var(--fs-sm); overflow-wrap: anywhere; }

/* -------------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------------- */
.site-footer { background: var(--dark-bg); color: var(--dark-fg-muted); padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.footer-grid { display: grid; gap: 2.75rem; padding-bottom: 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 600px)  { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; } }

.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; max-width: 24rem; }
.footer-brand img { height: 44px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: var(--fs-sm); }
.social-link {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--dark-border); color: var(--dark-fg);
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { background: var(--dark-fg); border-color: var(--dark-fg); color: var(--ink); }

.footer-col h3 { color: var(--dark-fg); font-size: 1.15rem; letter-spacing: 0; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.35rem; font-size: var(--fs-sm); }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--dark-fg-muted); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-block: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  font-size: var(--fs-xs); letter-spacing: 0.04em;
}
@media (min-width: 600px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-legal { display: flex; gap: 1.75rem; }
.footer-legal a { min-height: 36px; display: inline-flex; align-items: center; color: var(--dark-fg-muted); }
.footer-legal a:hover { color: var(--gold); }

/* -------------------------------------------------------------------
   14. REDUCED MOTION
   ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------
   Legal pages (privacy.html, terms.html)
   ------------------------------------------------------------------- */
.legal-inner { max-width: 46rem; }
.legal-inner .section-title { font-weight: 300; }
.legal-updated { color: var(--fg-muted); font-size: var(--fs-sm); margin-top: 1rem; }
.legal-body { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
.legal-body h2 { font-size: var(--fs-h3); margin-top: 1.5rem; }
.legal-body p { color: var(--fg-muted); }
.legal-body a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
