/* ============================================================
   Variables
   ============================================================ */
:root {
  --bg: #FAF9F7;
  --bg-alt: #F0EFED;
  --text: #1C1C1A;
  --muted: #6B6B68;
  --accent: #2E7B8C;
  --accent-hover: #236070;
  --accent-light: #EBF5F7;
  --accent-warm: #C4956A;
  --accent-warm-hover: #b07d55;
  --white: #FFFFFF;
  --border: #E2E0DC;
  --shadow: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10);
  --radius: 8px;
  --max: 1100px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1rem; }
p { color: var(--muted); line-height: 1.75; }
p + p { margin-top: 1rem; }
strong { color: var(--text); font-weight: 600; }

/* ============================================================
   Layout
   ============================================================ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }

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

.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }
.btn-full { width: 100%; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,247,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .875rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
}
.nav-links a, .nav-dropdown > .nav-trigger {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  opacity: .7;
  transition: opacity .15s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-links a:hover, .nav-dropdown:hover > .nav-trigger { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--accent); }

.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem 0;
  min-width: 210px;
  box-shadow: var(--shadow-lg);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: .6rem 1.25rem;
  font-size: .85rem;
  font-weight: 500;
  opacity: .8;
  transition: background .1s, opacity .1s;
}
.dropdown-menu a:hover { background: var(--bg-alt); opacity: 1; }

.nav-cta { margin-left: auto; }
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  padding: .25rem;
  margin-left: auto;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  padding: 1.5rem 2rem 2rem;
  gap: 0;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.mobile-nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}
.mobile-nav a {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { margin-top: 1.5rem; text-align: center; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(145deg, var(--accent-light) 0%, var(--bg) 55%);
  padding: 6rem 0 5rem;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .875rem;
}
.hero h1 { margin-bottom: 1.25rem; max-width: 640px; }
.hero .hero-desc {
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: .875rem; flex-wrap: wrap; }

/* ============================================================
   Section Headers
   ============================================================ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ============================================================
   Grids
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.card-icon { font-size: 1.75rem; margin-bottom: 1rem; line-height: 1; }
.card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.card p { font-size: .95rem; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: var(--shadow);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .875rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pricing-tier {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.pricing-price {
  font-family: 'DM Serif Display', serif;
  font-size: 2.25rem;
  color: var(--text);
  line-height: 1.1;
  margin: .75rem 0 .25rem;
}
.pricing-price .price-sub { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 400; color: var(--muted); }
.pricing-desc { font-size: .9rem; margin-bottom: 1.5rem; flex: 1; }
.pricing-note {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  margin-top: 1.5rem;
  font-style: italic;
}

/* ============================================================
   CTA / Subscribe Strip
   ============================================================ */
.cta-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.cta-card.cta-teal { background: var(--accent-light); border-color: var(--accent); }
.cta-card h3 { margin-bottom: .5rem; }
.cta-card p { margin-bottom: 1.5rem; font-size: .95rem; }
.form-row { display: flex; gap: .75rem; }
.form-row input[type=email] {
  flex: 1;
  min-width: 0;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
}
.form-row input[type=email]:focus { outline: none; border-color: var(--accent); }
.form-row input[type=email]::placeholder { color: var(--muted); opacity: .7; }

/* ============================================================
   Article Cards
   ============================================================ */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.article-card h3 { margin-bottom: .75rem; font-size: 1.2rem; }
.article-card p { font-size: .9rem; flex: 1; margin-bottom: 1.25rem; }
.read-more { color: var(--accent); font-weight: 600; font-size: .875rem; margin-top: auto; }

/* ============================================================
   Contact Strip
   ============================================================ */
.contact-strip { text-align: center; }
.contact-strip .section-header { margin-bottom: 0; }
.contact-strip h2 { margin-bottom: .75rem; }
.contact-phone {
  display: inline-block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.25rem;
  color: var(--accent);
  margin: 1.5rem 0 .5rem;
  transition: color .15s;
}
.contact-phone:hover { color: var(--accent-hover); }
.contact-strip .sub { font-size: .95rem; margin-bottom: 1.75rem; }
.social-icons { display: flex; justify-content: center; gap: .875rem; flex-wrap: wrap; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color .15s, background .15s, color .15s;
}
.social-icons a:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.footer-social { display: flex; gap: .625rem; flex-wrap: wrap; }
.footer-social a {
  font-size: .78rem;
  padding: .35rem .875rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  transition: border-color .15s, color .15s;
}
.footer-social a:hover { border-color: rgba(255,255,255,.6); color: var(--white); }
.footer-col-label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.25rem;
}
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color .15s;
}
.footer-nav a:hover { color: var(--white); }
.footer-contact p, .footer-contact a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  display: block;
  margin-bottom: .4rem;
  transition: color .15s;
}
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color .15s; }
.footer-bottom a:hover { color: rgba(255,255,255,.75); }

