/* =========================================================
   Nova Trading Group. styles.css
   Design tokens, base, layout, components, page sections.
   Mobile-first. No external dependencies.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --navy-900: #0B1F3A;
  --navy-800: #12294D;
  --navy-700: #1A3562;
  --gold-500: #C9A24B;
  --gold-600: #D4AF37;
  --cream-50: #FBF9F4;
  --cream-100: #F6F3EC;
  --cream-200: #ECE6D6;
  --ink-900: #1A1A1A;
  --ink-600: #2E2E2E;
  --ink-400: #545454;
  --line: rgba(26, 26, 26, 0.12);
  --line-dark: rgba(246, 243, 236, 0.16);

  /* Type */
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur: 220ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
img, svg, picture, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--sp-4); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 var(--sp-4); }
a { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--dur) var(--ease); }
a:hover { color: var(--gold-600); }
button { font: inherit; cursor: pointer; }
ul, ol { padding-left: 1.25em; margin: 0 0 var(--sp-4); }
::selection { background: var(--gold-500); color: var(--navy-900); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus-visible { outline-offset: 4px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--cream-50);
  padding: var(--sp-3) var(--sp-4);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
  outline: 2px solid var(--gold-600);
}

/* ---------- Typography ---------- */
h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw + 0.5rem, 3.6rem);
  letter-spacing: -0.015em;
}
h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw + 0.5rem, 2.4rem);
}
h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--sp-4);
}
.eyebrow.on-dark { color: var(--gold-500); }
.lede {
  font-size: clamp(1.05rem, 1.2vw + 0.9rem, 1.25rem);
  color: var(--ink-600);
  max-width: 60ch;
}
.lede::before {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold-500);
  margin-bottom: var(--sp-3);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--sp-6) 0; }
.section--tight { padding: var(--sp-5) 0; }
@media (min-width: 720px) {
  .section { padding: var(--sp-7) 0; }
}
@media (min-width: 900px) {
  .section { padding: var(--sp-7) 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.28s var(--ease),
              color 0.28s var(--ease),
              border-color 0.28s var(--ease),
              transform 0.22s var(--ease),
              box-shadow 0.28s var(--ease);
  cursor: pointer;
  background: none;
  will-change: transform;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:focus-visible, .btn:active { transform: none; }
}
.btn--primary {
  background: var(--navy-900);
  color: var(--cream-50);
  border-color: var(--navy-900);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.18);
}
.btn--ghost {
  color: var(--cream-50);
  border-color: var(--gold-500);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn--dark {
  background: var(--navy-900);
  color: var(--cream-50);
  border-color: var(--navy-900);
}
.btn--dark:hover, .btn--dark:focus-visible {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--cream-50);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.18);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream-50);
  border-bottom: 2px solid var(--gold-500);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--navy-900);
  text-decoration: none;
  line-height: 1;
}
.brand svg { height: 74px; width: auto; display: block; }
.brand:hover { color: var(--navy-900); }

/* Primary nav */
.primary-nav { display: none; }
.primary-nav__list {
  display: flex;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
@media (min-width: 960px) {
  .primary-nav__list { gap: var(--sp-6); }
}
.primary-nav__link {
  color: var(--navy-900);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--sp-2) 0;
  position: relative;
  letter-spacing: 0.01em;
}
.primary-nav__link:hover { color: var(--gold-600); }
.primary-nav__link[aria-current="page"] {
  color: var(--gold-600);
  font-weight: 600;
}
.primary-nav__cta { margin-left: var(--sp-3); }

@media (min-width: 720px) {
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  color: var(--navy-900);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle__bars::after { position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--navy-900);
  color: var(--cream-50);
  padding: calc(var(--sp-8) + var(--sp-3)) var(--sp-5) var(--sp-6);
  transform: translateY(-100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s var(--ease), opacity 0.24s var(--ease), visibility 0.32s;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.mobile-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
}
.mobile-nav > * { position: relative; z-index: 1; }
.mobile-nav[data-open="true"] {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(246, 243, 236, 0.35);
  background: transparent;
  color: var(--cream-50);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.mobile-nav__close:hover,
.mobile-nav__close:focus-visible {
  background: var(--cream-50);
  border-color: var(--cream-50);
  color: var(--navy-900);
}

.mobile-nav__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.55);
  margin-bottom: var(--sp-2);
}

