/* ==========================================================================
   MAC Engineering — shared stylesheet
   Cooling • HVAC • Industrial Air Dryer services, Mumbai
   --------------------------------------------------------------------------
   DEVELOPER NOTES
   - Brand fonts: Archivo (display) + Manrope (body), loaded via Google Fonts.
   - Navbar logo: assets/logo.png | Footer logo: assets/logo-footer.png
   - Image URLs are real stock photos; .media img has a JS fallback in main.js.
   ========================================================================== */

/* ---------- Design tokens -------------------------------------------------- */
:root {
  /* Cool brand base */
  --navy-900: #07233a;
  --navy-800: #0a2e49;
  --blue-700: #0e527f;
  --blue-600: #136aa3;
  --blue-500: #1a83c4;
  --teal-500: #109aa6;
  --teal-400: #1cb8c4;

  /* Warm CTA accent */
  --accent: #f97316;
  --accent-600: #ea580c;
  --accent-100: #ffedd5;

  /* Neutrals (cool-tinted) */
  --ink: #0f2438;        /* headings */
  --body: #3a4a5c;       /* body text */
  --muted: #6b7c8d;      /* secondary text */
  --line: #e3ecf3;       /* borders */
  --bg: #ffffff;
  --bg-soft: #f4f8fb;    /* section tint */
  --bg-soft-2: #eef4f9;

  /* Effects */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 36, 56, .06), 0 2px 6px rgba(15, 36, 56, .05);
  --shadow-md: 0 8px 24px rgba(15, 36, 56, .08), 0 2px 6px rgba(15, 36, 56, .05);
  --shadow-lg: 0 24px 60px rgba(10, 46, 73, .16);
  --ring: 0 0 0 4px rgba(26, 131, 196, .18);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  --ff-display: "Archivo", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;
}

