/* =========================================================================
   Sylvan Assurance — corporate site styles
   Conservative trustworthy palette: deep navy, off-white, sage-green accent.
   Serif headings, system sans-serif body. No external font dependencies.
   ========================================================================= */

:root {
  --navy:        #1F3864;
  --navy-deep:   #13284A;
  --sage:        #4A7C59;
  --sage-dark:   #365C42;
  --cream:       #FAF7F2;
  --paper:       #FFFFFF;
  --ink:         #1F2937;
  --ink-soft:    #374151;
  --muted:       #6B7280;
  --rule:        #E4DDD2;
  --rule-soft:   #F0EBE2;
  --shadow-sm:   0 1px 2px rgba(19, 40, 74, 0.06);
  --shadow-md:   0 4px 12px rgba(19, 40, 74, 0.08);
  --radius:      10px;
  --maxw:        1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip-link for keyboard users -------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: white; padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0; z-index: 100;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Typography -------------------------------------------------------------- */
h1, h2, h3, h4, .serif {
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  color: var(--navy-deep);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
p  { margin-bottom: 16px; }
p.lede { font-size: 1.15rem; color: var(--ink-soft); }
a  { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--navy); }
small { color: var(--muted); font-size: 0.88rem; }

ul, ol { padding-left: 1.25rem; margin-bottom: 16px; }
li { margin-bottom: 6px; }

/* Layout ------------------------------------------------------------------ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Header / nav ------------------------------------------------------------ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--navy); color: white;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600; font-size: 1.15rem;
  color: var(--navy-deep); letter-spacing: -0.005em;
}
.brand-name small {
  display: block; font-size: 0.7rem; color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px;
}
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--sage-dark); }
.site-nav a.cta {
  background: var(--sage); color: white;
  padding: 9px 18px; border-radius: var(--radius);
  font-weight: 600;
}
.site-nav a.cta:hover { background: var(--sage-dark); color: white; }
@media (max-width: 720px) {
  .site-nav { gap: 14px; }
  .site-nav a:not(.cta) { display: none; }
  .brand-name small { display: none; }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.hero h1 { max-width: 760px; }
.hero p.lede { max-width: 680px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sage-dark);
  margin-bottom: 18px;
}
.hero-ctas { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 1rem; font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-deep); color: white; }
.btn-secondary { background: var(--paper); color: var(--navy); border-color: var(--rule); }
.btn-secondary:hover { background: var(--rule-soft); color: var(--navy-deep); }
.btn-sage { background: var(--sage); color: white; }
.btn-sage:hover { background: var(--sage-dark); color: white; }

/* Sections ---------------------------------------------------------------- */
section { padding: 56px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.tight { padding: 36px 0; }

.section-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.section-intro { max-width: 720px; margin-bottom: 36px; }

/* Product cards (home page) ---------------------------------------------- */
.product-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.product-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
  transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none; color: inherit;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}
.product-card h3 {
  margin-bottom: 6px;
}
.product-card .product-tagline {
  color: var(--muted); font-size: 0.92rem;
  margin-bottom: 18px; line-height: 1.5;
}
.product-card .product-summary {
  font-size: 0.97rem; line-height: 1.6; margin-bottom: 18px;
}
.product-card .product-tier-line {
  font-size: 0.85rem; color: var(--muted);
  border-top: 1px solid var(--rule); padding-top: 14px;
  margin-top: auto;
}
.product-card .product-tier-line strong { color: var(--ink); font-weight: 600; }
.product-card .product-arrow {
  color: var(--sage-dark); font-weight: 600; margin-top: 12px;
}

/* Pill / badge ------------------------------------------------------------ */
.pill {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--rule-soft); color: var(--ink-soft);
  padding: 3px 10px; border-radius: 999px;
  margin-right: 6px;
}
.pill.sage  { background: rgba(74, 124, 89, 0.12); color: var(--sage-dark); }
.pill.navy  { background: rgba(31, 56, 100, 0.10); color: var(--navy-deep); }