.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(246, 243, 236, 0.18);
}
.mobile-nav__link {
  display: block;
  padding: var(--sp-5) 0;
  color: var(--cream-50);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1;
  border-bottom: 1px solid rgba(246, 243, 236, 0.14);
  transition: color var(--dur) var(--ease);
}
.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  color: rgba(246, 243, 236, 0.7);
}
.mobile-nav__link[aria-current="page"] {
  color: var(--cream-50);
  font-style: italic;
}

.mobile-nav__cta {
  margin-top: var(--sp-5);
  align-self: stretch;
  justify-content: center;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
}
/* Override the gold primary button style for the mobile-nav CTA. Clean cream on navy. */
.mobile-nav__cta.btn--primary {
  background: var(--cream-50);
  border-color: var(--cream-50);
  color: var(--navy-900);
}
.mobile-nav__cta.btn--primary:hover,
.mobile-nav__cta.btn--primary:focus-visible {
  background: transparent;
  border-color: var(--cream-50);
  color: var(--cream-50);
}

.mobile-nav__foot {
  margin-top: auto;
  padding-top: var(--sp-6);
  color: rgba(246, 243, 236, 0.65);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 720px) {
  .mobile-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .nav-toggle { display: none !important; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--cream-100);
  padding: var(--sp-7) 0 var(--sp-6);
  border-top: 2px solid var(--gold-500);
}
.site-footer a { color: var(--cream-100); text-decoration: none; transition: color 0.28s var(--ease); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold-500); }
.site-footer__grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
}
.site-footer__brand svg { height: 60px; width: auto; }
.site-footer__brand p { margin-top: var(--sp-4); color: rgba(246, 243, 236, 0.92); font-size: 0.95rem; max-width: 32ch; }
.site-footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--sp-4);
}
.site-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); font-size: 0.95rem; }
.site-footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(246, 243, 236, 0.85);
}
.site-footer__bottom > span + span {
  color: var(--gold-500);
  letter-spacing: 0.08em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Mobile: generous but not overwhelming. */
  min-height: clamp(440px, 68vh, 560px);
  display: flex;
  align-items: center;
  color: var(--cream-50);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-900);
  text-align: center;
}
@media (min-width: 720px) {
  .hero {
    min-height: clamp(540px, 72vh, 720px);
    align-items: flex-end;
    text-align: left;
  }
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media picture, .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Slow ambient zoom on the hero photo for a premium feel */
.hero__media--zoom img {
  animation: heroZoom 22s ease-out both;
  transform-origin: 50% 55%;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media--zoom img { animation: none; }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Mobile: even dim so centered copy reads on any part of the photo. */
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.65) 0%, rgba(11, 31, 58, 0.6) 50%, rgba(11, 31, 58, 0.88) 100%);
}
@media (min-width: 720px) {
  .hero__scrim {
    /* Desktop: darker on the left (behind the text), softer on the right. */
    background:
      linear-gradient(180deg, rgba(11, 31, 58, 0.55) 0%, rgba(11, 31, 58, 0.4) 45%, rgba(11, 31, 58, 0.9) 100%),
      linear-gradient(90deg, rgba(11, 31, 58, 0.75) 0%, rgba(11, 31, 58, 0.5) 35%, rgba(11, 31, 58, 0.12) 70%, rgba(11, 31, 58, 0.05) 100%);
  }
}
/* Hero content fade + rise on load */
[data-hero-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: heroContentIn 0.9s 0.15s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
@keyframes heroContentIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-hero-reveal] { opacity: 1; transform: none; animation: none; }
}
.hero__inner {
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 720px) {
  .hero__inner { padding: var(--sp-6) var(--sp-5); }
}
.hero h1 {
  color: var(--cream-50);
  margin: 0 auto var(--sp-4);
  max-width: 20ch;
  font-size: clamp(2.5rem, 8vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  text-shadow: 0 2px 24px rgba(11, 31, 58, 0.4);
}
@media (min-width: 720px) {
  .hero h1 {
    margin: 0 0 var(--sp-5);
    max-width: 24ch;
    font-size: clamp(3.2rem, 6vw + 1rem, 5.2rem);
  }
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--cream-50);
  margin: 0 auto var(--sp-3);
  max-width: 40ch;
  line-height: 1.45;
  text-shadow: 0 1px 12px rgba(11, 31, 58, 0.45);
}
@media (min-width: 720px) {
  .hero__sub {
    font-size: clamp(1.15rem, 1.2vw + 0.95rem, 1.35rem);
    margin: 0 0 var(--sp-3);
    max-width: 52ch;
  }
}
.hero__sub-small {
  font-size: 0.95rem;
  color: rgba(246, 243, 236, 0.95);
  margin: 0 auto var(--sp-5);
  max-width: 44ch;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(11, 31, 58, 0.5);
}
@media (min-width: 720px) {
  .hero__sub-small {
    font-size: 1.08rem;
    margin: 0 0 var(--sp-6);
    max-width: 62ch;
  }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}
