/* Sansbury Insurance — Simple site
   Palette pulled straight from the logo: SC-flag navy + heart red,
   set against warm cream instead of stark white. */

:root {
  --navy: #0a2f5c;
  --navy-deep: #051a33;
  --navy-mid: #123f74;
  --blue: #1f7fc1;
  --blue-bright: #3aa3e0;
  --red: #b3271e;
  --red-bright: #d94436;
  --cream: #f8f1df;
  --sand: #efe0bd;
  --ink: #17202b;
  --ink-light: #4a5568;
  --white: #fffdf7;
  --border: rgba(10, 47, 92, 0.14);

  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius-card: 16px;
  --radius-pill: 140px;
  --shadow-card: 0 10px 30px rgba(5, 26, 51, 0.14);
  --shadow-lift: 0 20px 50px rgba(5, 26, 51, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-light); }
.lede { font-size: 1.15rem; color: var(--ink-light); max-width: 620px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow svg { width: 14px; height: 14px; }

.text-center { text-align: center; }
.text-center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 10px 24px rgba(179, 39, 30, 0.35); }
.btn-primary:hover { background: var(--red-bright); }
.btn-navy { background: var(--navy); color: var(--white); box-shadow: 0 10px 24px rgba(5, 26, 51, 0.28); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Palmetto & moon signature motif ---------- */
.palmetto-mark { position: absolute; pointer-events: none; opacity: 0.9; }
.palmetto-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.96rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { background: rgba(10,47,92,0.08); color: var(--red); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { color: var(--navy); font-weight: 700; font-size: 0.95rem; }
.header-phone:hover { color: var(--red); text-decoration: none; }
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--navy);
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(248, 241, 223, 0.82); }
.section--sand { background: var(--sand); }
.section--tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }

/* Angled dividers between sections for the "energetic" edge */
.angle-top { clip-path: polygon(0 0, 100% 3.5vw, 100% 100%, 0 100%); margin-top: -3.5vw; }
.angle-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 72px 0;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero .accent { color: var(--sand); font-style: italic; }
.hero .eyebrow { color: var(--sand); }
.hero .lede { color: rgba(248, 241, 223, 0.88); font-size: 1.18rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 22px; font-size: 0.92rem; color: rgba(248, 241, 223, 0.72); }
.hero-note a { color: var(--sand); font-weight: 700; }

.hero-logo-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-card img { width: 100%; height: auto; display: block; }

/* ---------- Split cards (Business / Personal) ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split-card {
  border-radius: 20px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}
.split-card.navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.split-card.blue { background: linear-gradient(160deg, var(--blue) 0%, var(--navy-mid) 100%); }
.split-card h3 { color: var(--white); font-size: 1.7rem; }
.split-card p { color: rgba(255,255,255,0.85); }
.split-card .palmetto-mark { bottom: -20%; right: -15%; width: 260px; height: 260px; opacity: 0.14; }
.split-card .btn { margin-top: 8px; align-self: flex-start; }

/* ---------- Card grids (coverage, values) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.coverage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.coverage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.coverage-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--red);
}
.coverage-card .icon svg { width: 24px; height: 24px; }
.coverage-card h3 { margin-bottom: 6px; font-size: 1.15rem; }
.coverage-card p { font-size: 0.95rem; margin-bottom: 0; }

/* Value props with heart bullets */
.value-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value-item { text-align: center; }
.value-item .heart {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  color: var(--red);
}
.value-item h3 { font-size: 1.15rem; }
.value-item p { font-size: 0.96rem; }

