/* ============================================================
   Sparks Insurance — Brand Stylesheet
   Blue + Gold palette, white header
   ============================================================ */

:root {
  --cnvs-themecolor: #C9A435;
  --cnvs-themecolor-rgb: 201,164,53;

  /* brand tokens */
  --si-blue:        #1B3F7B;
  --si-blue-dark:   #122B56;
  --si-blue-light:  #2A5298;
  --si-gold:        #C9A435;
  --si-gold-dark:   #A8881D;
  --si-white:       #ffffff;
  --si-offwhite:    #F5F7FA;
  --si-text:        #1A1A2E;
  --si-muted:       #5A6476;
}

/* ─── Typography ─────────────────────────────────────────── */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--si-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  text-wrap: balance;
  color: var(--si-blue-dark);
}

/* ─── Header — White Background ──────────────────────────── */
#header {
  --cnvs-header-bg: #ffffff;
  --cnvs-header-sticky-bg: #ffffff;
  --cnvs-header-border-color: rgba(27,63,123,0.12);
  border-bottom: 1px solid rgba(27,63,123,0.10);
  box-shadow: 0 2px 12px rgba(27,63,123,0.07);
}

/* Logo sizing — user-supplied image at 335×85 */
#logo a img {
  max-width: 335px;
  height: auto;
  max-height: 85px;
}

/* Nav link colors on white header */
#header .menu-link {
  color: var(--si-blue-dark) !important;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#header .menu-link:hover,
#header .menu-link:focus,
#header .menu-item.current > .menu-link {
  color: var(--si-gold) !important;
}

/* Sub-menu */
.sub-menu-container {
  min-width: 220px;
  border-top: 3px solid var(--si-gold);
}

.sub-menu-container .menu-link {
  font-size: 0.82rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  padding: 0.6rem 1.2rem !important;
}

.sub-menu-container .menu-link:hover {
  background: var(--si-offwhite);
  color: var(--si-gold) !important;
}

/* Business dropdown — two-column mega style */
.si-mega-menu {
  min-width: 460px !important;
  display: flex !important;
  flex-wrap: wrap;
}

.si-mega-menu .menu-item {
  width: 50%;
}

/* Hamburger color on white header */
.cnvs-hamburger-inner,
.cnvs-hamburger-inner::before,
.cnvs-hamburger-inner::after {
  background-color: var(--si-blue-dark);
}

/* Header CTA button */
.si-header-cta {
  background: var(--cnvs-themecolor);
  color: var(--si-blue-dark) !important;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.45rem 1.2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.si-header-cta:hover {
  background: var(--si-gold-dark);
  color: #fff !important;
}

/* ─── Hero Section ───────────────────────────────────────── */
.si-hero {
  background: var(--si-blue);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.si-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.si-hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--si-gold);
  margin-bottom: 1rem;
}

.si-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.si-hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 520px;
}

.si-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.si-stat-num {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--si-gold);
  line-height: 1;
}

.si-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn-si-primary {
  background: var(--si-gold);
  color: var(--si-blue-dark) !important;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  border: none;
}
.btn-si-primary:hover {
  background: var(--si-gold-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-si-outline {
  border: 2px solid #fff;
  color: #fff !important;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.8rem 1.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-si-outline:hover {
  background: #fff;
  color: var(--si-blue-dark) !important;
}

/* ─── Section Defaults ───────────────────────────────────── */
.si-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--si-gold);
  margin-bottom: 0.75rem;
}

.si-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--si-blue-dark);
  margin-bottom: 1rem;
}

.si-section-title.light {
  color: #ffffff;
}

/* ─── Trust Bar ──────────────────────────────────────────── */
.si-trust-bar {
  background: var(--si-offwhite);
  border-top: 1px solid rgba(27,63,123,0.08);
  border-bottom: 1px solid rgba(27,63,123,0.08);
  padding: 1.8rem 0;
}

.si-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--si-blue-dark);
}

.si-trust-item i {
  font-size: 1.4rem;
  color: var(--si-gold);
}

/* ─── Insurance Cards ────────────────────────────────────── */
.si-card {
  background: #fff;
  border: 1px solid rgba(27,63,123,0.1);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  height: 100%;
}

.si-card:hover {
  box-shadow: 0 8px 32px rgba(27,63,123,0.14);
  transform: translateY(-3px);
  border-color: var(--si-gold);
}

.si-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(201,164,53,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--si-gold);
  margin-bottom: 1.25rem;
}

.si-card h4 {
  font-size: 1rem;
  color: var(--si-blue-dark);
  margin-bottom: 0.5rem;
}