/* ============================================================
   Page Hero (non-landing pages)
   ============================================================ */
.page-hero {
  background: var(--bg-alt);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
.page-hero .page-tag {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: .5rem; }
.page-hero p { font-size: 1.05rem; max-width: 520px; }

/* ============================================================
   Article Page
   ============================================================ */
.article-content { padding: 3rem 0 5rem; }
.article-body { max-width: 720px; }
.article-notice {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
}
.article-notice p { font-size: .85rem; margin: 0; }
.article-body h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  margin: 2.5rem 0 .875rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}
.article-body h2:first-of-type { border-top: none; margin-top: 0; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body ul li { color: var(--muted); margin-bottom: .5rem; line-height: 1.65; }
.article-cta {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}
.article-cta h3 { margin-bottom: .5rem; }
.article-cta p { margin-bottom: 1.25rem; }

/* ============================================================
   Rank Cards (Top 5 article)
   ============================================================ */
.rank-list { display: flex; flex-direction: column; gap: 1.25rem; margin: 2rem 0; }
.rank-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.rank-card.rank-top {
  border-color: var(--accent);
  border-width: 2px;
  background: var(--accent-light);
}
.rank-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.75rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.75rem;
  opacity: .6;
}
.rank-card.rank-top .rank-num { opacity: 1; }
.rank-firm { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: .2rem; }
.rank-card h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.rank-card p { font-size: .9rem; margin: 0; }
.rank-verdict {
  display: inline-block;
  margin-top: .5rem;
  font-size: .78rem;
  font-weight: 600;
  background: var(--bg-alt);
  padding: .2rem .6rem;
  border-radius: 4px;
  color: var(--muted);
}

/* ============================================================
   Pricing Page FAQ
   ============================================================ */
.faq-list { max-width: 720px; margin: 2.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-weight: 600; font-size: 1rem; color: var(--text); margin-bottom: .4rem; }
.faq-a { font-size: .95rem; }

/* ============================================================
   About Page
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}
.about-sidebar {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: sticky;
  top: 5rem;
}
.about-avatar {
  width: 96px;
  height: 96px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--white);
}
.about-sidebar h2 { font-size: 1.3rem; margin-bottom: .25rem; }
.about-sidebar > p { font-size: .875rem; margin-bottom: 1.5rem; }
.about-links { display: flex; flex-direction: column; gap: .5rem; }
.about-links a {
  display: block;
  padding: .625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  background: var(--white);
  color: var(--text);
  transition: border-color .15s, background .15s, color .15s;
  text-align: center;
}
.about-links a:hover { border-color: var(--accent); background: var(--white); color: var(--accent); }
.about-body h2 { margin: 2rem 0 .75rem; font-size: 1.4rem; }
.about-body h2:first-child { margin-top: 0; }
.about-body p { margin-bottom: 1rem; }

/* ============================================================
   Contact Page
   ============================================================ */
.contact-layout { max-width: 620px; }
.contact-big-phone {
  display: inline-block;
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--accent);
  margin: 1.5rem 0 .25rem;
  line-height: 1;
}
.contact-links { display: flex; flex-direction: column; gap: .875rem; margin: 2rem 0; }
.contact-link-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.contact-link-row:hover { border-color: var(--accent); background: var(--accent-light); }
.contact-link-icon { font-size: 1.25rem; }

/* ============================================================
   Legal Pages
   ============================================================ */
.legal-body { max-width: 720px; }
.legal-body h2 { font-size: 1.3rem; margin: 2.5rem 0 .75rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 1rem; }
.legal-body ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body ul li { color: var(--muted); margin-bottom: .4rem; }

/* ============================================================
   404 Page
   ============================================================ */
.not-found {
  text-align: center;
  padding: 8rem 0;
}
.not-found .big-num {
  font-family: 'DM Serif Display', serif;
  font-size: 7rem;
  color: var(--accent);
  line-height: 1;
  opacity: .2;
  display: block;
  margin-bottom: .5rem;
}
.not-found h1 { font-size: 2rem; margin-bottom: .75rem; }
.not-found p { margin-bottom: 2rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
}

@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .form-row { flex-direction: column; }
  .rank-card { flex-direction: column; gap: .75rem; }
  .rank-num { font-size: 2rem; }
  .contact-big-phone { font-size: 2.25rem; }
  .not-found .big-num { font-size: 5rem; }
}
