/* East Valley Search — East Valley HVAC Google ads preview. Desert-southwest. Mobile-first. */
:root {
  --navy: #1B2A4A;
  --terracotta: #C45C26;
  --sand: #E8DCC8;
  --teal: #2A6F6F;
  --offwhite: #F6F1EA;
  --ink: #1B2A4A;
  --muted: #5A6478;
  --white: #FFFBFC;
  --out-wash: #F4E4D6;
  --in-wash: #E4EEEC;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(27, 42, 74, 0.12);
  --font-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a { color: inherit; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 6px;
}
.skip:focus { top: 0.75rem; }

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

.strata {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--navy) 0 22%,
    var(--teal) 22% 48%,
    var(--sand) 48% 74%,
    var(--terracotta) 74% 100%
  );
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--sand);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(232, 220, 200, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding-block: 0.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  min-width: 0;
}

.mark {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 0.55rem;
  box-shadow: 0 0 0 1px rgba(232, 220, 200, 0.14);
}
.mark-plate { color: #243656; }

.wordmark {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 2.5vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sand);
  white-space: nowrap;
  line-height: 1.15;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav a {
  text-decoration: none;
  color: var(--sand);
  opacity: 0.82;
  padding: 0.35rem 0;
}
.nav a:hover,
.nav a:focus-visible { opacity: 1; color: var(--white); }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 70% at 90% -10%, rgba(196, 92, 38, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 100%, rgba(42, 111, 111, 0.22), transparent 50%),
    var(--navy);
  color: var(--sand);
  padding: 2.5rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

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

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.85rem;
}

.kicker-dark { color: var(--teal); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(1.75rem, 5.8vw, 2.95rem);
  color: var(--white);
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.55rem);
  margin-bottom: 0.75rem;
}

h3 { font-size: 1.2rem; }

.lede {
  font-size: 1.125rem;
  max-width: 38rem;
  margin: 1.15rem 0 0;
  color: var(--sand);
}

.hero-cities {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: rgba(232, 220, 200, 0.78);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  border: 1.5px solid rgba(232, 220, 200, 0.45);
  color: var(--sand);
}
.btn-ghost:hover { border-color: var(--sand); color: var(--white); }

.hero-art { justify-self: center; max-width: 22rem; width: 100%; }

.desert .sun { fill: var(--terracotta); }
.desert .sun-ring { stroke: rgba(196, 92, 38, 0.35); stroke-width: 1.5; }
.desert .mesa.far { fill: var(--teal); }
.desert .mesa.near { fill: var(--sand); }
.desert .ground { fill: #cbb89a; }

/* How */
.how {
  padding: 3.25rem 0 3.5rem;
  background: var(--offwhite);
}

.how h2 { max-width: 18ch; }

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--terracotta);
}

.steps li:nth-child(2) { border-top-color: var(--teal); }
.steps li:nth-child(3) { border-top-color: var(--navy); }

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.65rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.35rem;
}

.steps li:nth-child(2) .step-num { color: var(--teal); }
.steps li:nth-child(3) .step-num { color: var(--navy); }

.steps h3 { margin-bottom: 0.45rem; }

.steps p,
.section-lead,
.contact-copy p,
.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.section-lead {
  max-width: 38rem;
  margin-bottom: 1.5rem;
}
.section-lead.light { color: rgba(232, 220, 200, 0.82); }

/* In / out */
.inout {
  padding: 3.25rem 0 3.5rem;
  background: var(--sand);
}

.inout-grid {
  display: grid;
  gap: 1.15rem;
}

.panel {
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--white);
}

.panel h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.sign {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.panel-in { border: 2px solid var(--teal); background: var(--in-wash); }
.panel-in .sign { background: var(--teal); color: var(--white); }
.panel-in h3 { color: var(--teal); }

.panel-out { border: 2px solid var(--terracotta); background: var(--out-wash); }
.panel-out .sign { background: var(--terracotta); color: var(--white); }
.panel-out h3 { color: var(--terracotta); }

.panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
  padding-left: 0;
}
.panel li:last-child { border-bottom: 0; }

/* Area */
.area {
  padding: 3.25rem 0 3.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(196, 92, 38, 0.2), transparent 50%),
    var(--navy);
  color: var(--sand);
}

.area h2 { color: var(--white); }

.cities {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cities li {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  font-weight: 500;
  color: var(--navy);
  background: var(--sand);
  padding: 0.55rem 1rem 0.65rem;
  border-radius: 4px 18px 4px 18px;
}

.cities li:nth-child(even) {
  background: var(--teal);
  color: var(--white);
  border-radius: 18px 4px 18px 4px;
}

.cities li:nth-child(3n) {
  background: var(--terracotta);
  color: var(--white);
}

/* Contact */
.contact {
  padding: 3.25rem 0 3.75rem;
  background: var(--offwhite);
}

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

.form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
  border: 1px solid rgba(27, 42, 74, 0.08);
}

.preview-banner {
  margin: 0;
  background: var(--sand);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border-left: 4px solid var(--terracotta);
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

input, select, button {
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

input, select {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid rgba(27, 42, 74, 0.18);
  border-radius: 8px;
  background: var(--offwhite);
  color: var(--ink);
  font-size: 1rem;
}

input:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

button[type="submit"] {
  min-height: 2.95rem;
  border: 0;
  border-radius: 999px;
  background: #9aa3b5;
  color: var(--white);
  font-weight: 700;
  cursor: not-allowed;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--sand);
  padding: 2rem 0 2.4rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white) !important;
  margin-bottom: 0.5rem !important;
}

.footer-inner p { color: rgba(232, 220, 200, 0.75); max-width: 40rem; }

/* Breakpoints */
@media (min-width: 640px) {
  .nav { font-size: 0.9rem; gap: 1.15rem; }
  .steps { grid-template-columns: 1fr; }
}

@media (min-width: 860px) {
  .hero {
    padding: 3.75rem 0 4.25rem;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
  .hero-art { max-width: 26rem; justify-self: end; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
  .inout-grid { grid-template-columns: 1fr 1fr; gap: 1.35rem; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: 2.5rem; }
  .how, .inout, .area, .contact { padding: 4.25rem 0 4.5rem; }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 3.4rem;
    flex-wrap: wrap;
    padding-bottom: 0.45rem;
  }
  .nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.75rem;
  }
}
