/* ============================================================
   GSA Home Care — Main Stylesheet
   Design tokens → Reset → Typography → Layout → Components → Responsive
   ============================================================ */

/* ── 1. Design Tokens ────────────────────────────────────── */
:root {
  --navy:        #1B3A8C;
  --navy-dark:   #152e70;
  --orange:      #F05A28;
  --orange-dark: #d44e22;
  --white:       #FFFFFF;
  --text:        #1A1A1A;
  --text-light:  #4A4A4A;
  --bg-light:    #F4F6FB;
  --border:      #E0E4ED;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --container:   1200px;
  --pad:         1.5rem;
  --radius:      5px;
  --transition:  0.2s ease;
}

/* ── 2. Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 3. Typography ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 600; }

/* ── 4. Layout ───────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: 4rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

.bg-light { background: var(--bg-light); }
.bg-navy  { background: var(--navy); }

/* ── 5. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ── 6. Header & Navigation ──────────────────────────────── */
.top-bar {
  background: #7BA8E0;
  padding: 0.5rem var(--pad);
  order: 3;
}
.top-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.top-bar-phone {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}
.top-bar-phone:hover { color: rgba(255,255,255,0.85); }

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-bottom: 3px solid #7BA8E0;
  display: flex;
  flex-direction: column;
}

.header-inner { order: 1; }
.mobile-nav   { order: 2; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--pad);
  max-width: var(--container);
  margin: 0 auto;
}

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

.logo img {
  height: 72px;
  width: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  margin-left: 0.75rem;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--navy-dark);
  padding: 1rem var(--pad) 1.5rem;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active { color: var(--white); }

.mobile-nav .btn { margin-top: 1.25rem; width: 100%; justify-content: center; display: block; }

/* ── 7. Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-logo img { height: 72px; width: auto; margin-bottom: 1rem; }

.footer-logo p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 0.2rem 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-office {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-office strong { color: var(--white); display: block; margin-bottom: 0.2rem; }

.footer-email {
  text-align: center;
  padding: 0.75rem 0 1.25rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
}

.footer-email a {
  color: var(--orange);
  font-weight: 600;
}

.footer-email a:hover { text-decoration: underline; }

.footer-office a {
  display: block;
}

/* ── Home Care Guide ────────────────────────────────────── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0 3rem;
}

.guide-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.guide-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.guide-card-body { padding: 1.5rem; }

.guide-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.guide-card-body h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.guide-card-body h2 a { color: var(--navy); text-decoration: none; }
.guide-card-body h2 a:hover { color: var(--orange); }
.guide-card-body p { font-size: 0.92rem; color: #555; margin-bottom: 1rem; }

.guide-read-more {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.guide-read-more:hover { text-decoration: underline; }

/* ── Article Page ───────────────────────────────────────── */
.article-section { padding: 3rem 0 4rem; }

.article-wrap {
  max-width: 740px;
  margin: 0 auto;
}

.article-breadcrumb { margin-bottom: 1.5rem; }
.article-breadcrumb a { color: var(--orange); font-size: 0.9rem; text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }

.article-wrap h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--navy);
  margin: 0.75rem 0 0.5rem;
  line-height: 1.25;
}

.article-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 2rem;
}

.article-wrap h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.article-wrap p { margin-bottom: 1rem; line-height: 1.75; }

.article-wrap ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.article-wrap ul li { margin-bottom: 0.5rem; line-height: 1.7; }

.article-sources {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.82rem;
  color: #888;
}

.article-cta {
  background: #f0f4ff;
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
}

.article-cta h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.article-cta p { font-size: 0.9rem; margin-bottom: 1rem; }

/* ── Photo Collage ─────────────────────────────────────── */
.collage-section { padding: 3rem 0; }

.photo-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
}

.collage-cell { overflow: hidden; }

.collage-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.collage-cell img:hover { transform: scale(1.04); }

.collage-cell-navy {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-cell-navy span {
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
}

@media (max-width: 640px) {
  .photo-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 150px);
  }
}

/* ── Footer Social ──────────────────────────────────────── */
.footer-social {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.footer-social h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.social-icons a:hover { color: var(--orange); }

.social-icons svg { width: 28px; height: 28px; }

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 0;
}

/* ── 8. Hero ─────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240,90,40,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(240,90,40,0.15);
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(240,90,40,0.3);
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ── 9. Page Hero (inner pages) ──────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 3.5rem 0;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero strong { color: var(--white); }
.hero strong { color: var(--white); }

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

/* ── 10. Service Cards ───────────────────────────────────── */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(27,58,140,0.1);
  border-color: var(--navy);
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.service-card h3 { margin-bottom: 0.5rem; }

/* ── 11. Steps ───────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 { margin-bottom: 0.35rem; }

/* ── 12. Counties Grid ───────────────────────────────────── */
.counties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.county-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.county-item::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── 13. Payment / Payer List ────────────────────────────── */
.payer-list {
  display: grid;
  gap: 0.75rem;
}

.payer-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.payer-item::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

/* ── 14. Why GSA — Feature List ──────────────────────────── */
.features-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-check {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(240,90,40,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
}

.feature-item h3 { margin-bottom: 0.25rem; }

/* ── 15. Contact Blocks ──────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.contact-line {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-line-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  min-width: 70px;
  flex-shrink: 0;
}

.contact-line a { color: var(--orange); }
.contact-line a:hover { text-decoration: underline; }

/* ── 16. CTA Banner ──────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-banner p  { color: rgba(255,255,255,0.75); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── 17. Stat Bar ────────────────────────────────────────── */
.stat-bar {
  background: var(--orange);
  padding: 2rem 0;
}

.stat-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.stat-item span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

/* ── 18. Utilities ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ── 19. Image Layouts ───────────────────────────────────── */

/* Hero split: text left, image right */
.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-image {
  display: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Section split: content + image side by side */
.section-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.section-split img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.section-split.reverse .split-image { order: -1; }

/* Full-width intro image */
.intro-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  display: block;
}

/* ── 20. Responsive ──────────────────────────────────────── */
@media (min-width: 768px) {
  .hero-inner         { grid-template-columns: 1fr 1fr; }
  .hero-image         { display: block; }
  .section-split      { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .counties-grid   { grid-template-columns: repeat(3, 1fr); }
  .payer-list      { grid-template-columns: repeat(2, 1fr); }
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .contact-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .site-nav    { display: flex; }
  .hamburger   { display: none; }
  .mobile-nav  { display: none !important; }

  .steps       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .steps         { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
