/* Thermal Grid HVAC Controls — Climate-Tech theme */

:root {
  --cyan: #00cfe8;
  --cyan-deep: #0798ad;
  --orange: #ff7a1a;
  --orange-deep: #d45e0a;
  --navy: #071a26;
  --navy-2: #0c2736;
  --ink: #102333;
  --muted: #4a6573;
  --offwhite: #f6fafc;
  --gray: #e8f0f4;
  --white: #ffffff;
  --line: rgba(0, 207, 232, 0.18);
  --header-h: 4.5rem;
  --radius: 1rem;
  --shadow: 0 18px 40px rgba(7, 26, 38, 0.12);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: Manrope, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--offwhite);
}

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

a {
  color: var(--cyan-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 1000;
  background: var(--cyan);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0.5rem;
}

.skip-link:focus {
  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;
}

.wrap {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 4.25rem 0;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin: 0 0 0.75rem;
}

.section-kicker::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

h1,
h2,
h3,
.brand-text {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.65rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 0.45rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 26, 38, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 2.7rem;
  width: auto;
  max-width: min(52vw, 280px);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--navy-2);
  border-radius: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--cyan);
}

.site-nav {
  display: none;
  position: absolute;
  inset: var(--header-h) 0 auto;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1.1rem;
}

.site-nav.open,
.site-nav:target {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--offwhite);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.4rem;
  border-radius: 0.4rem;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--cyan);
}

.header-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(255, 122, 26, 0.28);
}

.btn-primary:hover {
  color: var(--navy);
  background: #ff8d38;
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}

.btn-secondary:hover {
  color: var(--navy);
  background: var(--cyan);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
}

.btn-on-dark {
  color: var(--navy);
}

/* Hero */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--offwhite);
  overflow: hidden;
  padding: 3.2rem 0 4rem;
  scroll-margin-top: var(--header-h);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 207, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 207, 232, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 20% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}

.airflow {
  position: absolute;
  inset: auto 0 18% 0;
  height: 80px;
  pointer-events: none;
  opacity: 0.45;
}

.airflow span {
  position: absolute;
  left: -10%;
  height: 2px;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: drift 9s linear infinite;
}

.airflow span:nth-child(2) {
  top: 28px;
  width: 55%;
  animation-duration: 12s;
  animation-delay: -3s;
}

.airflow span:nth-child(3) {
  top: 52px;
  width: 32%;
  animation-duration: 8s;
  animation-delay: -5s;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(80vw); }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 207, 232, 0.12);
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.chip .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 207, 232, 0.18);
}

.hero h1 {
  color: var(--white);
}

.hero p {
  color: #c9dbe4;
  font-size: 1.12rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 1rem;
}

.explore {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.hero-visual {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  min-height: 220px;
  background: var(--navy-2);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.temp-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: rgba(7, 26, 38, 0.86);
  border: 1px solid var(--line);
  color: var(--offwhite);
  border-radius: 0.9rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.temp-badge strong {
  font-family: var(--font-head);
  color: var(--cyan);
  font-size: 1.05rem;
}

/* Highlights */

.highlights {
  margin-top: -1.8rem;
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}

.highlight-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.hl-card,
.card,
.why-card,
.service-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
}

.hl-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.icon-bubble {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: var(--gray);
  color: var(--navy);
}

.icon-bubble.cool { background: rgba(0, 207, 232, 0.16); color: var(--cyan-deep); }
.icon-bubble.heat { background: rgba(255, 122, 26, 0.16); color: var(--orange-deep); }

.hl-card h3,
.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.hl-card p,
.why-card p,
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* About */

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.about-copy {
  max-width: 44rem;
}

.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.photo-mosaic,
.photo-pair {
  display: grid;
  gap: 1rem;
}

.photo-mosaic figure,
.photo-pair figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray);
  background: var(--navy-2);
}

.photo-mosaic img,
.photo-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-mosaic img {
  aspect-ratio: 4 / 3;
}

.photo-pair img {
  aspect-ratio: 3 / 2;
}

.inline-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--cyan-deep);
}

.inline-link:hover {
  color: var(--navy);
}

/* Services */

.service-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.2rem 0 1.6rem;
}

.service-jump a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.service-jump a:hover {
  border-color: var(--cyan);
  color: var(--cyan-deep);
}

.service-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
  border-top: 3px solid var(--cyan);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card.heat {
  border-top-color: var(--orange);
}

.service-card:hover {
  box-shadow: 0 16px 36px rgba(7, 26, 38, 0.16);
}

