/* ============================================================
   Pazzi — Bold Creative system adapted for food-tech spectacle
   Palette: warm cream canvas / near-black drama / Pazzi red accent
   Type: Space Grotesk (display) + DM Sans (body)
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Canvas & surfaces */
  --canvas:              #F5ECD7;
  --surface-dark:        #1A1512;
  --surface-dark-lifted: #231E19;

  /* Text */
  --text-primary:        #1E1A16;
  --text-muted:          #7A7164;
  --text-on-dark:        #F5ECD7;
  --text-on-dark-muted:  #B8AD9E;

  /* Accent */
  --accent:              #E8191A;
  --accent-hover:        #C71414;
  --accent-glow:         rgba(232, 25, 26, 0.18);

  /* Badge / secondary accent */
  --badge-green:         #2D8B3E;
  --badge-green-muted:   rgba(45, 139, 62, 0.12);

  /* Borders */
  --border-light:        rgba(30, 26, 22, 0.08);
  --border-dark:         rgba(245, 236, 215, 0.1);

  /* Overlay */
  --overlay-hero:        linear-gradient(
                            to top,
                            rgba(26, 21, 18, 0.92) 0%,
                            rgba(26, 21, 18, 0.55) 40%,
                            rgba(26, 21, 18, 0.15) 100%
                          );

  /* Typography */
  --font-display:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;
  --text-6xl:  5rem;
  --text-stat: clamp(4.5rem, 10vw, 7.5rem);

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;
  --sp-section: clamp(5rem, 8vw, 9rem);

  /* Misc */
  --radius-sm:  2px;
  --radius-pill: 999px;
  --nav-h: 72px;
  --timing-snap:   0.18s;
  --timing-reveal:  0.7s;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-smooth: cubic-bezier(0.25, 0, 0, 1);
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}


/* --- Container --- */
.container       { max-width: 1220px; margin: 0 auto; padding: 0 var(--sp-6); }
.container-narrow { max-width: 780px;  margin: 0 auto; padding: 0 var(--sp-6); }
.container-wide  { max-width: 1400px; margin: 0 auto; padding: 0 var(--sp-6); }


/* --- Section rhythm --- */
.section-light {
  background: var(--canvas);
  color: var(--text-primary);
  padding: var(--sp-section) 0;
}
.section-dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: var(--sp-section) 0;
}
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-on-dark);
}
.section-dark p {
  color: var(--text-on-dark-muted);
}


/* --- Navigation (data-nav-role contract) --- */
[data-nav-role="header"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-6);
  background: transparent;
  transition: background var(--timing-snap) ease,
              border-color var(--timing-snap) ease,
              backdrop-filter var(--timing-snap) ease;
  border-bottom: 1px solid transparent;
}

[data-nav-role="header"].is-scrolled {
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border-light);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  transition: color var(--timing-snap) ease;
  z-index: 210;
}

[data-nav-role="header"].is-scrolled .nav-logo {
  color: var(--text-primary);
}

[data-nav-role="desktop-nav"] {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

[data-nav-role="desktop-nav"] a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  transition: color var(--timing-snap) ease;
  position: relative;
}

[data-nav-role="header"].is-scrolled [data-nav-role="desktop-nav"] a {
  color: var(--text-primary);
}

[data-nav-role="desktop-nav"] a:hover {
  color: var(--accent);
}

[data-nav-role="desktop-nav"] a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease-out-expo);
}

[data-nav-role="desktop-nav"] a:hover::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 24px;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: background var(--timing-snap) ease, transform var(--timing-snap) ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

/* Mobile toggle */
[data-nav-role="mobile-toggle"] {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
  position: relative;
}

[data-nav-role="mobile-toggle"] span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  transition: transform 0.3s var(--ease-out-expo),
              opacity 0.2s ease,
              background var(--timing-snap) ease;
  position: absolute;
}

[data-nav-role="header"].is-scrolled [data-nav-role="mobile-toggle"] span {
  background: var(--text-primary);
}

