/* Driftwood Climate HVAC Solutions — design system */
:root {
  --navy: #082f49;
  --navy-deep: #051e30;
  --aqua: #15d4d8;
  --aqua-dark: #0b8f93;
  --coral: #ff6b45;
  --coral-dark: #e24e28;
  --sand: #fff8ed;
  --sand-2: #f4ead8;
  --slate: #17242d;
  --muted: #4a5b66;
  --white: #ffffff;
  --line: rgba(8, 47, 73, 0.12);
  --radius: 1.15rem;
  --radius-sm: 0.7rem;
  --shadow: 0 10px 30px rgba(8, 47, 73, 0.08);
  --header-h: 4.5rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --font-display: "Space Grotesk", system-ui, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, "Segoe UI", sans-serif;
  --content: 72rem;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--aqua);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--aqua-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--coral);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(var(--content), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: clamp(3.25rem, 6vw, 6.25rem) 0;
  position: relative;
}

.section--sand {
  background: var(--sand);
}

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

.section--alt {
  background: linear-gradient(180deg, var(--white) 0%, #f7fbfc 100%);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--coral);
  margin: 0 0 0.65rem;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.05rem, 1.3rem + 3.2vw, 3.65rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.45rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  font-weight: 600;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--muted);
  max-width: 42rem;
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.hero h1,
.hero h2,
.footer h2,
.footer h3 {
  color: var(--white);
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--coral {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.btn--coral:hover,
.btn--coral:focus-visible {
  background: var(--coral-dark);
  color: var(--white);
  border-color: var(--coral-dark);
}

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

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

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 0.85rem;
}

.text-link {
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.text-link:hover {
  color: var(--coral-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--navy-deep);
  color: var(--white);
  border-bottom: 1px solid rgba(21, 212, 216, 0.18);
}

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

.logo {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.logo img {
  height: 42px;
  width: auto;
  max-width: min(52vw, 280px);
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--navy);
  padding: 0.75rem 1rem 1.25rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-list a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 0.7rem 0.55rem;
  border-radius: 0.45rem;
  display: block;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--navy);
  background: var(--aqua);
}

.nav-cta {
  margin-top: 0.5rem;
}

.header-phone {
  display: none;
}

 .nav-meta {
   color: rgba(255, 255, 255, 0.78);
   font-size: 0.85rem;
   margin: 0.75rem 0 0;
 }

 .header-facts {
   display: none;
   margin: 0;
   color: rgba(255, 255, 255, 0.78);
   font-size: 0.78rem;
   white-space: nowrap;
 }

 .hero-meta {
   margin: 0.55rem 0 0;
   color: rgba(255, 255, 255, 0.86);
   font-size: 0.95rem;
 }

 .hero-meta a {
   color: var(--aqua);
 }
/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 44rem);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 30, 48, 0.92) 0%, rgba(8, 47, 73, 0.72) 48%, rgba(8, 47, 73, 0.28) 100%),
    linear-gradient(180deg, rgba(5, 30, 48, 0.2) 0%, rgba(5, 30, 48, 0.55) 100%);
}

.airflow {
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  width: 100%;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(5.5rem, 12vw, 8rem) 0 3.5rem;
  max-width: 40rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
}

.trust-line {
  margin: 0;
  color: var(--aqua);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Trust strip */
.trust-strip {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 650;
  font-family: var(--font-display);
  color: var(--navy);
}

.icon-bubble {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--aqua);
  display: grid;
  place-items: center;
}

.icon-bubble svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* About */
.about-grid,
.area-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  height: 100%;
  transition: border-color 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}

.card:hover,
.card:focus-within {
  border-color: var(--aqua);
  transform: translateY(-3px);
}

.card-photo {
  width: calc(100% + 2.4rem);
  max-width: none;
  height: 9.5rem;
  object-fit: cover;
  margin: -1.25rem -1.2rem 1rem;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.card h3 {
  margin-top: 0.35rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.why .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(21, 212, 216, 0.18);
  color: var(--white);
}

.why .card h3 {
  color: var(--white);
}

.why .card p {
  color: rgba(255, 248, 237, 0.82);
}

.why .icon-bubble {
  background: rgba(21, 212, 216, 0.12);
  color: var(--aqua);
}

/* Service detail */
.service-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

.chip {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--line);
}

