/*
Theme Name: Guided Brokerage
Theme URI: https://guidedbrokerage.com/
Author: Guided Brokerage
Description: Senior-friendly brokerage theme for editable service pages, resources, and articles.
Version: 1.6.0
Text Domain: guided-brokerage
*/

:root {
  --navy: #173b43;
  --navy-deep: #0e2e35;
  --teal: #42c3c8;
  --teal-dark: #1d8f98;
  --gold: #d4aa58;
  --gold-light: #ead59e;
  --cream: #f6f2e9;
  --sage: #dfe8df;
  --white: #fffdf8;
  --ink: #173239;
  --muted: #536467;
  --line: #d7dfdc;
  --shadow: 0 20px 55px rgba(14, 46, 53, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
a { color: var(--navy); text-underline-offset: 4px; }
a:hover, a:focus { color: var(--gold); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.gb-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 16px 6vw;
  background: var(--gold);
  color: var(--ink);
  font-size: 16px;
}
.gb-ribbon__left, .gb-ribbon__right { display: flex; align-items: center; gap: 18px; }
.gb-ribbon__badge { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(23,50,57,.35); border-radius: 50%; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.gb-ribbon a { color: var(--ink); font-weight: 700; text-decoration: none; }
.gb-ribbon__right { white-space: nowrap; }

.gb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 22px 5vw;
  background: rgba(23, 59, 67, 0.98);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.gb-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 220px; color: var(--gold); line-height: 1; text-decoration: none; white-space: nowrap; }
.gb-brand:hover, .gb-brand:focus { color: var(--gold-light); }
.gb-brand__mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--gold); border-radius: 50%; color: var(--gold); font: italic 28px Georgia, serif; }
.gb-brand strong { display: block; font: 600 15px Arial, Helvetica, sans-serif; letter-spacing: .2em; line-height: 1; }
.gb-brand small { display: block; margin-top: 6px; color: var(--gold); font-size: 9px; letter-spacing: .2em; }
.gb-menu-toggle, .gb-nav__toggle { display: none; }
.gb-nav { display: flex; align-items: center; flex: 1; gap: 5px; flex-wrap: wrap; }
.gb-nav__item { position: relative; }
.gb-nav__item > a { display: block; padding: 12px 10px; color: var(--gold-light); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gb-nav__item:first-child > a { color: var(--white); }
.gb-nav__item > a:hover, .gb-nav__item > a:focus { color: var(--white); }
.gb-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  display: block;
  min-width: 250px;
  padding: 12px 0;
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.gb-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.gb-dropdown a { display: block; padding: 12px 20px; color: var(--white); font-size: 15px; font-weight: 700; text-decoration: none; }
.gb-dropdown a:hover, .gb-dropdown a:focus { background: rgba(212,170,88,.12); color: var(--gold-light); }
.gb-nav__item:hover .gb-dropdown, .gb-nav__item:focus-within .gb-dropdown, .gb-nav__item.is-open .gb-dropdown { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.gb-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: grid;
  align-items: end;
  padding: 80px max(24px, 8vw);
  background-image: linear-gradient(90deg, rgba(7,31,37,.97), rgba(7,31,37,.72)), url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=2200&q=88');
  background-position: center 42%;
  background-size: cover;
  color: var(--white);
}
.gb-page-hero__inner { max-width: 900px; }
.gb-eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 14px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.gb-page-hero h1 { margin: 0; max-width: 900px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 74px); line-height: 1.06; }
.gb-page-hero p { max-width: 760px; margin: 22px 0 0; color: #dceceb; font-size: 21px; }

.gb-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 76px 0 96px; }
.gb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.gb-content, .gb-sidebar-card, .gb-post-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.gb-content { padding: clamp(30px, 5vw, 62px); }
.gb-content h2, .gb-content h3 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.22; }
.gb-content h2 { margin-top: 1.5em; font-size: clamp(30px, 4vw, 43px); }
.gb-content h2:first-child { margin-top: 0; }
.gb-content h3 { font-size: 27px; }
.gb-content p, .gb-content li { color: #36575d; }
.gb-content li { margin-bottom: 8px; }
.gb-content blockquote { margin: 30px 0; padding: 22px 26px; border-left: 5px solid var(--gold); background: var(--cream); }
.gb-sidebar { position: sticky; top: 120px; display: grid; gap: 22px; }
.gb-sidebar-card { padding: 26px; }
.gb-sidebar-card h2 { margin: 0 0 14px; color: var(--navy); font-family: Georgia, serif; font-size: 25px; }
.gb-sidebar-card a:not(.gb-button) { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 700; text-decoration: none; }
.gb-sidebar-card a:not(.gb-button):last-child { border-bottom: 0; }
.gb-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border-radius: 9px; background: var(--gold); color: var(--navy-deep); font-weight: 850; text-decoration: none; }
.gb-button:hover, .gb-button:focus { background: #efc36f; color: var(--navy-deep); }
.gb-button--teal { background: var(--teal); }
.gb-cta-stack { display: grid; gap: 12px; }

.gb-posts { display: grid; gap: 24px; }
.gb-post-card { padding: 30px; }
.gb-post-card h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 31px; line-height: 1.2; }
.gb-post-card h2 a { color: var(--navy); text-decoration: none; }
.gb-meta { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.gb-pagination { margin-top: 30px; }

.gb-long-page { background: var(--cream); }
.gb-section-nav {
  position: sticky;
  top: 89px;
  z-index: 35;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 5vw;
  background: rgba(14,46,53,.98);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.gb-section-nav a { padding: 8px 12px; color: var(--gold-light); font-size: 14px; font-weight: 700; text-decoration: none; }
.gb-section-nav a:hover, .gb-section-nav a:focus { color: var(--white); }
.gb-topic-intro, .gb-topic-section { scroll-margin-top: 150px; padding: 90px max(24px, 8vw); }
.gb-topic-intro { background: var(--cream); }
.gb-topic-section:nth-of-type(even) { background: var(--sage); }
.gb-topic-section:nth-of-type(odd) { background: var(--cream); }
.gb-topic-inner { width: min(100%, 1120px); margin: 0 auto; }
.gb-topic-inner > h2 { margin: 12px 0 28px; color: var(--navy); font-size: clamp(38px, 5vw, 66px); line-height: 1.05; letter-spacing: -.025em; }
.gb-topic-copy { color: var(--ink); font-size: 18px; }
.gb-topic-copy h2 { color: var(--navy); font-size: clamp(30px, 4vw, 48px); }
.gb-topic-copy > h2:first-child { display: none; }
.gb-topic-copy h3 { color: var(--navy); font-size: 28px; }
.gb-topic-copy p, .gb-topic-copy li { color: var(--muted); }
.gb-topic-copy > p:first-child { max-width: 960px; color: var(--ink); font-size: 21px; }
.gb-topic-copy h3 { margin-top: 38px; }
.gb-topic-copy ul, .gb-topic-copy ol { max-width: 920px; padding-left: 26px; }
.gb-topic-copy blockquote { max-width: 940px; margin: 34px 0; padding: 24px 28px; border-left: 5px solid var(--gold); background: rgba(255,253,248,.72); color: var(--ink); }
.gb-topic-copy blockquote strong { color: var(--navy); }
.gb-topic-copy .gb-source-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.gb-topic-copy .gb-source-note a { font-weight: 700; }
.gb-topic-copy .gb-button { margin-top: 10px; }
.gb-medicare-accordion { display: grid; gap: 16px; margin: 34px 0; }
.gb-medicare-accordion details { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 10px 28px rgba(14,46,53,.08); }
.gb-medicare-accordion summary { position: relative; display: flex; align-items: center; min-height: 86px; padding: 20px 66px 20px 24px; color: var(--navy); cursor: pointer; list-style: none; }
.gb-medicare-accordion summary::-webkit-details-marker { display: none; }
.gb-medicare-accordion summary::after { content: "+"; position: absolute; right: 24px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; transform: translateY(-50%); border-radius: 50%; background: var(--cream); color: var(--navy); font-size: 28px; font-weight: 400; line-height: 1; }
.gb-medicare-accordion details[open] summary::after { content: "\2212"; }
.gb-medicare-accordion summary:hover, .gb-medicare-accordion summary:focus-visible { background: #f9f6ee; }
.gb-medicare-accordion summary strong { display: block; font: 700 25px/1.2 Georgia, "Times New Roman", serif; }
.gb-medicare-accordion summary small { display: block; margin-top: 5px; color: var(--muted); font-size: 15px; font-weight: 600; }
.gb-accordion-body { padding: 4px 28px 30px; border-top: 1px solid var(--line); }
.gb-accordion-body h3 { font-size: 24px; }
.gb-answer-box { margin: 25px 0; padding: 20px 22px; border-left: 5px solid var(--teal-dark); background: var(--sage); }
.gb-answer-box strong { color: var(--navy); font-size: 20px; }
.gb-answer-box p { margin: 6px 0 0; color: var(--ink); }
.gb-table-scroll { overflow-x: auto; margin: 22px 0 10px; border: 1px solid var(--line); border-radius: 12px; }
.gb-medigap-chart { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--white); }
.gb-medigap-chart th, .gb-medigap-chart td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gb-medigap-chart thead th { background: var(--navy); color: var(--white); }
.gb-medigap-chart tbody th { width: 84px; color: var(--navy); font-size: 20px; }
.gb-medigap-chart tr:last-child th, .gb-medigap-chart tr:last-child td { border-bottom: 0; }
.gb-table-note { margin-top: 10px; font-size: 14px; }
.gb-resources-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 30px; }
.gb-resource-card { display: block; padding: 30px; border-top: 4px solid var(--gold); background: var(--cream); color: var(--ink); text-decoration: none; }
.gb-resource-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 28px; }
.gb-resource-card p { margin: 0; color: var(--muted); }