[data-nav-role="mobile-toggle"] span:nth-child(1) { transform: translateY(-7px); }
[data-nav-role="mobile-toggle"] span:nth-child(2) { transform: translateY(0); }
[data-nav-role="mobile-toggle"] span:nth-child(3) { transform: translateY(7px); }

[data-nav-role="mobile-toggle"][aria-expanded="true"] span {
  background: var(--text-on-dark) !important;
}
[data-nav-role="mobile-toggle"][aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}
[data-nav-role="mobile-toggle"][aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
[data-nav-role="mobile-toggle"][aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile drawer */
[data-nav-role="mobile-drawer"] {
  display: none;
}

[data-nav-role="mobile-drawer"][aria-expanded="true"] {
  display: flex;
}

@media (max-width: 1023px) {
  [data-nav-role="desktop-nav"] { display: none; }
  [data-nav-role="mobile-toggle"] { display: inline-flex; }

  [data-nav-role="mobile-drawer"] {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 205;
    background: var(--surface-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8);
  }

  [data-nav-role="mobile-drawer"][aria-expanded="true"] {
    display: flex;
  }

  [data-nav-role="mobile-drawer"] a {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-on-dark);
    letter-spacing: -0.02em;
    transition: color var(--timing-snap) ease;
  }

  [data-nav-role="mobile-drawer"] a:hover {
    color: var(--accent);
  }

  /* Keep logo white when drawer open */
  [data-nav-role="header"]:has([data-nav-role="mobile-drawer"][aria-expanded="true"]) .nav-logo,
  [data-nav-role="header"].drawer-open .nav-logo {
    color: var(--text-on-dark);
  }
}

@media (min-width: 1024px) {
  [data-nav-role="mobile-drawer"] {
    display: none !important;
  }
}


/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--surface-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--sp-6) var(--sp-16);
  max-width: 800px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--sp-6);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-6);
}

.hero-headline .accent-word {
  color: var(--accent);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-on-dark-muted);
  max-width: 520px;
  margin-bottom: var(--sp-8);
}

/* Page hero (menu, about — shorter) */
.hero-page {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--surface-dark);
}

.hero-page .hero-content {
  padding-bottom: var(--sp-12);
}

.hero-page .hero-headline {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
}


/* --- Stat strip --- */
.stat-strip {
  background: var(--surface-dark);
  padding: var(--sp-16) 0;
  border-bottom: 1px solid var(--border-dark);
}

.stat-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  text-align: center;
}

.stat-item {}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-stat);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-2);
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

@media (max-width: 767px) {
  .stat-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-10);
  }
}

@media (max-width: 479px) {
  .stat-strip-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
}


/* --- Split section (two-up) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.split-content {
  max-width: 520px;
}

.split-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--sp-6);
}

.split-content p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.split-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .split-image { aspect-ratio: 16 / 9; }
  .split--reverse .split-image { order: -1; }
}


/* --- Eyebrow / kicker --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  display: block;
}

.section-dark .eyebrow {
  color: var(--accent);
}


/* --- Section headings --- */
.section-heading {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: var(--sp-4);
}

.section-heading .accent-word {
  color: var(--accent);
}

.section-subtext {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: var(--sp-12);
}

.section-dark .section-subtext {
  color: var(--text-on-dark-muted);
}


/* --- Menu highlights (horizontal scroll on mobile) --- */
.menu-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-6);
}

.menu-card {
  background: var(--surface-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-expo);
}

.menu-card:hover {
  transform: translateY(-4px);
}

.menu-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.menu-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.06);
}

.menu-card-body {
  padding: var(--sp-4) var(--sp-4) var(--sp-6);
}

.menu-card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-1);
}

.menu-card-price {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 639px) {
  .menu-highlights-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--sp-4);
    margin: 0 calc(-1 * var(--sp-6));
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
  }
  .menu-highlights-scroll .menu-highlights-grid {
    display: flex;
    gap: var(--sp-4);
  }
  .menu-highlights-scroll .menu-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }
}


/* --- Press / credibility band --- */
.press-band {
  text-align: center;
}

.press-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--sp-8);
}

.press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-6) var(--sp-10);
}

.press-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-on-dark);
  opacity: 0.65;
  transition: opacity var(--timing-snap) ease;
  white-space: nowrap;
}

