/* ===========================================================
   Budnick Law Group — base stylesheet
   Palette: navy #0f2a44 / bronze-gold #b08d57 / cream #faf8f4
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy: #0f2a44;
  --navy-deep: #0a1d31;
  --navy-soft: #1a3a5c;
  --gold: #b08d57;
  --gold-light: #d4b878;
  --gold-soft: #e8d9bd;
  --cream: #faf8f4;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #5a5a5a;
  --line: #e5e0d6;
  --shadow-sm: 0 2px 6px rgba(15, 42, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 42, 68, 0.1);
  --shadow-lg: 0 18px 48px rgba(15, 42, 68, 0.14);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand { display: flex; align-items: center; }
.brand img { height: 56px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
  align-items: center;
}

.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding: 6px 2px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.main-nav .nav-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 10px 22px;
  border-radius: var(--radius);
  letter-spacing: 2px;
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: var(--gold); color: var(--surface); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(10, 29, 49, 0.92), rgba(15, 42, 68, 0.85)),
    radial-gradient(ellipse at top right, rgba(176, 141, 87, 0.25), transparent 60%),
    var(--navy-deep);
  color: var(--cream);
  padding: clamp(80px, 14vw, 160px) 0 clamp(80px, 12vw, 140px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 100px, rgba(176, 141, 87, 0.04) 100px 101px);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 880px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(176, 141, 87, 0.45);
}

.hero h1 {
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 28px;
}

.hero h1 em { font-style: italic; color: var(--gold-light); }

.hero p.lead {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(250, 248, 244, 0.85);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(250, 248, 244, 0.4); }
.btn-outline:hover { background: var(--cream); color: var(--navy); }

/* ---------- Sections ---------- */

section { padding: clamp(70px, 9vw, 110px) 0; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head h4 { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--ink-muted); font-size: 1.05rem; }

.divider {
  width: 60px; height: 2px; background: var(--gold);
  margin: 0 auto 30px;
}

/* ---------- Practice Areas grid ---------- */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.area-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 38px 28px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.area-card:hover::before { transform: scaleY(1); }

.area-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(176, 141, 87, 0.12);
  border-radius: var(--radius);
  margin-bottom: 22px;
  color: var(--gold);
}

.area-icon svg { width: 24px; height: 24px; }

.area-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.area-card p { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }

/* ---------- About ---------- */

.about { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h4 { margin-bottom: 18px; }
.about-text p { color: var(--ink-muted); font-size: 1.05rem; }
.about-text .signature {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
  font-style: italic;
  margin-top: 30px;
}

.about-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--cream);
  padding: 56px 44px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.about-card::before {
  content: '';
  position: absolute;
  top: 16px; left: 16px; right: 16px; bottom: 16px;
  border: 1px solid rgba(176, 141, 87, 0.35);
  pointer-events: none;
}
.about-card h3 { color: var(--cream); font-size: 1.6rem; margin-bottom: 20px; position: relative; }
.about-card ul { list-style: none; padding: 0; margin: 0; position: relative; }
.about-card li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid rgba(176, 141, 87, 0.25);
  position: relative;
  font-size: 0.98rem;
}
.about-card li:last-child { border-bottom: 0; }
.about-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 14px; height: 1px;
  background: var(--gold);
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    linear-gradient(135deg, rgba(15, 42, 68, 0.94), rgba(10, 29, 49, 0.96)),
    radial-gradient(circle at center, rgba(176, 141, 87, 0.2), transparent 60%);
  color: var(--cream);
  text-align: center;
}
.cta-band h2 { color: var(--cream); margin-bottom: 16px; }
.cta-band p { color: rgba(250, 248, 244, 0.8); max-width: 600px; margin: 0 auto 32px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h4 { margin-bottom: 14px; }
.contact-info h2 { margin-bottom: 22px; }
.contact-info p.lead { color: var(--ink-muted); font-size: 1.05rem; margin-bottom: 36px; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }

.contact-list .icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(176, 141, 87, 0.12);
  color: var(--gold);
  border-radius: var(--radius);
}
.contact-list .icon svg { width: 18px; height: 18px; }

.contact-list .label {
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 4px;
}
.contact-list .value { font-weight: 500; color: var(--navy); }
.contact-list a.value:hover { color: var(--gold); }

/* ---------- Form ---------- */

.contact-form {
  background: var(--surface);
  padding: 44px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.contact-form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-form .form-sub { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group label .req { color: var(--gold); margin-left: 3px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 0.95rem;
  border-radius: var(--radius);
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(46, 122, 75, 0.1); color: #2e7a4b; border: 1px solid rgba(46, 122, 75, 0.3); }
.form-status.err { background: rgba(176, 50, 50, 0.08); color: #a83232; border: 1px solid rgba(176, 50, 50, 0.3); }
.form-status.info { background: rgba(15, 42, 68, 0.06); color: var(--navy); border: 1px solid var(--line); }

.contact-form .btn {
  width: 100%;
  background: var(--navy);
  color: var(--cream);
  padding: 16px 32px;
}
.contact-form .btn:hover { background: var(--gold); color: var(--navy-deep); }
.contact-form .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-footnote {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 16px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---------- Practice areas page ---------- */

.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: clamp(70px, 10vw, 120px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 80px, rgba(176, 141, 87, 0.05) 80px 81px);
  pointer-events: none;
}
.page-header h1 { color: var(--cream); position: relative; }
.page-header p { color: rgba(250, 248, 244, 0.8); max-width: 640px; margin: 16px auto 0; position: relative; }
.page-header .breadcrumb {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 18px; position: relative;
}
.page-header .breadcrumb a { color: var(--gold-light); }
.page-header .breadcrumb a:hover { color: var(--cream); }

.area-detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.area-detail:last-child { border-bottom: 0; }
.area-detail .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
}
.area-detail h3 { font-size: 1.6rem; margin-bottom: 14px; }
.area-detail p { color: var(--ink-muted); margin-bottom: 12px; }
.area-detail ul { color: var(--ink-muted); padding-left: 20px; }
.area-detail ul li { margin-bottom: 6px; }
.area-detail ul li::marker { color: var(--gold); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 248, 244, 0.75);
  padding: 64px 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 44px;
}
.footer-grid h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.footer-grid p { font-size: 0.92rem; line-height: 1.7; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(250, 248, 244, 0.75); }
.footer-grid a:hover { color: var(--gold-light); }

.footer-brand img { height: 60px; margin-bottom: 18px; filter: brightness(0) invert(1) opacity(0.92); }
.footer-brand p { max-width: 360px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(176, 141, 87, 0.2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(250, 248, 244, 0.55);
}
.footer-bottom a { color: rgba(250, 248, 244, 0.65); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 0; }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { margin: 12px 24px; padding: 12px 22px; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .area-detail { grid-template-columns: 60px 1fr; gap: 18px; }
  .area-detail .num { font-size: 2rem; }
}
