/* ═══════════════════════════════════════
   Miller Federal Law — Shared Styles
   ═══════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ivory: #f5f0e8;
  --dark: #1a1f1a;
  --evergreen: #2d4a3e;
  --evergreen-deep: #162b21;
  --evergreen-mid: #3d5c50;
  --amber: #c8832a;
  --amber-light: #e0a84e;
  --mid: #3d4a3d;
  --rule: rgba(200,131,42,0.3);
  --warning-bg: #fdf6ec;
  --warning-border: #c8832a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--ivory);
  color: var(--dark);
  overflow-x: hidden;
}

/* ═══════════ NAV ═══════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 60px;
  background: var(--evergreen-deep);
}

.nav-left {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img { height: 52px; width: auto; }

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

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248,245,240,0.65);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--amber-light); }

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 12px;
  align-items: center;
  border-left: 1px solid rgba(248,245,240,0.12);
  padding-left: 24px;
}

.lang-switcher a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248,245,240,0.35);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s;
  padding: 4px 8px;
  border-radius: 3px;
}

.lang-switcher a:hover { color: rgba(248,245,240,0.7); }

.lang-switcher a.active {
  color: var(--amber-light);
  background: rgba(200,131,42,0.12);
}

.lang-switcher .lang-flag { font-size: 0.85rem; line-height: 1; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  right: 0; bottom: 0;
  height: 96%;
  width: auto;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  animation: fadeIn 1.4s ease forwards;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26,31,26,0.95) 0%, rgba(30,51,41,0.75) 45%, rgba(45,74,62,0.15) 75%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 80px;
  max-width: 560px;
  animation: slideUp 1s ease 0.4s both;
}

.hero-eyebrow { font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--amber-light); margin-bottom: 22px; font-weight: 400; line-height: 2.2; }
.hero-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 5vw, 4.8rem); font-weight: 300; line-height: 1.0; color: var(--ivory); margin-bottom: 8px; }
.hero-name em { font-style: italic; color: var(--amber-light); }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 300; color: rgba(248,245,240,0.55); letter-spacing: 0.08em; margin-bottom: 36px; }
.hero-desc { font-size: 0.82rem; line-height: 1.85; color: rgba(248,245,240,0.65); font-weight: 300; max-width: 420px; margin-bottom: 48px; }
.hero-cta { display: inline-block; padding: 14px 36px; border: 1px solid var(--amber); color: var(--amber-light); font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; text-decoration: none; font-weight: 400; transition: all 0.3s ease; }
.hero-cta:hover { background: var(--amber); color: var(--ivory); }
.rule { width: 48px; height: 1px; background: var(--amber); margin-bottom: 28px; }

/* ═══════════ CREDENTIALS BAR ═══════════ */
.credentials-bar { background: var(--evergreen-deep); border-top: 1px solid rgba(200,131,42,0.25); padding: 22px 60px; display: flex; gap: 48px; align-items: center; overflow-x: auto; }
.cred-item { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(248,245,240,0.4); white-space: nowrap; font-weight: 300; }
.cred-sep { width: 1px; height: 16px; background: rgba(200,131,42,0.35); flex-shrink: 0; }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 110px 60px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 1100px; margin: 0 auto; align-items: start; }
.section-label { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; font-weight: 400; }
.section-heading { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300; line-height: 1.15; margin-bottom: 32px; color: var(--dark); }
.section-heading em { font-style: italic; color: var(--amber); }
.body-text { font-size: 0.88rem; line-height: 1.9; color: var(--mid); font-weight: 300; margin-bottom: 20px; }
.credentials-list { list-style: none; margin-top: 36px; }
.credentials-list li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.07); font-size: 0.78rem; font-weight: 300; color: var(--mid); }
.credentials-list li::before { content: ''; width: 20px; height: 1px; background: var(--amber); flex-shrink: 0; margin-top: 8px; }

/* ═══════════ PRACTICE AREAS ═══════════ */
.practice-bg { background: var(--evergreen-deep); color: var(--ivory); }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(200,131,42,0.2); max-width: 1100px; margin: 0 auto; }
.practice-card { background: var(--evergreen); padding: 50px 44px; transition: background 0.3s; }
.practice-card:hover { background: var(--evergreen-mid); }
.practice-number { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; color: rgba(200,131,42,0.3); line-height: 1; margin-bottom: 24px; }
.practice-card:hover .practice-number { color: rgba(200,131,42,0.45); }
.practice-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; color: var(--ivory); margin-bottom: 16px; }
.practice-desc { font-size: 0.78rem; line-height: 1.85; color: rgba(248,245,240,0.45); font-weight: 300; }