.press-name:hover {
  opacity: 1;
}


/* --- How it works (timeline) --- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  counter-reset: step;
}

.timeline-step {
  counter-increment: step;
  position: relative;
}

.timeline-step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.timeline-step h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.timeline-step p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Connecting line between steps */
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: calc(-1 * var(--sp-4));
  width: calc(var(--sp-8) - var(--sp-4));
  height: 2px;
  background: var(--border-light);
}

@media (max-width: 767px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
  .timeline-step:not(:last-child)::after {
    display: none;
  }
}

/* Dark section variant */
.section-dark .timeline-step p {
  color: var(--text-on-dark-muted);
}
.section-dark .timeline-step:not(:last-child)::after {
  background: var(--border-dark);
}


/* --- Location section --- */
.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.location-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.location-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-details h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-6);
}

.location-meta {
  font-size: var(--text-base);
  line-height: 2;
  color: var(--text-muted);
}

.location-meta a {
  color: var(--badge-green);
  font-weight: 500;
  transition: color var(--timing-snap) ease;
}

.location-meta a:hover {
  color: var(--accent);
}

@media (max-width: 767px) {
  .location-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
}


/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.badge-green {
  background: var(--badge-green-muted);
  color: var(--badge-green);
}

.badge-accent {
  background: var(--accent-glow);
  color: var(--accent);
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--timing-snap) ease,
              color var(--timing-snap) ease,
              transform var(--timing-snap) ease;
  min-height: 48px;
  min-width: 160px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  padding: 12px 30px;
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--canvas);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border: 2px solid var(--text-on-dark);
  padding: 12px 30px;
  position: relative;
  overflow: hidden;
}

.btn-outline-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--text-on-dark);
  transition: width 0.3s var(--ease-out-smooth);
  z-index: 0;
}

.btn-outline-light:hover {
  color: var(--surface-dark);
}

.btn-outline-light:hover::before {
  width: 100%;
}

.btn-outline-light span {
  position: relative;
  z-index: 1;
}


/* --- Full menu page — editorial list --- */
.menu-list {
  max-width: 860px;
  margin: 0 auto;
}

.menu-category {
  margin-bottom: var(--sp-12);
}

.menu-category-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--accent);
  margin-bottom: var(--sp-6);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border-light);
}

.menu-item-info { flex: 1; padding-right: var(--sp-4); }

.menu-item-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.menu-item-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 480px;
}

.menu-item-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Dessert / beverage compact cards */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-6);
}

.extra-card {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  background: var(--surface-dark-lifted);
  border-radius: var(--radius-sm);
}

.section-light .extra-card {
  background: rgba(30, 26, 22, 0.04);
}

.extra-card-image {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.extra-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.extra-card-info h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.extra-card-info p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}


/* --- About page — origin story --- */
.origin-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-4);
}

.credibility-card {
  background: var(--surface-dark-lifted);
  padding: var(--sp-10) var(--sp-8);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
}

.credibility-card h3 {
  font-size: var(--text-2xl);
  color: var(--text-on-dark);
  margin-bottom: var(--sp-4);
}

.credibility-card p {
  color: var(--text-on-dark-muted);
  line-height: 1.7;
}

.credibility-card .badge {
  margin-bottom: var(--sp-4);
}


/* --- CTA band --- */
.cta-band {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
}

.cta-band h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: var(--sp-4);
}

.cta-band p {
  font-size: var(--text-base);
  margin-bottom: var(--sp-8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark .cta-band p {
  color: var(--text-on-dark-muted);
}


/* --- Footer --- */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark-muted);
  padding: var(--sp-12) 0 var(--sp-8);
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-8);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: var(--sp-4);
  color: var(--text-on-dark);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-on-dark-muted);
}

.footer-links {
  display: flex;
  gap: var(--sp-8);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-on-dark-muted);
  transition: color var(--timing-snap) ease;
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-dark);
  font-size: var(--text-xs);
  color: var(--text-on-dark-muted);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-social a {
  color: var(--badge-green);
  font-weight: 500;
  transition: color var(--timing-snap) ease;
}