/* ---------- Founder / about teaser ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.founder-photo { position: relative; }
.founder-photo img { border-radius: var(--radius-card); box-shadow: var(--shadow-card); border: 6px solid var(--white); }
.founder-photo .badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--red);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  box-shadow: var(--shadow-card);
}

/* ---------- Trusted partners carousel ---------- */
.partners-section { background: var(--white); }
.partners-carousel { display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.partners-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.partners-arrow svg { width: 20px; height: 20px; }
.partners-arrow:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.partners-track-wrap {
  overflow: hidden;
  position: relative;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  padding: 0 4px;
  will-change: transform;
}
.partners-track img {
  height: 63px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.2s ease;
  flex-shrink: 0;
}
.partners-track img:hover { filter: grayscale(0) opacity(1); }
.partners-track img.carrier-amtrust { height: 54px; }
.partners-track img.carrier-chubb { height: 29px; }
.partners-track img.carrier-hartford { height: 112.5px; }
.partners-track img.carrier-philadelphia { height: 78.75px; }
.partners-track img.carrier-selective { height: 72.45px; }
@media (max-width: 640px) {
  .partners-carousel { padding: 0 12px; gap: 10px; }
  .partners-arrow { width: 36px; height: 36px; }
  .partners-arrow svg { width: 16px; height: 16px; }
  .partners-track { gap: 44px; }
  .partners-track img { height: 48px; }
  .partners-track img.carrier-amtrust { height: 41px; }
  .partners-track img.carrier-chubb { height: 22px; }
  .partners-track img.carrier-hartford { height: 85px; }
  .partners-track img.carrier-philadelphia { height: 60px; }
  .partners-track img.carrier-selective { height: 55.2px; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 60%, var(--blue) 140%);
  color: var(--white);
  border-radius: 24px;
  padding: 64px 56px;
  overflow: hidden;
  text-align: center;
}
.cta-banner .palmetto-mark { top: -20%; left: -8%; width: 360px; height: 360px; opacity: 0.14; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(248, 241, 223, 0.85); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 70%);
  color: var(--white);
  padding: 64px 0 96px;
  overflow: hidden;
}
.page-header .palmetto-mark { top: -30%; right: -10%; width: 440px; height: 440px; opacity: 0.15; }
.page-header h1 { color: var(--white); position: relative; z-index: 2; }
.page-header p { color: rgba(248, 241, 223, 0.85); max-width: 560px; position: relative; z-index: 2; font-size: 1.08rem; }
.page-header-inner { position: relative; z-index: 2; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.field .required { color: var(--red); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--blue-bright);
  outline-offset: 1px;
  border-color: var(--blue);
}
.radio-row { display: flex; gap: 20px; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.94rem; color: var(--ink); }
.form-note { font-size: 0.85rem; color: var(--ink-light); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-status { display: none; padding: 14px 18px; border-radius: 10px; font-weight: 600; font-size: 0.94rem; }
.form-status.success { display: block; background: #e4f3e6; color: #1e7e34; }
.form-status.error { display: block; background: #fbe4e2; color: var(--red); }

.contact-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.info-card .palmetto-mark { bottom: -25%; right: -20%; width: 240px; height: 240px; opacity: 0.16; }
.info-card h3 { color: var(--white); }
.info-card p { color: rgba(248,241,223,0.85); position: relative; z-index: 2; }
.info-card a { color: var(--sand); font-weight: 700; }
.info-card .info-row { display: flex; gap: 12px; margin-bottom: 18px; position: relative; z-index: 2; }
.info-card .info-row svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--red-bright); margin-top: 2px; }
.info-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; position: relative; z-index: 2; }
.info-map { border-radius: 12px; overflow: hidden; height: 100%; }
.info-map iframe { display: block; width: 100%; height: 100%; min-height: 220px; border: 0; }
@media (max-width: 700px) {
  .info-card-grid { grid-template-columns: 1fr; }
  .info-map { margin-top: 18px; }
  .info-map iframe { height: 220px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(248,241,223,0.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer p { color: rgba(248,241,223,0.75); font-size: 0.92rem; }
.site-footer a { color: rgba(248,241,223,0.9); }
.site-footer a:hover { color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; font-family: var(--font-body); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { font-size: 0.95rem; }
.footer-disclaimer { font-size: 0.78rem; color: rgba(248,241,223,0.5); border-top: 1px solid rgba(248,241,223,0.14); padding-top: 24px; margin-top: 8px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; font-size: 0.85rem; }
.footer-legal-links { display: flex; gap: 20px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.chip {
  display: inline-block;
  background: var(--sand);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .header-actions { margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--red); padding: 12px 24px 20px; box-shadow: 0 12px 20px rgba(0,0,0,0.2); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { color: var(--white); }
  .main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.15); color: var(--white); }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo-card { margin-top: 20px; padding: 36px; }
  .founder-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .value-list { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 44px 24px; border-radius: 18px; }
  .hero { padding: 48px 0; }
}
