/* Philip M. Finestrauss, P.A. — site styles */

:root {
  --ink: #16211c;
  --ink-soft: #47544e;
  --paper: #faf9f6;
  --paper-alt: #f1efe9;
  --line: #e2ded4;
  --accent: #1e5c46;      /* deep green */
  --accent-dark: #154434;
  --accent-tint: #e7efe9;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}

.wordmark { text-decoration: none; color: var(--ink); line-height: 1.2; margin-right: auto; }
.wordmark-name { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; }
.wordmark-suffix { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--accent); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { color: var(--accent); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-tint); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 72px; }

.eyebrow {
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  max-width: 18ch;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.15rem; color: var(--ink-soft);
  max-width: 56ch; margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-facts {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  max-width: 760px;
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.hero-facts span { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section-alt { background: var(--paper-alt); }

.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head h2, .about-grid h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Practice area cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(22, 33, 28, 0.06); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--accent-dark); }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* About */

.about-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px;
  align-items: start;
}
.about-grid p { color: var(--ink-soft); margin-bottom: 16px; }
.about-grid h2 { margin-bottom: 20px; }

.credentials {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.credentials h3 { font-size: 1.1rem; margin-bottom: 14px; color: var(--accent-dark); }
.credentials ul { list-style: none; }
.credentials li {
  padding: 10px 0; font-size: 0.95rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.credentials li:last-child { border-bottom: none; }
.credentials strong { color: var(--ink); }

/* Steps */

.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  counter-reset: step;
}
.steps li { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--accent-tint); color: var(--accent-dark);
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  border-radius: 50%;
  margin-bottom: 16px;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { font-size: 0.95rem; color: var(--ink-soft); }

.deadline-note {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.98rem; color: var(--ink-soft);
  max-width: 640px;
}
.deadline-note strong { color: var(--accent-dark); }

/* Contact */

.section-contact { background: var(--ink); color: var(--paper); }

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.section-contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 10px; }
.contact-lead { color: rgba(250, 249, 246, 0.75); margin-bottom: 28px; }

.contact-phone {
  display: inline-block;
  font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600;
  color: #9ecdb6; text-decoration: none;
  margin-bottom: 28px;
}
.contact-phone:hover { color: #c2e3d2; }

.section-contact address {
  font-style: normal; line-height: 1.7;
  color: rgba(250, 249, 246, 0.75); font-size: 0.98rem;
}
.section-contact address strong { color: var(--paper); }

.contact-aside {
  background: rgba(250, 249, 246, 0.06);
  border: 1px solid rgba(250, 249, 246, 0.14);
  border-radius: 12px;
  padding: 28px;
}
.contact-aside h3 { font-size: 1.1rem; margin-bottom: 16px; }
.contact-aside ul { list-style: none; }
.contact-aside li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.95rem; color: rgba(250, 249, 246, 0.8);
}
.contact-aside li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #9ecdb6;
}
.contact-note { margin-top: 16px; font-size: 0.88rem; color: rgba(250, 249, 246, 0.6); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(250, 249, 246, 0.12);
  padding: 32px 0;
  font-size: 0.85rem;
  color: rgba(250, 249, 246, 0.55);
}
.disclaimer { margin-top: 12px; font-size: 0.78rem; line-height: 1.6; max-width: 80ch; }

/* ---------- Mobile ---------- */

@media screen and (max-width: 860px) {
  .header-inner { gap: 16px; }
  .header-cta { display: none; }

  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); }

  .site-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }

  .hero { padding: 64px 0 48px; }
  .hero-facts { grid-template-columns: 1fr; gap: 16px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ---------- Print / PDF ---------- */

@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .site-header { position: static; }
  .nav-toggle, .draft-banner { display: none; }
  .card, .credentials, .contact-aside, .steps li, .deadline-note { break-inside: avoid; }
  .section { padding: 48px 0; }
}
