/* ==========================================================================
   THE FINER GROUP — Shared Design System
   Traces to: The-Finer-Group-Brand-Code-Foundation-Draft-v8.docx
   Grounds: Deep Navy has equal standing with Matte Black. Warm White for light.
   Champagne Gold is never a fill or background — hairline, badge, single
   button or line of text only. British Racing Green and Burgundy are retired.
   Type: Georgia (stand-in for GT Sectra/Canela) display;
         Calibri (stand-in for Söhne/Neue Haas Grotesk) body/UI.
   ========================================================================== */

:root {
  /* Palette — drawn from materials, not chosen for impact */
  --matte-black: #101112;
  --graphite: #2b2e31;
  --gunmetal: #40464c;
  --charcoal: #1a1d20;
  --stone: #d8d2c4;
  --warm-white: #f6f3ec;
  --deep-navy: #0e1b2a;
  --navy-raised: #14243a;   /* panel on navy ground */
  --champagne-gold: #b7a06a; /* matte, never bright */

  /* Type */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: Calibri, 'Helvetica Neue', Arial, sans-serif;

  /* On-dark text */
  --ink-on-dark: rgba(246, 243, 236, 0.92);
  --ink-on-dark-soft: rgba(246, 243, 236, 0.64);
  --ink-on-light: #1a1d20;
  --ink-on-light-soft: rgba(26, 29, 32, 0.66);

  --measure: 38em;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Grounds ---------- */
.ground-navy  { background: var(--deep-navy);  color: var(--ink-on-dark); }
.ground-black { background: var(--matte-black); color: var(--ink-on-dark); }
.ground-charcoal { background: var(--charcoal); color: var(--ink-on-dark); }
.ground-light { background: var(--warm-white); color: var(--ink-on-light); }
.ground-stone { background: var(--stone); color: var(--ink-on-light); }

/* ---------- Wordmark / lockup ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.95rem;
  white-space: nowrap;
}
.wordmark .division { opacity: 0.72; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background 0.4s ease;
}
.site-header.scrolled.on-dark { background: rgba(14, 27, 42, 0.94); }
.site-header.scrolled.on-black { background: rgba(16, 17, 18, 0.94); }
.site-header.scrolled.on-light { background: rgba(246, 243, 236, 0.96); }
.site-nav { display: flex; gap: 2.2rem; }
.site-nav a {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.78; transition: opacity 0.3s ease;
}
.site-nav a:hover { opacity: 1; }
@media (max-width: 760px) { .site-nav { display: none; } }

/* ---------- Hero: one idea per screen ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(3rem, 9vh, 6rem);
  position: relative; overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 44rem; }
.hero .kicker {
  font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 1.4rem; opacity: 0.7;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08; letter-spacing: 0.01em;
}
.hero .hero-line {
  margin-top: 1.6rem; max-width: var(--measure);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem); opacity: 0.82;
}

/* The single gold mark — use once per page */
.gold-rule {
  width: 4.5rem; height: 1px; border: 0;
  background: var(--champagne-gold);
  margin: 1.8rem 0 0;
}

/* ---------- Image slots (placeholder-ready) ----------
   Replace each .img-slot with a real photograph that matches the
   data-brief attribute. Until then it renders as a quiet material field. */
.img-slot {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(64, 70, 76, 0.55), transparent 60%),
    linear-gradient(160deg, var(--charcoal) 0%, var(--deep-navy) 58%, var(--matte-black) 100%);
}
.ground-light .img-slot,
.img-slot.light {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(216, 210, 196, 0.7), transparent 55%),
    linear-gradient(160deg, #c9c2b2 0%, var(--stone) 60%, #b8b1a0 100%);
}
.img-slot::after {
  content: attr(data-brief);
  position: absolute; left: 1.2rem; bottom: 1rem; right: 1.2rem;
  font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(246, 243, 236, 0.38);
}
.ground-light .img-slot::after, .img-slot.light::after { color: rgba(26, 29, 32, 0.38); }
.hero .img-slot.hero-media { position: absolute; inset: 0; z-index: 1; }
.hero .img-slot.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(14, 27, 42, 0.88) 0%, rgba(14, 27, 42, 0.25) 45%, transparent 75%);
}
.ground-black .hero .img-slot.hero-media::before,
.hero.on-black .img-slot.hero-media::before {
  background: linear-gradient(to top, rgba(16, 17, 18, 0.9) 0%, rgba(16, 17, 18, 0.3) 45%, transparent 75%);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 11vh, 8.5rem) var(--gutter); }
