/* ============================================
   AgingAfter60 - Shared Stylesheet v3
   ============================================ */

:root {
  --navy: #1a2744;
  --teal: #2a7a6f;
  --teal-light: #3a9e90;
  --gold: #c8963e;
  --warm-white: #fff9f3;
  --gray-light: #f0ede8;
  --gray-mid: #9a9590;
  --gray-dark: #4a4540;
  --text: #2a2520;
  --border: #e0d8cf;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

/* TOP BAR */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 20px;
}

/* HEADER */
header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 0;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
  text-decoration: none;
  line-height: 1;
}
.logo span { color: var(--teal); }
.tagline {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 6px;
  margin-bottom: 20px;
}
nav {
  border-top: 1px solid var(--border);
  width: 100%;
  display: flex;
  justify-content: center;
}
nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-dark);
  text-decoration: none;
  padding: 14px 22px;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--teal); border-bottom-color: var(--teal); }
nav a.active { color: var(--navy); border-bottom-color: var(--gold); }

/* PAGE HERO */
.page-hero {
  background: var(--navy);
  padding: 50px 40px;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: white;
  margin-bottom: 12px;
}
.page-hero p {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto;
}

/* SECTION LABELS */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 8px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 8px;
}

/* MAIN WRAP */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
}

/* ARTICLE CARDS */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.article-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 14px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.card-img img:hover { transform: scale(1.03); }
.card-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
}
.card-title:hover { color: var(--teal); }
.card-excerpt {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  color: var(--gray-dark);
  line-height: 1.65;
  margin-bottom: 12px;
}
.card-meta {
  font-size: 12px;
  color: var(--gray-mid);
}
.card-meta .author { color: var(--teal); font-weight: 500; }

/* LIST ARTICLES */
.article-list-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.article-list-item:last-child { border-bottom: none; }
.list-img {
  width: 110px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
}
.list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.list-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}
.list-title:hover { color: var(--teal); }
.list-meta { font-size: 11px; color: var(--gray-mid); }

/* SIDEBAR */
.sidebar-widget { margin-bottom: 40px; }
.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.popular-item:last-child { border-bottom: none; }
.popular-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}
.popular-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  text-decoration: none;
  display: block;
}
.popular-title:hover { color: var(--teal); }
.popular-cat {
  font-size: 11px;
  color: var(--gray-mid);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tip-box {
  background: var(--gray-light);
  padding: 24px;
  margin-bottom: 40px;
}
.tip-box p {
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  color: var(--gray-dark);
  line-height: 1.7;
  margin-bottom: 8px;
}
.tip-box .source { font-size: 12px; color: var(--gray-mid); }

/* ARTICLE FULL PAGE */
.article-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
}
.article-header { margin-bottom: 32px; }
.article-header .category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}
.article-header .byline {
  font-size: 13px;
  color: var(--gray-mid);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-header .byline span { color: var(--teal); font-weight: 500; }
.article-hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  margin-bottom: 32px;
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  line-height: 1.85;
  color: var(--gray-dark);
}
.article-body p { margin-bottom: 24px; }
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--navy);
  margin: 36px 0 16px;
  line-height: 1.3;
}
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--navy);
  margin: 28px 0 12px;
}
.article-body blockquote {
  border-left: 4px solid var(--teal);
  padding: 16px 24px;
  background: var(--gray-light);
  margin: 28px 0;
  font-style: italic;
  color: var(--navy);
  font-size: 19px;
}
.article-body .lead {
  font-size: 21px;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 300;
}
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}
.article-body li { margin-bottom: 8px; }

/* DOCTOR BOX */
.doctor-box {
  background: linear-gradient(135deg, #f0f8f7, #e8f4f2);
  border-left: 4px solid var(--teal);
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.doctor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
}
.doctor-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 8px;
}
.doctor-name { font-size: 13px; font-weight: 500; color: var(--teal); }
.doctor-title { font-size: 12px; color: var(--gray-mid); }

/* BREADCRUMB */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px 0;
  font-size: 13px;
  color: var(--gray-mid);
}
.breadcrumb a { color: var(--teal); text-decoration: none; }

/* CONTENT PAGE (legal etc) */
.content-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 40px;
}
.content-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: var(--navy);
  margin-bottom: 8px;
}
.content-page .updated {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.content-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin: 36px 0 14px;
}
.content-page p {
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: var(--gray-dark);
  line-height: 1.8;
  margin-bottom: 18px;
}
.content-page a { color: var(--teal); }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: white;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--teal); }
.form-group textarea { height: 140px; resize: vertical; }
.btn-submit {
  background: var(--teal);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--navy); }

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 50px 40px 30px;
  margin-top: 60px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  text-decoration: none;
  display: block;
}
.footer-logo span { color: var(--teal-light); }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.footer-legal a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-left: 16px;
}
.footer-legal a:hover { color: white; }
.disclaimer {
  background: #131d36;
  padding: 20px 40px;
  text-align: center;
}
.disclaimer p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .main-wrap, .article-page, .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 30px 20px; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  header { padding: 0 20px; }
  .logo { font-size: 32px; }
  nav a { padding: 12px 10px; font-size: 11px; }
  .article-header h1 { font-size: 28px; }
  .content-page { padding: 30px 20px; }
  .breadcrumb { padding: 16px 20px 0; }
}