.service-card .icon-bubble {
  margin-bottom: 0.8rem;
}

.request-link {
  display: inline-flex;
  margin-top: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}

.request-link:hover {
  color: var(--cyan-deep);
}

/* Why */

.why-grid {
  display: grid;
  gap: 1rem;
}

.why-card {
  border-left: 3px solid var(--cyan);
}

.why-card:nth-child(even) {
  border-left-color: var(--orange);
}

/* CTA band */

.cta-band {
  background:
    linear-gradient(120deg, rgba(7, 26, 38, 0.88), rgba(7, 26, 38, 0.7)),
    var(--navy);
  color: var(--offwhite);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 207, 232, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.cta-band h2,
.cta-band p {
  position: relative;
  color: var(--white);
}

.cta-band p {
  color: #d5e4eb;
  max-width: 36rem;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

/* Service area */

.area-layout {
  display: grid;
  gap: 1.5rem;
}

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.town-list li {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.address-block {
  background: var(--navy);
  color: var(--offwhite);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin-top: 1.2rem;
}

.address-block strong {
  color: var(--cyan);
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-head);
}

.address-block p {
  margin: 0;
  color: #d7e6ee;
}

.map-wrap {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray);
  background: var(--gray);
}

#service-map {
  height: 420px;
  width: 100%;
}

.map-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* FAQs */

.faq-jump {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
}

.faq-item {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 0.9rem;
  margin-bottom: 0.65rem;
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  min-height: 52px;
  padding: 0.95rem 3rem 0.95rem 1rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  position: relative;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan-deep);
  font-size: 1.3rem;
}

.faq-item button[aria-expanded="true"]::after {
  content: "–";
}

.faq-item .faq-panel {
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.faq-item .faq-panel[hidden] {
  display: none;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.nap {
  background: var(--navy);
  color: var(--offwhite);
  border-radius: 1.1rem;
  padding: 1.4rem;
}

.nap h2,
.nap p,
.nap a {
  color: var(--offwhite);
}

.nap a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

.nap dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 0.9rem;
}

.nap dd {
  margin: 0.15rem 0 0;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 1.1rem;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.form-card label {
  display: block;
  font-weight: 700;
  margin: 0.85rem 0 0.35rem;
}

.form-card input,
.form-card textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid #c9d7de;
  background: var(--offwhite);
  min-height: 44px;
}

.form-card textarea {
  min-height: 8rem;
  resize: vertical;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 1rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin-top: 0.2rem;
}

.form-status {
  margin: 0.8rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(0, 207, 232, 0.12);
  color: var(--navy);
}

.form-status.error {
  display: block;
  background: #ffe8d6;
  color: #7a3204;
}

.form-card button[type="submit"] {
  width: 100%;
  border: 0;
}

.form-card button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.contact-lead {
  margin-top: 1.2rem;
}

.contact-photo {
  margin-top: 1.2rem;
}

.field-error {
  color: #9b3410;
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #c9dbe4;
  padding: 3rem 0 6.5rem;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 207, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 207, 232, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-phone {
  margin-top: 1rem;
}

.disclaimer {
  position: relative;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: #9fb4be;
  max-width: 70rem;
}

.footer-brand img {
  height: 2.5rem;
  width: auto;
  margin-bottom: 0.7rem;
}

/* Mobile call */

.mobile-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  box-shadow: 0 10px 28px rgba(255, 122, 26, 0.35);
}

@media (max-width: 979px) {
  #contact {
    padding-bottom: 6rem;
  }

  .mobile-call.is-hidden {
    display: none;
  }
}

@media (min-width: 720px) {
  .highlight-grid,
  .why-grid,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .about-grid,
  .area-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .photo-pair {
    grid-template-columns: 1fr 1fr;
  }

  .faq-jump {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .site-header .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.15rem 0.55rem;
    flex-wrap: wrap;
  }

  .site-nav a {
    min-height: 40px;
    font-size: 0.92rem;
    padding: 0.2rem 0.35rem;
  }

  .header-cta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: 0.6rem;
  }

  .header-phone {
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-head);
    white-space: nowrap;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .highlight-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-call {
    display: none;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.tg-pin {
  background: transparent;
  border: 0;
}

.tg-pin-core {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff7a1a;
  border: 2px solid #00cfe8;
  box-shadow: 0 0 0 4px rgba(0, 207, 232, 0.25);
}

.leaflet-popup-content {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.9rem;
}
