/* ============================================================
   Desert Air Pros — stylesheet
   To rebrand this for a different client, change ONLY the
   variables in :root below. Everything else follows along.
   ============================================================ */

:root {
  --navy:    #0d2340;
  --navy-2:  #16385f;
  --orange:  #d9480f;   /* passes contrast with white text */
  --orange-b:#f26419;   /* brighter, for accents only */
  --ink:     #16202c;
  --body:    #4a5663;
  --line:    #dfe5ec;
  --bg:      #ffffff;
  --bg-alt:  #f5f8fb;
  --radius:  10px;
  --wrap:    1120px;
  --font:    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.125rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1.1rem; border: 0; cursor: pointer;
  border-radius: var(--radius); font: inherit; font-weight: 650;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.0625rem; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 2px 0 #a8350a; }
.btn-primary:hover { background: #c23f0c; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- sticky header ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,35,64,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.bar-in { display: flex; align-items: center; gap: 1.25rem; min-height: 70px; }
.logo { display: flex; align-items: center; gap: .55rem; color: #fff; font-size: 1.1875rem; font-weight: 600; }
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--orange-b); font-size: 1.5rem; line-height: 1; }
.logo-text strong { font-weight: 800; }
.nav { display: none; margin-left: auto; gap: 1.5rem; }
.nav a { color: rgba(255,255,255,.82); font-size: .9375rem; font-weight: 500; }
.nav a:hover { color: #fff; text-decoration: none; }
.btn-call {
  margin-left: auto; flex-direction: column; gap: 0; line-height: 1.2;
  background: var(--orange); color: #fff; padding: .55rem 1.1rem;
}
.btn-call:hover { background: #c23f0c; }
.btn-call-label { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; font-weight: 600; }
.btn-call-num { font-size: 1.0625rem; font-weight: 800; }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(rgba(8,24,45,.82), rgba(8,24,45,.92)),
    radial-gradient(1000px 420px at 75% 0%, #1f4d80 0%, var(--navy) 60%);
  color: #fff; padding: 4rem 0 4.5rem;
}
.hero-in { max-width: 760px; }
.eyebrow {
  display: inline-block; margin: 0 0 1.25rem; padding: .3rem .8rem;
  background: rgba(242,100,25,.18); border: 1px solid rgba(242,100,25,.45);
  border-radius: 100px; color: #ffcbaf;
  font-size: .8125rem; font-weight: 650; letter-spacing: .02em;
}
.hero h1 { color: #fff; }
.lede { font-size: 1.1875rem; color: rgba(255,255,255,.88); max-width: 56ch; margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: .6rem 1.75rem;
  list-style: none; margin: 0; padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .9375rem; color: rgba(255,255,255,.8);
}
.hero-trust strong { color: #fff; }

/* ---------- trust strip ---------- */
.strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.strip-in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 2rem 20px; text-align: center; }
.strip-item { display: flex; flex-direction: column; gap: .15rem; }
.strip-num { font-size: 1.75rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.strip-lab { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--body); font-weight: 600; }

/* ---------- sections ---------- */
.sec { padding: 4rem 0; }
.sec-alt { background: var(--bg-alt); }
.sec-sub { font-size: 1.0625rem; max-width: 60ch; margin-bottom: 2.25rem; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: box-shadow .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(13,35,64,.09); border-color: #c3d0e0; }
.card h3 { color: var(--navy); }
.card p { margin: 0; font-size: .9375rem; }

/* ---------- service areas ---------- */
.areas {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1rem;
  list-style: none; margin: 0; padding: 0;
}
.areas li {
  padding: .6rem .9rem; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; font-weight: 600; color: var(--navy); font-size: .9375rem;
}

/* ---------- reviews ---------- */
.quote {
  margin: 0; padding: 1.5rem; background: var(--bg-alt);
  border-left: 4px solid var(--orange-b); border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { font-size: .9375rem; font-style: italic; color: var(--ink); }
.quote footer { font-size: .875rem; font-weight: 700; color: var(--body); font-style: normal; }

/* ---------- form ---------- */
.sec-dark { background: var(--navy); color: rgba(255,255,255,.85); }
.sec-dark h2 { color: #fff; }
.form-wrap { display: grid; gap: 2.5rem; }
.form-copy p { font-size: 1.0625rem; }
.form-or { font-weight: 600; }
.form-or a { color: #ffb088; }
.form { display: grid; gap: 1rem; background: #fff; padding: 1.75rem; border-radius: 12px; }
.form label { display: grid; gap: .35rem; font-size: .875rem; font-weight: 700; color: var(--ink); }
.form input, .form textarea {
  font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--line);
  border-radius: 8px; color: var(--ink); background: #fff; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 3px solid rgba(217,72,15,.25); border-color: var(--orange); }
.form textarea { resize: vertical; }
.form-fine { margin: 0; font-size: .8125rem; color: var(--body); font-weight: 400; text-align: center; }

/* ---------- footer ---------- */
.foot { background: #081a2d; color: rgba(255,255,255,.72); padding: 3rem 0 1.5rem; font-size: .9375rem; }
.foot-in { display: grid; gap: 2rem; }
.foot a { color: #ffb088; }
.foot p { margin: 0 0 .35rem; }
.foot-name { font-size: 1.125rem; font-weight: 800; color: #fff; margin-bottom: .6rem; }
.foot-h { font-weight: 700; color: #fff; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; margin-bottom: .6rem; }
.foot-bot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem;
}
.foot-bot p { margin: 0; }
.demo-tag { opacity: .5; font-style: italic; }

/* ---------- mobile sticky call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: block; padding: 1rem; text-align: center;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 1.0625rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,.22);
}
.callbar:hover { text-decoration: none; background: #c23f0c; }
body { padding-bottom: 60px; }   /* room for the call bar */

/* ============================================================
   Larger screens. Mobile styles came first on purpose —
   most people searching "ac repair near me" are on a phone.
   ============================================================ */
@media (min-width: 640px) {
  .strip-in { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .foot-in { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .btn-call { margin-left: 0; }
  .hero { padding: 6rem 0 6.5rem; }
  .sec { padding: 5.5rem 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .areas { grid-template-columns: repeat(4, 1fr); }
  .form-wrap { grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; }
  .callbar { display: none; }        /* desktop has the header button */
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .btn:hover { transform: none; }
}

/* Anchor links (#services, #areas…) must clear the sticky header,
   otherwise the heading lands hidden underneath it. */
[id] { scroll-margin-top: 86px; }
