/* ============================================
   MYERS INSURANCE GROUP — STYLE.CSS
   Apple.com inspired — black / white / grey
   Zero gold. Zero color. Pure signal.
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1d1d1f;
  background: #ffffff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── VARIABLES ── */
:root {
  --black:       #1d1d1f;
  --charcoal:    #333336;
  --mid:         #6e6e73;
  --subtle:      #86868b;
  --border:      #d2d2d7;
  --border-light:#e8e8ed;
  --surface:     #f5f5f7;
  --surface-alt: #fbfbfd;
  --white:       #ffffff;
  --text:        #1d1d1f;
  --text-secondary: #3d3d3f;
  --text-muted:  #86868b;

  /* Legacy aliases — map to black/grey */
  --navy:        #1d1d1f;
  --navy-dark:   #000000;
  --gold:        #1d1d1f;
  --gold-light:  #3d3d3f;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow:    0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);

  --max-width: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-padding: clamp(64px, 8vw, 120px);
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* ── ATTITUDE BAR ── */
.attitude-bar {
  background: var(--black);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 9px var(--gutter);
  font-size: 11px;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

.attitude-bar .attitude-line-1 {
  color: rgba(255,255,255,0.38);
  font-size: 10px;
  margin-bottom: 2px;
}

.attitude-bar .attitude-line-2 {
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
}

/* ── NAVIGATION ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 48px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }

.logo-img { height: 28px; width: auto; display: block; }
.logo-img-sm { height: 24px; }

.nav-logo-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.3px;
  margin-left: 8px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links li a {
  font-size: 12px;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-links li a:hover { color: var(--black); }

.nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 7px 16px !important;
  border-radius: 980px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.75 !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--black);
  padding: 4px;
}

/* ── BUTTONS ── */
.btn-primary,
.btn-gold,
.btn-navy,
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  border: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover,
.btn-gold:hover,
.btn-navy:hover,
.btn-dark:hover { opacity: 0.75; }

.btn-outline,
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--black);
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-dark:hover,
.btn-outline:hover { border-color: var(--black); }

/* White outline variant for dark backgrounds */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

.btn-full { width: 100%; }

/* ── SECTION LABELS / HEADLINES ── */
.hero-eyebrow,
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 14px;
  display: block;
}

.brand-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--subtle);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 980px;
  margin-bottom: 20px;
}

.section-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--black);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17px;
  color: var(--mid);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--black);
  padding: clamp(64px, 8vw, 100px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .hero-eyebrow { color: rgba(255,255,255,0.45); }

.page-hero-headline {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.06;
  margin-bottom: 20px;
}

.page-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.45);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── COVERAGE GRID ── */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}

.coverage-card {
  background: var(--white);
  padding: 32px 28px;
  border-right: 0.5px solid var(--border-light);
  border-bottom: 0.5px solid var(--border-light);
  transition: background 0.2s;
}

.coverage-card:hover { background: var(--surface); }
.coverage-card:nth-child(3n) { border-right: none; }
.coverage-card:nth-last-child(-n+3) { border-bottom: none; }

.coverage-card-icon {
  font-size: 24px;
  color: var(--charcoal);
  margin-bottom: 14px;
  display: block;
}

.coverage-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.coverage-card-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
}

/* ── TWO COL ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.two-col-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--surface);
  border: 0.5px solid var(--border-light);
  border-left: 2px solid var(--charcoal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-bottom: 12px;
}

.highlight-box:last-child { margin-bottom: 0; }

.highlight-box-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.highlight-box-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.highlight-box-body strong { color: var(--black); font-weight: 600; }

/* ── BIZ CATEGORY GRID ── */
.biz-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}

.biz-category {
  background: var(--white);
  padding: 28px 24px;
  border-right: 0.5px solid var(--border-light);
  border-bottom: 0.5px solid var(--border-light);
  transition: background 0.2s;
}

.biz-category:hover { background: var(--surface); }
.biz-category:nth-child(3n) { border-right: none; }
.biz-category:nth-last-child(-n+3) { border-bottom: none; }

.biz-category-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.biz-category-title i { color: var(--charcoal); font-size: 15px; }

.biz-list li {
  font-size: 12px;
  color: var(--mid);
  padding: 5px 0;
  border-bottom: 0.5px solid var(--border-light);
  line-height: 1.5;
}

.biz-list li:last-child { border-bottom: none; }

/* ── SPECTRUM CARDS ── */
.spectrum-cards,
#spectrumCards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 0.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-card {
  background: var(--white);
  padding: 28px 22px;
  border-right: 0.5px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s;
}

