/* ========================================
   Tupper Security Services — Homepage Concept
   Premium charcoal + gold/amber identity.
   Deviates from studio baseline (documented in STYLE_GUIDE.md).
   ======================================== */

:root {
  --ink: #0A0A0A;
  --charcoal: #111418;
  --graphite: #1A1E24;
  --graphite-hi: #22272F;
  --border-dark: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(239, 190, 45, 0.34);

  /* Sampled from Tupper logo shield — saturated warm yellow.
     Premium feel preserved via restraint: used sparingly, paired with
     deep charcoal surfaces and bone off-white type. */
  --gold: #EFBE2D;
  --gold-bright: #FFD24D;
  --gold-deep: #8C6514;

  --bone: #F4EFE6;
  --bone-muted: rgba(244, 239, 230, 0.64);
  --bone-faint: rgba(244, 239, 230, 0.38);

  --max-width: 1200px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  --radius: 4px;
  --radius-lg: 10px;
  --radius-full: 100px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration: 0.4s;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========================================
   Reset + base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bone);
  font-variation-settings: "opsz" 144;
}

h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 400; }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: clamp(22px, 2vw, 28px); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--bone-muted);
  line-height: 1.55;
  max-width: 640px;
}

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--space-3xl) 0;
  position: relative;
}
@media (max-width: 768px) {
  section { padding: var(--space-2xl) 0; }
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-xl);
}
.section-head .eyebrow { margin-bottom: var(--space-md); }
.section-head p { margin-top: var(--space-md); }

.divider-gold {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: var(--space-md) 0;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(239, 190, 45, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(244, 239, 230, 0.24);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-arrow::after {
  content: '\2192';
  transition: transform var(--duration) var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ========================================
   Nav
   ======================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--duration) var(--ease),
              backdrop-filter var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-dark);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bone);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 6px;
  text-decoration: none;
}
.nav-logo-word { display: inline-block; }
.nav-logo-dot { color: var(--gold); }
.nav-logo span { color: var(--gold); }
.nav-logo-mark {
  height: 22px;
  width: auto;
  display: block;
  margin-left: 0;
}
.footer-brand .nav-logo-mark { height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--bone-muted);
  transition: color var(--duration) var(--ease);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--bone); }
.nav-links .nav-cta {
  padding: 10px 22px;
  font-size: 14px;
  color: var(--ink);
}
.nav-links .nav-cta:hover { color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--bone);
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav-mobile {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-mobile a {
    display: block;
    padding: 18px 24px;
    font-size: 15px;
    color: var(--bone);
    border-bottom: 1px solid var(--border-dark);
  }
  .nav-mobile .btn-primary {
    margin: 20px 24px;
    justify-content: center;
    color: var(--ink);
  }
}
@media (min-width: 901px) {
  .nav-mobile { display: none; }
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 104px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Image is cropped on the right in source so the subject naturally
     sits slightly right-of-centre when rendered `center/cover`. */
  background: var(--ink) url('../assets/images/hero-guard.png') center / cover no-repeat;
  animation: heroZoom 14s var(--ease) forwards;
}

.hero::before {
  /* Tonal duotone — vignette top + bottom, light left-side weight so the
     centred text reads cleanly over the lit area behind the subject. */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.5) 45%, rgba(10,10,10,0.35) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.05) 40%, rgba(10,10,10,0.9) 100%);
}

@media (max-width: 768px) {
  .hero-image {
    background-size: auto 100%;
    background-position: center center;
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.35) 35%, rgba(10,10,10,0.9) 100%);
  }
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

