/* =========================================================
   BudgetWise Auto Insurance — Sarasota
   Flavor: bright kelly green + warm cream + sunshine yellow
   Manrope display, Inter body. Friendlier / road-trip vibe.
   ========================================================= */

:root {
  --ink:        #14532D;
  --ink-soft:   #1F6B3B;
  --ink-muted:  #5A7062;
  --paper:      #FBF9F0;
  --paper-2:    #F1ECDD;
  --paper-3:    #E5DECB;
  --green:      #3FAE45;
  --green-soft: #93D49A;
  --green-deep: #2A7D2F;
  --gold:       #F4B400;
  --gold-soft:  #FFD876;
  --rule:       rgba(20,83,45,0.12);
  --rule-strong:rgba(20,83,45,0.22);
  --shadow-sm:  0 1px 2px rgba(20,83,45,0.06), 0 2px 6px rgba(20,83,45,0.04);
  --shadow-md:  0 4px 14px rgba(20,83,45,0.10), 0 12px 32px rgba(20,83,45,0.06);
  --radius-sm:  10px;
  --radius:     18px;
  --radius-lg:  26px;
  --maxw:       1180px;
  --pad:        clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--green-deep); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.4em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; }
h1 em { font-style: italic; color: var(--green); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

p { margin: 0 0 1em; color: var(--ink-soft); }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0 0 1em;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(63,174,69,0.20);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-large { padding: 16px 30px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,249,240,0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-img { height: 38px; width: auto; display: block; }
.logo-img-white { height: 36px; width: auto; display: block; }
@media (max-width: 880px) { .logo-img { height: 30px; } }

.primary-nav { display: flex; gap: 28px; margin-left: auto; }
.primary-nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
  position: relative;
  padding: 6px 0;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  margin-left: 12px;
}
.phone-cta:hover { background: var(--green-deep); color: white; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid var(--rule-strong);
  border-radius: 10px;
  cursor: pointer;
  margin-left: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 880px) {
  .primary-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 16px var(--pad) 24px;
    gap: 10px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; margin-left: auto; }
  .phone-cta { padding: 8px 12px; }
  .phone-cta span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(244,180,0,0.18), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.hero-road {
  position: absolute;
  bottom: 50px; left: 0; right: 0;
  width: 100%;
  height: 60px;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 8px; max-width: 56ch; font-size: 1.18rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  max-width: 720px;
}
.hero-trust li { font-size: 0.93rem; color: var(--ink-muted); }
.hero-trust strong { color: var(--ink); font-weight: 700; margin-right: 6px; }

/* ---------- Section base ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-sub { font-size: 1.05rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about { background: var(--paper); border-top: 1px solid var(--rule); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.about-body p { font-size: 1.08rem; }
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-grid.two-up { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.service-card {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.service-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(63,174,69,0.12);
  color: var(--green-deep);
  border-radius: 14px;
  margin-bottom: 6px;
}
.service-card h3 { font-size: 1.3rem; }
.service-card p { color: var(--ink-soft); flex: 1; }
.card-link { margin-top: 8px; font-weight: 700; color: var(--green-deep); font-size: 0.95rem; }
.card-link:hover { color: var(--ink); }

@media (max-width: 880px) { .service-grid, .service-grid.two-up { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why { background: var(--ink); color: var(--paper); }
.why h2, .why h3 { color: var(--paper); }
.why .eyebrow { color: var(--green-soft); }
.why p { color: rgba(251,249,240,0.78); }
.value-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-grid li {
  padding: 28px;
  border: 1px solid rgba(251,249,240,0.10);
  border-radius: var(--radius);
  background: rgba(251,249,240,0.04);
}
.vp-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--gold);
  color: var(--ink);
  border-radius: 12px;
  margin-bottom: 14px;
}
.value-grid h3 { font-size: 1.12rem; margin-bottom: 6px; }
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--paper); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-grid blockquote {
  margin: 0;
  padding: 28px;
  background: var(--paper-2);
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial-grid p {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}
.testimonial-grid cite { font-style: normal; font-weight: 700; font-size: 0.88rem; color: var(--ink-muted); }
@media (max-width: 880px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper-3) 100%); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 { max-width: 14ch; }
.contact-direct {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1.5px solid var(--rule-strong);
  padding-top: 22px;
}
.contact-link {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  color: var(--ink);
}
.contact-link-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-deep); }
.contact-link-value { font-family: 'Manrope', sans-serif; font-size: 1.18rem; font-weight: 600; }
.contact-link.static { cursor: default; }

.contact-form {
  background: var(--paper);
  padding: 38px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--rule);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.field-label em { color: var(--green-deep); font-style: normal; font-weight: 800; }
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(63,174,69,0.18);
}
.field textarea { resize: vertical; min-height: 120px; }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green-deep); }
.consent a { color: var(--green-deep); text-decoration: underline; }

.form-status { font-size: 0.93rem; margin: 0; min-height: 1.4em; font-weight: 600; }
.form-status.success { color: var(--green-deep); }
.form-status.error { color: #B82A2A; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(251,249,240,0.78);
  padding: 64px 0 28px;
}
.site-footer h4 { color: var(--paper); margin-bottom: 14px; }
.site-footer a { color: rgba(251,249,240,0.78); }
.site-footer a:hover { color: var(--green-soft); }
.site-footer .logo { color: var(--paper); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(251,249,240,0.10);
}
.footer-brand p { color: rgba(251,249,240,0.66); margin-top: 12px; max-width: 36ch; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.footer-bottom p { margin: 0; color: rgba(251,249,240,0.55); font-size: 0.86rem; }
.footer-bottom .legal { font-style: italic; }

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

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