/* ===================================
   Mwangi & Odhiambo Advocates
   Navy / Gold theme
   =================================== */

:root {
  --navy: #0b1f3d;
  --navy-deep: #071527;
  --navy-line: #24385c;
  --gold: #c9a227;
  --gold-soft: #e4c96b;
  --cream: #f7f5ef;
  --ink: #171614;
  --ink-soft: #4a4744;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--navy-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 6.5rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '§';
  position: absolute;
  font-family: var(--font-display);
  font-size: 32rem;
  color: rgba(201, 162, 39, 0.05);
  right: -4rem;
  top: -6rem;
  line-height: 1;
  pointer-events: none;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  display: inline-block;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  max-width: 20ch;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

.hero p {
  max-width: 46ch;
  color: #cbd4e3;
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
}

.btn-primary:hover { background: var(--gold-soft); }

.btn-ghost {
  border-color: rgba(247, 245, 239, 0.4);
  color: var(--cream);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Section framing ---------- */

.section {
  padding: 5rem 0;
}

.section-alt { background: #efece2; }

.section-head {
  margin-bottom: 3rem;
  max-width: 60ch;
}

.section-head .eyebrow { color: var(--navy); opacity: 0.65; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.section-head p { color: var(--ink-soft); }

/* ---------- Practice area cards (statute-citation styled) ---------- */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.practice-card {
  background: var(--cream);
  border: 1px solid #ddd8c8;
  border-top: 3px solid var(--gold);
  padding: 2rem 1.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 31, 61, 0.1);
}

.practice-card .cap {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: block;
}

.practice-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.practice-card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- About / attorneys ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.about-grid p { color: var(--ink-soft); margin-bottom: 1rem; }

.stat-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd8c8;
}

.stat-row .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  display: block;
}

.stat-row .label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.attorney-photo-block {
  background: var(--navy);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 1.6rem;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.attorney-photo-block img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attorney-photo-block span {
  position: relative;
  z-index: 1;
  background: linear-gradient(to top, rgba(7, 21, 39, 0.85), transparent);
  display: block;
  width: 100%;
  padding: 1.2rem 0 0;
  margin: -1.6rem;
  padding-left: 1.6rem;
  padding-bottom: 1.2rem;
}

.attorney-photo-block span { font-size: 0.82rem; color: var(--gold-soft); }

/* ---------- Team grid (attorneys page) ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.team-card { background: var(--cream); border: 1px solid #ddd8c8; }

.team-photo {
  background: var(--navy);
  height: 220px;
}

.team-card .team-body { padding: 1.4rem 1.5rem; }

.team-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.team-card .role {
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  display: block;
}

.team-card p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.cta-banner p { color: #cbd4e3; margin-bottom: 1.8rem; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info .item { margin-bottom: 1.6rem; }

.contact-info .item .k {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}

.contact-info .item .v { color: var(--navy); font-size: 1.02rem; }

form { display: flex; flex-direction: column; gap: 1.1rem; }

.field label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #ccc6b4;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #9fb0c8;
  padding: 3rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.footer-grid h4 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold-soft); }

.footer-map {
  width: 100%;
  height: 260px;
  border: 1px solid var(--navy-line);
  margin-bottom: 2rem;
  filter: grayscale(0.3) contrast(1.05);
}

.footer-bottom {
  border-top: 1px solid var(--navy-line);
  padding-top: 1.4rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    display: none;
    border-top: 1px solid var(--navy-line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}