/* ---------- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---------- Layout helpers ------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #cfe0ec; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display);
  font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section--navy .eyebrow { color: var(--teal-400); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 1.08rem; color: var(--muted); }
.section--navy .section-head p { color: #a9c2d4; }

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--ff-display); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  background: var(--btn-bg); color: #fff;
  box-shadow: 0 6px 18px rgba(249, 115, 22, .28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(234, 88, 12, .32); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring), 0 6px 18px rgba(249,115,22,.28); }

.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--blue-500); color: var(--blue-700); box-shadow: none; }

.btn--navy { background: var(--navy-800); box-shadow: 0 6px 18px rgba(10, 46, 73, .25); }
.btn--navy:hover { background: var(--navy-900); box-shadow: 0 12px 26px rgba(10,46,73,.3); }

.btn--outline-light {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none;
}
.btn--outline-light:hover { background: rgba(255,255,255,.16); border-color: #fff; transform: translateY(-2px); }

.btn--sm { padding: 11px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

.btn .ico { width: 18px; height: 18px; }

/* ---------- Header / nav --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.nav { display: flex; align-items: center; gap: 24px; height: 100px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  height: 56px; width: auto; max-width: 220px; flex: none;
  object-fit: contain; display: block;
}
.site-header .brand__mark { height: 80px; max-width: 340px; }
.site-footer .brand__mark { height: 80px; max-width: 320px; }
.brand__name { font-family: var(--ff-display); font-weight: 700; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.brand__name small { display: block; font-family: var(--ff-body); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  font-family: var(--ff-display); font-weight: 600; font-size: .96rem; color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.nav__menu a:hover { background: var(--bg-soft); color: var(--blue-700); }
.nav__menu a.is-active { color: var(--blue-700); background: var(--bg-soft-2); }

.nav__cta { display: inline-flex; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__menu, .nav__cta { 
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
  }
  .nav__cta { top: 100%; padding-top: 0; box-shadow: none; border-bottom: none; }
  .nav.is-open .nav__menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav.is-open .nav__cta { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav.is-open .nav__menu { padding-bottom: 78px; } /* room for stacked CTA */
  .nav.is-open .nav__cta { padding-bottom: 18px; }
  .nav__menu a { padding: 12px 14px; font-size: 1.05rem; }
  .nav__menu a.is-active { background: var(--bg-soft-2); }
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- Hero ----------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: #e7f0f7; isolation: isolate; }
.hero__bg { position: absolute; inset: -10% 0 0 0; height: 120%; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

/* --- Animated engineered hero backdrop --- */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 110% at 78% 18%, #000 35%, transparent 78%);
          mask-image: radial-gradient(125% 110% at 78% 18%, #000 35%, transparent 78%);
}
.hero__orb { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55; }
.hero__orb--1 { width: 420px; height: 420px; right: -70px; top: -60px; background: radial-gradient(circle, rgba(28,184,196,.62), transparent 70%); animation: hero-float 15s ease-in-out infinite; }
.hero__orb--2 { width: 320px; height: 320px; right: 24%; bottom: -90px; background: radial-gradient(circle, rgba(19,106,163,.6), transparent 70%); animation: hero-float 19s ease-in-out infinite reverse; }
.hero__fan { position: absolute; right: 4%; top: 50%; width: min(48vw, 600px); transform: translateY(-50%); opacity: .14; color: #bfe6ef; }
.hero__fan .ring { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .5; }
.hero__fan .blades { transform-box: fill-box; transform-origin: center; animation: viz-spin 9s linear infinite; fill: currentColor; }
.hero__fan .hub { fill: currentColor; }
.hero__streams { position: absolute; inset: 0; overflow: hidden; }
.hero__streams i { position: absolute; right: -45%; height: 2px; width: 40%; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(130,215,235,.55), transparent); animation: hero-stream 6.5s linear infinite; }
.hero__streams i:nth-child(1) { top: 26%; animation-delay: 0s; }
.hero__streams i:nth-child(2) { top: 42%; width: 28%; animation-delay: 1.7s; }
.hero__streams i:nth-child(3) { top: 60%; width: 34%; animation-delay: 3.1s; }
.hero__streams i:nth-child(4) { top: 74%; width: 22%; animation-delay: 4.4s; }
.hero__particles b { position: absolute; top: -22px; color: rgba(185,228,242,.5); font-size: 15px; animation: hero-snow 13s linear infinite; }
.hero__particles b:nth-child(1){ left: 58%; animation-delay: 0s; }
.hero__particles b:nth-child(2){ left: 70%; animation-delay: 2.4s; font-size: 11px; }
.hero__particles b:nth-child(3){ left: 82%; animation-delay: 4.6s; }
.hero__particles b:nth-child(4){ left: 64%; animation-delay: 6.5s; font-size: 12px; }
.hero__particles b:nth-child(5){ left: 90%; animation-delay: 8.2s; }
.hero__particles b:nth-child(6){ left: 76%; animation-delay: 10s; font-size: 10px; }

.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(108deg, rgba(7,35,58,.96) 0%, rgba(7,35,58,.8) 40%, rgba(10,46,73,.42) 100%),
    radial-gradient(120% 120% at 90% 0%, rgba(28,184,196,.2), transparent 55%);
}
.hero__inner { padding-block: clamp(72px, 12vw, 150px); max-width: 780px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(150,220,235,.24); backdrop-filter: blur(7px);
  font-family: var(--ff-display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #c5e4ee;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); animation: hero-pulse 2.4s infinite; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6.2vw, 4.2rem); line-height: 1.03; margin-top: 22px; }
.hero__hl { background: linear-gradient(100deg, #2cc8d4, #8fe0ee 55%, #d9f4f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 22px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #c5d8e6; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; color: #d4e6f1; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.hero__badge:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); border-color: rgba(28,184,196,.5); }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(28,184,196,.18); }

/* Staggered entrance */
.hero__inner > * { animation: hero-rise .85s cubic-bezier(.2,.7,.2,1) both; }
.hero__inner > .hero__eyebrow { animation-delay: .05s; }
.hero__inner > h1 { animation-delay: .15s; }
.hero__inner > .lead { animation-delay: .27s; }
.hero__inner > .hero__actions { animation-delay: .39s; }
.hero__inner > .hero__badges { animation-delay: .5s; }

@keyframes hero-float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 26px); } }
@keyframes hero-stream { 0% { transform: translateX(0); opacity: 0; } 14% { opacity: 1; } 100% { transform: translateX(-170%); opacity: 0; } }
@keyframes hero-snow { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: .65; } 100% { transform: translateY(640px) rotate(220deg); opacity: 0; } }
@keyframes hero-pulse { 0% { box-shadow: 0 0 0 0 rgba(28,184,196,.55); } 70% { box-shadow: 0 0 0 10px rgba(28,184,196,0); } 100% { box-shadow: 0 0 0 0 rgba(28,184,196,0); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__orb, .hero__fan .blades, .hero__streams i, .hero__particles b, .hero__eyebrow .dot, .hero__inner > * { animation: none !important; }
  .hero__inner > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Stat / trust pillars ------------------------------------------ */
.stats { 
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: -56px; position: relative; z-index: 5;
}
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-md); text-align: left;
}
.stat-card__num { font-family: var(--ff-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--blue-700); line-height: 1; letter-spacing: -.03em; }
.stat-card__num span { color: var(--accent); }
.stat-card__label { margin-top: 10px; font-weight: 600; color: var(--ink); font-size: .98rem; }
.stat-card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft-2); color: var(--teal-500); display: grid; place-items: center; margin-bottom: 16px; }
.stat-card__icon svg { width: 22px; height: 22px; }
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: -40px; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Generic cards & grids ----------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3e2ee; }

