/* Farzan Law, PLLC — Site Styles
   Color palette: Deep navy + warm Persian gold + soft cream
   Typography: Clean serif for headings (trustworthy), modern sans for body
*/

:root {
  --navy: #0f2742;
  --navy-deep: #0a1c30;
  --navy-soft: #1a3656;
  --gold: #b89464;
  --gold-deep: #9a7a4f;
  --cream: #faf7f1;
  --cream-warm: #f3eddf;
  --ink: #11212f;
  --ink-soft: #4a5b6a;
  --line: #e2dccd;
  --shadow-sm: 0 1px 3px rgba(15, 39, 66, 0.07), 0 1px 2px rgba(15, 39, 66, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 39, 66, 0.08);
  --shadow-lg: 0 10px 40px rgba(15, 39, 66, 0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --max: 1180px;
  --pad: clamp(1rem, 4vw, 2rem);
  --font-serif: 'Cormorant Garamond', 'Garamond', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-fa: 'Vazirmatn', 'IRANSans', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

body.rtl {
  font-family: var(--font-fa);
  direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }

.visually-hidden {
  position: absolute !important; clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--navy); color: var(--cream);
  padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.6em;
  line-height: 1.18;
}
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4 { font-family: var(--font-fa); font-weight: 700; }

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 1em;
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.meta { color: var(--ink-soft); font-size: 0.92rem; }

a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); text-decoration-color: var(--gold-deep); }

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

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.2) blur(6px);
}

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem; gap: 1rem;
}

.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--navy);
}
.brand-mark {
  width: 38px; height: 38px;
  background: var(--navy); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.brand-tag { font-size: 0.65rem; letter-spacing: 0.4em; color: var(--gold-deep); margin-top: 3px; }

.primary-nav {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.primary-nav .cta-link {
  background: var(--navy); color: var(--cream);
  padding: 0.55rem 1.1rem; border-radius: var(--radius);
  border-bottom: 2px solid var(--gold);
}
.primary-nav .cta-link:hover { background: var(--navy-deep); color: var(--cream); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.2s; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--pad); display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { padding: 0.9rem 0; }
}

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

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.78rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s, background 0.15s, color 0.15s;
}
.btn-primary { background: var(--navy); color: var(--cream); border-bottom: 2px solid var(--gold); }
.btn-primary:hover { background: var(--navy-deep); color: var(--cream); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-large { padding: 1rem 1.8rem; font-size: 1.05rem; }

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

.hero {
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-text h1 { margin-top: 0; }
.hero-ctas { display: flex; gap: 1rem; margin: 1.5rem 0 0.75rem; flex-wrap: wrap; }
.hero-call-direct {
  font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 2rem;
}
.hero-call-direct a {
  font-weight: 600; color: var(--navy); text-decoration: underline;
  text-decoration-color: var(--gold); text-underline-offset: 3px;
}
.hero-stats {
  list-style: none; display: flex; gap: 2rem; padding: 0; margin: 0;
  border-top: 1px solid var(--line); padding-top: 1.5rem; max-width: 520px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-serif); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.hero-stats span { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.4rem; }

.hero-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
}
.hero-card h2 { font-size: 1.3rem; margin-top: 0; }
.hero-card .phone, .hero-card .email { font-size: 1.1rem; margin-bottom: 0.4rem; }
.hero-card .hours { color: var(--ink-soft); font-size: 0.9rem; margin-top: 1rem; margin-bottom: 0; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}

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

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--cream-warm); }

.section-title { margin-top: 0; }
.section-lede { color: var(--ink-soft); margin-bottom: 2.5rem; max-width: 60ch; font-size: 1.08rem; }
.section-cta { margin-top: 2rem; }
.section-cta a { font-weight: 600; }

.two-col {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.2rem; margin-top: 0; }
.card p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.95rem; }

.card-feature {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}
.card-feature h3 { color: var(--navy-deep); }

.card.minimal {
  background: transparent; border: 0; padding: 0; box-shadow: none;
}
.card.minimal h3 { color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 0.5rem; display: inline-block; }

/* ---------- Quote ---------- */

.quote blockquote {
  margin: 0;
  padding: 2rem;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.quote blockquote p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 1rem;
  font-style: italic;
}
.quote cite { color: var(--ink-soft); font-style: normal; font-size: 0.95rem; }

body.rtl .quote blockquote { border-left: 0; border-right: 4px solid var(--gold); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }

/* ---------- CTA Band ---------- */