/* ═══════════ CONTACT ═══════════ */
.contact-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-inner .section-heading { text-align: center; margin-bottom: 20px; }
.contact-inner .body-text { text-align: center; margin-bottom: 48px; }
.contact-phone { display: block; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--mid); text-decoration: none; margin-bottom: 6px; font-weight: 300; transition: color 0.3s; }
.contact-phone:hover { color: var(--amber); }
.contact-email { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 300; color: var(--amber); display: block; margin-bottom: 40px; text-decoration: none; letter-spacing: 0.04em; transition: color 0.3s; }
.contact-email:hover { color: var(--amber-light); }

.admission-block { border-top: 1px solid rgba(0,0,0,0.08); border-bottom: 1px solid rgba(0,0,0,0.08); padding: 24px 0; margin-bottom: 32px; text-align: left; }
.admission-line { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--mid); font-weight: 400; line-height: 1.6; margin-bottom: 6px; display: flex; align-items: baseline; gap: 10px; }
.admission-check { color: var(--evergreen); font-size: 0.85rem; flex-shrink: 0; }
.admission-x { color: #b03a2e; font-size: 0.85rem; flex-shrink: 0; }
.admission-not { color: #b03a2e; font-weight: 500; }

/* Warning block */
.warning-block { background: var(--warning-bg); border-left: 3px solid var(--warning-border); padding: 22px 26px; margin-bottom: 36px; text-align: left; border-radius: 0 4px 4px 0; }
.warning-block .warning-title { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); font-weight: 500; margin-bottom: 10px; }
.warning-block .warning-text { font-size: 0.76rem; line-height: 1.85; color: var(--mid); font-weight: 300; }
.warning-block .warning-text strong { font-weight: 500; color: var(--dark); }

/* ═══════════ FOOTER ═══════════ */
footer { background: var(--evergreen-deep); border-top: 1px solid rgba(200,131,42,0.15); padding: 36px 60px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-logo-img { height: 24px; width: auto; opacity: 0.4; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(248,245,240,0.4); flex-shrink: 0; }
.footer-center { display: flex; gap: 24px; }
.footer-center a { font-size: 0.6rem; letter-spacing: 0.12em; color: rgba(248,245,240,0.3); text-decoration: none; font-weight: 300; transition: color 0.3s; }
.footer-center a:hover { color: var(--amber-light); }
.footer-legal { font-size: 0.6rem; letter-spacing: 0.1em; color: rgba(248,245,240,0.2); font-weight: 300; text-align: right; min-width: 0; }

/* ═══════════ LEGAL PAGES ═══════════ */
.page-header { background: var(--evergreen-deep); padding: 130px 60px 60px; text-align: center; }
.page-header h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; color: var(--ivory); margin-bottom: 8px; }
.page-header h1 em { font-style: italic; color: var(--amber-light); }
.page-header .subtitle { font-size: 0.78rem; color: rgba(248,245,240,0.5); font-weight: 300; letter-spacing: 0.06em; margin-bottom: 12px; }
.page-header .contact-line { font-size: 0.7rem; color: rgba(248,245,240,0.35); font-weight: 300; letter-spacing: 0.08em; }
.page-header .contact-line a { color: var(--amber-light); text-decoration: none; }
.page-header .contact-line a:hover { text-decoration: underline; }

.translation-notice-bar { max-width: 740px; margin: 0 auto; padding: 28px 60px 0; }
.translation-notice-inner { background: rgba(200,131,42,0.08); border: 1px solid rgba(200,131,42,0.25); border-radius: 4px; padding: 16px 22px; font-size: 0.78rem; line-height: 1.75; color: var(--mid); font-weight: 300; }
.translation-notice-inner strong { color: var(--amber); font-weight: 500; }

.intro-block { max-width: 740px; margin: 0 auto; padding: 48px 60px 0; font-size: 0.84rem; line-height: 1.9; color: var(--mid); font-weight: 300; font-style: italic; border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 40px; }
.legal-body { max-width: 740px; margin: 0 auto; padding: 20px 60px 80px; }
.legal-body h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 400; color: var(--dark); margin-top: 52px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.legal-body h2 .num { color: var(--amber); font-weight: 500; margin-right: 4px; }
.legal-body p { font-size: 0.84rem; line-height: 1.9; color: var(--mid); font-weight: 300; margin-bottom: 16px; }
.legal-body p strong { font-weight: 500; color: var(--dark); }
.consent-sample { background: rgba(45,74,62,0.05); border-left: 2px solid var(--amber); padding: 16px 22px; margin: 16px 0 20px; font-size: 0.8rem; line-height: 1.85; color: var(--mid); font-style: italic; font-weight: 300; }
.contact-block { margin: 16px 0; padding-left: 20px; border-left: 2px solid var(--rule); }
.contact-block p { margin-bottom: 4px; }
.legal-footer { max-width: 740px; margin: 0 auto; padding: 0 60px 60px; text-align: center; }
.legal-footer .rule { width: 48px; height: 1px; background: var(--amber); margin: 0 auto 28px; }
.legal-footer .copyright { font-size: 0.72rem; color: var(--mid); font-weight: 300; margin-bottom: 8px; }
.legal-footer .fine-print { font-size: 0.66rem; color: rgba(61,74,61,0.5); font-weight: 300; font-style: italic; line-height: 1.7; }

/* ═══════════ CONTACT FORM ═══════════ */
.contact-form { width: 100%; max-width: 480px; margin: 0 auto 40px; text-align: left; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); font-weight: 400; margin-bottom: 8px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--dark);
  background: white;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--amber); }
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row select { cursor: pointer; }
.form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; }
.form-consent input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--amber); -webkit-appearance: auto; }
.form-consent label { font-size: 0.72rem; line-height: 1.65; color: var(--mid); font-weight: 300; letter-spacing: 0; text-transform: none; margin-bottom: 0; }
.form-consent label a { color: var(--amber); text-decoration: none; }
.form-consent label a:hover { text-decoration: underline; }
.h-captcha-wrap { margin: 20px 0; display: flex; justify-content: center; }
.form-submit {
  display: inline-block;
  padding: 14px 48px;
  border: 1px solid var(--amber);
  color: var(--amber-light);
  background: transparent;
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}
.form-submit:hover { background: var(--amber); color: var(--ivory); }
.form-or-divider { display: flex; align-items: center; gap: 16px; margin: 32px 0; color: var(--mid); font-size: 0.72rem; font-weight: 300; }
.form-or-divider::before, .form-or-divider::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.08); }