.gb-footer { padding: 64px max(24px, 6vw) 26px; background: var(--navy-deep); color: #c6d8d6; }
.gb-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 44px; }
.gb-footer h3 { margin: 0 0 16px; color: var(--white); font-family: Georgia, serif; font-size: 22px; }
.gb-footer a { display: block; margin: 8px 0; color: #d6e6e4; text-decoration: none; }
.gb-footer a:hover, .gb-footer a:focus { color: var(--gold); }
.gb-disclaimer { margin-top: 48px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); font-size: 14px; line-height: 1.6; }
.gb-footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

.gb-booking-page { padding: 64px max(18px, 4vw) 90px; background: var(--cream); }
.gb-booking-wrap { width: min(1380px, 100%); margin: 0 auto; }
.gb-booking-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 24px; padding: 20px 22px; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.gb-booking-help strong, .gb-booking-help span { display: block; }
.gb-booking-help strong { color: var(--navy); font: 700 22px/1.25 Georgia, "Times New Roman", serif; }
.gb-booking-help span { margin-top: 4px; color: var(--muted); font-size: 16px; }
.gb-booking-help .gb-button { flex: 0 0 auto; white-space: nowrap; }
.gb-booking-frame { width: 100%; min-height: 1350px; border: 0; border-radius: 18px; background: var(--cream); box-shadow: var(--shadow); }
.gb-booking-fallback { margin: 22px 0 0; color: var(--muted); text-align: center; }
.gb-booking-fallback a { color: var(--navy); font-weight: 800; }

