/* ============================================================
   Pooja Srivastava, Advocate — site stylesheet
   Design system: Advocate Black & Gold
   ============================================================ */

:root {
  /* Colors */
  --ink: #0d0c0a;
  --gold: #c49a3c;
  --gold-deep: #8a7340;
  --cream: #faf8f3;
  --paper: #ffffff;
  --line: #e6e0d2;
  --text-strong: #171512;
  --text-body: #1a1a1a;
  --text-muted: #2a2a2a;
  --text-on-dark-muted: #d8d3c8;
  --footer-muted: #8f887a;

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Jost", "Century Gothic", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.small-caps {
  font-family: var(--font-display);
  font-variant: small-caps;
  font-weight: 600;
  color: var(--text-strong);
}

/* ---------- Disclaimer modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13, 12, 10, 0.88);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  max-width: 640px;
  background: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 48px 52px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.modal h2 { font-size: 30px; margin: 0; }
.modal .rule { width: 60px; height: 2px; background: var(--gold); margin: 14px 0 20px; }
.modal p, .modal li { font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }
.modal ul { margin: 12px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--gold);
  padding: 14px 40px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500; letter-spacing: 4px;
  cursor: pointer;
}
.btn-primary:hover { background: #26221c; }

/* ---------- Nav ---------- */
.site-nav {
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
}
.site-nav .inner {
  height: 78px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .emblem {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand .name {
  font-family: var(--font-display); font-variant: small-caps;
  font-size: 21px; font-weight: 600; color: #fff; line-height: 1.1;
}
.brand .role { font-size: 11px; letter-spacing: 4px; color: var(--gold); font-weight: 500; }

.nav-links { display: flex; gap: 38px; align-items: center; }
.nav-links a {
  color: #fff; font-size: 14px; letter-spacing: 3px; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; }

/* ---------- Hero (home) ---------- */
.hero { background: var(--ink); position: relative; overflow: hidden; }
.hero .watermark { position: absolute; right: 6%; top: 40px; width: 300px; opacity: 0.08; color: var(--gold); }
.hero .inner { padding-top: 110px; padding-bottom: 90px; position: relative; }
.kicker { display: flex; align-items: center; gap: 16px; }
.kicker .rule { width: 70px; height: 1px; background: var(--gold); }
.kicker span { font-size: 14px; letter-spacing: 6px; color: var(--gold); font-weight: 500; }
.hero h1 {
  font-family: var(--font-display); font-variant: small-caps;
  font-size: clamp(44px, 7vw, 76px); font-weight: 600; color: #fff;
  margin: 22px 0 0; line-height: 1.05; letter-spacing: 1px;
}
.hero .sub { font-size: 22px; color: var(--text-on-dark-muted); margin-top: 22px; max-width: 640px; line-height: 1.5; }
.gold-edge { height: 3px; background: var(--gold); }

.motto { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.motto span { color: #fff; font-size: 16px; letter-spacing: 6px; font-weight: 500; }
.motto .sep { color: var(--gold); }
.hero .motto { margin-top: 48px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--ink); border-bottom: 3px solid var(--gold); }
.page-head .inner { padding-top: 70px; padding-bottom: 70px; }
.page-head h1 {
  font-family: var(--font-display); font-variant: small-caps;
  font-size: clamp(36px, 5vw, 52px); font-weight: 600; color: #fff; margin: 0;
}
.page-head p { font-size: 17px; color: var(--text-on-dark-muted); margin: 12px 0 0; max-width: 660px; line-height: 1.6; }

/* ---------- Section headings ---------- */
.section { padding: 90px 0; }
.section-title { text-align: center; }
.section-title h2 { font-family: var(--font-display); font-variant: small-caps; font-size: 42px; font-weight: 600; color: var(--text-strong); margin: 0; }
.divider-dot { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 16px; }
.divider-dot .rule { width: 70px; height: 1px; background: var(--gold); }
.divider-dot .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Practice cards (home) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.pa-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.pa-card:hover { box-shadow: 0 12px 34px rgba(13, 12, 10, 0.10); transform: translateY(-2px); }
.pa-card h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--text-strong); margin: 0; }
.pa-card .rule { width: 44px; height: 1px; background: var(--gold); }
.pa-card p { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ---------- About ---------- */
.about { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .inner {
  padding: 90px 0;
  display: grid; grid-template-columns: 360px 1fr; gap: 70px; align-items: center;
}
.portrait-frame { padding: 10px; border: 1px solid var(--gold); justify-self: center; }
.portrait-frame img, .portrait-placeholder { width: 320px; height: 400px; object-fit: cover; }
.portrait-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--cream); color: var(--gold-deep); font-size: 14px; letter-spacing: 2px; padding: 20px;
}
.eyebrow { display: flex; align-items: center; gap: 16px; }
.eyebrow .rule { width: 60px; height: 1px; background: var(--gold); }
.eyebrow span { font-size: 13px; letter-spacing: 5px; color: var(--gold); font-weight: 600; }
.about h2 { font-family: var(--font-display); font-variant: small-caps; font-size: 38px; font-weight: 600; color: var(--text-strong); margin: 18px 0 0; }
.about .lead { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin-top: 22px; max-width: 620px; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; margin-top: 36px; max-width: 620px; }
.cred-grid .label { font-size: 12px; letter-spacing: 3px; color: var(--gold-deep); font-weight: 600; }
.cred-grid .value { font-size: 16px; color: var(--text-body); margin-top: 6px; line-height: 1.55; }

/* ---------- Articles ---------- */
.articles-head { display: flex; align-items: baseline; justify-content: space-between; }
.articles-head h2 { font-family: var(--font-display); font-variant: small-caps; font-size: 38px; font-weight: 600; color: var(--text-strong); margin: 0; }
.view-all { font-size: 13px; letter-spacing: 3px; color: var(--gold-deep); font-weight: 600; }
.view-all:hover { color: var(--gold); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.article-card {
  border: 1px solid var(--line); background: var(--paper); padding: 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow 0.25s ease;
}
.article-card:hover { box-shadow: 0 12px 34px rgba(13, 12, 10, 0.10); }
.article-card .tag { font-size: 12px; letter-spacing: 3px; color: var(--gold-deep); font-weight: 600; }
.article-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--text-strong); line-height: 1.3; margin: 0; }
.article-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* Article list (articles page) */
.article-list { max-width: 900px; margin: 0 auto; padding: 70px 32px; display: flex; flex-direction: column; gap: 34px; }
.article-row { background: var(--paper); border: 1px solid var(--line); border-left: none; border-right: none; border-top: 3px solid var(--gold); padding: 38px 42px; }
.article-row .tag { font-size: 12px; letter-spacing: 3px; color: var(--gold-deep); font-weight: 600; }
.article-row h2 { font-family: var(--font-display); font-size: 27px; font-weight: 600; color: var(--text-strong); line-height: 1.3; margin: 10px 0 0; }
.article-row p { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin: 14px 0 0; }
.article-row .soon { font-size: 13px; letter-spacing: 2px; color: #b0a689; margin-top: 18px; font-weight: 500; }
.article-row .view-all { display: inline-block; margin-top: 18px; }

/* Full article page */
.article-body { max-width: 820px; margin: 0 auto; padding: 60px 32px; }
.article-body .backlink { font-size: 13px; letter-spacing: 3px; color: var(--gold-deep); font-weight: 600; display: inline-block; margin-bottom: 34px; }
.article-body .backlink:hover { color: var(--gold); }
.article-body h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--text-strong); margin: 42px 0 14px; line-height: 1.3; }
.article-body p, .article-body li { font-size: 16.5px; line-height: 1.75; color: var(--text-muted); }
.article-body ul, .article-body ol { padding-left: 24px; margin: 14px 0; }
.article-body li { margin: 8px 0; }
.article-body .disclaimer-note { border-top: 1px solid var(--line); margin-top: 46px; padding-top: 22px; font-size: 14.5px; font-style: italic; color: #6f6a5e; line-height: 1.7; }

/* ---------- Practice areas page ---------- */
.pa-rows { padding: 70px 0; }
.pa-row {
  display: grid; grid-template-columns: 320px 1fr; gap: 60px;
  padding: 44px 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px; /* keep anchored sections clear of the sticky nav */
}
.pa-row .num { font-size: 13px; letter-spacing: 3px; color: var(--gold-deep); font-weight: 600; }
.pa-row h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--text-strong); margin: 8px 0 0; line-height: 1.25; }
.pa-row .body { font-size: 16.5px; line-height: 1.7; color: var(--text-muted); }
.pa-row .forums { font-size: 14px; color: var(--gold-deep); margin-top: 14px; font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid { padding: 80px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-rows { display: flex; flex-direction: column; gap: 34px; }
.contact-row { display: flex; align-items: center; gap: 20px; }
.contact-row > div { min-width: 0; }
.icon-chip {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row .label { font-size: 12px; letter-spacing: 3px; color: var(--gold-deep); font-weight: 600; }
.contact-row .value { font-size: 20px; color: var(--text-strong); font-weight: 500; margin-top: 4px; line-height: 1.5; overflow-wrap: anywhere; }
.declaration { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 42px 46px; }
.declaration h2 { font-family: var(--font-display); font-variant: small-caps; font-size: 26px; font-weight: 600; color: var(--text-strong); margin: 0; }
.declaration .rule { width: 50px; height: 1px; background: var(--gold); margin: 14px 0 18px; }
.declaration p { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); margin: 0; }
.declaration .sig { font-family: var(--font-display); font-variant: small-caps; font-size: 20px; color: var(--text-strong); margin-top: 22px; }
.declaration .enrl { font-size: 13px; letter-spacing: 2px; color: var(--gold-deep); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 3px solid var(--gold); margin-top: 40px; }
.site-footer .inner { padding: 44px 32px; display: flex; flex-direction: column; gap: 20px; }
.site-footer .motto { justify-content: center; }
.site-footer .motto span { font-size: 14px; }
.site-footer .legal { text-align: center; font-size: 13px; color: var(--footer-muted); line-height: 1.7; max-width: 820px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid, .article-grid { grid-template-columns: 1fr 1fr; }
  .about .inner { grid-template-columns: 1fr; gap: 40px; }
  .pa-row { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .card-grid, .article-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .modal { padding: 34px 26px; }
  .section { padding: 60px 0; }

  /* Portrait scales down so it never overflows narrow phones */
  .portrait-frame { width: 100%; max-width: 340px; }
  .portrait-frame img, .portrait-placeholder { width: 100%; height: auto; aspect-ratio: 4 / 5; }
  /* Keep the long email from pushing the layout wide */
  .contact-row .value { font-size: 16px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--ink); border-bottom: 3px solid var(--gold);
    flex-direction: column; padding: 20px 0; gap: 20px;
  }
  .nav-links.open { display: flex; }
}
