/* layout.css: header, nav, dropdown, footer, sections, page heroes */

tf-cta { display: block; scroll-margin-top: 88px; }
tf-cta .section { padding-top: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; --accent: var(--white);
  background: rgba(12, 24, 56, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--white);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { border-radius: 10px; }
.site-header .logo img { background: var(--white); padding: 4px; }
.logo-text { font: 700 21px/1 var(--font-display); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 999px;
  font-weight: 500; font-size: 15px; text-decoration: none; color: rgba(255,255,255,.82);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 330px;
  background: var(--white); color: var(--text);
  border-radius: var(--radius-md); padding: 8px;
  box-shadow: 0 24px 60px -16px rgba(12,24,56,.35), 0 0 0 1px rgba(12,24,56,.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-sm); text-decoration: none; }
.dropdown-item:hover { background: var(--paper); }
.dropdown-item strong { display: block; font-size: 15px; }
.dropdown-item small { color: var(--muted); font-size: 13.5px; }
.dropdown-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; flex: none; }

/* Product pages (body theme class from site-src/pages.json): page color, colored header border, accent CTA button */
.theme-waflow main { --c: var(--wa); }
.theme-reviewsflow main { --c: var(--rv); }
.theme-inventoryflow main { --c: var(--inv); }
.theme-waflow .site-header { --accent: var(--wa); }
.theme-reviewsflow .site-header { --accent: var(--rv); }
.theme-inventoryflow .site-header { --accent: var(--inv); }
[class*="theme-"] .site-header { border-bottom: 3px solid var(--accent); }
[class*="theme-"] .nav-cta .btn { background: var(--accent); color: var(--white); }
[class*="theme-"] .nav-cta .btn:hover { background: var(--accent); filter: brightness(.92); }

/* Current page */
.nav-link[aria-current] { color: var(--white); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.dropdown-item[aria-current] { background: var(--paper); }
.dropdown-item[aria-current] strong { color: var(--brand); }

/* Sections */
.section { padding: 120px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 700; letter-spacing: -0.03em; }
.section-head p { margin-top: 18px; font-size: 18.5px; color: var(--muted); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.site-footer { padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.3fr 0.8fr; gap: 40px; }
.footer-contact address { font-style: normal; line-height: 1.5; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 30ch; }
.footer-col h4 { font: 600 15px/1 var(--font-body); letter-spacing: 0; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a, .footer-bottom a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--brand); }
.footer-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }

.page-hero { background: var(--ink); color: var(--white); padding: 72px 0 64px; }
.page-hero .crumbs { font-size: 14.5px; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.page-hero .crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.page-hero .crumbs a:hover { color: var(--white); }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 700; letter-spacing: -0.035em; }
.page-hero .meta { margin-top: 18px; color: rgba(255,255,255,.65); font-size: 15.5px; }

/* Product page hero */
.p-hero { background: var(--ink); color: var(--white); padding: 56px 0 0; position: relative; overflow: hidden; }
.p-hero .crumbs { font-size: 14.5px; color: rgba(255,255,255,.6); margin-bottom: 28px; }
.p-hero .crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.p-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-bottom: 72px; }
.p-hero-grid > * { min-width: 0; }
.prod-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 14.5px; color: rgba(255,255,255,.85); margin-bottom: 24px; }
.prod-chip .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.prod-chip .ic img { width: 18px; height: 18px; }
.prod-chip b { color: var(--white); font-weight: 600; }
.p-hero h1 { font-size: clamp(38px, 5vw, 66px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.p-hero .lead { margin-top: 22px; font-size: 18.5px; color: rgba(255,255,255,.74); max-width: 34em; }
.p-hero .hero-note { margin-top: 18px; font-size: 14.5px; color: rgba(255,255,255,.55); }
.p-hero .hero-stats { margin-top: 0; }

@media (max-width: 1080px) {
  .p-hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ink); padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-link { padding: 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .dropdown { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; margin: 4px 0 8px; }
  .has-dropdown.is-expanded .dropdown { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .p-hero { padding-top: 40px; }
  .p-hero-grid { padding-bottom: 56px; }
}