/* Tier table on product pages -------------------------------------------- */
.tier-table {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.tier-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
}
.tier-card.featured { border-color: var(--sage); border-width: 2px; }
.tier-card .tier-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem; font-weight: 600; color: var(--navy-deep);
  margin-bottom: 4px;
}
.tier-card .tier-price {
  font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 4px;
  font-family: "Source Serif 4", Georgia, serif;
}
.tier-card .tier-price small {
  font-size: 0.78rem; color: var(--muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  display: block; margin-top: 2px;
}
.tier-card .tier-audience {
  color: var(--muted); font-size: 0.88rem;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule); padding-bottom: 14px;
}
.tier-card ul { list-style: none; padding: 0; margin-bottom: 22px; font-size: 0.93rem; }
.tier-card ul li {
  padding-left: 22px; position: relative; margin-bottom: 8px; line-height: 1.5;
}
.tier-card ul li::before {
  content: "✓"; color: var(--sage); font-weight: 700;
  position: absolute; left: 0; top: 0;
}
.tier-card .btn { margin-top: auto; text-align: center; }

/* Two-column CTA section ------------------------------------------------- */
.dual-cta {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 32px;
}
.dual-cta .cta-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 28px;
}
.dual-cta .cta-card h3 { font-size: 1.05rem; }
.dual-cta .cta-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 18px; }

/* Privacy banner --------------------------------------------------------- */
.privacy-banner {
  background: var(--navy-deep); color: white;
  padding: 36px 0;
}
.privacy-banner .wrap {
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap;
}
.privacy-banner h3 { color: white; margin-bottom: 6px; }
.privacy-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; max-width: 640px; }
.privacy-banner .privacy-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  background: var(--sage); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem; font-weight: 700;
}

/* Trust strip / why bullets ---------------------------------------------- */
.trust-strip {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trust-item h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem; font-weight: 700; color: var(--navy-deep);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.trust-item p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.8);
  padding: 48px 0 32px; margin-top: 0;
}
.site-footer .wrap {
  display: grid; gap: 28px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
.site-footer h5 {
  color: white; font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem; font-weight: 600; margin-bottom: 14px;
}
.site-footer a {
  color: rgba(255,255,255,0.78); text-decoration: none;
  font-size: 0.92rem; display: block; padding: 4px 0;
}
.site-footer a:hover { color: white; text-decoration: underline; }
.site-footer .brand-mark { background: rgba(255,255,255,0.12); }
.site-footer .brand-name { color: white; }
.site-footer .brand-name small { color: rgba(255,255,255,0.6); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 36px; padding-top: 20px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* Print-style adjustments for embedded readability ---------------------- */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 52px 0 40px; }
  section { padding: 44px 0; }
  .btn { width: 100%; text-align: center; }
}

/* Per-product accent (used on product pages) ---------------------------- */
.page-gdpr  { --accent: #4F46E5; --accent-soft: rgba(79, 70, 229, 0.10); }
.page-smb   { --accent: #E85D2F; --accent-soft: rgba(232, 93, 47, 0.10); }
.page-psirt { --accent: #0D9488; --accent-soft: rgba(13, 148, 136, 0.10); }
.page-f4h   { --accent: #B45309; --accent-soft: rgba(180, 83, 9, 0.08); }
.page-gbr   { --accent: #9F1239; --accent-soft: rgba(159, 18, 57, 0.08); }
.page-tr   { --accent: #B07A1E; --accent-soft: rgba(176, 122, 30, 0.08); }

.page-gdpr .hero-eyebrow, .page-smb .hero-eyebrow, .page-psirt .hero-eyebrow,
.page-f4h .hero-eyebrow, .page-gbr .hero-eyebrow { color: var(--accent); }
.page-gdpr .tier-card.featured, .page-smb .tier-card.featured, .page-psirt .tier-card.featured,
.page-f4h .tier-card.featured, .page-gbr .tier-card.featured { border-color: var(--accent); }
.page-gdpr .tier-card ul li::before, .page-smb .tier-card ul li::before, .page-psirt .tier-card ul li::before,
.page-f4h .tier-card ul li::before, .page-gbr .tier-card ul li::before { color: var(--accent); }