.hero-content {
  max-width: 780px;
  position: relative;
}
.hero-content .eyebrow { margin-bottom: var(--space-lg); }
.hero-content h1 { margin-bottom: var(--space-lg); }
.hero-content h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero-content .lead { margin-bottom: var(--space-xl); color: rgba(244, 239, 230, 0.82); }

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-meta {
  position: absolute;
  bottom: 48px;
  left: 24px;
  right: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--bone-muted);
  text-transform: uppercase;
  font-weight: 500;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 768px) {
  .hero {
    padding: 84px 0 80px;
    min-height: 92vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .hero-content { width: 100%; }
  .hero-meta {
    position: static;
    margin: var(--space-xl) 24px 0;
    padding: 0;
    gap: 14px;
    flex-direction: column;
    width: calc(100% - 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image { animation: none; transform: none; }
}

/* ========================================
   Services
   ======================================== */
.services { background: var(--charcoal); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--graphite);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.service-card:hover { background: var(--graphite-hi); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  stroke-width: 1.4;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.service-card p {
  color: var(--bone-muted);
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}
.service-card .learn {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--duration) var(--ease);
}
.service-card .learn:hover { gap: 14px; }

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 28px; }
}

/* ========================================
   Service Areas
   ======================================== */
.areas { background: var(--ink); }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: var(--space-xl);
}

.area-card {
  background: var(--graphite);
  border: 1px solid var(--border-dark);
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  position: relative;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.area-card:hover {
  background: var(--graphite-hi);
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.area-card-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: linear-gradient(135deg, var(--graphite-hi), var(--graphite));
}
.area-card-cta .btn {
  margin-top: 24px;
  align-self: flex-start;
}

.service-card.cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--graphite-hi), var(--graphite));
  text-align: center;
}
.service-card.cta-card .cta-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.service-card.cta-card h3 {
  font-size: 22px;
  max-width: 22ch;
}
.service-card.cta-card .btn {
  margin-top: 8px;
}
.area-card .area-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.area-card h3 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 3vw, 36px);
}
.area-card p {
  color: var(--bone-muted);
  font-size: 15px;
  line-height: 1.6;
}

.areas-footnote {
  color: var(--bone-faint);
  font-size: 14px;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-dark);
}

@media (max-width: 860px) {
  .areas-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ========================================
   Proof
   ======================================== */
.proof { background: var(--charcoal); }

/* Reviews carousel */
.reviews-carousel {
  position: relative;
  margin-bottom: var(--space-2xl);
}
.reviews-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.reviews-track {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.testimonial {
  flex: 0 0 100%;
  min-width: 0;
  padding: 40px 48px 40px 56px;
  border-left: 2px solid var(--gold);
  background: var(--graphite);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 28px;
  font-family: var(--font-display);
  font-size: 84px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.6;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--bone);
  font-weight: 400;
  margin-bottom: 18px;
  max-width: 60ch;
}
.testimonial cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}
.reviews-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.reviews-arrow svg { width: 18px; height: 18px; }
.reviews-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.reviews-dots {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-dark);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.reviews-dot:hover { background: var(--bone-faint); }
.reviews-dot.is-active {
  background: var(--gold);
  width: 24px;
  border-radius: 100px;
}

.reviews-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}
.reviews-link a {
  color: var(--bone-muted);
  border-bottom: 1px solid transparent;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.reviews-link a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.proof-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.proof-bottom .stats { margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}
.stat {
  background: var(--charcoal);
  padding: 32px 24px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-muted);
}

.licence-badge {
  background: var(--graphite);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.licence-badge svg { color: var(--gold); flex-shrink: 0; }
.licence-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--bone);
  font-weight: 400;
  margin-bottom: 4px;
}
.licence-badge span {
  font-size: 13px;
  color: var(--bone-muted);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .proof-bottom { grid-template-columns: 1fr; gap: var(--space-lg); }
  .testimonial { padding: 32px 28px 32px 36px; }
  .testimonial::before { left: 18px; font-size: 64px; }
}

/* ========================================
   FAQ
   ======================================== */
.faq { background: var(--ink); }

.faq-list { max-width: 880px; }
.faq-item {
  border-bottom: 1px solid var(--border-dark);
  transition: border-color var(--duration) var(--ease);
}
.faq-item.open { border-bottom-color: var(--border-gold); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--bone);
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color var(--duration) var(--ease);
}
.faq-question:hover { color: var(--gold); }
.faq-item.open .faq-question { color: var(--gold); }

.faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--gold);
  display: grid;
  place-items: center;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease);
  font-size: 18px;
  line-height: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--ink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-answer-inner {
  padding: 0 0 28px;
  max-width: 720px;
  color: var(--bone-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ========================================
   Contact
   ======================================== */
.contact { background: var(--charcoal); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info { position: sticky; top: 120px; }
.contact-info .eyebrow { margin-bottom: var(--space-md); }
.contact-info h2 { margin-bottom: var(--space-lg); }
.contact-info .lead { margin-bottom: var(--space-xl); }

.nap-list { list-style: none; padding: 0; }
.nap-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border-dark);
  align-items: flex-start;
}
.nap-list li:last-child { border-bottom: 1px solid var(--border-dark); }
.nap-list .nap-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 90px;
  padding-top: 3px;
  flex-shrink: 0;
}
.nap-list .nap-value { color: var(--bone); font-size: 16px; line-height: 1.5; }
.nap-list a:hover { color: var(--gold); }

.contact-form {
  background: var(--graphite);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--ink);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(239, 190, 45, 0.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--space-xl); }
  .contact-info { position: static; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--ink);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
  border-top: 1px solid transparent;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--bone-muted);
  font-size: 14px;
  transition: color var(--duration) var(--ease);
}
.footer-col a:hover { color: var(--gold); }

.footer-brand .nav-logo { display: block; margin-bottom: 14px; }
.footer-brand p {
  color: var(--bone-muted);
  font-size: 14px;
  max-width: 280px;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--bone-faint);
  letter-spacing: 0.05em;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl) 32px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Scroll reveal
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.revealed { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.revealed > * { opacity: 1; transform: none; }
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.28s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.36s; }

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

/* ========================================
   Content pages — page hero, breadcrumbs, prose
   ======================================== */
.page-hero {
  padding: 160px 0 var(--space-2xl);
  border-bottom: 1px solid var(--border-dark);
  background: linear-gradient(180deg, var(--charcoal), var(--ink));
}
.page-hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  margin-top: var(--space-md);
}
.page-hero .lead { margin-top: var(--space-lg); }

.breadcrumbs {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumbs a { color: var(--bone-muted); transition: color var(--duration) var(--ease); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span[aria-current="page"] { color: var(--gold); }
.breadcrumbs li { list-style: none; display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: "/"; color: var(--bone-faint); }

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--bone-muted);
}
.prose h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--bone);
  margin: var(--space-xl) 0 var(--space-md);
}
.prose h3 {
  font-size: 22px;
  color: var(--bone);
  margin: var(--space-lg) 0 var(--space-sm);
}
.prose p { margin-bottom: var(--space-md); }
.prose ul, .prose ol { margin: 0 0 var(--space-md) 22px; }
.prose li { margin-bottom: 8px; }
.prose a {
  color: var(--gold);
  border-bottom: 1px solid var(--border-gold);
  transition: border-color var(--duration) var(--ease);
}
.prose a:hover { border-bottom-color: var(--gold); }
.prose strong { color: var(--bone); font-weight: 600; }
.prose .answer-lead {
  font-size: 19px;
  color: var(--bone);
  border-left: 2px solid var(--gold);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Two-column content layout (about, contact) */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
@media (max-width: 880px) {
  .content-split { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* Form status messages */
.form-status {
  margin-top: var(--space-md);
  font-size: 14px;
  color: var(--bone-muted);
  min-height: 1.4em;
}
.form-status[data-state="success"] { color: var(--gold); }
.form-status[data-state="error"] { color: #ff8a7a; }

/* NAP card on contact page */
.nap-card {
  background: var(--graphite);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.nap-card h3 { margin-bottom: var(--space-md); }

/* Map embed wrapper */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  margin-top: var(--space-lg);
  aspect-ratio: 16 / 10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.5) contrast(1.05); }
