/* American Air & Vent Services — shared styles for the landing and legal pages */

:root {
  /* Brand */
  --navy: #0f2557;
  --navy-deep: #0a1a3f;
  --red: #e3141b;
  --red-deep: #c00f15;
  --gold: #ffd84d;

  /* Neutrals */
  --ink: #1a2238;
  --muted: #5a6478;
  --on-navy: #c7d3ea;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --focus: #dcecfb;

  /* Scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(15, 37, 87, .08);
  --shadow-lg: 0 20px 50px rgba(15, 37, 87, .2);
  --font-display: Archivo, Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --max: 1140px;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Anchor jumps (#book, #faq…) stop below the sticky header instead of under it */
[id] { scroll-margin-top: var(--header-h, 80px); }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 var(--s3); font-family: var(--font-display); line-height: 1.1; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 900; text-transform: uppercase; }
h3 { font-size: 1.125rem; font-weight: 800; }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }
.accent { color: var(--red); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s4); }
.section { padding: var(--s8) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto var(--s7); text-align: center; }
.lead { font-size: 1.125rem; color: var(--muted); }
.lead a { color: var(--navy); }
.section--navy .lead { color: var(--on-navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); padding: var(--s4) var(--s6); border: 2px solid transparent; border-radius: var(--r-pill); font-family: var(--font-display); font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(227, 20, 27, .28); }
.btn--red:hover { background: var(--red-deep); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--white { background: #fff; color: var(--navy); }
.btn--sm { padding: var(--s3) var(--s5); font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Top bar + header */
.topbar { padding: var(--s2) var(--s4); background: var(--navy); color: #fff; font-size: .875rem; font-weight: 500; text-align: center; }
.topbar strong { color: var(--gold); }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s2); padding-bottom: var(--s2); }
.site-header .logo img { width: auto; height: 60px; }
.site-nav { display: flex; align-items: center; gap: var(--s5); font-size: .9375rem; font-weight: 600; }
.site-nav a:not(.btn) { color: var(--navy); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--red); }

/* Hero */
.hero { padding: var(--s7) 0 var(--s8); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s7); align-items: center; }
.hero h1 .tag { display: inline-block; margin-top: var(--s1); padding: 0 .3em; border-radius: var(--r-sm); background: var(--red); color: #fff; }
.price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin: var(--s5) 0; }
.price__amount { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 5rem); font-weight: 900; line-height: 1; color: var(--navy); }
.price__note { font-family: var(--font-display); font-weight: 800; line-height: 1.3; text-transform: uppercase; color: var(--navy); }
.price__note span { display: block; color: var(--red); }
.hero-img { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

/* Check list */
.checks { display: grid; gap: var(--s2); margin: 0 0 var(--s6); padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: var(--s3); font-weight: 600; }
.checks--plain li { font-weight: 500; color: var(--muted); }
.check { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-size: .75rem; font-weight: 900; }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); }
.tile { padding: var(--s5) var(--s4); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-md); background: rgba(255, 255, 255, .06); text-align: center; }
.tile__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto var(--s3); border-radius: 50%; background: var(--red); }
.tile__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin-bottom: var(--s1); font-size: 1rem; text-transform: uppercase; }
.tile p { font-size: .9375rem; color: var(--on-navy); }

/* Benefits */
.benefits { max-width: 680px; margin: 0 auto; text-align: center; }
.benefits .checks { display: inline-grid; text-align: left; }

/* Cards / steps */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.card { padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); }
.card__num { margin-bottom: var(--s2); font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; line-height: 1; color: var(--red); }
.card p { color: var(--muted); }
.callout { margin-top: var(--s6); padding: var(--s5) var(--s6); border-left: 6px solid var(--red); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); font-size: 1.0625rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }

/* Booking */
.book { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; }
.book .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; }
.book h2 { color: #fff; }
.book .lead, .book .small { color: var(--on-navy); }
.big-price { margin: var(--s4) 0; font-family: var(--font-display); font-size: 4.5rem; font-weight: 900; line-height: 1; }
.big-price small { display: block; margin-top: var(--s2); font-size: 1rem; font-weight: 700; text-transform: uppercase; color: var(--on-navy); }
.book .btn-row { margin-top: var(--s5); }

/* Form */
.form { position: relative; padding: var(--s6); border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.form h3 { font-size: 1.375rem; }
.field { margin-bottom: var(--s4); }
.field label { display: block; margin-bottom: var(--s1); font-size: .875rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: var(--s3); border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--focus); }
.field input.invalid { border-color: var(--red); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.consents { display: grid; gap: var(--s3); margin: var(--s5) 0; padding-top: var(--s5); border-top: 1px solid var(--line); }
.consent { display: flex; align-items: flex-start; gap: var(--s2); font-size: .8125rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; }
.consent a { color: var(--navy); }
.form .btn { width: 100%; }
.form-error { display: none; margin: var(--s3) 0 0; font-size: .875rem; color: var(--red); }
.fine { margin: var(--s3) 0 0; font-size: .8125rem; text-align: center; color: var(--muted); }
.fine a { color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { display: none; padding: var(--s6) var(--s3); text-align: center; }
.thanks .check { width: 64px; height: 64px; margin: 0 auto var(--s4); font-size: 1.75rem; }
.thanks p { color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { padding: var(--s5) var(--s1); border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s4); font-family: var(--font-display); font-size: 1.0625rem; font-weight: 800; color: var(--navy); list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.375rem; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: var(--s3); color: var(--muted); }

/* Legal pages */
.legal { padding: var(--s7) 0 var(--s8); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal .meta { margin-bottom: var(--s6); color: var(--muted); }
.legal h2 { margin-top: var(--s6); font-size: 1.25rem; text-transform: none; }
.legal p, .legal li { color: var(--ink); }
.legal ul { margin: 0 0 var(--s4); padding-left: var(--s5); }
.legal a { color: var(--navy); }

/* Footer */
.site-footer { padding: var(--s7) 0 96px; background: var(--navy-deep); color: var(--on-navy); font-size: .875rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.site-footer strong { color: #fff; }
.site-footer h4 { margin: 0 0 var(--s2); font-family: var(--font-display); font-size: .875rem; text-transform: uppercase; color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s1); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal-line { grid-column: 1 / -1; padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; }

/* Mobile sticky call/book bar */
.mobile-cta { display: none; position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; gap: var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.mobile-cta .btn { flex: 1; padding: var(--s3) var(--s4); }

@media (max-width: 900px) {
  .section { padding: 56px 0; }
  .hero .wrap, .book .wrap { grid-template-columns: 1fr; gap: var(--s6); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile:last-child { grid-column: span 2; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: var(--s4); font-size: .875rem; }
  .site-nav .nav-section { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .site-header .logo img { height: 48px; }
  .site-nav .btn { display: none; }
  .mobile-cta { display: flex; }
  .row-2 { grid-template-columns: 1fr; }
  .hero .btn-row .btn { width: 100%; }
  .form { padding: var(--s5); }
  .big-price { font-size: 3.75rem; }
}