.section-label {
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.56; margin-bottom: 2.6rem;
}
.section h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.18;
  max-width: 26em;
}
.section .lede {
  margin-top: 1.4rem; max-width: var(--measure);
  font-size: 1.12rem; opacity: 0.85;
}
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }
.two-col {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0; margin-top: 3rem;
  border-top: 1px solid currentColor;
}
.services > article {
  padding: 2.2rem 2rem 2.6rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}
.services h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.22rem; margin-bottom: 0.7rem;
}
.services p { font-size: 0.98rem; opacity: 0.78; max-width: 30em; }
.services { border-top-color: rgba(128, 128, 128, 0.25); }

/* ---------- Pull quote (Tone in Practice) ---------- */
.pull-quote {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.4;
  max-width: 30em; margin: 0 auto; text-align: center;
}
.pull-quote-wrap { text-align: center; }

/* ---------- The Standard ---------- */
.standard-list { list-style: none; max-width: 46rem; margin-top: 2.6rem; }
.standard-list li {
  padding: 1.5rem 0; border-top: 1px solid rgba(128, 128, 128, 0.25);
  font-size: 1.08rem;
}
.standard-list li:last-child { border-bottom: 1px solid rgba(128, 128, 128, 0.25); }

/* ---------- Buttons: gold appears once, precisely ---------- */
.btn-gold {
  display: inline-block; margin-top: 2.4rem;
  padding: 0.85rem 2.4rem;
  border: 1px solid var(--champagne-gold);
  color: var(--champagne-gold);
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
  background: transparent;
}
.btn-gold:hover { background: var(--champagne-gold); color: var(--matte-black); }
.btn-quiet {
  display: inline-block; margin-top: 2.4rem;
  padding: 0.85rem 2.4rem;
  border: 1px solid currentColor;
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.85; transition: opacity 0.3s ease;
}
.btn-quiet:hover { opacity: 1; }