/* ---------- Pricing -------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.price-card { display: flex; flex-direction: column; padding: 30px; position: relative; overflow: hidden; }
.price-card.is-featured { border-color: var(--blue-500); box-shadow: 0 22px 50px rgba(19,106,163,.18); }
.price-card.is-featured::before {
  content: "Most Popular"; position: absolute; top: 18px; right: -34px; transform: rotate(45deg);
  background: var(--accent); color: #fff; font-family: var(--ff-display); font-weight: 700;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 40px;
}
.price-card__name { font-family: var(--ff-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.price-card__desc { margin-top: 8px; color: var(--muted); font-size: .96rem; min-height: 48px; }
.price-card__price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 4px; }
.price-card__price .amt { font-family: var(--ff-display); font-weight: 800; font-size: 2.6rem; color: var(--blue-700); letter-spacing: -.03em; }
.price-card__price .cur { font-family: var(--ff-display); font-weight: 700; font-size: 1.4rem; color: var(--blue-700); }
.price-card__price .per { color: var(--muted); font-size: .9rem; font-weight: 600; }
.price-card__list { margin: 18px 0 26px; display: grid; gap: 11px; }
.price-card__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--body); }
.price-card__list svg { width: 18px; height: 18px; color: var(--teal-500); flex: none; margin-top: 2px; }
.price-card__actions { margin-top: auto; display: grid; gap: 10px; }

/* ---------- Service / package list ---------------------------------------- */
.svc-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.svc-section--flip .svc-section__media { order: -1; }
@media (max-width: 940px) { .svc-section { grid-template-columns: 1fr; } .svc-section--flip .svc-section__media { order: 0; } }

