/* ===========================================================
   Atec Air & Heating, Inc — Brand Sky Blue + Warm Amber
   Modern minimalist, mobile-first
   Blue family (--teal-*) is derived from the real atecair.com
   brand accent #2ea3f2 (see NOTES.md "Branding update").
   =========================================================== */

:root {
  --teal-900: #0b2333;
  --teal-800: #0d354f;
  --teal-700: #0f4d76;
  --teal-600: #1171b0;
  --teal-500: #2ea3f2;
  --amber-500: #e8a13a;
  --amber-600: #d38a1f;
  --amber-100: #fdf1de;
  --cream: #f7f5f0;
  --white: #ffffff;
  --ink: #12262a;
  --ink-soft: #4a5f63;
  --line: #e2e6e4;

  --font-head: "Fraktion Sans", "Century Gothic", "Segoe UI", Avenir, Arial, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 35, 51, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 35, 51, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal-900);
}

p { margin: 0 0 1em; }
a { color: var(--teal-600); text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 0.6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-amber {
  background: var(--amber-500);
  color: var(--teal-900);
}
.btn-amber:hover { background: var(--amber-600); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--teal-600);
  color: var(--teal-700);
}
.btn-outline-dark:hover { background: var(--teal-700); color: var(--white); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--teal-900);
  color: #cfe4e6;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #eef7f6; font-weight: 600; }
.topbar .topbar-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-900);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.1;
}
.logo {
  height: 40px;
  width: auto;
  max-height: 40px;
  display: block;
  flex: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--teal-600), var(--teal-900));
  color: var(--amber-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  flex: none;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal-900);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { position: absolute; transform: translateY(-7px); }
.nav-toggle::after { position: absolute; transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.main-nav.is-open { display: block; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
}
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--teal-800);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.main-nav li:last-child a { border-bottom: none; }
.main-nav a.is-active { color: var(--amber-600); }
.nav-cta {
  margin-top: 10px;
}
.nav-cta .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 15% 0%, var(--teal-700) 0%, var(--teal-900) 60%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(232,161,58,0.16), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(232,161,58,0.10), transparent 40%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero-grid {
  display: grid;
  gap: 34px;
}
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-rating .stars { color: var(--amber-500); letter-spacing: 1px; }
.hero h1 {
  color: var(--white);
  font-size: 2.15rem;
  margin-bottom: 0.4em;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber-500);
}
.hero-lede {
  color: #d3e6e7;
  font-size: 1.05rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.hero-fact {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.hero-fact strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--amber-500);
}
.hero-fact span {
  font-size: 0.82rem;
  color: #cfe4e6;
}
.hero-art {
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.16);
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-art .sun {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--amber-500), var(--amber-600) 70%);
  box-shadow: 0 0 60px rgba(232,161,58,0.45);
}
.hero-art .ring {
  position: absolute;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 50%;
}
.hero-art .ring-1 { width: 200px; height: 200px; }
.hero-art .ring-2 { width: 280px; height: 280px; }