.gb-locations-page { background: var(--cream); }
.gb-locations-intro { padding: 76px max(24px, 8vw); background: var(--cream); }
.gb-locations-intro__inner { width: min(1120px, 100%); margin: 0 auto; }
.gb-locations-intro h2 { margin: 0 0 20px; color: var(--navy); font-size: clamp(36px, 5vw, 62px); line-height: 1.06; }
.gb-locations-intro p { max-width: 900px; color: var(--muted); font-size: 20px; }
.gb-statewide-note { margin-top: 30px; padding: 24px 28px; border-left: 5px solid var(--gold); background: var(--white); box-shadow: var(--shadow); }
.gb-county-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 90px; }
.gb-county-card { padding: 30px; border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }
.gb-county-card h2 { margin: 0 0 16px; color: var(--navy); font-size: 30px; }
.gb-city-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.gb-city-list li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 15px; }
.gb-locations-cta { padding: 72px max(24px, 8vw); background: var(--sage); text-align: center; }
.gb-locations-cta h2 { margin: 0 0 12px; color: var(--navy); font-size: clamp(34px, 5vw, 54px); }
.gb-locations-cta p { max-width: 780px; margin: 0 auto 25px; color: var(--muted); }

@media (max-width: 1120px) {
  .gb-header { align-items: flex-start; flex-direction: column; gap: 8px; position: relative; }
  .gb-nav { justify-content: flex-start; flex-wrap: wrap; }
  .gb-nav__item > a { padding: 9px 8px; }
}
@media (max-width: 820px) {
  body { font-size: 17px; }
  .gb-ribbon { align-items: stretch; flex-direction: column; gap: 10px; padding: 13px 20px; }
  .gb-ribbon__left { align-items: flex-start; gap: 12px; line-height: 1.4; }
  .gb-ribbon__badge { flex: 0 0 34px; width: 34px; height: 34px; }
  .gb-ribbon__right { justify-content: space-between; padding-left: 46px; }
  .gb-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 20px; }
  .gb-brand { min-width: 0; }
  .gb-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 13px; border: 1px solid rgba(234,213,158,.55); border-radius: 9px; background: transparent; color: var(--gold-light); font: 700 15px Arial, Helvetica, sans-serif; }
  .gb-menu-toggle__icon, .gb-menu-toggle__icon::before, .gb-menu-toggle__icon::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
  .gb-menu-toggle__icon { position: relative; }
  .gb-menu-toggle__icon::before, .gb-menu-toggle__icon::after { content: ''; position: absolute; left: 0; }
  .gb-menu-toggle__icon::before { top: -6px; }
  .gb-menu-toggle__icon::after { top: 6px; }
  .gb-header.is-menu-open .gb-menu-toggle__icon { background: transparent; }
  .gb-header.is-menu-open .gb-menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
  .gb-header.is-menu-open .gb-menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }
  .gb-nav { display: none; grid-column: 1 / -1; width: 100%; margin-top: 2px; border-top: 1px solid rgba(255,255,255,.11); }
  .gb-header.is-menu-open .gb-nav { display: block; }
  .gb-nav__item { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
  .gb-nav__item.has-dropdown { grid-template-columns: minmax(0, 1fr) 46px; }
  .gb-nav__item > a { min-height: 48px; padding: 13px 4px; white-space: normal; }
  .gb-nav__toggle { display: grid; place-items: center; align-self: stretch; width: 46px; padding: 0; border: 0; border-left: 1px solid rgba(255,255,255,.09); background: transparent; color: var(--gold-light); }
  .gb-nav__toggle span { position: relative; display: block; width: 13px; height: 13px; }
  .gb-nav__toggle span::before, .gb-nav__toggle span::after { content: ''; position: absolute; top: 6px; left: 0; width: 13px; height: 2px; background: currentColor; transition: transform .16s ease; }
  .gb-nav__toggle span::after { transform: rotate(90deg); }
  .gb-nav__item.is-open .gb-nav__toggle span::after { transform: rotate(0); }
  .gb-dropdown { grid-column: 1 / -1; position: static; display: none; width: 100%; min-width: 0; margin: 0 0 8px; padding: 3px 0 5px 12px; border: 0; border-left: 2px solid rgba(212,170,88,.55); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: none; }
  .gb-nav__item.is-open .gb-dropdown { display: block; }
  .gb-dropdown::before { display: none; }
  .gb-dropdown a { padding: 11px 14px; font-size: 15px; font-weight: 650; }
  .gb-section-nav { position: static; justify-content: flex-start; }
  .gb-layout { grid-template-columns: 1fr; }
  .gb-sidebar { position: static; }
  .gb-resources-grid { grid-template-columns: 1fr; }
  .gb-footer-grid { grid-template-columns: 1fr 1fr; }
  .gb-county-grid { grid-template-columns: 1fr; }
  .gb-booking-help { align-items: stretch; flex-direction: column; }
  .gb-booking-help .gb-button { width: 100%; white-space: normal; text-align: center; }
}
@media (max-width: 520px) {
  .gb-shell { width: min(100% - 30px, 1180px); }
  .gb-page-hero { min-height: 330px; padding: 58px 22px; }
  .gb-page-hero h1 { font-size: 42px; }
  .gb-content { padding: 28px 22px; }
  .gb-footer-grid { grid-template-columns: 1fr; }
  .gb-footer-bottom { flex-direction: column; }
  .gb-booking-page { padding: 18px 0 48px; }
  .gb-booking-frame { min-height: 1450px; border-radius: 0; box-shadow: none; }
  .gb-booking-help { margin: 0 15px 18px; padding: 18px; }
  .gb-medicare-accordion summary { min-height: 78px; padding: 17px 58px 17px 18px; }
  .gb-medicare-accordion summary::after { right: 16px; }
  .gb-medicare-accordion summary strong { font-size: 21px; }
  .gb-accordion-body { padding: 2px 18px 24px; }
  .gb-county-grid { width: min(100% - 28px, 1220px); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
