/* ===== Faris Insurance Network — main stylesheet ===== */

:root {
  --blue: #1F3D6B;
  --blue-dark: #142848;
  --blue-light: #2E5C9E;
  --gold: #C9962E;
  --gold-light: #E5B547;
  --cream: #FBF8F2;
  --cream-deep: #F3EDDF;
  --slate: #2A2F3A;
  --slate-soft: #4A5160;
  --slate-mute: #6B7280;
  --sage: #5E8C6A;
  --brick: #A8503F;
  --white: #FFFFFF;
  --border: #E5DECB;

  --serif: "Source Serif Pro", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 40, 72, 0.08);
  --shadow: 0 4px 16px rgba(20, 40, 72, 0.10);
  --shadow-lg: 0 12px 40px rgba(20, 40, 72, 0.14);

  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--blue);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 50px;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow); color: var(--white); }

.btn-gold {
  background: var(--gold);
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { background: var(--gold-light); color: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover { background: var(--blue); color: var(--white); }

.btn-large { padding: 18px 32px; font-size: 1.15rem; min-height: 60px; }

/* ===== Top nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.nav-brand-mark {
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: var(--gold);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--serif);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--slate);
  font-weight: 500;
  font-size: 1rem;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 600;
}

.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--blue); cursor: pointer; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
  }
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(201, 150, 46, 0.12);
  border-radius: 999px;
}
.hero h1 { margin-bottom: 0.4em; }
.hero-sub {
  font-size: 1.2rem;
  color: var(--slate-soft);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 580px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-trust {
  font-size: 0.95rem;
  color: var(--slate-mute);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-trust-icon { color: var(--sage); font-weight: 700; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero-card h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.hero-card-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--cream-deep);
  font-size: 1rem;
}
.hero-card-list li:last-child { border-bottom: 0; }
.hero-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--sage);
  font-weight: 700;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 50px 0 50px; }
}

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--blue);
  color: var(--white);
  padding: 28px 0;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  text-align: center;
}
.trust-stat {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.1;
}
.trust-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
}
@media (max-width: 700px) {
  .trust-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ===== Section ===== */
.section { padding: 80px 0; }
.section-cream-deep { background: var(--cream-deep); }
.section-blue { background: var(--blue); color: var(--white); }
.section-blue h2, .section-blue h3 { color: var(--white); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head p {
  font-size: 1.15rem;
  color: var(--slate-soft);
  margin: 0;
}

/* ===== Pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillar-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: inline-block;
  width: 64px;
  height: 64px;
  background: var(--cream-deep);
  border-radius: 50%;
  line-height: 64px;
}
.pillar h3 { font-size: 1.5rem; margin-bottom: 8px; }
.pillar p { color: var(--slate-soft); margin: 0; }
@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ===== Cards grid (services, tools, blog) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid, .card-grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
  text-decoration: none;
}
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  width: 52px;
  height: 52px;
  background: var(--cream-deep);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--slate-soft); margin: 0 0 16px; flex: 1; }
.card-cta {
  color: var(--blue-light);
  font-weight: 600;
  font-size: 0.95rem;
}
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ===== About preview ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  background: var(--cream-deep);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-text h2 { margin-bottom: 0.4em; }
.about-text .lede { font-size: 1.2rem; color: var(--slate-soft); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ===== State coverage ===== */
.state-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px 0;
}
.state-pill {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}
.state-pill:hover { background: rgba(201, 150, 46, 0.25); color: var(--white); text-decoration: none; border-color: var(--gold); }

/* ===== Newsletter / lead-magnet CTA ===== */
.lead-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.lead-cta h2 { color: var(--white); }
.lead-cta p { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 auto 28px; }
.lead-cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.lead-cta-form .lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lead-cta-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 0;
  font-size: 1rem;
  font-family: var(--sans);
  min-height: 50px;
  box-sizing: border-box;
}
.lead-cta-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.lead-cta-form .lead-submit {
  width: 100%;
  margin-top: 6px;
  min-height: 54px;
  font-size: 1.05rem;
}
@media (max-width: 480px) {
  .lead-cta-form .lead-row { grid-template-columns: 1fr; }
}
.lead-cta-fine {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
}
@media (max-width: 600px) { .lead-cta { padding: 40px 24px; } }

/* ===== Footer ===== */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer h4 {
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.footer ul a:hover { color: var(--white); }
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  max-width: 720px;
  margin-top: 16px;
  line-height: 1.6;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