/* ---------- Sections generic ---------- */
section { padding: 56px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-teal {
  background: linear-gradient(180deg, var(--teal-800), var(--teal-900));
  color: var(--white);
}
.section-teal h2 { color: var(--white); }
.section-head {
  max-width: 62ch;
  margin-bottom: 34px;
}
.section-head p { color: var(--ink-soft); }
.section-teal .section-head p { color: #cfe4e6; }
.section-head h2 { font-size: 1.7rem; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.trust-strip .container {
  padding-top: 22px;
  padding-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--teal-800);
}
.trust-item span { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Cards / services grid ---------- */
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--amber-100);
  color: var(--amber-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.4em; }
.card p { color: var(--ink-soft); margin-bottom: 0.6em; font-size: 0.96rem; }
.card a.card-link {
  font-weight: 700;
  color: var(--teal-600);
  font-size: 0.92rem;
}

/* ---------- About / split ---------- */
.split {
  display: grid;
  gap: 30px;
  align-items: center;
}
.about-photo {
  border-radius: 14px;
  background: linear-gradient(150deg, var(--teal-700), var(--teal-900));
  min-height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(232,161,58,0.10) 0 14px, transparent 14px 28px);
}
.about-photo-tag {
  position: relative;
  background: rgba(7,39,43,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  color: #eef7f6;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
}
.about-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.about-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.about-list li::before {
  content: "\2713";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber-100);
  color: var(--amber-600);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

/* ---------- Testimonial carousel (React island) ---------- */
.testimonial-shell {
  max-width: 720px;
  margin: 0 auto;
}
.tc-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 34px 26px;
  text-align: center;
}
.tc-quote p {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 0.8em;
  font-family: var(--font-head);
  font-weight: 600;
}
.tc-quote footer {
  color: var(--amber-500);
  font-size: 0.88rem;
  font-weight: 700;
}
.tc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}
.tc-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-btn:hover { background: var(--amber-500); color: var(--teal-900); border-color: var(--amber-500); }
.tc-dots { display: flex; gap: 8px; }
.tc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
}
.tc-dot-active { background: var(--amber-500); }
.noscript-note {
  text-align: center;
  color: #cfe4e6;
  font-size: 0.85rem;
  margin-top: 14px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--amber-500), var(--amber-600));
  color: var(--teal-900);
  border-radius: 18px;
  padding: 34px 26px;
  text-align: center;
}
.cta-banner h2 { color: var(--teal-900); margin-bottom: 0.3em; }
.cta-banner p { color: var(--teal-800); margin-bottom: 1.1em; }
.cta-banner .btn-outline-dark { border-color: var(--teal-900); color: var(--teal-900); }
.cta-banner .btn-outline-dark:hover { background: var(--teal-900); color: var(--white); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Map / contact ---------- */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--teal-800);
  color: var(--amber-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1.1rem;
}
.contact-row a, .contact-row p { margin: 0; font-weight: 600; color: var(--ink); }
.contact-row span.label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 2px;
}

.form {
  display: grid;
  gap: 14px;
}
.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-800);
  margin-bottom: 6px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--teal-500);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Financing / brands strip ---------- */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.brand-pill {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--teal-800);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: #b9d3d5;
  padding: 44px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}
.footer-brand {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #b9d3d5; }
.site-footer a:hover { color: var(--amber-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--teal-800), var(--teal-900));
  color: var(--white);
  padding: 40px 0;
}
.page-hero h1 { color: var(--white); font-size: 1.8rem; margin-bottom: 0.3em; }
.breadcrumb { font-size: 0.85rem; color: #cfe4e6; }
.breadcrumb a { color: #eef7f6; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 32px; }
.stack { display: grid; gap: 10px; }

/* =====================================================
   Tablet (min-width 768px)
   ===================================================== */
@media (min-width: 768px) {
  .logo { height: 46px; max-height: 46px; }
  section { padding: 76px 0; }
  .hero .container { padding-top: 76px; padding-bottom: 76px; }
  .hero h1 { font-size: 2.75rem; }
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
  .trust-strip .container { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .section-head h2 { font-size: 2rem; }
  .page-hero h1 { font-size: 2.3rem; }
  .cta-banner { padding: 48px 40px; }
}

/* =====================================================
   Desktop (min-width 1024px)
   ===================================================== */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav {
    display: block;
    position: static;
    border-bottom: none;
    box-shadow: none;
    background: transparent;
  }
  .main-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 6px;
  }
  .main-nav a {
    border-bottom: none;
    padding: 0 14px;
    min-height: 44px;
  }
  .main-nav a.is-active { position: relative; }
  .nav-cta { margin-top: 0; margin-left: 8px; }
  .nav-cta .btn { width: auto; }

  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split.split-reverse { direction: rtl; }
  .split.split-reverse > * { direction: ltr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .hero h1 { font-size: 3.1rem; }
}