.section-cta-band { background: var(--navy); color: var(--cream); }
.section-cta-band h2 { color: var(--cream); }
.section-cta-band p { color: rgba(250, 247, 241, 0.85); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-band { text-align: center; }
.section-cta-band .btn-primary { background: var(--gold); border-bottom-color: var(--cream); }
.section-cta-band .btn-primary:hover { background: var(--gold-deep); }

/* ---------- About / profile ---------- */

.profile-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.profile-photo {
  width: 110px; height: 110px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600;
  border: 3px solid var(--gold);
}
.profile-photo-img {
  width: 180px; height: 180px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(15, 39, 66, 0.18);
  object-fit: cover;
  display: block;
}
.profile-card h3 { margin-bottom: 0.2em; }
.profile-role { color: var(--gold-deep); font-weight: 600; margin-bottom: 1.5rem; }
.profile-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.profile-list li { padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.profile-list li:first-child { border-top: 0; }

/* ---------- Timeline ---------- */

.timeline {
  list-style: none; padding: 0; margin: 0;
  border-left: 2px solid var(--gold);
  padding-left: 2rem;
}
body.rtl .timeline { border-left: 0; border-right: 2px solid var(--gold); padding-left: 0; padding-right: 2rem; }
.timeline li {
  position: relative;
  padding-bottom: 2rem;
}
.timeline li::before {
  content: ""; position: absolute; left: -2.45rem; top: 0.5rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--gold);
}
body.rtl .timeline li::before { left: auto; right: -2.45rem; }
.timeline h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.timeline-meta { color: var(--gold-deep); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.6rem; }

/* ---------- Practice block ---------- */

.practice-block {
  padding-bottom: 3rem; margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.practice-block:last-child { border-bottom: 0; }
.practice-block h2 {
  font-size: 1.7rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}
body.rtl .practice-block h2 { border-left: 0; border-right: 3px solid var(--gold); padding-left: 0; padding-right: 1rem; }
.practice-block ul { padding-left: 1.5rem; }
.practice-block ul li { margin-bottom: 0.4rem; }

/* ---------- Education ---------- */

.education-list { list-style: none; padding: 0; }
.education-list > li {
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.education-list > li:last-child { border-bottom: 0; }

/* ---------- Forms ---------- */

.contact-form { display: grid; gap: 1.2rem; }
.contact-form label {
  display: grid; gap: 0.4rem;
  font-size: 0.92rem; font-weight: 500;
}
.contact-form label > span:first-child { color: var(--ink); }
.contact-form .label-meta { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; margin-left: 0.4rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: inherit; font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form .checkbox {
  display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start;
  font-size: 0.88rem; color: var(--ink-soft);
}
.contact-form .checkbox input { width: auto; margin-top: 0.25rem; }

.contact-form button[type="submit"] { justify-self: start; margin-top: 0.5rem; }

.contact-line { font-size: 1.05rem; padding: 0.4rem 0; }
.subhead { font-size: 1.1rem; margin-top: 1.6rem; }

/* ---------- Prose pages (disclaimer/privacy) ---------- */

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1rem; }

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

.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 247, 241, 0.78);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}
.site-footer h4 {
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(184, 148, 100, 0.2);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.3rem 0; }
.site-footer a { color: rgba(250, 247, 241, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.brand-text-footer { color: var(--cream); font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 0.8rem; }
.legal-fineprint { font-size: 0.78rem; color: rgba(250, 247, 241, 0.55); line-height: 1.6; max-width: 80ch; }

.benefit-list { list-style: none; padding: 0; max-width: 70ch; }
.benefit-list li {
  padding: 0.7rem 0 0.7rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.benefit-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.65rem;
  width: 22px; height: 22px;
  background: var(--gold); color: var(--cream);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700;
}
body.rtl .benefit-list li { padding-left: 0; padding-right: 2rem; }
body.rtl .benefit-list li::before { left: auto; right: 0; }

/* ---------- FAQ accordion ---------- */

.faq { display: grid; gap: 0.8rem; max-width: 70ch; }

.faq details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 1.4rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.faq details[open] {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  padding: 1rem 0;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  color: var(--gold-deep);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  color: var(--ink-soft);
  padding: 0 0 1.2rem;
  margin: 0;
  font-size: 0.98rem;
}

body.rtl .faq summary { font-family: var(--font-fa); }

/* ---------- Refinements ---------- */

/* Smooth scroll on FAQ open */
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: faqOpen 0.25s ease-out; }
  @keyframes faqOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip-link target: <main> is focusable for a11y but should not show a ring */
main:focus, main:focus-visible { outline: none; }

/* Print-friendly */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-ctas, .section-cta-band { display: none; }
  body { background: white; color: black; }
  .container { max-width: none; padding: 0; }
}

/* Load Google Fonts the lightweight way */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Vazirmatn:wght@400;500;600;700&display=swap");
