/* =========================================================
   BPI Lakeland — Brite Path Insurance
   Unique flavor: warm Florida sun + lake teal + serif heads
   ========================================================= */

:root {
  --ink:        #1E2A5E;
  --ink-soft:   #2D3D7A;
  --ink-muted:  #5A6685;
  --paper:      #FBF8F3;
  --paper-2:    #F2EBDD;
  --paper-3:    #EAE0CD;
  --sun:        #E89B2C;
  --sun-soft:   #F4C97D;
  --sun-deep:   #B8731A;
  --leaf:       #2F6B5E;
  --leaf-soft:  #4E9685;
  --rule:       rgba(30,42,94,0.12);
  --rule-strong:rgba(30,42,94,0.22);
  --shadow-sm:  0 1px 2px rgba(30,42,94,0.06), 0 2px 6px rgba(30,42,94,0.04);
  --shadow-md:  0 4px 14px rgba(30,42,94,0.10), 0 12px 32px rgba(30,42,94,0.06);
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;
  --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;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--sun-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: 'Fraunces', Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.4em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 500; }
h1 em { font-style: italic; color: var(--sun-deep); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 500; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; 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: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun-deep);
  margin: 0 0 1em;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 4px rgba(232,155,44,0.18);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.5px 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(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--sun-deep);
  border-color: var(--sun-deep);
  color: var(--paper);
  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 28px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,248,243,0.85);
  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: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.logo-img-white {
  height: 32px;
  width: auto;
  display: block;
}
@media (max-width: 880px) {
  .logo-img { height: 32px; }
}
.primary-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.primary-nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
  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(--sun);
  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: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.92rem;
  margin-left: 12px;
}
.phone-cta:hover { background: var(--sun-deep); color: var(--paper); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  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: 72px; 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 120px;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(232,155,44,0.18), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.hero-decor {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-waves {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  width: 100%;
  height: 220px;
}
.hero-sun {
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sun-soft), var(--sun) 60%, transparent 75%);
  filter: blur(2px);
  opacity: 0.55;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { max-width: 18ch; }
.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-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px 28px;
  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(--sun);
}
.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--paper-3);
  color: var(--ink);
  border-radius: 12px;
  margin-bottom: 6px;
}
.service-card h3 { font-size: 1.25rem; }
.service-card p { color: var(--ink-soft); flex: 1; }
.card-link {
  margin-top: 8px;
  font-weight: 600;
  color: var(--sun-deep);
  font-size: 0.95rem;
}
.card-link:hover { color: var(--ink); }

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

/* ---------- Why BPI ---------- */
.why { background: var(--ink); color: var(--paper); }
.why h2, .why h3 { color: var(--paper); }
.why .eyebrow { color: var(--sun-soft); }
.why p { color: rgba(251,248,243,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: 26px;
  border: 1px solid rgba(251,248,243,0.10);
  border-radius: var(--radius);
  background: rgba(251,248,243,0.04);
}
.vp-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--sun);
  color: var(--ink);
  border-radius: 10px;
  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-block { margin-bottom: 56px; }
.testimonial-block:last-child { margin-bottom: 0; }
.t-block-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-grid blockquote {
  margin: 0;
  padding: 26px;
  background: var(--paper-2);
  border-radius: var(--radius);
  border-left: 3px solid var(--sun);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial-grid p {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
}
.testimonial-grid cite {
  font-style: normal;
  font-weight: 600;
  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: 1px 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: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-deep);
}
.contact-link-value {
  font-family: 'Fraunces', serif;
  font-size: 1.18rem;
}
.contact-link.static { cursor: default; }

.contact-form {
  background: var(--paper);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px 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: 600;
  color: var(--ink-soft);
}
.field-label em {
  color: var(--sun-deep);
  font-style: normal;
  font-weight: 700;
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 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(--sun);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(232,155,44,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(--sun-deep); }
.consent a { color: var(--sun-deep); text-decoration: underline; }

.form-status {
  font-size: 0.93rem;
  margin: 0;
  min-height: 1.4em;
  font-weight: 500;
}
.form-status.success { color: var(--leaf); }
.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,248,243,0.78);
  padding: 64px 0 28px;
  margin-top: 0;
}
.site-footer h4 { color: var(--paper); margin-bottom: 14px; }
.site-footer a { color: rgba(251,248,243,0.78); }
.site-footer a:hover { color: var(--sun-soft); }
.site-footer .logo { color: var(--paper); }
.site-footer .logo-word em { color: var(--sun-soft); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(251,248,243,0.10);
}
.footer-brand p { color: rgba(251,248,243,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,248,243,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; }
}
