/* =====================================================================
   AeroBarrier of Arizona — design system
   Brand: cyan-blue from the logo (#0E9DC9) on a deep teal ink.
   Mobile-first, no build step. Edit tokens below to re-skin the site.
   ===================================================================== */

:root {
  /* Brand palette */
  --brand:        #0e9dc9;   /* logo "BARRIER" cyan-blue */
  --brand-dark:   #0b7ea3;
  --brand-darker: #086781;
  --ink:          #0d2733;   /* deep teal-navy: headings, footer */
  --ink-soft:     #33474f;
  --muted:        #5f727b;   /* secondary text */
  --bg:           #ffffff;
  --bg-soft:      #f2f6f8;   /* alternating section bg */
  --bg-ink:       #0d2733;   /* dark sections */
  --line:         #e2e9ed;
  --white:        #ffffff;
  --amber:        #f5a623;   /* accent for stats/highlights */

  /* Typography */
  --font-head: "Barlow", system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --wrap: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(13, 39, 51, 0.10);
  --shadow-lg: 0 18px 50px rgba(13, 39, 51, 0.16);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.85rem; color: var(--brand-dark);
  margin-bottom: 0.6rem; display: block;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--bg-ink); color: #cfe0e7; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .eyebrow { color: #7fd3ec; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.grid { display: grid; gap: var(--gap); }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(14,157,201,.35); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #eaf7fb; color: var(--brand-dark); }
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar { background: var(--ink); color: #cfe0e7; font-size: .88rem; }
.topbar .wrap { display: flex; gap: 1.4rem; justify-content: flex-end; align-items: center; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #cfe0e7; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: none; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.nav__logo img { max-height: 52px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.35rem; list-style: none; padding: 0; }
.nav__links a {
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
  font-size: 1rem; padding: .4rem 0; position: relative;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--brand-dark); text-decoration: none; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--brand);
}
.nav__cta { margin-left: .4rem; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  width: 44px; height: 44px;
}
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .25s; margin: 5px auto; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; top: 0; height: 100dvh; width: min(320px, 82vw);
    background: #fff; flex-direction: column; align-items: flex-start; gap: .4rem;
    padding: 6rem 1.6rem 2rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .28s ease; overflow-y: auto;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.15rem; padding: .6rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links .nav__cta { margin: 1rem 0 0; }
  .nav__links .btn { width: 100%; justify-content: center; }
  body.nav-open { overflow: hidden; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(13,39,51,.45); opacity: 0; visibility: hidden; transition: .28s; z-index: 40; }
  .nav-scrim.show { opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(9,33,44,.92) 0%, rgba(9,33,44,.72) 45%, rgba(14,157,201,.45) 100%); }
.hero .wrap { padding-block: clamp(4rem, 12vw, 8rem); max-width: 820px; }
.hero h1 { color: #fff; }
.hero p { color: #dbe9ef; font-size: 1.25rem; max-width: 620px; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Cards / features ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .5rem; }
.card__icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-darker)); margin-bottom: 1.1rem;
}
.card__icon img { width: 34px; height: 34px; filter: brightness(0) invert(1); }
.card__num { font-family: var(--font-head); font-weight: 800; color: var(--brand); font-size: 1.4rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px), 1fr)); }
.step { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; position: relative; }
.step__n { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--brand); line-height: 1; }
.step h4 { margin: .4rem 0 .4rem; text-transform: uppercase; letter-spacing: .03em; }