@media (min-width: 720px) {
  .hero__actions { justify-content: flex-start; }
}

/* Hero: cream / navy palette, no gold. */
.hero .eyebrow.on-dark {
  color: rgba(246, 243, 236, 0.85);
}
.hero .btn--primary {
  background: var(--cream-50);
  border-color: var(--cream-50);
  color: var(--navy-900);
}
.hero .btn--primary:hover,
.hero .btn--primary:focus-visible {
  background: transparent;
  border-color: var(--cream-50);
  color: var(--cream-50);
}
.hero .btn--ghost {
  color: var(--cream-50);
  border-color: rgba(246, 243, 236, 0.55);
}
.hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible {
  background: var(--cream-50);
  border-color: var(--cream-50);
  color: var(--navy-900);
}

/* Compact hero for inner pages */
.page-hero {
  background: var(--navy-900);
  color: var(--cream-50);
  padding: var(--sp-8) 0 var(--sp-9);
  margin-bottom: var(--sp-6);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
@media (min-width: 720px) {
  .page-hero {
    padding: var(--sp-9) 0 var(--sp-9);
    margin-bottom: var(--sp-7);
  }
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-hero__media picture,
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.62) 0%, rgba(11, 31, 58, 0.72) 55%, rgba(11, 31, 58, 0.82) 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 400px at 90% 20%, rgba(201, 162, 75, 0.16), transparent 60%),
    radial-gradient(800px 300px at 10% 100%, rgba(201, 162, 75, 0.10), transparent 60%);
  z-index: -1;
}
.page-hero h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold-500);
  margin: var(--sp-3) 0 0;
}
.page-hero h1 {
  color: var(--cream-50);
  max-width: 22ch;
  margin: 0 auto var(--sp-3);
  font-size: clamp(2.25rem, 6vw + 0.5rem, 2.8rem);
  line-height: 1.15;
}
.page-hero p {
  color: rgba(246, 243, 236, 0.9);
  max-width: 56ch;
  font-size: 1.05rem;
  margin: 0 auto;
}

/* ---------- Cards / Grids ---------- */
.card-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.card__num {
  font-family: var(--font-serif);
  color: var(--gold-600);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
}
.card h3 { margin-bottom: var(--sp-2); color: var(--navy-900); }
.card p { color: var(--ink-600); font-size: 0.98rem; margin: 0; }

/* Card variant on navy */
.card--dark {
  background: rgba(246, 243, 236, 0.04);
  border-color: rgba(246, 243, 236, 0.16);
  color: var(--cream-100);
}
.card--dark h3 { color: var(--cream-50); }
.card--dark p { color: rgba(246, 243, 236, 0.92); }

