/* =========================================================
   South Florida AC Quotes — style.css
   Light, warm & welcoming "sunny South Florida" theme.
   Mobile-first, no frameworks, no libraries.
   ========================================================= */

:root {
  /* page backgrounds */
  --bg-0: #f3f8ff;
  --bg-1: #eaf3ff;

  /* surfaces */
  --surface: #ffffff;
  --surface-2: #f3f6fc;
  --border: #e2e9f3;
  --border-strong: #d3ddec;

  /* text */
  --text: #18243c;
  --muted: #5d6b85;

  /* brand accents (from the logo) */
  --blue: #1f74e0;        /* "Quotes" blue */
  --blue-strong: #155bbd;
  --teal: #15b6ac;        /* "AC" teal */
  --cyan: #38bdf8;
  --sun: #ff9e2c;         /* sun amber */
  --sun-soft: #ffd9a3;
  --green: #16a34a;
  --red: #dc2626;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 22px rgba(28, 56, 110, 0.08);
  --shadow-lg: 0 18px 50px rgba(28, 56, 110, 0.16);
  --glow-blue: 0 8px 24px rgba(31, 116, 224, 0.30);
  --max: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* soft sky backdrop for every page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(255, 158, 44, 0.24), transparent 60%),
    radial-gradient(900px 620px at 4% 108%, rgba(21, 182, 172, 0.22), transparent 60%),
    linear-gradient(180deg, #bfd6f0 0%, #d2e0ef 50%, #f3ddc0 100%);
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.18; color: #102038; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }
section { padding: 52px 0; position: relative; }
/* soft tint on plain sections so nothing reads as flat white
   (hero, page-hero, alt-bg, blue-bg set their own background and override this) */
section { background: linear-gradient(180deg, #dde8f5 0%, #e6eef8 100%); }
.section-tight { padding: 30px 0; }

.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.1rem; color: #3b4965; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; font-size: 1.05rem; font-weight: 700;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--blue) 65%);
  color: #fff; box-shadow: var(--glow-blue);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(31,116,224,.45); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--border-strong); }
.btn-outline:hover { background: #eef5ff; border-color: var(--blue); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.15rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: #102038; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 759px) { .brand-logo { height: 34px; } }
.brand .logo {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff; border-radius: 9px; display: grid; place-items: center; font-size: 1.1rem;
}
.brand small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }

.nav-toggle { display: inline-flex; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: #102038; padding: 4px 8px; }
.main-nav {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 8px 18px 16px;
}
.main-nav.open { display: flex; }
.main-nav a { padding: 11px 4px; color: #2c3a57; font-weight: 600; border-bottom: 1px solid var(--border); }
.header-call { display: none; }

/* ---------- HERO (sunny, welcoming) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: auto; display: flex; align-items: center;
  padding: 48px 0 86px;
  background:
    radial-gradient(60% 60% at 84% 12%, rgba(255, 178, 70, 0.42), transparent 62%),
    radial-gradient(50% 60% at 12% 90%, rgba(21, 182, 172, 0.22), transparent 60%),
    linear-gradient(180deg, #b7d4f0 0%, #d6e6f6 45%, #f6e6cf 100%);
  isolation: isolate;
}

/* the JS twinkle layer is hidden in the daytime theme */
.hero-stars { display: none; }

/* soft floating colour washes ("clouds") */
.hero-blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(46px); opacity: .55; pointer-events: none; }
.hero-blob-1 {
  width: 300px; height: 300px; top: 6%; left: 4%;
  background: radial-gradient(circle, rgba(56,189,248,.55), transparent 70%);
  animation: drift1 20s ease-in-out infinite;
}
.hero-blob-2 {
  width: 340px; height: 340px; bottom: 2%; right: 3%;
  background: radial-gradient(circle, rgba(255,158,44,.5), transparent 70%);
  animation: drift2 24s ease-in-out infinite;
}

.hero-content { position: relative; z-index: 3; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); color: #0d203a; }
.hero p { color: #33425f; font-size: 1.15rem; max-width: 620px; }
.hero-badge {
  display: inline-block;
  background: rgba(255, 158, 44, 0.16);
  border: 1px solid rgba(255, 158, 44, 0.5);
  color: #b4660a; font-size: .8rem; font-weight: 800;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; letter-spacing: .3px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-note { margin-top: 16px; font-size: .85rem; color: #5d6b85; }

/* scroll cue */
.scroll-cue {
  position: absolute; z-index: 4; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: .7rem; letter-spacing: .25em;
}
.scroll-cue:hover { text-decoration: none; color: var(--blue); }
.scroll-line { width: 1px; height: 34px; background: linear-gradient(var(--blue), transparent); animation: scrollPulse 1.8s ease-in-out infinite; }

/* ---------- Trust strip ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.trust-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px; text-align: center;
  font-weight: 700; color: #2c3a57; box-shadow: var(--shadow);
}
.trust-item .ic { font-size: 1.6rem; display: block; margin-bottom: 6px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-2, .grid-3 { grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(21,182,172,.55); box-shadow: var(--shadow-lg); }
.card h3 { display: flex; align-items: center; gap: 8px; color: #102038; }
.card .ic { font-size: 1.3rem; }

/* testimonials */
.testimonial { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.testimonial .stars { color: var(--sun); font-size: 1.05rem; letter-spacing: 2px; }
.testimonial .stars .star-empty { color: #d9c3a3; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; color: #2c3a57; line-height: 1.55; }
.tm-author { font-weight: 800; color: #102038; font-size: .95rem; }
.tm-author span { display: block; font-weight: 600; color: var(--muted); font-size: .82rem; margin-top: 2px; }

/* tinted section bands */
.alt-bg {
  background: linear-gradient(180deg, #fbe9cf 0%, #f6dcb6 100%);
  border-top: 1px solid #eed9bb; border-bottom: 1px solid #eed9bb;
}
.blue-bg {
  background:
    radial-gradient(60% 90% at 85% 8%, rgba(255,184,77,.30), transparent 60%),
    radial-gradient(55% 90% at 0% 100%, rgba(56,189,248,.28), transparent 60%),
    #d6e4f4;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Symptom list ---------- */
.symptom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.symptom {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--teal); border-radius: 10px;
  padding: 14px 16px; font-weight: 700; color: #2c3a57; box-shadow: var(--shadow);
}

/* ---------- Forms ---------- */
.form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px 22px;
}
.form-row { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; color: #1d2b46; }
label .req { color: var(--sun); }
input, select, textarea {
  width: 100%; padding: 13px 14px; font-size: 1rem; font-family: inherit;
  border: 1.5px solid var(--border-strong); border-radius: 10px;
  background: #fff; color: var(--text);
}
input::placeholder, textarea::placeholder { color: #9aa6bd; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,116,224,.16);
}
textarea { min-height: 110px; resize: vertical; }
.field-error { color: var(--red); font-size: .82rem; margin-top: 5px; display: none; }
.input-invalid { border-color: var(--red); }
.input-invalid + .field-error { display: block; }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface-2); padding: 14px; border-radius: 10px;
  font-size: .85rem; color: #3b4965; border: 1px solid var(--border);
}
.consent input { width: auto; margin-top: 3px; flex: 0 0 auto; accent-color: var(--blue); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 16px 18px;
  font-size: 1.02rem; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; gap: 12px; color: #102038;
}
.faq-q .chev { transition: transform .2s ease; color: var(--blue); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; color: #3b4965; }
.faq-item.open .faq-a { padding: 0 18px 18px; max-height: 400px; }

/* ---------- Area list ---------- */
.area-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0; }
.area-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-weight: 600; color: #2c3a57; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #16355e 0%, #0f2746 100%);
  border-top: 1px solid var(--border);
  color: #c3d2e8; padding: 40px 0 96px; font-size: .92rem;
}
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.site-footer a { color: #8fd3ff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.14); margin-top: 26px; padding-top: 18px; font-size: .8rem; color: #93a4c0; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; gap: 8px; padding: 9px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(28,56,110,.10);
}
.mobile-bar .btn { flex: 1; padding: 13px 8px; font-size: 1rem; }

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 52px 0;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(255,184,77,.32), transparent 60%),
    linear-gradient(180deg, #c2dcf4 0%, #dde8f4 70%, #f5e4cd 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); color: #0d203a; }
.page-hero p { color: #33425f; max-width: 640px; }
.page-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Legal / content ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.callout { background: #fff4e3; border-left: 3px solid var(--sun); padding: 16px 18px; border-radius: 8px; margin: 18px 0; color: #5a4a2f; }

/* ---------- Thank you ---------- */
.ty-wrap { text-align: center; max-width: 560px; margin: 0 auto; }
.ty-check { width: 76px; height: 76px; background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 18px; box-shadow: var(--glow-blue); }
.ty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* ---------- Keyframes ---------- */
@keyframes drift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, -26px); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-46px, 22px); } }
@keyframes scrollPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* =========================================================
   Desktop / tablet
   ========================================================= */
@media (min-width: 760px) {
  h2 { font-size: 1.9rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .symptom-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .area-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  .nav-toggle { display: none; }
  .main-nav { display: flex; position: static; flex-direction: row; background: none; backdrop-filter: none; border: 0; padding: 0; gap: 4px; }
  .main-nav a { border: 0; padding: 8px 11px; font-size: .95rem; }
  .header-call { display: inline-flex; }

  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 40px; }
}

/* form section two-column (used by lead form + contact) */
@media (min-width: 980px) {
  .hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-blob, .scroll-line { animation: none !important; }
  html { scroll-behavior: auto; }
}
