/* ============================================================
   YOUR LAW FIRM — SHARED STYLESHEET
   All pages use this file. Edit here to change the whole site.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0c1220;
  --navy-mid:   #141e30;
  --navy-light: #1e2d45;
  --gold:       #c8a96e;
  --gold-light: #e0c896;
  --gold-dim:   #8a6f42;
  --cream:      #f5f0e8;
  --cream-dim:  #d9d0bc;
  --white:      #ffffff;
  --muted:      #8a9ab5;
  --divider:    rgba(200,169,110,0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── PRELOADER ── */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden { opacity: 0; visibility: hidden; }

.pre-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem; letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.pre-bar-wrap {
  width: 200px; height: 1px;
  background: rgba(200,169,110,0.15);
  overflow: hidden;
}

.pre-bar {
  height: 100%; width: 0;
  background: var(--gold);
  animation: loadBar 1.6s 0.5s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes loadBar {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 5vw;
  background: rgba(12,18,32,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem; letter-spacing: 0.15em;
  color: var(--gold); text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--cream); }

.nav-links { display: flex; gap: 2.2rem; list-style: none; }

.nav-links a {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-dim); text-decoration: none; transition: color 0.2s;
  position: relative; padding-bottom: 2px;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  position: absolute; top: calc(100% + 1rem); left: -1rem;
  background: var(--navy-mid);
  border: 1px solid var(--divider);
  min-width: 200px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  z-index: 200;
}

.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown a {
  display: block; padding: 0.7rem 1.2rem;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream-dim); text-decoration: none;
  border-bottom: 1px solid var(--divider);
  transition: background 0.15s, color 0.15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: rgba(200,169,110,0.06); color: var(--gold); }

.nav-cta {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.65rem 1.6rem; border: 1px solid var(--gold);
  color: var(--gold); text-decoration: none; transition: all 0.25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: var(--navy); }

/* Hamburger mobile */
.nav-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--cream); transition: all 0.3s; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 10rem 5vw 5rem;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--divider);
  position: relative; overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(200,169,110,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.page-hero-eyebrow::before { content: ''; display: block; width: 30px; height: 1px; background: var(--gold); }

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 300; line-height: 1.15; color: var(--white);
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }

.page-hero-sub {
  font-size: 1rem; color: var(--muted); max-width: 520px;
  margin-top: 1.2rem; line-height: 1.8;
}

.breadcrumb {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold-dim); }

/* ── SHARED SECTION STYLES ── */
section { padding: 6rem 5vw; }

.section-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.7rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 300; line-height: 1.2; color: var(--white);
}
.section-title em { font-style: italic; color: var(--gold-light); }

.section-lead {
  font-size: 0.95rem; color: var(--muted); max-width: 560px;
  line-height: 1.85; margin-top: 1rem; margin-bottom: 2.5rem;
}

.gold-line { width: 50px; height: 1px; background: var(--gold); margin: 1.2rem 0 2rem; }

/* ── BUTTONS ── */
.btn-gold {
  display: inline-block; padding: 0.9rem 2.2rem;
  background: var(--gold); color: var(--navy);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; transition: background 0.25s;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2.2rem; border: 1px solid var(--gold);
  color: var(--gold); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; transition: all 0.25s;
}
.btn-outline:hover { background: var(--gold); color: var(--navy); }

.btn-text {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; transition: gap 0.2s;
}
.btn-text:hover { gap: 0.9rem; }
.btn-text::after { content: '→'; }

/* ── PHOTO PLACEHOLDERS ── */
.ph {
  background: var(--navy-light); border: 1px solid var(--divider);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 2rem; text-align: center;
}
.ph-label {
  font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-dim); line-height: 2.2; margin-top: 0.5rem;
  border: 1px dashed rgba(200,169,110,0.25); padding: 0.6rem 1rem;
}
.ph-icon { font-size: 2rem; opacity: 0.4; margin-bottom: 0.3rem; }

/* ── IMPACT BAR ── */
.impact-bar {
  background: var(--gold); padding: 4.5rem 5vw;
}
.impact-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.impact-item { text-align: center; }
.impact-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300; color: var(--navy); line-height: 1;
}
.impact-label {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-mid); margin-top: 0.4rem;
}

/* ── FOOTER ── */
footer {
  background: var(--navy-mid);
  padding: 4rem 5vw 2rem;
  border-top: 1px solid var(--divider);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem; letter-spacing: 0.15em; color: var(--gold);
  display: block; margin-bottom: 1rem; text-decoration: none;
}
.footer-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.8; max-width: 270px; }
.footer-col-title {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a {
  font-size: 0.83rem; color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--divider);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* ── ANIMATIONS (page entry) ── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  animation: fadeIn 0.7s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

/* ── FORM ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--navy-light);
  border: 1px solid rgba(200,169,110,0.2);
  color: var(--cream); padding: 0.8rem 1rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  outline: none; transition: border-color 0.2s; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%; padding: 0.95rem;
  background: var(--gold); border: none; color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; cursor: pointer; transition: background 0.25s;
}
.btn-submit:hover { background: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .impact-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-mid); padding: 1.5rem 5vw;
    border-bottom: 1px solid var(--divider); gap: 1.2rem;
  }
  nav.open .nav-cta { display: block; margin: 0 5vw 1.5rem; text-align: center; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .impact-inner { grid-template-columns: 1fr 1fr; }
}
/* ── CHECKBOX FIX ── */
.form-group input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  appearance: checkbox !important;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  accent-color: var(--gold);
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin-top: 3px !important;
}