/* =========================================================
   Law Office of Negar Kamara : Stylesheet
   Palette: deep navy + warm gold, classic law-firm aesthetic
   ========================================================= */

:root {
  --navy:        #16233d;
  --navy-deep:   #0e1729;
  --navy-soft:   #223354;
  --gold:        #b08d4f;
  --gold-light:  #c9a86a;
  --ink:         #1d2433;
  --slate:       #4a5568;
  --mist:        #f5f2ec;
  --cream:       #faf8f4;
  --line:        #e4ddd0;
  --white:       #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
  --radius: 4px;
  --shadow: 0 18px 45px -22px rgba(14, 23, 41, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--navy); }

/* ---------- Typography helpers ---------- */
.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.section-eyebrow.light { color: var(--gold-light); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

.section-sub {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 44ch;
  margin: 0 auto;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.22s ease;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}
.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-light:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(14, 23, 41, 0.55);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.brand-title {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.nav-list a:hover { color: var(--gold); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(150deg, rgba(14, 23, 41, 0.92), rgba(34, 51, 84, 0.88)),
    radial-gradient(circle at 78% 20%, rgba(176, 141, 79, 0.28), transparent 55%),
    var(--navy-deep);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 12vw, 8.5rem) 24px clamp(4rem, 10vw, 7rem);
  max-width: 820px;
}
.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 1.1rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.02;
  margin: 0 0 1.4rem;
  letter-spacing: 0.01em;
}
.hero-title .esq { color: var(--gold-light); font-style: italic; }
.hero-lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.86);
  max-width: 40ch;
  margin: 0 0 2.2rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.4rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}
.hero-badges li { display: flex; align-items: center; gap: 0.55rem; }
.badge-num {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 1.05rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-light);
  display: inline-block;
}

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-media {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.portrait {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
  position: relative;
}
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.portrait figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.25rem 1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(to top, rgba(14,23,41,0.85), transparent);
}
.about-text p { color: var(--slate); font-size: 1.05rem; margin: 0 0 1.15rem; }
.civic-note {
  margin: 1.6rem 0 0.5rem !important;
  padding: 0.9rem 1.1rem;
  background: var(--mist);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.98rem !important;
  color: var(--navy) !important;
}
.civic-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.cred h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.cred p { margin: 0; color: var(--navy); font-weight: 500; line-height: 1.5; font-size: 0.98rem; }
.cred-num { color: var(--slate); font-weight: 400; font-size: 0.9rem; }

.about-card {
  background: var(--navy);
  color: var(--white);
  padding: 2.25rem 2rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.about-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.9rem;
}
.about-card p { color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; margin: 0 0 1.5rem; }
.about-card-email { text-align: center; margin: 1.25rem 0 0 !important; font-size: 0.92rem; }
.about-card-email a { color: var(--gold-light); }

/* ---------- Practice Areas ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.practice-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.practice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold-light);
}
.practice-icon {
  font-size: 1.9rem;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mist);
  border-radius: 50%;
  margin-bottom: 1.25rem;
}
.practice-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.65rem;
}
.practice-card p { color: var(--slate); font-size: 0.96rem; margin: 0; }

/* ---------- Why ---------- */
.why { background: var(--cream); }
.why-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.why-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.why-list li {
  position: relative;
  padding: 0 0 1.25rem 2rem;
  color: var(--slate);
  font-size: 1.03rem;
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
}
.why-list strong { color: var(--navy); font-weight: 600; }

.why-stats {
  display: grid;
  gap: 1.25rem;
}
.stat {
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Contact ---------- */
.contact {
  background:
    linear-gradient(150deg, rgba(14, 23, 41, 0.95), rgba(34, 51, 84, 0.92)),
    var(--navy-deep);
  color: var(--white);
  text-align: center;
}
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-title { color: var(--white); }
.contact-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  margin: 0 auto 2.5rem;
}
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.contact-method {
  flex: 1 1 200px;
  max-width: 240px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 1.35rem 1rem;
  display: block;
}
a.contact-method:hover { background: rgba(255, 255, 255, 0.12); }
.contact-method-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.contact-method-value {
  display: block;
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  word-break: break-word;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-name { color: var(--white); font-size: 1.3rem; }
.footer-brand .brand-title {
  text-transform: none;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 4px;
}
.footer-contact { display: flex; flex-direction: column; gap: 0.35rem; text-align: right; }
.footer-contact a { color: var(--gold-light); font-weight: 500; }
.footer-legal { padding-top: 1.75rem; }
.footer-legal p { margin: 0 0 0.75rem; font-size: 0.85rem; }
.disclaimer { color: rgba(255, 255, 255, 0.45); font-size: 0.78rem; line-height: 1.6; max-width: 75ch; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 460px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-list.open { max-height: 340px; }
  .nav-list li { border-bottom: 1px solid var(--mist); }
  .nav-list a { display: block; padding: 0.9rem 24px; }
  .nav-cta { border-radius: 0; margin: 0.5rem 24px; text-align: center; }
}

@media (max-width: 560px) {
  .practice-grid { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