.footer-social a:hover {
  color: var(--accent);
}

@media (max-width: 639px) {
  .footer-grid {
    flex-direction: column;
    gap: var(--sp-6);
  }
}


/* --- Scroll reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out-smooth),
              transform 0.65s var(--ease-out-smooth);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out-smooth),
              transform 0.55s var(--ease-out-smooth);
}

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.40s; }


/* --- Hero stagger entrance --- */
.hero-content [data-hero-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}

.hero-content [data-hero-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- Image fade on load --- */
img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.is-loaded {
  opacity: 1;
}

/* Prevent hero image from being invisible if JS is slow */
.hero-bg img {
  opacity: 1;
  transition: none;
}


/* --- Accent rule --- */
.accent-rule {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: var(--sp-6);
}


/* --- Utility --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Max prose width */
.prose { max-width: 64ch; }
.prose p + p { margin-top: var(--sp-4); }

/* Body spacer for fixed nav */
body { padding-top: var(--nav-h); }


/* --- Responsive typography boosts --- */
@media (min-width: 1024px) {
  :root {
    --text-base: 1.0625rem;
    --sp-section: 9rem;
  }
}

@media (max-width: 639px) {
  :root {
    --nav-h: 64px;
    --sp-section: 4rem;
  }
  .hero { min-height: 90vh; min-height: 90dvh; }
  .hero-content { padding-bottom: var(--sp-10); }
  .hero-page { min-height: 40vh; }
}


/* --- Print --- */
@media print {
  [data-nav-role="header"],
  [data-nav-role="mobile-drawer"],
  .btn { display: none !important; }
  body { padding-top: 0; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}


/* ── CSS safety-net (injected by proxy-orchestrator) ──
   Ensures image containers always have resolvable dimensions so imgs with
   height:100% don't collapse. Scoped to common container class patterns.

   :where() gives zero specificity so any explicit rule the Styles agent wrote
   (e.g. .hero-image-wrap { aspect-ratio: 4/5 }) wins. Without this, the broad
   [class*="image-wrap"] selector at equal specificity but later source order
   was overriding intended hero portrait ratios to landscape. */
:where(
  [class*="image-col"],
  [class*="image-wrap"],
  [class*="img-wrap"],
  [class*="img-container"],
  [class*="image-container"],
  [class*="photo-wrap"],
  [class*="photo-container"],
  .bento-card,
  .listing-img-wrap,
  .card-image,
  .feature-image,
  .hero-image,
  .hero-media
) {
  min-height: 320px;
  aspect-ratio: 3 / 2;
  position: relative;
}

/* Nav role contract (Phase 6a+, 2026-04-20). Elements declare semantic role
   via data-nav-role; safety-net targets roles, not structural attributes.
   Roles: header | desktop-nav | mobile-toggle | mobile-drawer.
   Styles Agent stays free to invent any HTML + layout; must annotate roles.
   This replaces the earlier [data-mobile-nav]{display:none} rule, which
   collided when Styles used one container for both desktop + mobile nav. */
[data-nav-role="mobile-drawer"] { display: none; }
[data-nav-role="mobile-toggle"] { display: none; }
@media (max-width: 1023px) {
  [data-nav-role="desktop-nav"] { display: none; }
  [data-nav-role="mobile-toggle"] { display: inline-flex; }
  [data-nav-role="mobile-drawer"][aria-expanded="true"] { display: flex; }
}
[class*="image-col"] > img,
[class*="image-wrap"] > img,
[class*="img-wrap"] > img,
[class*="img-container"] > img,
[class*="image-container"] > img,
[class*="photo-wrap"] > img,
[class*="photo-container"] > img,
.bento-card > img,
.bento-card-image > img,
.listing-img-wrap > img,
.card-image > img,
.feature-image > img,
.hero-image > img,
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .hero-image-col,
  .hero-media,
  .hero-image {
    aspect-ratio: auto;
    min-height: 100vh;
  }
}
/* Fallback for any bare img with percentage height */
img[style*="height: 100%"],
img[style*="height:100%"] {
  min-height: 320px;
}
/* ── end safety-net ── */