.chip:hover,
.chip:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.service-detail {
  display: grid;
  gap: 1.1rem;
}

.detail-block {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.detail-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-block h3 {
  scroll-margin-top: calc(var(--header-h) + 0.8rem);
}

.cta-inline {
  margin-top: 0.85rem;
}

.media-row {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.media-row figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy);
}

.media-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  padding: 0.65rem 0.2rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Emergency band */
.emergency {
  background:
    radial-gradient(1200px 280px at 90% 120%, rgba(255, 107, 69, 0.28), transparent 60%),
    var(--navy);
  color: var(--white);
  text-align: center;
}

.emergency p {
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, 0.86);
}

/* Area + map */
.community-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 1rem 0 1.25rem;
  list-style: none;
}

.community-list li {
  background: var(--sand);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.map-wrap {
  min-height: 22rem;
  height: 26rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sand-2);
}

.map-wrap[aria-busy="true"]::after {
  content: "Map loads when this section is in view.";
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-weight: 600;
  padding: 1rem;
  text-align: center;
}

.map-wrap.leaflet-container::after {
  display: none;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.85rem 0.15rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--navy);
  padding: 0.95rem 1.75rem 0.95rem 0;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.85rem;
  width: 1.6rem;
  text-align: center;
  color: var(--coral);
  font-size: 1.35rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

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

/* Contact / form */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-meta {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.contact-meta a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.contact-meta a:hover {
  color: var(--coral-dark);
}

.form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #c9d4db;
  border-radius: 0.65rem;
  padding: 0.75rem 0.8rem;
  font: inherit;
  color: var(--slate);
  background: var(--white);
  min-height: 2.85rem;
}

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

.field input:focus,
.field textarea:focus {
  border-color: var(--aqua-dark);
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--muted);
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex: 0 0 1.15rem;
  accent-color: var(--coral);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error,
.form-status {
  font-size: 0.9rem;
  min-height: 1.1em;
}

.field-error {
  color: #9b1c1c;
}

.form-status[data-state="success"] {
  color: #0f6b46;
  font-weight: 700;
}

.form-status[data-state="error"] {
  color: #9b1c1c;
  font-weight: 700;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 6.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-brand img {
  height: 48px;
  width: auto;
  max-width: 260px;
  margin-bottom: 0.9rem;
}

.footer-nav {
  display: grid;
  gap: 0.4rem;
}

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

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

.disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.copyright {
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* Floating call */
.float-call {
  position: fixed;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 70;
  background: var(--coral);
  color: var(--white);
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: 0 8px 24px rgba(226, 78, 40, 0.35);
  min-height: 48px;
}

.float-call:hover {
  color: var(--white);
  background: var(--coral-dark);
}

.float-call.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

  .btn,
  .card,
  .reveal,
  .float-call {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .media-row {
    grid-template-columns: 1fr 1fr;
  }

  .logo img {
    height: 48px;
    max-width: min(58vw, 340px);
  }
}

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

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

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.1rem;
  }

  .nav-list a {
    padding: 0.45rem 0.55rem;
    font-size: 0.92rem;
  }

  .nav-cta {
    display: none;
  }

  .header-phone {
    display: inline-flex;
    margin-left: 0.35rem;
    white-space: nowrap;
  }

  .nav-meta {
    display: none;
  }

  .header-facts {
    display: none;
  }

  .about-grid,
  .area-grid,
  .contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.75rem;
  }

  .contact-grid {
    align-items: start;
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .float-call {
    display: none;
  }

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

  .logo img {
    height: 52px;
    max-width: 360px;
  }
}

@media (min-width: 1100px) {
  .hero-content {
    max-width: 44rem;
  }
}

@media (max-width: 374px) {
  .logo img {
    max-width: 168px;
    height: 36px;
  }

  .btn {
    width: 100%;
  }
}