.si-card p {
  font-size: 0.88rem;
  color: var(--si-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.si-card .si-card-arrow {
  font-size: 0.85rem;
  color: var(--si-gold);
  font-weight: 700;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─── Why Choose Us ──────────────────────────────────────── */
.si-feature-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.si-feature-num {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(201,164,53,0.25);
  line-height: 1;
  min-width: 48px;
}

.si-feature-row h4 {
  font-size: 1rem;
  color: var(--si-blue-dark);
  margin-bottom: 0.3rem;
}

.si-feature-row p {
  font-size: 0.88rem;
  color: var(--si-muted);
  margin: 0;
}

/* ─── Blue CTA Band ──────────────────────────────────────── */
.si-cta-band {
  background: var(--si-blue);
  padding: 4rem 0;
  text-align: center;
}

.si-cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.si-cta-band p {
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ─── Testimonials ───────────────────────────────────────── */
.si-testimonial {
  background: #fff;
  border: 1px solid rgba(27,63,123,0.08);
  border-radius: 8px;
  padding: 2rem;
}

.si-testimonial blockquote {
  font-size: 0.95rem;
  color: var(--si-text);
  line-height: 1.7;
  margin: 0 0 1.25rem;
  font-style: italic;
  border: none;
  padding: 0;
}

.si-testimonial-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--si-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.si-star {
  color: var(--si-gold);
  font-size: 0.85rem;
}

/* ─── Sub-page Template ──────────────────────────────────── */
.si-page-hero {
  background: var(--si-blue);
  padding: 3.5rem 0 3rem;
}

.si-page-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.si-breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.si-breadcrumb a {
  color: var(--si-gold);
  text-decoration: none;
}

.si-breadcrumb a:hover {
  text-decoration: underline;
}

.si-content-col {
  max-width: 820px;
  margin: 0 auto;
}

.si-content-col h2 {
  font-size: 1.5rem;
  color: var(--si-blue-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.si-content-col h3 {
  font-size: 1.2rem;
  color: var(--si-blue-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.si-content-col p {
  font-size: 0.95rem;
  color: var(--si-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.si-content-col ul {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}

.si-content-col ul li {
  font-size: 0.95rem;
  color: var(--si-text);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.si-content-col ul li::marker {
  color: var(--si-gold);
}

.si-sidebar-cta {
  background: var(--si-offwhite);
  border: 1px solid rgba(27,63,123,0.1);
  border-left: 4px solid var(--si-gold);
  border-radius: 6px;
  padding: 1.75rem;
  margin-top: 2rem;
}

.si-sidebar-cta h4 {
  font-size: 1.05rem;
  color: var(--si-blue-dark);
  margin-bottom: 0.5rem;
}

.si-sidebar-cta p {
  font-size: 0.88rem;
  color: var(--si-muted);
  margin-bottom: 1rem;
}

/* ─── About Page ─────────────────────────────────────────── */
.si-team-card {
  text-align: center;
}

.si-team-card img {
  border-radius: 50%;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 4px solid var(--si-gold);
  margin-bottom: 1rem;
}

.si-team-card h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.si-team-card p {
  font-size: 0.82rem;
  color: var(--si-muted);
  margin: 0;
}

/* ─── Contact Page ───────────────────────────────────────── */
.si-contact-card {
  background: var(--si-offwhite);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
}

.si-contact-card h4 {
  font-size: 1rem;
  color: var(--si-blue-dark);
  margin-bottom: 1rem;
}

.si-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--si-text);
}

.si-contact-row i {
  color: var(--si-gold);
  font-size: 1.1rem;
  margin-top: 0.1rem;
  min-width: 18px;
}

.si-form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(27,63,123,0.2);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--si-text);
  background: #fff;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.si-form-control:focus {
  outline: none;
  border-color: var(--si-blue);
  box-shadow: 0 0 0 3px rgba(var(--cnvs-themecolor-rgb), 0.18);
}

textarea.si-form-control {
  min-height: 140px;
  resize: vertical;
}

/* ─── Footer ─────────────────────────────────────────────── */
#footer {
  --cnvs-footer-bg: #0E2347;
  --cnvs-footer-top-border: 1px solid rgba(255,255,255,0.08);
  --cnvs-copyrights-link-color: rgba(255,255,255,0.55);
}

.si-footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.si-footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--si-gold);
  margin-bottom: 1rem;
  font-family: 'Open Sans', sans-serif;
}

.si-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.si-footer-links li {
  margin-bottom: 0.5rem;
}

.si-footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.si-footer-links a:hover {
  color: var(--si-gold);
}

.si-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}

.si-footer-contact-item i {
  color: var(--si-gold);
  font-size: 1rem;
  margin-top: 0.1rem;
  min-width: 16px;
}

.si-footer-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.si-footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.si-footer-socials a:hover {
  background: var(--si-gold);
  border-color: var(--si-gold);
  color: var(--si-blue-dark);
}

#copyrights {
  font-size: 0.82rem;
}

#copyrights a {
  color: var(--si-gold) !important;
}

/* ─── Utility ────────────────────────────────────────────── */
.section { padding: 5rem 0; }

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .si-hero { padding: 3rem 0 2.5rem; }
  .si-hero-stats { gap: 1.5rem; }
  .si-mega-menu { min-width: 260px !important; flex-direction: column; }
  .si-mega-menu .menu-item { width: 100%; }
  .si-trust-item { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
