/* ====================================================================
   Chiller Heating and Air Conditioning — site styles
   Palette
     #0f2942  navy (primary)
     #1c4a6e  steel blue
     #2e6a96  sky blue (hover)
     #f5b400  amber accent / CTA
     #f4f6f8  cool gray background
     #2c3540  body text
     #6b7884  muted text
   ==================================================================== */

:root {
  --navy: #0f2942;
  --steel: #1c4a6e;
  --sky: #2e6a96;
  --amber: #f5b400;
  --amber-deep: #d99a00;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-band: #eef2f6;
  --text: #2c3540;
  --muted: #6b7884;
  --line: #e1e6ec;
  --shadow: 0 12px 28px rgba(15, 41, 66, .08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--steel); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--amber-deep); }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.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;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem;
  font-weight: 600; font-size: 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: var(--navy); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }

/* -------------------- Top bar -------------------- */
.topbar {
  background: var(--navy);
  color: #d6e0ec;
  font-size: .88rem;
  padding: .55rem 0;
}
.topbar-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; align-items: center;
}
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-item svg { width: 16px; height: 16px; fill: currentColor; }
.topbar-link { color: #d6e0ec; }
.topbar-link:hover { color: var(--amber); }

/* -------------------- Header -------------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 16px rgba(15,41,66,.04);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 0;
}

.brand { display: flex; align-items: center; gap: .65rem; flex: 0 0 auto; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.25rem; color: var(--navy); letter-spacing: .01em; }
.brand-text small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.brand-light strong { color: #fff; }
.brand-light small { color: rgba(255,255,255,.7); }

.primary-nav { margin-left: auto; }
.nav-list {
  display: flex; gap: 1.4rem; list-style: none; padding: 0; margin: 0;
}
.nav-list a {
  color: var(--navy);
  font-weight: 500;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--steel); border-bottom-color: var(--amber); }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer; padding: .4rem;
  margin-left: auto;
}
.nav-toggle .bar {
  display: block; width: 26px; height: 3px; background: var(--navy);
  margin: 5px 0; border-radius: 2px; transition: transform .2s ease;
}

.header-cta {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1rem;
  background: var(--amber); color: var(--navy);
  border-radius: 999px;
  font-weight: 600;
  flex: 0 0 auto;
}
.header-cta:hover { background: var(--amber-deep); color: var(--navy); }
.header-cta svg { width: 22px; height: 22px; fill: currentColor; }
.header-cta span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.header-cta small { font-size: .65rem; opacity: .8; text-transform: uppercase; letter-spacing: .1em; }
.header-cta strong { font-size: 1rem; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--navy);
  z-index: -2;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,41,66,.92) 0%, rgba(15,41,66,.78) 45%, rgba(28,74,110,.55) 100%);
  z-index: -1;
}
.hero-inner {
  padding: 6rem 0 6.5rem;
  max-width: 760px;
}
.eyebrow {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .82rem;
  color: var(--amber);
  margin: 0 0 .9rem;
}
.eyebrow-dark { color: var(--steel); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero h1 em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: var(--amber);
}
.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,.88);
  max-width: 600px;
  margin: 0 0 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-badges {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 1rem 1.8rem;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--amber); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .8rem;
}

/* -------------------- Section scaffolding -------------------- */
.section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--navy);
  margin: .35rem 0 .8rem;
  letter-spacing: -.01em;
}
.section-lede {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

/* -------------------- Services -------------------- */
.services { background: var(--bg-soft); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15,41,66,.14);
}
.service-thumb {
  height: 180px;
  background-color: var(--bg-band);
  background-size: cover;
  background-position: center;
}
.service-body { padding: 1.3rem 1.4rem 1.6rem; }
.service-body h3 {
  margin: 0 0 .55rem;
  color: var(--navy);
  font-size: 1.2rem;
}
.service-body p { color: var(--muted); margin: 0 0 1rem; font-size: .98rem; }
.card-link { font-weight: 600; color: var(--steel); }
.card-link:hover { color: var(--amber-deep); }

/* -------------------- About -------------------- */
.about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-text h2 { color: var(--navy); margin: .2rem 0 1.1rem; font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.15; }
.about-text p { margin: 0 0 1rem; color: #3d4855; }
.about-stats {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  margin-top: 1.8rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.about-stats div {
  display: flex; flex-direction: column;
  flex: 1 1 110px;
  text-align: left;
}
.about-stats strong { font-size: 1.7rem; color: var(--navy); line-height: 1; }
.about-stats span { font-size: .85rem; color: var(--muted); margin-top: .25rem; text-transform: uppercase; letter-spacing: .08em; }

/* -------------------- Why us -------------------- */
.why { background: var(--navy); color: #fff; }
.why .section-head h2 { color: #fff; }
.why .eyebrow { color: var(--amber); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: background .15s ease, transform .15s ease;
}
.why-card:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.why-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--amber);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.why-card h3 { color: #fff; margin: 0 0 .55rem; font-size: 1.15rem; }
.why-card p { color: rgba(255,255,255,.78); margin: 0; font-size: .97rem; }

/* -------------------- Gallery -------------------- */
.gallery { background: var(--bg-soft); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}
.gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* -------------------- Service area + map -------------------- */
.area { background: #fff; }
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.area-text h2 { color: var(--navy); margin: .2rem 0 1rem; font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.15; }
.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .35rem 1rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.8rem;
  color: var(--text);
}
.area-list li {
  position: relative;
  padding-left: 1.4rem;
}
.area-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--amber-deep);
  font-weight: 700;
}
.area-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.area-map iframe {
  width: 100%; height: 100%; border: 0;
}

/* -------------------- Contact -------------------- */
.contact { background: var(--bg-band); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; margin: .25rem 0 1rem; }
.contact-info > p { color: #3d4855; margin: 0 0 2rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .15rem; }
.contact-list a { color: var(--navy); font-weight: 600; }
.contact-list a:hover { color: var(--amber-deep); }
.ci-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy); color: var(--amber);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .92rem; color: var(--navy); font-weight: 600; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(46,106,150,.18);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; text-align: center; }
.hp-field { position: absolute; left: -9999px; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding-top: 3.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
  padding-bottom: 2.5rem;
}
.footer-grid h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-grid a { color: rgba(255,255,255,.78); }
.footer-grid a:hover { color: var(--amber); }
.footer-blurb { margin: 1rem 0 0; font-size: .95rem; line-height: 1.55; max-width: 320px; }
.footer-contact li { font-size: .95rem; line-height: 1.45; }

.footer-bottom { background: #0a1d31; padding: 1rem 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* -------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .about-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar { font-size: .8rem; }
  .topbar-inner { gap: .5rem 1.2rem; }

  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; order: 3; }
  .header-cta { order: 2; padding: .5rem .85rem; }
  .header-cta strong { font-size: .92rem; }
  .primary-nav { order: 4; flex: 1 1 100%; margin-left: 0; }
  .nav-list {
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-list.is-open { max-height: 500px; padding: .6rem 0; }
  .nav-list a { display: block; padding: .65rem 0; border-bottom: 1px solid var(--line); }
  .nav-list a:hover { border-bottom-color: var(--amber); }

  .hero-inner { padding: 4rem 0 4.5rem; }
  .section { padding: 3.5rem 0; }
  .contact-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