/* ═══════════ ANIMATIONS ═══════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 0.9; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
  nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-logo-img { height: 38px; }
  .lang-switcher { padding-left: 12px; gap: 6px; }
  .hero-content { padding: 0 28px 60px; }
  .section { padding: 70px 28px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .practice-grid { grid-template-columns: 1fr; }
  .credentials-bar { padding: 20px 28px; }
  .contact-email { font-size: 1.3rem; }
  .form-row-half { grid-template-columns: 1fr; }
  footer { padding: 28px; flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { text-align: center; }
  .footer-center { justify-content: center; }
  .page-header { padding: 110px 28px 48px; }
  .translation-notice-bar { padding: 20px 28px 0; }
  .intro-block { padding: 36px 28px 32px; }
  .legal-body { padding: 16px 28px 60px; }
  .legal-body h2 { margin-top: 40px; }
  .legal-footer { padding: 0 28px 48px; }
}

/* ── Success Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(4px); }
.modal-box { background: #fff; border-radius: 6px; padding: 48px 40px 36px; text-align: center; max-width: 420px; width: 90%; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.modal-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--evergreen); color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; color: var(--charcoal); margin-bottom: 10px; }
.modal-text { font-size: 0.82rem; color: #666; line-height: 1.6; font-weight: 300; margin-bottom: 28px; }
.modal-close { background: var(--evergreen); color: #fff; border: none; padding: 10px 36px; font-family: 'Raleway', sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; border-radius: 3px; transition: background 0.2s; }
.modal-close:hover { background: var(--evergreen-deep); }
