:root {
  --cream: #f6f1e6;
  --burgundy: #4b0e14;
  --burgundy-2: #641820;
  --text: #202725;
  --muted: #6d6561;
  --line: rgba(75, 14, 20, 0.16);
  --overlay: rgba(37, 22, 22, 0.55);
  --white: #fffaf0;
  --footer-box: rgba(255, 250, 240, 0.42);
  --shadow: 0 30px 80px rgba(75, 14, 20, 0.16);
  --radius: 28px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
a { color: var(--burgundy); }

.landing {
  min-height: calc(100vh - 132px);
  display: grid;
  place-items: center;
  padding: 20px 28px 18px;
}

.hero {
  width: min(100%, 1080px);
  min-height: 58vh;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  text-align: center;
  animation: fadeIn 700ms ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-emblem {
  width: min(82px, 16vw);
  height: auto;
  display: block;
  margin-bottom: 12px;
  opacity: 0.9;
}

.logo {
  width: min(640px, 86vw);
  max-height: 310px;
  object-fit: contain;
  height: auto;
  display: block;
}

.button-group {
  margin-top: clamp(60px, 8vh, 92px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.action-button {
  appearance: none;
  min-width: 156px;
  border: 1px solid rgba(75, 14, 20, 0.42);
  background: transparent;
  color: var(--burgundy);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.action-button:hover {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
  transform: translateY(-1px);
}

.submit-button {
  appearance: none;
  border: 1px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--cream);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 720;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.submit-button:hover { background: var(--burgundy-2); transform: translateY(-1px); }

.office-footer { padding: 0 28px 26px; color: var(--burgundy); }
.footer-inner {
  width: min(100%, 910px);
  margin: 0 auto;
  padding: 15px 24px;
  border: 1px solid rgba(75, 14, 20, 0.11);
  border-radius: 24px;
  background: var(--footer-box);
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1.15fr;
  gap: 24px;
  align-items: center;
}
.footer-block { text-align: center; min-width: 0; }
.footer-label {
  margin: 0 0 7px;
  color: rgba(75, 14, 20, 0.72);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.office-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.office-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--burgundy);
  padding: 0;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--burgundy);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.94rem;
  min-width: 0;
}
.contact-link span { overflow-wrap: anywhere; }
.modern-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
}
.office-link:hover, .contact-link:hover { opacity: 0.72; text-decoration: none; }
.footer-divider { color: rgba(75, 14, 20, 0.45); }

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: var(--overlay);
  z-index: 1000;
}
.modal-overlay.active { display: grid; }
.modal-card {
  position: relative;
  width: min(100%, 760px);
  max-height: min(86vh, 860px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.modal-card h2 {
  margin: 0 0 18px;
  color: var(--burgundy);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
}
.modal-card h3 {
  color: var(--burgundy);
  margin: 22px 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.modal-card p { margin: 0 0 14px; line-height: 1.72; }
.practice-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.practice-groups ol { margin: 0; padding-left: 22px; }
.practice-groups li { margin-bottom: 10px; line-height: 1.55; }
.contact-form { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 6px; font-weight: 650; }
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(75, 14, 20, 0.18);
  border-radius: 14px;
  background: #fffdf6;
  color: var(--text);
}
textarea { resize: vertical; }
.optional { color: var(--muted); font-weight: 500; }
.honeypot { display: none; }
.contact-details { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(75, 14, 20, 0.14); }
.close-button {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.close-button:hover { color: var(--burgundy); }
.location-modal { text-align: center; }
.status-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; text-align: center; }
.status-card {
  width: min(100%, 640px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
}
.status-card h1 { margin: 0 0 12px; color: var(--burgundy); }
.status-card p { line-height: 1.7; }
.back-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--cream);
  background: var(--burgundy);
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 760px) {
  .landing { min-height: auto; padding: 64px 22px 34px; }
  .hero { min-height: auto; }
  .hero-emblem { width: min(76px, 20vw); margin-bottom: 10px; }
  .logo { width: min(94vw, 640px); max-height: 280px; }
  .button-group { width: 100%; flex-direction: column; margin-top: 46px; }
  .action-button, .submit-button { width: 100%; }
  .office-footer { padding: 0 22px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; padding: 20px 18px; }
  .office-links { gap: 9px; }
  .modal-card { padding: 30px 22px 24px; border-radius: 22px; }
  .practice-groups { grid-template-columns: 1fr; gap: 10px; }
}
