/* ===== Root variables — Light theme (default) ===== */
:root {
  --bg: #f5f4f1;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-alt: #eeece6;
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --muted: #74716b;
  --border: #e0ddd5;
  --accent: #8a1f2b;
  --accent-soft: #b6394a;
  --gold: #a8842f;
  --shadow: 0 10px 30px rgba(20, 18, 15, 0.08);
  --radius: 14px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Segoe UI", Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0f0e0d;
  --bg-alt: #171513;
  --surface: #1c1a18;
  --surface-alt: #221f1c;
  --text: #f2efe9;
  --text-soft: #cbc6bc;
  --muted: #948d80;
  --border: #322e29;
  --accent: #c9505f;
  --accent-soft: #e07b87;
  --gold: #d3ac4e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

p { margin: 0 0 1em; color: var(--text-soft); }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.brand .scale-icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.brand span.mark { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--accent);
}

.nav-right { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--accent-soft); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 110px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p.lead {
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stats .stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
}

.hero-stats .stat span {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero-visual svg { width: 100%; height: auto; color: var(--accent); }

/* ===== Cards / Practice areas ===== */
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ===== Split / About ===== */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.split-visual {
  border-radius: 20px;
  background: linear-gradient(150deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border);
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
}
.split-visual svg { width: 80%; color: var(--accent); }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
  font-size: 0.97rem;
  color: var(--text-soft);
}
.checklist svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ===== Stats band ===== */
.stats-band {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-band .stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--accent);
}
.stats-band .stat span {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Testimonials ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.testimonial .stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p.quote { font-style: italic; color: var(--text); }
.testimonial .who { font-weight: 600; font-size: 0.9rem; color: var(--muted); }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border-radius: 24px;
  margin: 0 24px;
  padding: 60px 50px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.88); margin-bottom: 0; }
.cta-band .btn-primary { background: #fff; color: var(--accent); }
.cta-band .btn-primary:hover { background: #f2eee9; }

/* ===== Contact page ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; gap: 18px; align-items: flex-start;
  margin-bottom: 18px;
}
.info-card .icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-card .icon svg { width: 22px; height: 22px; }
.info-card h4 { margin-bottom: 4px; font-size: 1rem; }
.info-card p { margin-bottom: 0; font-size: 0.92rem; }

.map-box {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 190px;
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error-msg {
  display: none;
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 6px;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--accent); }
.field.invalid .error-msg { display: block; }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
}

.alert {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.alert.show { display: block; }
.alert-success {
  background: color-mix(in srgb, #2e7d32 16%, transparent);
  color: #2e7d32;
  border: 1px solid color-mix(in srgb, #2e7d32 30%, transparent);
}
[data-theme="dark"] .alert-success { color: #7fd88b; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item h4 { margin-bottom: 8px; font-size: 1.02rem; }
.faq-item p { margin-bottom: 0; font-size: 0.93rem; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 26px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-grid ul li a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; gap: 10px;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats-band .container { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-band .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  section { padding: 60px 0; }
}

/* Mobile nav open state */
body.nav-open .nav-links {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 26px;
  gap: 18px;
}
