/*
Theme Name: Sovereignty Group Insurance
Theme URI: https://example.com/
Author: Sovereignty Group
Description: Insurance-focused therapy practice theme for Los Angeles and online therapy throughout California.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: sovereignty-group
License: GPL-2.0-or-later
*/

:root {
  --sg-purple: #2d2141;
  --sg-purple-light: #4a3568;
  --sg-gold: #c7a34b;
  --sg-cream: #f7f3eb;
  --sg-white: #ffffff;
  --sg-ink: #27232d;
  --sg-muted: #68616f;
  --sg-width: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sg-ink);
  background: var(--sg-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
a { color: #563d78; }
a:hover { color: var(--sg-purple); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #ece7f0;
}
.header-inner, .site-main, .footer-inner {
  width: min(calc(100% - 36px), var(--sg-width));
  margin-inline: auto;
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding a {
  color: var(--sg-purple);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}
.site-tagline {
  color: var(--sg-muted);
  font-size: .82rem;
  margin: 0;
}
.primary-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-menu a {
  color: var(--sg-ink);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
}
.primary-menu a:hover { color: var(--sg-purple-light); }
.site-main { padding: 48px 0 72px; }
.entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .wp-block-columns,
.entry-content > .sg-hero,
.entry-content > .wp-block-group { max-width: var(--sg-width); }
h1,h2,h3 {
  color: var(--sg-purple);
  line-height: 1.18;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); margin: .2em 0 .45em; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.45rem); margin-top: 2.2em; }
h3 { font-size: 1.3rem; }
.sg-hero {
  background: linear-gradient(135deg, var(--sg-purple), var(--sg-purple-light));
  color: white;
  padding: clamp(42px, 8vw, 92px) clamp(24px, 6vw, 72px);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(45,33,65,.18);
  margin-bottom: 56px;
}
.sg-hero h1, .sg-hero p { color: white; }
.sg-lead { font-size: clamp(1.15rem, 2.2vw, 1.42rem); line-height: 1.65; }
.wp-block-columns { gap: 24px; }
.wp-block-column {
  background: var(--sg-cream);
  border-radius: 20px;
  padding: 26px;
}
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.wp-block-button__link {
  display: inline-block;
  border-radius: 999px;
  background: var(--sg-gold);
  color: #211727 !important;
  font-weight: 800;
  text-decoration: none;
  padding: 13px 22px;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--sg-purple) !important;
  border: 2px solid var(--sg-gold);
}
.sg-hero .wp-block-button.is-style-outline .wp-block-button__link { color: white !important; }
.site-footer {
  background: var(--sg-purple);
  color: white;
  padding: 46px 0;
}
.footer-inner { display: grid; gap: 12px; }
.site-footer a { color: white; }
.footer-small { opacity: .8; font-size: .88rem; }
.mobile-menu-toggle { display: none; }
@media (max-width: 820px) {
  .header-inner { align-items: flex-start; padding: 18px 0; flex-direction: column; }
  .primary-menu { gap: 12px 16px; }
  .site-main { padding-top: 28px; }
}

/* Version 2: built-in insurance-focused homepage */
.sg-home { width: min(calc(100% - 36px), var(--sg-width)); margin-inline: auto; }
.sg-home .sg-hero { max-width: none; }
.sg-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: #f0d98f; margin-bottom: 12px; }
.sg-eyebrow-dark { color: #7b5f1f; }
.sg-actions, .sg-centered-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 28px; }
.sg-button { display: inline-block; border-radius: 999px; background: var(--sg-gold); color: #211727 !important; font-weight: 800; text-decoration: none; padding: 14px 23px; box-shadow: 0 6px 18px rgba(45,33,65,.12); }
.sg-button:hover { transform: translateY(-1px); }
.sg-button-outline-light { background: transparent; border: 2px solid rgba(255,255,255,.75); color: white !important; box-shadow: none; }
.sg-section { padding: 62px 0; }
.sg-section + .sg-section { border-top: 1px solid #ece7f0; }
.sg-section-heading { max-width: 780px; margin-bottom: 30px; }
.sg-section-heading h2, .sg-split h2 { margin: 0 0 14px; }
.sg-section-heading p { color: var(--sg-muted); }
.sg-insurance { background: var(--sg-cream); margin-inline: calc(50% - 50vw); padding-inline: max(18px, calc((100vw - var(--sg-width))/2)); }
.sg-insurance-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.sg-insurance-card { min-height: 132px; display: flex; flex-direction: column; justify-content: center; background: white; border: 1px solid #e5dce9; border-radius: 18px; padding: 20px; text-align: center; box-shadow: 0 8px 24px rgba(45,33,65,.06); }
.sg-insurance-card strong { color: var(--sg-purple); font-size: 1.05rem; line-height: 1.25; }
.sg-insurance-card span { color: var(--sg-muted); font-size: .82rem; margin-top: 8px; }
.sg-centered-actions { justify-content: center; margin-top: 30px; }
.sg-text-link { font-weight: 750; text-decoration: none; }
.sg-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.sg-service-card { border: 1px solid #e9e2ec; border-radius: 20px; padding: 28px; box-shadow: 0 8px 25px rgba(45,33,65,.05); }
.sg-service-card h3 { margin-top: 0; }
.sg-service-card a { font-weight: 750; text-decoration: none; }
.sg-split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: center; }
.sg-contact-panel { background: var(--sg-purple); color: white; padding: 32px; border-radius: 22px; display: grid; gap: 13px; }
.sg-contact-panel h3 { color: white; margin: 0; }
.sg-contact-panel p { margin: 0 0 8px; }
.sg-contact-panel a:not(.sg-button) { color: white; }
.sg-disclaimer { color: var(--sg-muted); font-size: .9rem; padding-top: 28px; }
.header-insurance-link > a { background: var(--sg-gold); color: #211727 !important; padding: 9px 14px; border-radius: 999px; }
@media (max-width: 980px) { .sg-insurance-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) { .sg-service-grid, .sg-split { grid-template-columns: 1fr; } .sg-section { padding: 44px 0; } }
@media (max-width: 480px) { .sg-insurance-grid { grid-template-columns: 1fr; } .sg-actions .sg-button, .sg-centered-actions .sg-button { width: 100%; text-align: center; } }
