/* Extreme Air Conditioning — site styles */

:root {
  --navy: #0b3d5c;
  --navy-deep: #072a40;
  --sky: #38bdf8;
  --sky-soft: #7dd3fc;
  --ice: #e8f6fd;
  --sun: #f59e0b;
  --ink: #12222e;
  --ink-soft: #46586a;
  --line: #d9e6ee;
  --paper: #ffffff;
  --paper-alt: #f4f9fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 61, 92, .08);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy-deep);
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul { padding: 0; margin: 0; list-style: none; }

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

section[id] { scroll-margin-top: 86px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-primary {
  background: var(--sun);
  color: var(--navy-deep);
  box-shadow: 0 8px 20px rgba(245, 158, 11, .3);
}
.btn-primary:hover { background: #fbbf24; }
.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .06);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-deep);
}
.brand-mark { width: 104px; height: 52px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-top {
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--navy-deep);
}
.brand-sub {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1rem;
  color: #0e5a86;
  margin-top: 3px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}
.site-nav a:not(.btn):hover { color: var(--navy-deep); background: var(--ice); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 10px 18px; font-size: .95rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.nav-toggle:focus-visible { outline: 3px solid var(--sky); }
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy-deep);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -8px; }
.nav-toggle-bar::after { left: 0; top: 8px; }
[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(8px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 16px;
    gap: 2px;
  }
  .site-nav a:not(.btn) { padding: 12px 10px; font-size: 1.05rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: 14px; }
  .brand-mark { width: 84px; height: 42px; }
  .brand-top { font-size: 1.05rem; }
  .brand-sub { font-size: .8rem; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(56, 189, 248, .35), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(245, 158, 11, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #0e5a86 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-waves { position: absolute; bottom: -2px; left: 0; width: 100%; height: 55%; }
.hero-inner {
  position: relative;
  padding-block: clamp(64px, 12vw, 140px) clamp(56px, 9vw, 110px);
  max-width: 760px;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-soft);
  margin-bottom: 18px;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--sky-soft); }
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, .82);
  max-width: 600px;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: .95rem;
  color: rgba(255, 255, 255, .78);
}
.hero-badges strong { color: #fff; font-weight: 700; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  flex: none;
}

@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 10px;
}

/* Why us */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.intro-lead { font-size: 1.2rem; font-weight: 600; color: var(--navy-deep); }
.intro-copy p:last-child { margin-bottom: 0; }
.intro-card {
  background: var(--navy-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.intro-card h3 { color: var(--sky-soft); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.intro-card dl { margin: 0; display: grid; gap: 14px; }
.intro-card dt { font-size: .8rem; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .08em; }
.intro-card dd { margin: 2px 0 0; font-weight: 600; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillar p { color: var(--ink-soft); margin-bottom: .6em; }
.pillar p:last-child { margin-bottom: 0; }
.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ice);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.pillar-icon svg { width: 26px; height: 26px; }

@media (max-width: 800px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* Services */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  border-top: 4px solid var(--sky);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0; text-align: center; }
.card p { color: var(--ink-soft); margin: 0; }
.cards-note { margin: 28px 0 0; color: var(--ink-soft); font-weight: 600; }

/* Service area */
.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.area-grid p { color: var(--ink-soft); margin-bottom: 24px; }
.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.area-list li {
  background: var(--ice);
  color: var(--navy-deep);
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.area-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
  flex: none;
}
@media (max-width: 760px) {
  .area-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .area-list { grid-template-columns: 1fr; }
}

/* Contact */
.section-contact {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(56, 189, 248, .25), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: #fff;
}
.section-contact h2 { color: #fff; }
.section-contact .section-sub { color: rgba(255, 255, 255, .78); }
.section-contact .kicker { color: var(--sky-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin-inline: auto;
}
.contact-item {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  display: grid;
  gap: 6px;
}
.contact-label {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-soft);
  font-weight: 700;
}
.contact-item a, .contact-item span:not(.contact-label) {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  word-break: break-word;
}
.contact-item a:hover { color: var(--sky-soft); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px;
}
.footer-inner p { margin: 0; }
.site-footer a { color: rgba(255, 255, 255, .8); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