/* Divided variant on navy: each card is its own subtle panel with hover lift. */
.card-grid--divided {
  gap: var(--sp-3);
}
.card-grid--divided .card {
  background: rgba(246, 243, 236, 0.035);
  border: 1px solid rgba(246, 243, 236, 0.12);
  border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-5);
  transition: transform 0.35s var(--ease),
              background 0.35s var(--ease),
              border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.card-grid--divided .card:hover {
  transform: translateY(-4px);
  background: rgba(246, 243, 236, 0.06);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
@media (prefers-reduced-motion: reduce) {
  .card-grid--divided .card:hover { transform: none; box-shadow: none; }
}

/* Editorial styling for divided cards: spaced-out number, uppercase title. */
.card-grid--divided .card__num {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--gold-500);
  margin-bottom: var(--sp-5);
}
.card-grid--divided .card h3 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--sp-3);
}
.card-grid--divided .card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Section title + action row */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.section-head h2 { margin: 0; }

/* Spacing utilities */
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }

/* Supply list */
.supply-list {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) {
  .supply-list { grid-template-columns: repeat(2, 1fr); }
}
.supply-list li {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy-900);
}
@media (min-width: 700px) {
  .supply-list li { padding: var(--sp-4) 0; }
  .supply-list li:nth-child(odd) { padding-right: var(--sp-5); }
  .supply-list li:nth-child(even) { padding-left: var(--sp-5); border-left: 1px solid var(--line); }
  /* If the final item sits alone in the last row, extend the divider on its right side too. */
  .supply-list li:last-child:nth-child(odd) { border-right: 1px solid var(--line); }
}
.supply-icon {
  width: 26px;
  height: 26px;
  color: var(--gold-600);
  flex-shrink: 0;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.supply-list li:hover .supply-icon {
  color: var(--gold-500);
  transform: scale(1.06);
}

/* Service section */
.service {
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; padding-top: 0; }
.service__inner {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 800px) {
  .service__inner { grid-template-columns: 1fr 2fr; gap: var(--sp-6); }
}
.service h2 { color: var(--navy-900); margin: 0; }
.service__label {
  font-family: var(--font-sans);
  color: var(--gold-600);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
  display: block;
}
.service p { font-size: 1.05rem; color: var(--ink-600); }
.service p:last-child { margin-bottom: 0; }

/* Gallery preview strip */
.gallery-strip {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-strip { grid-template-columns: repeat(4, 1fr); } }
.gallery-strip__item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-200);
}
.gallery-strip__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease);
}
.gallery-strip__item:hover img { transform: scale(1.04); }

/* Project grid (cards). Cards navigate to individual project pages. */
.project-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .project-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .project-grid { grid-template-columns: repeat(4, 1fr); } }

.project-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.project-card:hover, .project-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(11, 31, 58, 0.14);
  border-color: rgba(201, 162, 75, 0.6);
  color: inherit;
}
.project-card:hover .project-card__category,
.project-card:focus-visible .project-card__category {
  color: var(--gold-600);
}
.project-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-200);
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}
.project-card:hover .project-card__media img,
.project-card:focus-visible .project-card__media img {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .project-card:hover, .project-card:focus-visible { transform: none; }
  .project-card:hover .project-card__media img,
  .project-card:focus-visible .project-card__media img { transform: none; }
}
.project-card__body {
  padding: var(--sp-4);
  background: #fff;
}
.project-card__category {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.project-card__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin: 0;
  line-height: 1.3;
}

/* Project detail page. Centered layout that carries into the closing CTA below. */
.project-detail { text-align: center; }
.project-detail__title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--navy-900);
  margin: var(--sp-2) auto var(--sp-5);
  font-size: clamp(1.9rem, 4vw + 0.5rem, 2.8rem);
  max-width: 24ch;
}
.project-detail__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold-500);
  margin: var(--sp-3) auto 0;
}
.project-detail__media {
  margin: 0 auto var(--sp-6);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-200);
  max-width: 100%;
}
@media (min-width: 720px) {
  .project-detail__media { max-width: 560px; }
}
.project-detail__media img,
.project-detail__media picture {
  width: 100%;
  height: auto;
  display: block;
}
.project-detail__copy {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-600);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.project-detail__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin: 0 auto var(--sp-6);
  max-width: 100%;
}
@media (min-width: 720px) {
  .project-detail__gallery {
    max-width: 560px;
  }
}
.project-detail__gallery picture {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-200);
}
.project-detail__gallery img {
  display: block;
  width: 100%;
  height: auto;
}

