/* ═══════════════════════════════════════════════════════
   INSURANCE SEO COMPANY — Global Styles
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --navy: #0F1B2D;
  --navy-light: #1A2B45;
  --teal: #0A7E8C;
  --teal-dark: #067078;
  --teal-light: #E6F5F7;
  --gold: #D4A843;
  --gold-light: #F5EDD6;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --gray-50: #F7F8F9;
  --gray-100: #EEF0F2;
  --gray-200: #DEE2E6;
  --gray-300: #CED4DA;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 0;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

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

a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal-dark); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; }
p { margin-bottom: 1rem; color: var(--gray-700); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: block;
}
.section-title { margin-bottom: 20px; }
.section-subtitle { font-size: 1.1rem; color: var(--gray-500); max-width: 650px; margin-bottom: 50px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10,126,140,0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: #c49a38;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,168,67,0.3);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 22px; font-size: 0.875rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ── HEADER / NAV ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-body);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 16px; }
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: var(--gray-300);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p { color: var(--gray-300); font-size: 0.9rem; margin-top: 16px; line-height: 1.8; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--gray-300); font-size: 0.88rem; }
.footer-col a:hover { color: var(--gold); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; }
.footer-contact-item svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ── HERO SECTIONS ── */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,126,140,0.12) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero p { color: var(--gray-300); font-size: 1.15rem; max-width: 620px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.trust-stat { text-align: center; }
.trust-stat .number { font-family: var(--font-heading); font-size: 2rem; color: var(--gold); display: block; }
.trust-stat .label { font-size: 0.78rem; color: var(--gray-300); text-transform: uppercase; letter-spacing: 0.05em; }

/* Page hero (shorter, for inner pages) */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,126,140,0.1) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: var(--gray-300); font-size: 1.1rem; max-width: 600px; }
.breadcrumb { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 16px; }
.breadcrumb a { color: var(--gray-300); }
.breadcrumb a:hover { color: var(--gold); }

/* ── SECTIONS ── */
.section { padding: var(--section-padding); }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--gray-300); }
.section-dark .section-label { color: var(--gold); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 40px rgba(10,126,140,0.08);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}
.card h3 { margin-bottom: 12px; font-size: 1.3rem; }
.card p { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 0; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
}
.stat-item {
  padding: 40px 24px;
  text-align: center;
}
.stat-item:nth-child(odd) { background: var(--navy); }
.stat-item:nth-child(even) { background: var(--teal); }
.stat-number { font-family: var(--font-heading); font-size: 2.8rem; color: var(--gold); display: block; margin-bottom: 6px; }
.stat-item:nth-child(even) .stat-number { color: var(--white); }
.stat-label { font-size: 0.82rem; color: var(--gray-300); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
}
.faq-question svg { flex-shrink: 0; transition: var(--transition); color: var(--teal); }
.faq-question.open svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.8;
}
.faq-answer.open { max-height: 500px; padding-top: 16px; }

/* ── CTA BANNER ── */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,126,140,0.1) 0%, transparent 60%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: var(--gray-300); max-width: 550px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── CASE STUDY ── */
.case-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.case-img img { width: 100%; }
.case-highlight {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.case-highlight p { margin: 0; color: var(--teal-dark); font-weight: 500; }

/* ── PROCESS STEPS ── */
.process-step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-100);
}
.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--teal);
  opacity: 0.3;
  flex-shrink: 0;
  line-height: 1;
}
.step-content h3 { margin-bottom: 8px; }
.step-content p { font-size: 0.95rem; margin-bottom: 0; }

/* ── TIDYCAL EMBED ── */
.tidycal-section {
  padding: 80px 0;
  background: var(--gray-50);
}
.tidycal-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--teal);
  }
  .hero { padding: 130px 0 60px; }
  .page-hero { padding: 120px 0 40px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .trust-bar { flex-wrap: wrap; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .cta-buttons { flex-direction: column; align-items: center; }
}
