/* ============================================
   MARSHALL & PRUITT LAW — Design System
   Black + Gold, boutique real estate law firm
   ============================================ */

:root {
  /* Color */
  --ink:          #0a0a0b;   /* near-black background */
  --ink-2:        #131315;   /* raised black panels */
  --ink-3:        #1c1c1f;   /* borders on black */
  --gold:         #c9a44c;   /* primary gold (from logo) */
  --gold-bright:  #e6c878;   /* hover / highlight gold */
  --gold-deep:    #8a6c2f;   /* shadow gold / rules */
  --cream:        #f6f2e9;   /* warm off-white background */
  --paper:        #ffffff;   /* pure white panels */
  --slate:        #57575c;   /* body text on white */
  --slate-soft:   #8a8a8f;   /* secondary text on white */
  --bone:         #d9d4c6;   /* soft text on black */
  --bone-dim:     #8f8b7c;   /* dim secondary text on black */

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-label:   'Inter', sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: 0.005em;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}

.eyebrow.on-dark { color: var(--gold); }

.rule {
  width: 56px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 18px 0 26px;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 16px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost-dark {
  border-color: rgba(255,255,255,0.35);
  color: var(--paper);
}
.btn-ghost-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-light {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost-light:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,11,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-3);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a.nav-link {
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}
.main-nav a.nav-link:hover,
.main-nav li.active a.nav-link { color: var(--gold); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-top: 2px solid var(--gold);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--bone);
  font-family: var(--font-label);
}
.dropdown a:hover { color: var(--gold); background: rgba(201,164,76,0.08); }

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 12px 22px; font-size: 11.5px; }

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

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0.75;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,11,0.92) 6%, rgba(10,10,11,0.55) 50%, rgba(10,10,11,0.18) 100%),
    linear-gradient(0deg, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.05) 45%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero-content h1 {
  color: var(--paper);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  max-width: 780px;
  margin-bottom: 20px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-content .lede {
  color: var(--bone);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Page header (non-home hero, shorter) */
.page-header {
  position: relative;
  background: var(--ink);
  padding: 150px 0 80px;
  overflow: hidden;
}
.page-header .hero-grid { opacity: 0.45; }
.page-header .wrap { position: relative; z-index: 2; }
.page-header .eyebrow { color: var(--gold); }
.page-header h1 { color: var(--paper); font-size: clamp(34px, 5vw, 54px); margin-bottom: 14px; }
.page-header p { color: var(--bone); max-width: 620px; font-size: 17px; margin: 0; }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.on-dark { background: var(--ink); color: var(--bone); }
.on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }
.on-paper { background: var(--paper); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--slate-soft); font-size: 17px; }
.on-dark .section-head p { color: var(--bone-dim); }

/* -------- Intro / welcome -------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.intro-copy p { font-size: 17px; color: var(--slate); }
.intro-figure {
  position: relative;
  border: 1px solid var(--ink-3);
  padding: 8px;
  background: var(--ink);
}
.intro-figure img { width: 100%; height: 420px; object-fit: cover; }
.intro-figure::before {
  content: '';
  position: absolute;
  top: -14px; left: -14px;
  width: 90px; height: 90px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.intro-figure::after {
  content: '';
  position: absolute;
  bottom: -14px; right: -14px;
  width: 90px; height: 90px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

/* -------- Practice area cards -------- */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.practice-card {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  padding: 44px 40px;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.practice-card:hover { border-color: var(--gold-deep); transform: translateY(-4px); }
.practice-card .num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}
.practice-card h3 { color: var(--paper); font-size: 26px; margin: 18px 0 14px; }
.practice-card p { color: var(--bone-dim); font-size: 15.5px; }
.practice-card .door-icon { width: 34px; height: 34px; margin-bottom: 10px; }
.practice-card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* -------- Stats strip -------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
  padding: 44px 0;
}
.stat h3 { font-size: 40px; color: var(--gold); margin-bottom: 6px; }
.stat span {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* -------- Team -------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.team-card {
  background: var(--paper);
  border: 1px solid #e7e1d2;
}
.team-photo { position: relative; overflow: hidden; }
.team-photo img { width: 100%; height: 440px; object-fit: cover; object-position: top center; filter: grayscale(15%); }
.team-photo::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--gold);
}
.team-info { padding: 32px 34px 38px; }
.team-info h3 { font-size: 24px; margin-bottom: 2px; }
.team-info .role {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}
.team-info p { color: var(--slate); font-size: 15.5px; }