/* Full gallery grid */
.gallery-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-200);
  border: 0;
  padding: 0;
  cursor: zoom-in;
}
.gallery-grid__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 600ms var(--ease);
  display: block;
}
.gallery-grid__item:hover img { transform: scale(1.04); }
.gallery-grid__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 31, 58, 0.35));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.gallery-grid__item:hover::after { opacity: 1; }

/* Thin, faded navy divider between sections, with a small gold diamond centered */
.section-strip {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(11, 31, 58, 0.18) 18%, rgba(11, 31, 58, 0.18) 82%, transparent 100%);
  width: 100%;
}
.section-strip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold-500);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Closing band */
.band-cta {
  background: var(--cream-50);
  color: var(--ink-900);
  padding: var(--sp-6) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 2px solid var(--gold-500);
}
.band-cta h2 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  margin-bottom: var(--sp-2);
}
.band-cta h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold-500);
  margin: var(--sp-3) auto 0;
}
.band-cta p { color: var(--ink-600); max-width: 48ch; margin: 0 auto var(--sp-4); }


/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: var(--sp-7); }
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: 0 4px 24px rgba(11, 31, 58, 0.05);
}
.contact-form h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.contact-form__lede { color: var(--ink-600); margin-bottom: var(--sp-4); font-size: 0.9rem; }

.form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--sp-2); }
.form-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.form-field label .req { color: var(--gold-600); }
.form-field input,
.form-field textarea {
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink-900);
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}
.form-field textarea { min-height: 90px; resize: vertical; }
.form-field[data-invalid="true"] input,
.form-field[data-invalid="true"] textarea {
  border-color: #b3261e;
  background: #fff5f4;
}
.form-error {
  font-size: 0.85rem;
  color: #b3261e;
  min-height: 1em;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-status {
  padding: var(--sp-4);
  border-radius: var(--radius);
  margin-top: var(--sp-4);
  font-size: 0.95rem;
  display: none;
}
.form-status--success {
  background: #eaf7ee;
  border: 1px solid #a8d8b1;
  color: #1c5a2d;
}
.form-status--error {
  background: #fdecea;
  border: 1px solid #f2b6b1;
  color: #8a201a;
}
.form-status[data-visible="true"] { display: block; }

.contact-aside {
  padding: var(--sp-4) 0 0;
}
.contact-aside h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--navy-900);
  margin-bottom: var(--sp-2);
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.contact-details li { display: flex; flex-direction: column; gap: 2px; }
.contact-details__label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
}
.contact-details__value,
.contact-details__value:link,
.contact-details__value:visited {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif !important;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-900);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.contact-details__value:hover { color: var(--gold-600); }
.contact-note {
  color: var(--ink-600);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  max-width: 42ch;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.94);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}
.lightbox[data-open="true"] { display: flex; }
.lightbox__figure {
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.lightbox__caption {
  color: var(--cream-100);
  font-size: 0.95rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(11, 31, 58, 0.6);
  border: 1px solid var(--line-dark);
  color: var(--cream-50);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: background var(--dur) var(--ease);
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--gold-600); color: var(--navy-900); }
.lightbox__close { top: var(--sp-4); right: var(--sp-4); }
.lightbox__prev { left: var(--sp-4); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--sp-4); top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  color: var(--cream-100);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  padding: var(--sp-8) 0;
  text-align: center;
}
.notfound__code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--gold-600);
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.notfound h1 { color: var(--navy-900); }
.notfound .btn { margin-top: var(--sp-4); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.stack-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.on-navy { background: var(--navy-900); color: var(--cream-50); }
.on-navy h2, .on-navy h3 { color: var(--cream-50); }
.hide-visually {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* ---------- Scroll reveal ---------- */
/* Only hide/animate when JS is present. Without JS content stays visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .gallery-strip__item:hover img,
  .gallery-grid__item:hover img { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .mobile-nav, .hero__scrim,
  .band-cta .btn, .lightbox, .primary-nav__cta { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after, a[href^="mailto:"]::after, a[href^="tel:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #444;
  }
  .hero, .page-hero, .band-cta { color: #000; background: #fff; padding: 1rem 0; }
  .hero h1, .page-hero h1, .band-cta h2 { color: #000; }
  .container { max-width: 100%; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
