/* ============================================================
   ZOFFER SITE — layout, chrome, components
   Built on styles/tokens.css. All values reference tokens —
   no hardcoded colors/spacing outside this file's own resets.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: var(--space-9);
  scroll-margin-top: 90px; /* keeps anchor-linked sections clear of the sticky nav */
}

.hero {
  scroll-margin-top: 90px;
}

@media (max-width: 640px) {
  .section { padding-block: var(--space-7); }
  .wrap { padding-inline: var(--space-4); }
}

/* ── Section heading pattern ── */
.sec-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}
.sec-head .eyebrow { display: block; margin-bottom: var(--space-3); }
.sec-head .h2 { margin: 0 0 var(--space-3); }
.sec-head .h2 em {
  font-style: italic;
  color: var(--zoffer-orange);
}
.sec-head .lede { margin: 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--bw-hairline) solid var(--border-subtle);
}

.nav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}
.nav-brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links a {
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--fg-2);
  transition: color var(--dur-base) var(--ease-out);
}
.nav-links a:hover { color: var(--zoffer-navy); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--zoffer-navy);
  margin: 4px 0;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-page);
    padding: var(--space-5);
    border-bottom: var(--bw-hairline) solid var(--border-subtle);
    gap: var(--space-4);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 600;
  border: var(--bw-medium) solid transparent;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 15px; }

.btn-primary {
  background: var(--zoffer-orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-hover); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-default);
  color: var(--zoffer-navy);
}
.btn-ghost:hover { border-color: var(--zoffer-navy); background: var(--navy-04); }

.btn-ghost-on-dark {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-ghost-on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-white {
  background: #fff;
  color: var(--zoffer-navy);
}
.btn-white:hover { background: var(--gray-100); }

.btn .arr { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--zoffer-navy);
  color: var(--fg-on-navy-muted);
  padding-block: var(--space-8);
}
.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-7);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-4);
}
/* Navy Z is invisible on the navy footer — sit the full-colour mark on a white chip */
.footer-brand img {
  height: 30px;
  width: auto;              /* intrinsic width/height attrs would stretch it otherwise */
  background: #fff;
  padding: 6px 8px;
  border-radius: var(--radius-md);
}
.zoffer .footer-tagline { font-size: var(--fs-body-sm); max-width: 240px; color: var(--fg-on-navy-muted); }

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--fg-on-navy-muted);
  background: rgba(255, 255, 255, 0.08);
  border: var(--bw-hairline) solid rgba(255, 255, 255, 0.14);
  transition: color var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.footer-social a:hover {
  color: #fff;
  background: var(--zoffer-orange);
  border-color: var(--zoffer-orange);
}

.zoffer .footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-overline);
  color: var(--fg-on-navy-faint);
  margin: 0 0 var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--fs-body-sm); transition: color var(--dur-base) var(--ease-out); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: var(--space-7) auto 0;
  padding: var(--space-5) var(--space-5) 0;
  border-top: var(--bw-hairline) solid rgba(255,255,255,0.12);
  font-size: var(--fs-caption);
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}


/* ============================================================
   A11Y UTILITIES
   ============================================================ */

/* Skip link — first focusable element, visible only on focus */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 200;
  transform: translateY(-200%);
  background: var(--zoffer-navy);
  color: #fff;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* Branded keyboard focus ring (uses the token already in tokens.css) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--radius-sm);
}

.footer-inner-single { grid-template-columns: 1fr; }

/* ============================================================
   MOTION — honour prefers-reduced-motion globally
   ============================================================ */
@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;
    scroll-behavior: auto !important;
  }
}
