/* =======================================================
   Zest Air Repair Services — stylesheet
   Identity: coastal citrus. Deep ocean teal + marigold zest
   + coral, grounded in Encinitas, CA beach-town setting.
   ======================================================= */

:root {
  --ink: #12292b;
  --deep: #0b4f56;
  --deep-2: #093f45;
  --deep-3: #072e33;

  --sand: #f6f1e2;
  --paper: #fffdf7;
  --card: #ffffff;

  --zest: #f2b705;
  --zest-dark: #cf9e00;
  --zest-soft: #fbe6a3;

  --coral: #ff6b4a;
  --coral-dark: #e04d2c;
  --coral-soft: #ffd9cc;

  --seafoam: #e3efec;
  --muted: #4d6062;
  --border: rgba(18, 41, 43, 0.16);
  --border-light: rgba(255, 255, 255, 0.2);

  --radius: 14px;
  --radius-sm: 8px;

  --shadow-1: 0 1px 2px rgba(7, 30, 33, 0.08);
  --shadow-2: 0 16px 36px rgba(7, 30, 33, 0.16);

  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Work Sans", sans-serif;

  --header-h: 116px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.14;
  font-weight: 700;
  color: var(--ink);
}

p {
  color: var(--muted);
  max-width: 62ch;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.2rem;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.9rem;
}

.section-head p {
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  min-height: 50px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.18s ease;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 74, 0.35);
}

.btn-coral:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--ink);
  color: var(--sand);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-zest {
  background: var(--zest);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(242, 183, 5, 0.35);
}

.btn-zest:hover {
  background: var(--zest-dark);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* =========== Header =========== */
.utility-strip {
  background: var(--deep-3);
  color: var(--sand);
}

.utility-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.82rem;
}

.utility-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.utility-strip a:hover {
  opacity: 1;
  color: var(--zest);
}

.utility-strip a.utility-left {
  display: none;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.utility-strip a.utility-email {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-1);
}

.mainbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--deep);
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--coral);
  margin-top: 0.15rem;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-cta {
  display: none;
}

.burger {
  display: grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: none;
  background: transparent;
}

.burger .bar {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.active .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.active .bar:nth-child(2) {
  opacity: 0;
}

.burger.active .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  overflow-y: auto;
  padding: 1.5rem 0 3rem;
  z-index: 90;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mobile-menu .container {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-menu li {
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  display: block;
  padding: 1rem 0.2rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
}

.mobile-menu .btn {
  margin-top: 1.3rem;
}

/* =========== Hero =========== */
.hero {
  position: relative;
  background: var(--deep);
  color: var(--sand);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: var(--deep-2);
  clip-path: polygon(0 38%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-sun {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--zest-soft), var(--zest) 62%);
  opacity: 0.9;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.15rem, 5.4vw, 3.6rem);
  color: #fff;
  margin-bottom: 1.15rem;
}

.hero p.lead {
  color: var(--seafoam);
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.5rem;
}

.hero-fact strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--zest);
  margin-bottom: 0.2rem;
}

.hero-fact span {
  font-size: 0.86rem;
  color: var(--seafoam);
}

.hero-visual {
  position: relative;
  z-index: 2;
}

.photo-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-2);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.dial-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.dial-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--sand);
  font-size: 0.85rem;
  font-weight: 600;
}

.dial-chips i {
  color: var(--zest);
}

.coast-illustration {
  width: 100%;
  height: 100%;
}

/* =========== Services =========== */
.services {
  background: var(--paper);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.9rem 1.6rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--deep);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}

.services-grid .service-card:nth-child(4n+1) .service-icon {
  background: var(--deep);
}

.services-grid .service-card:nth-child(4n+2) .service-icon {
  background: var(--coral);
}

.services-grid .service-card:nth-child(4n+3) .service-icon {
  background: var(--zest-dark);
}

.services-grid .service-card:nth-child(4n+4) .service-icon {
  background: var(--ink);
}

.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* =========== Approach / coverage =========== */
.approach {
  background: var(--seafoam);
}

.approach-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.approach-copy p {
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}

.approach-list {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.85rem;
}

.approach-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}

.approach-list i {
  color: var(--coral);
  margin-top: 0.2rem;
}

.approach-visual {
  position: relative;
  background: var(--deep);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3.4;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-2);
}

.feature-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.approach-visual .pin-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.approach-visual .pin-badge i {
  color: var(--coral);
}

/* =========== Process =========== */
.process {
  background: var(--paper);
}

.process-list {
  display: grid;
  gap: 1.6rem;
}

.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.process-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--deep);
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.process-step p {
  margin: 0;
  font-size: 0.98rem;
}

/* =========== Why Zest =========== */
.why {
  background: var(--deep);
  color: var(--sand);
}

.why .section-head h2 {
  color: #fff;
}

.why .section-head p {
  color: var(--seafoam);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.7rem 1.5rem;
}

.why-card i {
  color: var(--zest);
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  display: block;
}

.why-card h3 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  color: var(--seafoam);
  font-size: 0.9rem;
  margin: 0;
}

/* =========== CTA =========== */
.cta {
  background: var(--coral);
  color: #fff;
}

.cta-inner {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.7rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.03rem;
  margin-bottom: 1.6rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.cta-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: grid;
  gap: 1.1rem;
}

.cta-card a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.cta-card i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--coral);
  border-radius: 50%;
  flex: 0 0 auto;
}

/* =========== Footer =========== */
.site-footer {
  background: var(--deep-3);
  color: var(--seafoam);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand-text {
  color: #fff;
}

.footer-brand p {
  color: var(--seafoam);
  font-size: 0.92rem;
  margin: 1rem 0 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--zest);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(230, 240, 238, 0.7);
}

/* =========== Responsive =========== */
@media (min-width: 640px) {
  .hero-facts {
    grid-template-columns: repeat(3, auto);
  }

  .utility-strip a.utility-email {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 124px;
  }

  .utility-strip a.utility-left {
    display: inline-flex;
  }

  .utility-strip .container {
    justify-content: space-between;
  }

  .main-nav {
    display: block;
  }

  .nav-cta {
    display: inline-flex;
  }

  .burger,
  .mobile-menu {
    display: none;
  }

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

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

  .approach-grid.reverse .approach-visual {
    order: -1;
  }

  .process-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .process-step {
    grid-template-columns: 1fr;
    border-bottom: none;
    padding-bottom: 0;
  }

  .process-num {
    margin-bottom: 0.9rem;
  }

  .cta-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }

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

@media (min-width: 1100px) {
  .hero-title {
    font-size: 3.9rem;
  }
}

@media (max-width: 479px) {
  .container {
    width: 90%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    flex: 1 1 100%;
  }
}

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

  * {
    transition: none !important;
    animation: none !important;
  }
}