/* -------- Mission/vision -------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.pillar {
  padding: 40px;
  border: 1px solid #e7e1d2;
  background: var(--paper);
}
.pillar .eyebrow { color: var(--gold-deep); }
.pillar h3 { font-size: 24px; }
.pillar p { color: var(--slate); }

.quote-block {
  border-left: 3px solid var(--gold);
  padding-left: 34px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.5;
  color: var(--paper);
  font-style: italic;
  max-width: 780px;
}

/* -------- Media / video -------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.video-card { background: var(--ink-2); border: 1px solid var(--ink-3); max-width: 340px; margin: 0 auto; }
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* 9:16 vertical — these are YouTube Shorts */
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-caption { padding: 20px 22px 24px; }
.video-caption h4 { color: var(--paper); font-size: 16px; margin-bottom: 4px; }
.video-caption span { color: var(--bone-dim); font-size: 13px; font-family: var(--font-label); }

/* -------- Contact -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.office-card {
  padding: 30px 0;
  border-top: 1px solid #e7e1d2;
}
.office-card:first-child { border-top: none; padding-top: 0; }
.office-card .eyebrow { color: var(--gold-deep); margin-bottom: 8px; }
.office-card h3 { font-size: 22px; margin-bottom: 8px; }
.office-card p { color: var(--slate); margin-bottom: 4px; }
.office-card a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.office-card a:hover { color: var(--gold-deep); }

.map-embed { width: 100%; height: 100%; min-height: 460px; border: 1px solid #e7e1d2; filter: grayscale(30%) contrast(1.05); }

/* -------- Forms -------- */
.form-panel {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  padding: 44px;
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--ink-3);
  color: var(--paper);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--bone-dim); font-size: 13px; margin-top: 18px; }

/* ============================================
   TESTIMONIALS (global, footer)
   ============================================ */
.testimonials {
  background: var(--ink);
  padding: 90px 0 80px;
  text-align: center;
  border-top: 1px solid var(--ink-3);
}
.testimonial-track { max-width: 760px; margin: 0 auto; min-height: 190px; position: relative; }
.testimonial-slide {
  display: none;
  animation: fadeIn 0.6s ease;
}
.testimonial-slide.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.testimonial-slide p.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.55;
  color: var(--paper);
  margin-bottom: 22px;
}
.testimonial-slide .attribution {
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testimonial-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--gold-deep);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.testimonial-dots button.active { background: var(--gold); }

/* ============================================
   FOOTER
   ============================================ */
footer.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--ink-3);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--ink-3);
}
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-brand p { color: var(--bone-dim); font-size: 14px; max-width: 260px; }
.footer-col h4 {
  color: var(--paper);
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--bone-dim); font-size: 14.5px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p { margin: 0; color: var(--bone-dim); font-size: 13px; }
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom .legal-links a { color: var(--bone-dim); font-size: 13px; }
.footer-bottom .legal-links a:hover { color: var(--gold); }

/* ============================================
   PRIVACY PAGE
   ============================================ */
.legal-copy { max-width: 820px; }
.legal-copy h2 { font-size: 22px; margin-top: 40px; }
.legal-copy p, .legal-copy li { color: var(--slate); font-size: 15.5px; }
.legal-copy ol, .legal-copy ul { padding-left: 22px; }
.legal-updated { color: var(--slate-soft); font-size: 13px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 30px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .intro-grid, .practice-grid, .team-grid, .contact-grid, .pillars { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 20px; }
}