.pkg-list { display: grid; gap: 12px; margin-top: 26px; }
.pkg { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.pkg:hover { border-color: #cfe0ee; box-shadow: var(--shadow-sm); transform: translateX(3px); }
.pkg__icon { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(140deg, var(--blue-600), var(--teal-500)); color: #fff; display: grid; place-items: center; flex: none; }
.pkg__icon svg { width: 20px; height: 20px; }
.pkg__body h4 { font-size: 1.02rem; }
.pkg__body p { font-size: .9rem; color: var(--muted); margin-top: 3px; }

.media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-soft-2); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media--tall img { aspect-ratio: 3 / 4; }

/* Image fallback (applied by main.js when an image fails to load) */
.media.is-fallback, .img-fallback {
  background: linear-gradient(140deg, var(--navy-800), var(--blue-700) 60%, var(--teal-500));
  display: grid; place-items: center; color: #cfe7ee; text-align: center; padding: 24px;
}
.img-fallback .img-fallback__label { font-family: "Courier New", monospace; font-size: .82rem; letter-spacing: .02em; line-height: 1.5; max-width: 320px; opacity: .92; }
.img-fallback .img-fallback__label::before { content: "▦ "; opacity: .6; }

/* ---------- Branded image placeholders (swap for real photos) -------------- */
/* Each panel shows the exact shot it needs. DEVELOPER/OWNER: replace a
   .ph-img block with <img src="your-photo.jpg" alt="…"> when a real photo
   is ready — the surrounding container already controls the aspect ratio. */
.ph-img {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 11px),
    linear-gradient(140deg, var(--navy-800), var(--blue-700) 60%, var(--teal-500));
  display: grid; place-items: center; text-align: center; padding: 24px;
}
.ph-img__label {
  font-family: "Courier New", monospace; font-size: .82rem; letter-spacing: .02em;
  line-height: 1.55; max-width: 340px; color: #d6eaf1;
}
.ph-img__label::before { content: "▦  PHOTO\A"; white-space: pre; font-weight: 700; opacity: .65; }
.media .ph-img { aspect-ratio: 4 / 3; height: auto; }
.media--tall .ph-img { aspect-ratio: 3 / 4; }

/* Hero: clean brand gradient stands in for the hero photo.
   DEVELOPER/OWNER: set background-image on .hero__bg to drop in a real hero shot. */
.hero__bg--ph {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px),
    radial-gradient(120% 120% at 75% 10%, var(--teal-500) 0%, transparent 45%),
    linear-gradient(150deg, var(--navy-900) 0%, var(--blue-700) 55%, var(--navy-800) 100%);
}

