/* ============================================================
   GetPhDReady — Main Stylesheet
   Shared across all public pages
   ============================================================ */
:root {
  --ink: #0D0D0F;
  --paper: #F7F4EE;
  --gold: #B8913A;
  --gold-light: #D4A853;
  --slate: #3A3D4A;
  --mist: #E8E4DB;
  --red-accent: #8B2635;
  --text-secondary: #6B6B78;
  --dark-bg: #0A0A0C;
  --dark-surface: #121217;
  --dark-border: rgba(255,255,255,0.07);
  --dark-text: rgba(247,244,238,0.88);
  --dark-muted: rgba(247,244,238,0.42);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--paper); color: var(--ink); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ── FLASH MESSAGES ── */
.flash { padding: .85rem 1.5rem; margin: 1rem 4rem; border-radius: 3px; font-size: .9rem; }
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(247,244,238,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184,145,58,.18);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 32px rgba(13,13,15,.08); }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { background: var(--ink); color: var(--paper) !important; padding: .55rem 1.4rem; border-radius: 2px; transition: background .2s !important; }
.nav-cta:hover { background: var(--gold) !important; }
.nav-hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); }
.nav-mobile { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid rgba(184,145,58,.2); padding: 1.5rem 2rem; z-index: 99; flex-direction: column; gap: 1rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: .9rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); text-decoration: none; padding: .5rem 0; border-bottom: 1px solid rgba(184,145,58,.1); }
.nav-mobile .mobile-cta { color: var(--gold); border-bottom: none; }

/* ── BUTTONS ── */
.btn-primary { background: var(--ink); color: var(--paper); padding: .85rem 2rem; font-size: .85rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background .2s, transform .2s; display: inline-block; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); font-size: .85rem; font-weight: 500; letter-spacing: .04em; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; transition: color .2s; background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-ghost:hover { color: var(--gold); }
.btn-ghost::after { content: '→'; transition: transform .2s; }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ── SECTION COMMONS ── */
.section-label { display: inline-flex; align-items: center; gap: .6rem; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); }
.section-heading { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,3.5vw,3rem); font-weight: 300; line-height: 1.15; color: var(--ink); margin-bottom: 1rem; }
.section-heading em { font-style: italic; color: var(--gold); }
.section-sub { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; max-width: 560px; margin-bottom: 3.5rem; }

/* ── ARTICLE CARDS ── */
.article-tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 500; display: inline-block; margin-bottom: .6rem; }
.card-arrow { width: 30px; height: 30px; border: 1px solid rgba(184,145,58,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: .8rem; transition: all .2s; }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 3rem 0 1rem; }
.page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(184,145,58,.2); font-size: .85rem; color: var(--text-secondary); cursor: pointer; transition: all .2s; background: none; font-family: 'DM Sans', sans-serif; border-radius: 2px; text-decoration: none; }
.page-btn:hover, .page-btn.active { background: var(--gold); color: white; border-color: var(--gold); }
.page-btn.prev-next { width: auto; padding: 0 1rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 4rem 4rem 2rem; border-top: 1px solid rgba(184,145,58,.15); margin-top: 4rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { display: block; margin-bottom: 1rem; color: var(--paper); }
.footer-brand p { font-size: .85rem; color: rgba(247,244,238,.5); line-height: 1.7; }
.footer-col h5 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,244,238,.4); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .85rem; color: rgba(247,244,238,.6); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(247,244,238,.08); padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: .78rem; color: rgba(247,244,238,.3); }

/* ── FORMS ── */
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.form-field input, .form-field textarea, .form-field select { padding: .85rem 1rem; background: white; border: 1px solid rgba(184,145,58,.2); border-radius: 2px; font-family: 'DM Sans', sans-serif; font-size: .9rem; color: var(--ink); outline: none; transition: border-color .2s; width: 100%; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--gold); }
.form-field textarea { min-height: 120px; resize: vertical; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .flash { margin: 1rem 1.5rem; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}
