:root {
  --navy: #0B1F3A;
  --navy-light: #14315c;
  --gold: #C8A24A;
  --gold-light: #dcbd76;
  --white: #FFFFFF;
  --light-gray: #F5F7FA;
  --text-muted: #6b7280;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-soft: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-medium: 0 15px 40px rgba(11, 31, 58, 0.14);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: #1f2937;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
}

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* Toast notifications — float over the page instead of pushing content down */
.toast-stack {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 40px));
}
.site-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-left: 4px solid var(--navy);
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
  padding: .9rem 1rem;
  font-size: .9rem;
  color: #1f2937;
  animation: toast-in .3s ease;
}
.site-toast i { font-size: 1.1rem; margin-top: 1px; }
.site-toast span { flex: 1; }
.site-toast-close {
  background: none; border: none; color: #9ca3af; font-size: 1.2rem;
  line-height: 1; cursor: pointer; padding: 0;
}
.site-toast-close:hover { color: #1f2937; }
.site-toast-success { border-left-color: #16a34a; }
.site-toast-success i { color: #16a34a; }
.site-toast-error, .site-toast-danger { border-left-color: #dc2626; }
.site-toast-error i, .site-toast-danger i { color: #dc2626; }
.site-toast-info, .site-toast-warning { border-left-color: var(--gold); }
.site-toast-info i, .site-toast-warning i { color: var(--gold); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 575px) {
  .toast-stack { left: 20px; right: 20px; max-width: none; top: 80px; }
}

/* Header / Nav */
.site-header {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.navbar { padding: .9rem 0; }
.navbar-brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--white); letter-spacing: 1px; }
.brand-sub { font-size: .65rem; color: var(--gold); letter-spacing: 3px; font-weight: 600; }
.nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; padding: .5rem 1rem !important; transition: color .2s; }
.nav-link:hover { color: var(--gold) !important; }

.btn-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--navy) !important;
  font-weight: 600;
  border-radius: 6px;
  transition: all .25s ease;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  border-radius: 6px;
  background: transparent;
  transition: all .25s ease;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--navy);
  transition: all .25s ease;
}
.btn-navy:hover { background: var(--navy-light); color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #10294d 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(200,162,74,0.15), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
  position: relative;
}
.hero p.lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem;
  max-width: 640px;
  position: relative;
}
.hero .cta-row { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--light-gray); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: .8rem;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }
.card:has(.stretched-link) { cursor: pointer; }

.practice-card { padding: 2rem; text-align: left; }
.practice-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(200,162,74,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.attorney-card { overflow: hidden; }
.attorney-card img, .attorney-card .placeholder-photo {
  width: 100%; height: 280px; object-fit: cover; object-position: top center;
}
.attorney-card .placeholder-photo {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 3rem;
}
.attorney-card .body { padding: 1.5rem; }
.attorney-card .title { color: var(--gold); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; }

.testimonial-card { padding: 2rem; }
.testimonial-card .stars { color: var(--gold); margin-bottom: 1rem; }

/* Stats */
.stats-band { background: var(--navy); color: var(--white); padding: 3.5rem 0; }
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--gold); }
.stat-item .label { color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; }

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  padding: 2.5rem;
}
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #e2e5eb;
  padding: .65rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(200,162,74,0.15);
}
label { font-weight: 600; color: var(--navy); margin-bottom: .35rem; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer h5, .site-footer h6 { color: var(--white); }
.footer-brand { font-family: var(--font-display); letter-spacing: 1px; }
.text-light-gray { color: rgba(255,255,255,0.7) !important; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--gold); }
.footer-divider { border-color: rgba(255,255,255,0.15); margin: 2rem 0 1.5rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--white);
  margin-right: 8px; margin-top: 1rem;
  transition: all .25s ease;
}
.social-links a:hover { background: var(--gold); color: var(--navy); }

/* Page header banners */
.page-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-banner h1 { color: var(--white); }
.page-banner p { color: rgba(255,255,255,0.8); }

/* Blog */
.blog-card img { height: 200px; object-fit: cover; width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.blog-meta { color: var(--text-muted); font-size: .85rem; }
.category-pill {
  display: inline-block; padding: .3rem .8rem; border-radius: 20px;
  background: rgba(200,162,74,0.12); color: var(--gold); font-size: .75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}

/* FAQ accordion tweaks */
.accordion-button:not(.collapsed) { background: rgba(200,162,74,0.1); color: var(--navy); }
.accordion-button:focus { box-shadow: none; border-color: var(--gold); }

@media (max-width: 991px) {
  .hero { padding: 4rem 0 3rem; text-align: center; }
  .hero .cta-row { justify-content: center; }
  .navbar-collapse { background: var(--navy); padding: 1rem; border-radius: 8px; margin-top: .5rem; }
}

/* Mobile (phones and small tablets) */
@media (max-width: 767px) {
  .section { padding: 3rem 0; }
  .section-title { margin-bottom: 2rem; }
  .section-title .eyebrow { font-size: .72rem; letter-spacing: 1.5px; }

  .hero { padding: 3rem 0 2.25rem; }
  .hero p.lead { font-size: 1.05rem; max-width: 100%; }
  .hero .cta-row { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 1.5rem; }
  .hero .cta-row .btn { width: 100%; }

  .page-banner { padding: 2.5rem 0 2rem; }
  .page-banner h1 { font-size: 1.75rem; }

  .stats-band { padding: 2.25rem 0; }
  .stat-item .num { font-size: 2rem; }
  .stat-item .label { font-size: .7rem; }

  .practice-card, .testimonial-card { padding: 1.5rem; }
  .form-card { padding: 1.5rem; }

  .attorney-card img, .attorney-card .placeholder-photo { height: 260px; }

  .card { margin-bottom: 0; }

  .site-footer .container { padding-top: 3rem; padding-bottom: 3rem; }
  .social-links a { margin-top: .35rem; }

  /* Buttons full-width when stacked alone on a form/CTA row */
  .form-card .btn-lg, .crud-form-card .btn-lg { width: 100%; }
}

@media (max-width: 575px) {
  .brand-mark { font-size: 1.2rem; }
  .brand-sub { font-size: .55rem; letter-spacing: 2px; }
  .hero h1 { font-size: 1.9rem; }
  .page-banner h1 { font-size: 1.5rem; }
  .stat-item .num { font-size: 1.7rem; }
}