/* ---------- Commercial teaser --------------------------------------------- */
.feature-list { display: grid; gap: 16px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fi { width: 42px; height: 42px; border-radius: 11px; background: rgba(28,184,196,.14); color: var(--teal-400); display: grid; place-items: center; flex: none; }
.section--navy .feature-list h4 { color: #fff; font-size: 1.05rem; }
.section--navy .feature-list p { color: #a9c2d4; font-size: .95rem; margin-top: 2px; }

/* ---------- Testimonials --------------------------------------------------- */
.quote-card { padding: 30px; display: flex; flex-direction: column; }
.quote-card__stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 16px; }
.quote-card__stars svg { width: 18px; height: 18px; }
.quote-card blockquote { font-size: 1.06rem; color: var(--ink); line-height: 1.6; font-weight: 500; flex: 1; }
.quote-card__who { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-card__avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, var(--blue-600), var(--teal-500)); color: #fff; display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; flex: none; }
.quote-card__name { font-family: var(--ff-display); font-weight: 700; color: var(--ink); font-size: .98rem; }
.quote-card__role { font-size: .86rem; color: var(--muted); }

/* ---------- CTA band ------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-900), var(--blue-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(28,184,196,.35), transparent 70%); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cta-band p { color: #bcd6e4; margin-top: 10px; max-width: 520px; }

/* ---------- Page hero (interior pages) ------------------------------------ */
.page-hero { background: var(--navy-900); color: #cfe0ec; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(circle at center, rgba(28,184,196,.16), transparent 60%); }
.page-hero__inner { padding-block: clamp(48px, 8vw, 84px); max-width: 760px; position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 14px; }
.page-hero p { margin-top: 16px; font-size: 1.1rem; color: #b7cddc; }
.crumbs { font-size: .85rem; color: #7fa3bc; display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: #fff; }

/* ---------- Contact -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-soft-2); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--ff-body); }
.contact-item a, .contact-item p { font-family: var(--ff-display); font-weight: 600; color: var(--ink); font-size: 1.12rem; margin-top: 4px; line-height: 1.4; }
.contact-item a:hover { color: var(--blue-600); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(26px, 4vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--ff-display); font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fcfdfe; transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #dc2626; }
.field__error { display: none; color: #dc2626; font-size: .85rem; margin-top: 6px; font-weight: 600; }
.field.has-error .field__error { display: block; }

.form-success {
  display: none; text-align: center; padding: 24px;
  background: linear-gradient(140deg, rgba(16,154,166,.08), rgba(26,131,196,.08));
  border: 1px solid rgba(16,154,166,.3); border-radius: var(--radius); color: var(--ink);
}
.form-success.is-visible { display: block; animation: pop .4s ease; }
.form-success__check { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-500); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; }
.form-success h3 { font-size: 1.3rem; }
.form-success p { margin-top: 8px; color: var(--body); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Blog ----------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 940px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__tag { font-family: var(--ff-display); font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-500); }
.post-card__body h3 { font-size: 1.2rem; margin-top: 10px; }
.post-card__body p { margin-top: 10px; color: var(--muted); font-size: .95rem; flex: 1; }
.post-card__more { margin-top: 18px; font-family: var(--ff-display); font-weight: 700; color: var(--blue-700); display: inline-flex; align-items: center; gap: 7px; }
.post-card:hover .post-card__more { gap: 11px; }
.post-card__more svg { width: 16px; height: 16px; transition: transform .2s ease; }

/* ---------- Article -------------------------------------------------------- */
.article { max-width: 760px; margin-inline: auto; }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 40px; aspect-ratio: 16 / 8; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__body { font-size: 1.1rem; color: var(--body); }
.article__body > * + * { margin-top: 22px; }
.article__body h2 { font-size: 1.7rem; margin-top: 44px; }
.article__body h3 { font-size: 1.3rem; margin-top: 32px; }
.article__body ul, .article__body ol { padding-left: 4px; display: grid; gap: 12px; }
.article__body ul li { display: flex; gap: 12px; }
.article__body ul li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; margin-top: 9px; }
.article__body ol { counter-reset: step; }
.article__body ol li { display: flex; gap: 14px; counter-increment: step; }
.article__body ol li::before { content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft-2); color: var(--blue-700); font-family: var(--ff-display); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.article__body strong { color: var(--ink); }
.article__meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.article__meta .pill { background: var(--bg-soft-2); color: var(--blue-700); padding: 4px 12px; border-radius: 999px; font-weight: 600; font-family: var(--ff-display); font-size: .8rem; }
.draft-note { background: #fff7ed; border: 1px solid var(--accent-100); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9rem; color: #9a3412; margin-bottom: 32px; }

/* ---------- Footer --------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #9fbacf; padding-block: clamp(48px, 7vw, 72px) 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name small { color: #6f93ad; }
.footer-bio { margin-top: 18px; max-width: 340px; color: #93b1c8; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--ff-body); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a:hover { color: var(--teal-400); }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--teal-400); flex: none; margin-top: 3px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .86rem; color: #6f93ad;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-bottom .footer-credit { flex: none; white-space: nowrap; }
.footer-credit a { color: #cfe0ec; font-weight: 600; transition: color .18s ease; }
.footer-credit a:hover { color: var(--accent); }
.footer-credit__heart { color: #f43f5e; font-style: normal; }
@media (max-width: 900px) {
  .footer-bottom { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-bottom .footer-credit { white-space: normal; }
}

/* ---------- Sticky mobile call banner ------------------------------------- */
.mobile-call {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(15,36,56,.12);
}
.mobile-call .btn { width: 100%; padding: 15px; font-size: 1.05rem; }
@media (max-width: 880px) {
  .mobile-call { display: block; }
  body { padding-bottom: 78px; }
}

/* ---------- Scroll reveal -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Utilities ------------------------------------------------------ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.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; }
.lead-copy { font-size: 1.1rem; color: var(--body); }
.lead-copy + .lead-copy { margin-top: 16px; }

/* ==========================================================================
   Animated illustration cards (.viz) — relevant, lightweight, no photos
   Used in place of stock imagery across services, home teaser and blog.
   All motion respects prefers-reduced-motion (see bottom of this block).
   ========================================================================== */
.viz {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  display: grid; place-items: center; isolation: isolate;
  background:
    radial-gradient(120% 110% at 80% 0%, rgba(28,184,196,.28), transparent 52%),
    linear-gradient(150deg, var(--navy-900), var(--blue-700) 62%, var(--navy-800));
}
.viz::before { /* subtle engineered grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(120% 120% at 50% 40%, #000 40%, transparent 85%);
}
.media .viz { aspect-ratio: 4 / 3; height: auto; }
.media--tall .viz { aspect-ratio: 3 / 4; }
.viz__tag {
  position: absolute; left: 14px; bottom: 13px; z-index: 3;
  font-family: var(--ff-display); font-weight: 600; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: #cbe6ee;
  background: rgba(7,35,58,.55); padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(150,220,235,.18); backdrop-filter: blur(5px);
}

/* ---- Split AC airflow ---- */
.viz--ac .viz__ac {
  position: relative; width: 56%; max-width: 220px; height: 34px; border-radius: 9px;
  background: linear-gradient(#f3f9fc, #cfe0ec); box-shadow: 0 10px 24px rgba(0,0,0,.32);
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  margin-bottom: 6px;
}
.viz--ac .viz__ac::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 4px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, #9bb6c8 0 3px, transparent 3px 7px);
}
.viz__ac-led { width: 7px; height: 7px; border-radius: 50%; background: #22d3a7; box-shadow: 0 0 9px #22d3a7; animation: viz-blink 2.4s infinite; }
.viz__ac-temp { font-family: var(--ff-display); font-weight: 700; font-size: .82rem; color: var(--blue-700); }
.viz__air { position: absolute; top: 44%; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.viz__air i { width: 130px; border-top: 3px dashed rgba(155,222,236,.6); border-radius: 3px; animation: viz-air 2.2s linear infinite; }
.viz__air i:nth-child(2) { width: 95px; animation-delay: .45s; }
.viz__air i:nth-child(3) { width: 62px; animation-delay: .9s; }
.viz__flakes { position: absolute; inset: 0; pointer-events: none; }
.viz__flakes b { position: absolute; top: -14px; color: rgba(205,235,244,.9); font-size: 14px; animation: viz-fall 4.2s linear infinite; }
.viz__flakes b:nth-child(1){ left: 28%; animation-delay: 0s; }
.viz__flakes b:nth-child(2){ left: 50%; animation-delay: 1.2s; font-size: 11px; }
.viz__flakes b:nth-child(3){ left: 66%; animation-delay: 2.1s; }
.viz__flakes b:nth-child(4){ left: 41%; animation-delay: 3.1s; font-size: 10px; }

/* ---- VRF condenser fans ---- */
.viz--vrf .viz__rack { display: flex; gap: clamp(14px, 4%, 26px); }
.viz__cond {
  width: clamp(96px, 34%, 168px); aspect-ratio: 1; border-radius: 16px;
  background: linear-gradient(150deg, #1d465f, #0b283d);
  border: 1px solid rgba(150,220,235,.28);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.04), 0 12px 26px rgba(0,0,0,.38);
  display: grid; place-items: center; padding: 11px;
}
.viz__fan { width: 100%; height: 100%; }
.viz__fan .ring { fill: none; stroke: rgba(160,225,238,.45); stroke-width: 3; }
/* transform-box: fill-box makes transform-origin resolve to the fan's own box
   (fixes Firefox/Safari spinning the blades off-centre). */
.viz__fan .blades { transform-box: fill-box; transform-origin: center; animation: viz-spin 1.5s linear infinite; fill: rgba(190,232,243,.82); }
.viz__fan--slow .blades { animation-duration: 2.6s; fill: rgba(44,200,212,.82); }
.viz__fan .hub { fill: #cbe6ee; }

/* ---- Industrial air dryer gauge ---- */
.viz--dryer .viz__gauge { position: relative; width: 60%; max-width: 190px; display: grid; place-items: center; }
.viz--dryer .viz__gauge svg { width: 100%; }
.viz--dryer .arc { fill: none; stroke: rgba(150,220,235,.3); stroke-width: 6; stroke-linecap: round; }
.viz--dryer .needle { stroke: var(--accent); stroke-width: 3.4; stroke-linecap: round; transform-box: fill-box; transform-origin: bottom; animation: viz-sweep 3.4s ease-in-out infinite; }
.viz--dryer .hub { fill: #cbe6ee; }
.viz__gauge-val { position: absolute; bottom: 2px; font-family: var(--ff-display); font-weight: 700; font-size: .68rem; letter-spacing: .16em; color: #cbe6ee; }
.viz--dryer .viz__drops { position: absolute; bottom: 16%; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; }
.viz--dryer .viz__drops b { color: rgba(28,184,196,.8); font-size: 12px; animation: viz-fall 3.4s linear infinite; }
.viz--dryer .viz__drops b:nth-child(2){ animation-delay: 1.1s; }
.viz--dryer .viz__drops b:nth-child(3){ animation-delay: 2.2s; }

/* ---- AMC calendar ---- */
.viz--amc .viz__cal { width: clamp(108px, 42%, 132px); background: #eef6fa; border-radius: 11px; overflow: hidden; box-shadow: 0 14px 28px rgba(0,0,0,.32); }
.viz__cal-top { display: block; height: 22px; background: var(--blue-600); }
.viz__cal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 11px; }
.viz__cal-grid i { position: relative; aspect-ratio: 1; border-radius: 4px; background: #cfe0ec; }
.viz__cal-grid i.on { background: var(--teal-500); animation: viz-pop .55s ease-out both; }
.viz__cal-grid i.on::after { content: ""; position: absolute; left: 33%; top: 16%; width: 26%; height: 46%; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(45deg); }
.viz__shield { position: absolute; right: 13px; top: 16px; width: 46px; height: 46px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.viz__shield svg { width: 100%; height: 100%; fill: rgba(249,115,22,.16); stroke: var(--accent); stroke-width: 1.5; }
.viz__shield polyline { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; animation: viz-draw 3s ease-in-out infinite; }

/* ---- HVAC health monitor ---- */
.viz--hvac .viz__bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.viz--hvac .viz__bars i { width: 10px; border-radius: 5px; transform-origin: bottom; background: linear-gradient(var(--teal-400), var(--blue-600)); animation: viz-bar 1.8s ease-in-out infinite; }
.viz--hvac .viz__bars i:nth-child(1){ height: 42%; animation-delay: 0s; }
.viz--hvac .viz__bars i:nth-child(2){ height: 66%; animation-delay: .2s; }
.viz--hvac .viz__bars i:nth-child(3){ height: 50%; animation-delay: .4s; }
.viz--hvac .viz__bars i:nth-child(4){ height: 82%; animation-delay: .1s; }
.viz--hvac .viz__bars i:nth-child(5){ height: 58%; animation-delay: .5s; }
.viz--hvac .viz__bars i:nth-child(6){ height: 72%; animation-delay: .3s; }
.viz__line { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; }
.viz__line svg { width: 100%; height: 100%; }
.viz__line .trace { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: viz-trace 3.2s ease-in-out infinite; }

/* ---- keyframes ---- */
@keyframes viz-air   { 0%{opacity:0;transform:translateY(-6px) scaleX(.6)} 40%{opacity:1} 100%{opacity:0;transform:translateY(28px) scaleX(1.1)} }
@keyframes viz-fall  { 0%{transform:translateY(0) rotate(0);opacity:0} 12%{opacity:.9} 100%{transform:translateY(230px) rotate(180deg);opacity:0} }
@keyframes viz-blink { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes viz-spin  { to{transform:rotate(360deg)} }
@keyframes viz-sweep { 0%,100%{transform:rotate(-58deg)} 50%{transform:rotate(58deg)} }
@keyframes viz-pop   { 0%{transform:scale(.2);opacity:0} 60%{transform:scale(1.15)} 100%{transform:scale(1);opacity:1} }
@keyframes viz-draw  { 0%,18%{stroke-dashoffset:16} 55%,100%{stroke-dashoffset:0} }
@keyframes viz-bar   { 0%,100%{transform:scaleY(.55)} 50%{transform:scaleY(1)} }
@keyframes viz-trace { 0%{stroke-dashoffset:320} 60%,100%{stroke-dashoffset:0} }
@media (prefers-reduced-motion: reduce) { .viz * { animation: none !important; } }
