/* ============================================
   St George Medicare — Style System
   Colors: Forest Green #2e7d32, Slate #455a64
   Fonts: Merriweather (headings), Lato (body)
   Senior-friendly: larger text, high contrast
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: 'Lato', sans-serif;
  color: #37474f;
  line-height: 1.8;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2e7d32; text-decoration: none; transition: color .2s; }
a:hover { color: #1b5e20; text-decoration: underline; }

h1, h2, h3, h4 { font-family: 'Merriweather', serif; color: #1b5e20; line-height: 1.35; font-weight: 700; }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.85rem; margin-bottom: .75rem; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Header --- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  border-bottom: 3px solid #2e7d32;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 42px;
  height: 42px;
  background: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1b5e20;
}
.logo-text span { color: #455a64; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #37474f;
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #455a64;
  font-weight: 600;
  font-size: .88rem;
  padding: 6px 0;
  transition: color .2s;
  text-decoration: none;
}
.main-nav a:hover { color: #2e7d32; text-decoration: none; }
.main-nav a.active { color: #2e7d32; }
.nav-cta {
  background: #2e7d32 !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 8px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #1b5e20 !important; }

/* --- Hero --- */
.hero {
  background: linear-gradient(170deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
  padding: 70px 0 80px;
}
.hero h1 { color: #1b5e20; }
.hero p { color: #37474f; font-size: 1.15rem; max-width: 600px; margin-bottom: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none !important;
  font-family: 'Lato', sans-serif;
}
.btn-primary { background: #2e7d32; color: #fff; }
.btn-primary:hover { background: #1b5e20; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(46,125,50,.25); }
.btn-outline { border: 2px solid #2e7d32; color: #2e7d32; background: transparent; }
.btn-outline:hover { background: #2e7d32; color: #fff; }
.btn-white { background: #fff; color: #2e7d32; }
.btn-white:hover { background: #e8f5e9; color: #1b5e20; }

/* --- Sections --- */
.section { padding: 70px 0; }
.section-alt { background: #f5f7f5; }
.section-green { background: #2e7d32; color: #fff; }
.section-green h2 { color: #fff; }
.section-green p { color: rgba(255,255,255,.88); }
.section-header { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-header p { color: #78909c; font-size: 1.05rem; }

/* --- Article Cards (homepage) --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: box-shadow .3s, transform .2s;
}
.article-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.07); transform: translateY(-3px); }
.article-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.article-card-body { padding: 24px; }
.article-card-category {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2e7d32;
  margin-bottom: 8px;
}
.article-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.article-card h3 a { color: #1b5e20; text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; }
.article-card p { font-size: .9rem; color: #607d8b; margin-bottom: 14px; }
.article-card .read-more {
  font-weight: 700;
  font-size: .88rem;
  color: #2e7d32;
  text-decoration: none;
}
.article-card .read-more:hover { text-decoration: underline; }

/* --- Content --- */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* --- Article Page --- */
.article-content { max-width: 760px; margin: 0 auto; }
.article-content h2 { margin-top: 2rem; font-size: 1.6rem; }
.article-content h3 { margin-top: 1.5rem; font-size: 1.25rem; }
.article-content p { font-size: 1rem; }
.article-content ul, .article-content ol { margin: 12px 0 16px 24px; color: #455a64; }
.article-content li { margin-bottom: 8px; }
.article-meta { color: #90a4ae; font-size: .85rem; margin-bottom: 28px; }
.article-meta span { margin-right: 16px; }

/* --- Forms --- */
.form-section { padding: 70px 0; }
.form-wrapper {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 44px 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  border: 1px solid #e0e0e0;
}
.form-wrapper h2 { text-align: center; margin-bottom: 6px; }
.form-subtitle { text-align: center; color: #78909c; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: #263238; font-size: .9rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #cfd8dc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #2e7d32; box-shadow: 0 0 0 3px rgba(46,125,50,.1); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .error-msg { color: #c62828; font-size: .8rem; margin-top: 4px; display: none; }
.form-group.has-error input,
.form-group.has-error select { border-color: #c62828; }
.form-group.has-error .error-msg { display: block; }

.form-consent { font-size: .82rem; color: #90a4ae; margin-bottom: 20px; display: flex; gap: 8px; align-items: flex-start; }
.form-consent input[type="checkbox"] { margin-top: 3px; accent-color: #2e7d32; }

.btn-submit { width: 100%; padding: 16px; font-size: 1.05rem; border-radius: 10px; }
.form-success, .form-error { display: none; padding: 16px; border-radius: 10px; margin-top: 16px; font-weight: 600; text-align: center; font-size: .92rem; }
.form-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.form-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* --- Medicare Disclosure --- */
.medicare-disclosure {
  background: #f5f5f5;
  padding: 40px 0;
  text-align: center;
  font-size: .82rem;
  color: #78909c;
  line-height: 1.7;
}
.medicare-disclosure p { max-width: 800px; margin: 0 auto 8px; }
.medicare-disclosure strong { color: #455a64; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.cta-banner p { font-size: 1.05rem; max-width: 520px; margin: 0 auto 24px; opacity: .9; }

/* --- Footer --- */
.site-footer {
  background: #263238;
  color: rgba(255,255,255,.6);
  padding: 50px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-about .logo-text { color: #fff; font-size: 1.1rem; }
.footer-about p { font-size: .85rem; margin-top: 10px; }
.footer-links h4, .footer-contact h4 { color: #a5d6a7; font-size: .88rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; font-family: 'Lato', sans-serif; font-weight: 700; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .85rem; text-decoration: none; }
.footer-links a:hover { color: #a5d6a7; }
.footer-contact p { font-size: .85rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.footer-contact i { color: #a5d6a7; width: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; display: flex; justify-content: space-between; font-size: .8rem; }
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: #a5d6a7; }
.footer-legal { display: flex; gap: 20px; }

/* --- Responsive --- */
@media (max-width: 968px) {
  .article-grid { grid-template-columns: 1fr; }
  .content-split { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; top: 0; right: -100%; width: 270px; height: 100vh; background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.08); transition: right .3s; z-index: 200; padding: 70px 28px 28px; }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid #eceff1; }
  .main-nav a { display: block; padding: 14px 0; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 150; }
  .nav-overlay.active { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrapper { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section { padding: 45px 0; }
}
