/*
Theme Name: Insurance Specialists
Theme URI: https://insurancespecialists.com
Description: Custom theme for Insurance Specialists — self-contained page templates with hardcoded content.
Author: Insurance Specialists
Version: 2.0
License: All Rights Reserved
Text Domain: insurance-specialists
*/

/* ── SHARED RESET & BASE ── */
:root {
  --navy: #3a5580;
  --blue: #1A5DC8;
  --blue-mid: #2468D4;
  --blue-light: #EBF2FF;
  --white: #FFFFFF;
  --off-white: #F5F8FF;
  --border: #D9E4F5;
  --text: #1C2C44;
  --body: #3D5278;
  --muted: #7A90B3;
  --green: #14B872;
  --green-light: #E8FBF3;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

/* ── SHARED NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: center;
  height: 68px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1100px;
}
.logo { text-decoration: none; flex-shrink: 0; }
.logo img { height: 42px; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links > a,
.nav-dropdown > a {
  text-decoration: none; color: var(--body);
  font-size: .85rem; font-weight: 500;
  padding: 7px 13px; border-radius: 6px;
  transition: background .15s, color .15s;
  display: block; white-space: nowrap;
}
.nav-links > a:hover,
.nav-dropdown > a:hover { background: var(--blue-light); color: var(--blue); }
.nav-links > a.active,
.nav-dropdown > a.active { color: var(--blue); font-weight: 600; }

/* Insurance dropdown — simple text */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 6px; min-width: 180px;
  box-shadow: 0 10px 32px rgba(12,41,87,.12);
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
/* Invisible bridge so hover doesn't break */
.dropdown-menu::before {
  content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
}
.dropdown-menu a {
  display: block; padding: 8px 14px; border-radius: 7px;
  text-decoration: none; font-size: .84rem; font-weight: 500;
  color: var(--body); transition: background .15s, color .15s;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--blue-light); color: var(--blue); }

/* Nav CTA button */
.btn-nav {
  background: var(--navy) !important; color: var(--white) !important;
  padding: 9px 20px !important; border-radius: 8px !important;
  font-weight: 600 !important; margin-left: 8px;
  box-shadow: 0 2px 8px rgba(58,85,128,.3);
  transition: background .15s !important;
}
.btn-nav:hover { background: #2e4568 !important; }

/* Mobile nav */
.mobile-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--navy); padding: 4px;
}

/* ── SHARED FOOTER ── */
.site-footer {
  background: #07172F;
  padding: 60px 5% 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; max-width: 1100px; margin: 0 auto 48px;
}
.footer-brand img { height: 36px; margin-bottom: 14px; display: block; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .83rem; color: rgba(255,255,255,.38); line-height: 1.7; max-width: 240px; }
.footer-col h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.45); text-decoration: none; font-size: .86rem; transition: color .15s; }
.footer-col ul li a:hover { color: white; }
.subscribe-form { display: flex; gap: 8px; }
.subscribe-form input {
  flex: 1; padding: 9px 13px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px; color: white; font-size: .8rem;
  font-family: 'Sora', sans-serif; outline: none; transition: border-color .15s;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,.3); }
.subscribe-form input:focus { border-color: rgba(26,93,200,.6); }
.subscribe-form button {
  padding: 9px 14px; background: var(--navy); color: white;
  border: none; border-radius: 6px; font-weight: 600; font-size: .8rem;
  cursor: pointer; font-family: 'Sora', sans-serif; white-space: nowrap;
  transition: background .15s;
}
.subscribe-form button:hover { background: #2e4568; }
.sub-note { font-size: .7rem; color: rgba(255,255,255,.22); margin-top: 7px; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom span { font-size: .78rem; color: rgba(255,255,255,.23); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: rgba(255,255,255,.28); text-decoration: none; font-size: .78rem; transition: color .15s; }
.footer-links a:hover { color: rgba(255,255,255,.6); }

/* ── SHARED SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }

/* ── SHARED LATEST POSTS (used on homepages) ── */
.latest-posts { padding: 88px 5%; background: var(--white); }
.latest-posts .section-label {
  display: block; text-align: center;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.latest-posts .section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--navy);
  line-height: 1.2; letter-spacing: -.02em;
  margin-bottom: 48px;
}
.lp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.lp-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.lp-card:hover {
  border-color: rgba(26,93,200,.3); transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(12,41,87,.1);
}
.lp-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.lp-thumb { height: 180px; background: var(--blue-light); overflow: hidden; }
.lp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lp-card:hover .lp-thumb img { transform: scale(1.04); }
.lp-body { padding: 22px 20px; flex: 1; display: flex; flex-direction: column; }
.lp-cat {
  font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.lp-title { font-size: .97rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 10px; }
.lp-excerpt {
  font-size: .82rem; color: var(--body); line-height: 1.6; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-meta { font-size: .72rem; color: var(--muted); display: flex; gap: 14px; margin-top: auto; }
.lp-more {
  display: block; text-align: center; margin-top: 36px;
}
.lp-more a {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  background: var(--white); border: 1.5px solid var(--border);
  font-size: .88rem; font-weight: 600; color: var(--navy);
  text-decoration: none; transition: all .15s;
}
.lp-more a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ── SHARED RESPONSIVE ── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dropdown-menu { left: 0; transform: none; }
  .lp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links > a:not(.btn-nav),
  .nav-dropdown { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 5%; gap: 4px; z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open > a:not(.btn-nav),
  .nav-links.open .nav-dropdown { display: block; }
  .nav-links.open .dropdown-menu {
    display: block; position: static; transform: none;
    box-shadow: none; border: none; margin: 4px 0 4px 12px; padding: 0;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .lp-grid { grid-template-columns: 1fr; }
}