/* Stat blocks */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--gap); text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--brand); line-height: 1; }
.stat__label { font-size: .95rem; color: var(--muted); margin-top: .3rem; }
.section--ink .stat__label { color: #9fb6bf; }

/* Property types */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1rem; }
.type { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 1.4rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.type img { width: 54px; height: 54px; object-fit: contain; }
.type span { font-family: var(--font-head); font-weight: 700; color: var(--ink); text-transform: uppercase; font-size: .9rem; letter-spacing: .03em; }

/* Testimonials */
.quote { background:#fff; border:1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.quote p { font-size: 1.08rem; font-style: italic; color: var(--ink-soft); }
.quote__who { display: flex; align-items: center; gap: .9rem; margin-top: 1rem; }
.quote__who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote__name { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.quote__role { font-size: .88rem; color: var(--muted); }

/* Credential strip (ELITE Partner) */
.cred-strip { background: linear-gradient(180deg, #fff, var(--bg-soft)); border-bottom: 1px solid var(--line); }
.cred-strip__inner { display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 2.6rem); padding-block: 1.8rem; }
.cred-badge { width: clamp(120px, 20vw, 160px); height: auto; flex: none; }
.cred-strip h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin-bottom: .35rem; }
.cred-strip p { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px){ .cred-strip__inner { flex-direction: column; text-align: center; } }

/* Logos strip (certs) */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); }
.logos img { height: 66px; width: auto; opacity: .9; filter: grayscale(1); transition: .2s; }
.logos img:hover { opacity: 1; filter: none; }

/* Media split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,260px),1fr)); gap: 1rem; }
.gallery figure { margin: 0; background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { padding: .8rem 1rem; font-size: .9rem; color: var(--muted); }

.gallery--certs { grid-template-columns: repeat(4, 1fr); }
.gallery--certs img { aspect-ratio: 3/4; object-fit: contain; background: #fff; }
@media (max-width: 940px) { .gallery--certs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery--certs { grid-template-columns: repeat(2, 1fr); } }

/* FAQ accordion */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--ink);
  padding: 1.15rem 2.5rem 1.15rem 0; position: relative; }
.faq__q::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--brand); transition: transform .2s; }
.faq__q[aria-expanded="true"]::after { content: "\2013"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a > div { padding: 0 0 1.2rem; color: var(--ink-soft); }

/* Resource list (technical) */
.reslist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.reslist a { display: flex; align-items: center; gap: .9rem; background:#fff; border:1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.reslist a:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; transform: translateX(3px); transition: .15s; }
.reslist a::before { content: "PDF"; font-family: var(--font-head); font-size: .72rem; font-weight: 800; color:#fff;
  background: var(--brand); padding: .35rem .5rem; border-radius: 5px; letter-spacing: .04em; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-darker), var(--brand)); color:#fff; text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color: #e3f4fa; font-size: 1.15rem; }
.cta-band .btn--light { margin-top: 1.4rem; }

/* Contact form */
.form { display: grid; gap: 1rem; }
.form label { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .95rem; display: block; margin-bottom: .35rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.form textarea { min-height: 150px; resize: vertical; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 800px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info li { list-style: none; display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; font-size: 1.1rem; }
.contact-info { padding: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb6bf; padding-block: 3rem 1.5rem; }
.site-footer a { color: #cfe0e7; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color:#fff; margin-bottom: .9rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-logo { height: 46px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.2rem; padding-top: 1.2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 700px){ .footer-grid { grid-template-columns: 1fr; } }

/* Inner page hero (no full-bleed photo) */
.page-hero { background: linear-gradient(135deg, var(--ink) 0%, #0f3d52 100%); color: #fff; padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.page-hero h1 { color: #fff; margin-bottom: .6rem; }
.page-hero p { color: #cfe0e7; max-width: 680px; font-size: 1.2rem; margin: 0; }
.page-hero .badge { margin-bottom: .8rem; display: inline-block; }

/* Case-study in-page nav */
.case-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 40px); z-index: 30; }
.case-nav ul { display: flex; gap: 0; list-style: none; padding: 0; overflow-x: auto; }
.case-nav a { display: block; padding: 1rem 1.4rem; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .95rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.case-nav a:hover { color: var(--brand-dark); text-decoration: none; border-color: var(--brand); }
.case-study-section { scroll-margin-top: calc(var(--header-h) + 40px + 52px); }

/* Before / after */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.before-after figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.before-after img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.before-after figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(13,39,51,.75); color: #fff; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; padding: .6rem 1rem; text-align: center; }
@media (max-width: 640px) { .before-after { grid-template-columns: 1fr; } }

/* Utility */
.badge { display:inline-block; background: rgba(14,157,201,.12); color: var(--brand-dark);
  font-family: var(--font-head); font-weight:700; font-size:.8rem; padding:.3rem .7rem; border-radius: 50px; text-transform: uppercase; letter-spacing:.05em; }
.visually-hidden { position:absolute!important; width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0); }