/* ---------- Media band ---------- */
.media-band { padding: 0; }
.media-band .img-slot { min-height: 58vh; }
.media-duo { display: grid; grid-template-columns: 1fr 1fr; }
.media-duo .img-slot { min-height: 46vh; }
@media (max-width: 760px) { .media-duo { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(3.5rem, 8vh, 5.5rem) var(--gutter) 2.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  opacity: 0.5; margin-bottom: 1.1rem; font-weight: 400;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { opacity: 0.75; transition: opacity 0.3s ease; }
.site-footer a:hover { opacity: 1; }
.footer-legal {
  border-top: 1px solid rgba(128, 128, 128, 0.25);
  padding-top: 1.8rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; opacity: 0.55;
}
.footer-strap { font-family: var(--font-display); font-style: italic; opacity: 0.7; margin-top: 0.9rem; }

/* ---------- Photographs ----------
   .img-slot.photo carries a real image via inline background-image.
   Saturation is gently pulled back so colour never competes with the product. */
.img-slot.photo {
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.72) contrast(1.03);
}
.img-slot.photo::after { display: none; }
.hero .img-slot.photo.hero-media { filter: saturate(0.68) contrast(1.04) brightness(0.92); }

/* ---------- Motion: quiet, modern, Bentley/Aston-style reveals ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* Hero media: slow settle on load */
@keyframes hero-settle {
  from { transform: scale(1.045); }
  to   { transform: scale(1); }
}
.hero .img-slot.hero-media { animation: hero-settle 2.6s cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .img-slot.hero-media { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-3 { margin-top: 3rem; }
.measure { max-width: var(--measure); }

/* ==========================================================================
   Group header standard (21 Oct 2026, matches Finer International v17.2)
   Desktop only: one line — wordmark left, menu right, fine gold line under
   the menu only, wordmark level between the menu words and the line.
   Phone layout is left exactly as it was.
   ========================================================================== */
@media (min-width: 761px) {
  .site-header { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 1.9rem; padding-bottom: 1rem; }
  .site-header .wordmark { order: 0; }
  .site-header .site-nav { order: 1; }
  .site-header::before { content: ""; position: absolute; inset: 0 0 -2.5rem 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(14,27,42,0.7), rgba(14,27,42,0)); }
  .site-header.scrolled::before, body:not(:has(.hero)) .site-header::before { display: none; }
  .site-header .wordmark { font-size: clamp(1.05rem, 1.35vw, 1.4rem); position: relative; top: 0.62rem; }
  .site-header .site-nav { gap: clamp(1.6rem, 3.6vw, 3.6rem); white-space: nowrap; padding: 0.8rem 0; border-bottom: 1px solid rgba(183, 160, 106, 0.6); }
  .site-header .site-nav a { white-space: nowrap; }
}
@media (min-width: 761px) and (max-width: 1050px) { .site-header .site-nav a { font-size: 0.7rem; letter-spacing: 0.12em; } .site-header .site-nav { gap: 1.3rem; } }

/* ---------- Mobile navigation ---------- */
.nav-toggle {
  display: none; position: relative; z-index: 120;
  width: 2.4rem; height: 2.4rem; padding: 0; border: 0; cursor: pointer;
  background: transparent; color: inherit;
}
.nav-toggle span {
  position: absolute; left: 0.35rem; right: 0.35rem; height: 1px;
  background: currentColor; transition: transform 0.35s ease, opacity 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 0.75rem; }
.nav-toggle span:nth-child(2) { top: 1.15rem; }
.nav-toggle span:nth-child(3) { top: 1.55rem; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.4rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.4rem) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 110;
    display: flex; flex-direction: column; gap: 0;
    padding: 5.5rem var(--gutter) 2.5rem;
    background: rgba(14, 27, 42, 0.98);
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .site-header.on-black .site-nav { background: rgba(16, 17, 18, 0.98); }
  .site-nav.open { transform: translateY(0); }
  .site-nav a {
    padding: 1.1rem 0; font-size: 0.95rem; letter-spacing: 0.14em; opacity: 0.85;
    border-bottom: 1px solid rgba(128, 128, 128, 0.22);
  }
}

/* menu panel always reads light-on-navy, whatever colour the header text is */
@media (max-width: 760px) {
  .site-header { flex-direction: row; align-items: center; justify-content: space-between; }
  .site-header .wordmark { order: 0; }
  .site-header .nav-toggle { order: 1; }
  .site-nav { color: var(--ink-on-dark); }
  .nav-toggle[aria-expanded="true"] { color: var(--ink-on-dark); }
}

/* group-link (22 Oct 2026): "Finer International" top left returns to the group site; division name sits below the gold line */
.hdr-top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: 100%; }
.group-link { font-family: var(--font-display); letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none; white-space: nowrap; font-size: clamp(0.95rem, 1.15vw, 1.25rem); color: inherit; }
.group-link span { opacity: 0.7; }
.group-link:hover { color: var(--champagne-gold); }
@media (min-width: 761px) {
  .site-header { flex-direction: column !important; align-items: stretch !important; gap: 1.1rem !important; padding-top: 1.6rem !important; padding-bottom: 1.2rem !important; }
  .hdr-top { border-bottom: 1px solid rgba(183, 160, 106, 0.6); }
  .site-header .hdr-top .site-nav { border-bottom: 0 !important; padding: 0.9rem 0 !important; }
  .site-header .hdr-brand .wordmark { position: static !important; top: auto !important; font-size: clamp(1.4rem, 2vw, 2.1rem) !important; letter-spacing: 0.32em !important; }
  .site-header.scrolled .hdr-brand { display: none; }
}
@media (max-width: 760px) {
  .site-header { flex-direction: column !important; align-items: stretch !important; gap: 0.5rem !important; }
  .group-link { font-size: 0.78rem; letter-spacing: 0.24em; }
}