.spec-card:last-child { border-right: none; }
.spec-card:hover:not(.active) { background: var(--surface); }

.spec-card.active { background: var(--black); }

.spec-card-icon {
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 14px;
  display: block;
}

.spec-card.active .spec-card-icon { color: rgba(255,255,255,0.6); }

.spec-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.1px;
  line-height: 1.4;
}

.spec-card.active .spec-card-title { color: var(--white); }

.spec-card-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.65;
  display: none;
}

.spec-card.active .spec-card-desc {
  display: block;
  color: rgba(255,255,255,0.55);
}

/* ── FOOTER CTA ── */
.footer-cta {
  background: var(--black);
  padding: var(--section-padding) 0;
  text-align: center;
}

.footer-cta-inner { position: relative; z-index: 1; }

.footer-cta-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1.06;
  margin-bottom: 14px;
}

.footer-cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.footer-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* On dark backgrounds override outline to white */
.footer-cta .btn-outline,
.footer-cta .btn-outline-dark {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.footer-cta .btn-outline:hover,
.footer-cta .btn-outline-dark:hover {
  border-color: rgba(255,255,255,0.7);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  border-top: 0.5px solid rgba(255,255,255,0.08);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.footer-nav a:hover { color: rgba(255,255,255,0.75); }

.footer-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  flex-wrap: wrap;
}

.footer-meta span::after {
  content: '·';
  margin-left: 16px;
  opacity: 0.3;
}

.footer-meta span:last-child::after { display: none; }

/* ── FADE-IN ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.08s; }
.fade-up-delay-2 { transition-delay: 0.16s; }
.fade-up-delay-3 { transition-delay: 0.24s; }
.fade-up-delay-4 { transition-delay: 0.32s; }

/* ── TAGS ── */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--surface);
  border: 0.5px solid var(--border-light);
  border-radius: 980px;
  padding: 4px 12px;
}

/* ── FORM ELEMENTS ── */
.field-group { margin-bottom: 18px; }

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field-input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(29,29,31,0.06);
}

.field-textarea { resize: vertical; min-height: 120px; }
.required { color: var(--subtle); }

.submit-btn {
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 980px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 400;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}

.submit-btn:hover { opacity: 0.75; }

.form-disclaimer {
  font-size: 11px;
  color: var(--subtle);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

.form-success { text-align: center; padding: 48px 32px; }

.success-icon {
  font-size: 40px;
  color: var(--charcoal);
  display: block;
  margin-bottom: 14px;
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.success-sub {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
}

/* ── SIDEBAR ── */
.sidebar-card {
  background: var(--white);
  border: 0.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 14px;
}

.sidebar-card-dark {
  background: var(--black);
  border-color: transparent;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.sidebar-title-light {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.sidebar-sub-light {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
}

.sidebar-steps { list-style: none; }

.sidebar-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sidebar-steps li:last-child { border-bottom: none; }

.sidebar-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── MISC UTILITY ── */
.navy, .dark-navy, .black-bg { background: var(--black); }
.white-bg { background: var(--white); }
.surface-bg { background: var(--surface); }
.text-white { color: var(--white); }
.text-mid { color: var(--mid); }
.text-center { text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-card:nth-child(3n) { border-right: 0.5px solid var(--border-light); }
  .coverage-card:nth-child(2n) { border-right: none; }
  .biz-category-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-category:nth-child(3n) { border-right: 0.5px solid var(--border-light); }
  .biz-category:nth-child(2n) { border-right: none; }
  .spectrum-cards, #spectrumCards { grid-template-columns: repeat(2, 1fr); }
  .spec-card:nth-child(2n) { border-right: none; }
  .spec-card { border-bottom: 0.5px solid var(--border-light); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }

  .nav-links.open li a { font-size: 20px; font-weight: 500; color: var(--black); }

  .nav-links.open .nav-cta {
    background: var(--black) !important;
    color: var(--white) !important;
    padding: 12px 28px !important;
    font-size: 17px !important;
    border-radius: 980px !important;
  }

  .coverage-grid { grid-template-columns: 1fr; }
  .coverage-card { border-right: none !important; }
  .biz-category-grid { grid-template-columns: 1fr; }
  .biz-category { border-right: none !important; }
  .spectrum-cards, #spectrumCards { grid-template-columns: 1fr; }
  .spec-card { border-right: none !important; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-ctas, .footer-cta-btns { flex-direction: column; align-items: center; }
}
