/* ============================================================
   Second Opinion by Elmer Dy Tang — shared stylesheet
   Deployed via Cloudflare Pages to elmerdytang.com
   Brand: navy #0B1F3B · gold #C9A84C · white #F7F9FB
   Fonts: Playfair Display (headlines/numbers) · DM Sans (body/UI)
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #3A5068;
  background: #F7F9FB;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* === COLORS === */
:root {
  --navy: #0B1F3B;
  --navy-deep: #060F1C;
  --navy-mid: #0F2848;
  --navy-light: #1B3A5C;
  --gold: #C9A84C;
  --gold-light: #E8D08A;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --white: #F7F9FB;
  --cream: #F0F4F8;
  --border: #D4DCE8;
  --text: #3A5068;
  --text-muted: #7A8FA6;
  --text-dark: #0B1F3B;
}

/* === TYPE === */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin-bottom: 1.2rem; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--text); }
em { color: var(--gold); font-style: italic; }
strong { color: var(--text-dark); }

/* === LAYOUT === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-narrow { max-width: 760px; margin: 0 auto; }

/* === NAVBAR === */
.nav {
  background: var(--navy);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.nav-logo { width: 36px; height: 36px; border-radius: 50%; }
.nav-brand-text { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; color: var(--white); }
.nav-brand-sub { font-size: 9px; letter-spacing: 2.5px; color: var(--gold); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link { color: rgba(247, 249, 251, 0.7); font-size: 0.95rem; font-weight: 500; }
.nav-link:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav-links { gap: 12px; }
  .nav-link:not(.nav-cta) { display: none; }
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(201, 168, 76, 0.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content h1 em { color: var(--gold-light); }
.hero-sub { font-size: 1.15rem; color: rgba(247, 249, 251, 0.78); line-height: 1.6; margin-bottom: 32px; }
.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 16px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: all 0.15s ease;
  letter-spacing: 0.2px;
  min-height: 48px;
  line-height: 1.2;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 16px 32px;
  border-radius: 4px;
  font-weight: 600;
  border: 1.5px solid rgba(247, 249, 251, 0.3);
  transition: all 0.15s ease;
  min-height: 48px;
  display: inline-block;
  line-height: 1.2;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.trust-strip {
  font-size: 0.85rem;
  color: rgba(247, 249, 251, 0.55);
  letter-spacing: 0.5px;
  line-height: 1.8;
}
.trust-strip strong { color: var(--gold); font-weight: 700; }

.hero-visual {
  aspect-ratio: 4/5;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  border: 1px solid rgba(201, 168, 76, 0.2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(201, 168, 76, 0.4);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  text-align: center;
  padding: 40px;
  background-image:
    radial-gradient(circle at 50% 40%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 400px; margin: 0 auto; aspect-ratio: 3/4; }
  .hero { padding: 60px 0 80px; }
}

/* === PROBLEM SECTION === */
.problem {
  background: var(--white);
  text-align: center;
}
.problem h2 { margin-bottom: 24px; }
.problem .lead { max-width: 680px; margin: 0 auto 20px; }

/* === MEET ELMER === */
.meet-elmer {
  background: var(--cream);
  padding: 100px 0;
  position: relative;
}
.meet-elmer::before {
  content: '';
  position: absolute;
  top: 40px; left: 50%;
  width: 60px; height: 3px;
  background: var(--gold);
  transform: translateX(-50%);
  border-radius: 2px;
}
.meet-text-only .section-narrow h2 { margin-bottom: 28px; text-align: center; }
.meet-text-only .section-narrow p { font-size: 1.1rem; line-height: 1.75; margin-bottom: 18px; color: var(--text); }
.meet-text-only .section-narrow p strong { color: var(--navy); font-size: 1.15em; font-weight: 700; }
.meet-caption {
  margin: 28px 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.meet-text-only .meet-inline-cta-wrap {
  text-align: center;
  margin-top: 20px;
}
.meet-inline-cta {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  margin-top: 8px;
}
.meet-inline-cta:hover { color: var(--navy); border-color: var(--navy); }

/* === WHAT YOU GET === */
.what-you-get {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0;
}
.what-you-get h2 { color: var(--white); text-align: center; margin-bottom: 16px; }
.what-you-get h2 em { color: var(--gold-light); }
.what-intro { text-align: center; color: rgba(247, 249, 251, 0.7); max-width: 600px; margin: 0 auto 50px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.feature-card {
  background: rgba(247, 249, 251, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 28px;
}
.feature-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}
.feature-desc { color: rgba(247, 249, 251, 0.7); font-size: 0.98rem; line-height: 1.6; }
.wyg-promise {
  background: rgba(201, 168, 76, 0.08);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  border-radius: 4px;
  color: var(--white);
  font-style: italic;
  max-width: 780px;
  margin: 40px auto;
  line-height: 1.7;
}
.wyg-promise strong {
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 2px;
}
.wyg-cta-wrap { text-align: center; margin-top: 40px; }
@media (max-width: 720px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* === THREE DOORS === */
.three-doors {
  background: var(--white);
  padding: 100px 0;
}
.doors-title { text-align: center; margin-bottom: 10px; }
.doors-sub { text-align: center; color: var(--text-muted); margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto; }
.doors-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.door {
  background: var(--cream);
  border-radius: 8px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.door:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(11, 31, 59, 0.10); }
.door-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  border: none;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.25);
}
.door-primary .door-label { color: var(--navy); opacity: 0.7; }
.door-primary .door-title { color: var(--navy); }
.door-primary .door-desc { color: rgba(11, 31, 59, 0.85); }
.door-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}
.door-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}
.door-desc {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}
.door-btn {
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  transition: transform 0.15s ease;
  font-size: 0.95rem;
}
.door-primary .door-btn { background: var(--navy); color: var(--gold); }
.door-btn:hover { transform: translateY(-1px); }
@media (max-width: 900px) {
  .doors-grid { grid-template-columns: 1fr; }
}

/* === SOCIAL PROOF BAND === */
.social-proof {
  background: var(--navy-deep);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.social-proof h2 { color: var(--white); margin-bottom: 50px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: rgba(247, 249, 251, 0.55); font-size: 0.9rem; line-height: 1.4; }
.archive-link {
  margin-top: 50px;
  color: var(--gold);
  font-weight: 600;
  display: inline-block;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}

/* === FAQ === */
.faq {
  background: var(--white);
  padding: 100px 0;
}
.faq h2 { text-align: center; margin-bottom: 50px; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-question {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}
details[open] .faq-question::after { content: '–'; }
.faq-answer {
  color: var(--text);
  line-height: 1.65;
  padding-top: 8px;
}

/* === FINAL CTA === */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 30%, rgba(201, 168, 76, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; padding: 0 24px; }
.final-cta h2 { color: var(--white); margin-bottom: 20px; }
.final-cta h2 em { color: var(--gold-light); }
.final-cta p { color: rgba(247, 249, 251, 0.7); font-size: 1.1rem; margin-bottom: 32px; }
.final-fine-print { margin-top: 16px; font-size: 0.85rem; color: rgba(247, 249, 251, 0.4); font-style: italic; }

/* === FOOTER === */
.footer {
  background: var(--navy-deep);
  color: rgba(247, 249, 251, 0.45);
  padding: 60px 0 30px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-col a { color: rgba(247, 249, 251, 0.6); display: block; padding: 4px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(247, 249, 251, 0.35);
  line-height: 1.7;
  border-top: 1px solid rgba(247, 249, 251, 0.08);
  padding-top: 24px;
  margin-bottom: 20px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: rgba(247, 249, 251, 0.3);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* === STICKY MOBILE CTA === */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  display: none;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(11, 31, 59, 0.15);
  font-size: 1rem;
}
@media (max-width: 720px) {
  .sticky-mobile-cta { display: block; }
  body { padding-bottom: 56px; }
}

/* === BLOG-SPECIFIC STYLES === */
.blog-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.blog-hero h1 { color: var(--white); margin-bottom: 16px; }
.blog-hero p { color: rgba(247, 249, 251, 0.7); max-width: 600px; margin: 0 auto; }
.post-list { max-width: 760px; margin: 0 auto; padding: 60px 0; }
.post-card {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.post-card:last-child { border-bottom: none; }
.post-date { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; }
.post-title { margin: 10px 0; }
.post-title a { color: var(--navy); }
.post-title a:hover { color: var(--gold); }
.post-excerpt { color: var(--text); line-height: 1.6; }
.post-placeholder { text-align: center; padding: 80px 0; color: var(--text-muted); }

/* === BLOG POST pages === */
.post-page {
  background: var(--white);
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}
.post-header { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 2px solid var(--border); }
.post-header .post-meta-line {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.post-header h1 { margin-bottom: 20px; line-height: 1.15; }
.post-header .post-lede { font-size: 1.25rem; color: var(--text); line-height: 1.55; }
.post-body h2 { margin-top: 48px; margin-bottom: 18px; color: var(--navy); }
.post-body h3 { margin-top: 32px; margin-bottom: 14px; font-family: 'DM Sans', sans-serif; font-size: 1.2rem; color: var(--navy); letter-spacing: -0.2px; }
.post-body p { font-size: 1.08rem; line-height: 1.75; color: var(--text); margin-bottom: 1.2rem; }
.post-body p strong { color: var(--navy); font-weight: 700; }
.post-body ul, .post-body ol { font-size: 1.08rem; line-height: 1.75; color: var(--text); margin-bottom: 1.5rem; padding-left: 24px; }
.post-body li { margin-bottom: 10px; }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  background: var(--cream);
  padding: 18px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--navy);
  border-radius: 0 6px 6px 0;
}
.post-body .math-box {
  background: var(--navy);
  color: var(--white);
  padding: 24px 28px;
  border-radius: 8px;
  margin: 28px 0;
  font-family: 'DM Sans', sans-serif;
}
.post-body .math-box .math-label {
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.post-body .math-box p { color: rgba(247, 249, 251, 0.9); font-size: 1rem; line-height: 1.7; margin-bottom: 0; }
.post-body .math-box strong { color: var(--gold); }

.post-cta-block {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 40px 36px;
  margin: 50px 0;
  text-align: center;
}
.post-cta-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 14px;
}
.post-cta-block p { color: rgba(247, 249, 251, 0.75); margin-bottom: 24px; font-size: 1rem; }

.post-body a { color: var(--navy); border-bottom: 1px solid var(--gold); font-weight: 600; }
.post-body a:hover { color: var(--gold); }

.post-disclaimer {
  background: var(--cream);
  border-left: 3px solid var(--text-muted);
  padding: 16px 22px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 40px 0 20px;
  border-radius: 0 4px 4px 0;
}

.related-posts {
  margin: 50px 0 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.related-posts h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}
.related-post { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
.related-post:last-child { border-bottom: none; }
.related-post-title { color: var(--navy); font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; display: block; }
.related-post-excerpt { color: var(--text-muted); font-size: 0.92rem; }
.related-post:hover .related-post-title { color: var(--gold); }

/* Blog listing improvements */
.blog-section-header {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  margin: 50px 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.blog-section-header:first-child { margin-top: 20px; }

/* === PRIVACY/TERMS pages === */
.legal-page { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.legal-page h1 { margin-bottom: 12px; }
.legal-page h2 { margin-top: 40px; margin-bottom: 16px; font-size: 1.4rem; }
.legal-page p, .legal-page li { color: var(--text); line-height: 1.7; margin-bottom: 14px; font-size: 1rem; }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page .legal-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
