/* ==========================================================================
   Johnson Tabor & Johnson Law, LLC — v2 Custom Styles
   Bootstrap 5.3 + Custom Design System
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --jt-navy: #0a1e3d;
  --jt-navy-light: #132d54;
  --jt-accent: #c8a951;
  --jt-accent-hover: #d4b96a;
  --jt-dark: #080f1e;
  --jt-body: #4a5568;
  --jt-light-bg: #f7f8fa;
  --jt-radius: 0.75rem;
  --bs-primary: var(--jt-navy);
  --bs-primary-rgb: 10, 30, 61;
}

/* ---------- Base ---------- */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--jt-body);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--jt-navy);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark h4, .bg-dark h5, .bg-dark h6,
.hero h1, .hero h2, .cta-section h2 {
  color: #ffffff;
}

.bg-light {
  background-color: var(--jt-light-bg) !important;
}

/* ---------- Utility Classes ---------- */
.text-accent { color: var(--jt-accent) !important; }
.ls-2 { letter-spacing: 2px; }
.py-section { padding: 5rem 0; }
.z-1 { position: relative; z-index: 1; }
.min-vh-75 { min-height: 75vh; }

/* ---------- Buttons ---------- */
.btn-primary {
  background-color: var(--jt-navy);
  border-color: var(--jt-navy);
}
.btn-primary:hover {
  background-color: var(--jt-navy-light);
  border-color: var(--jt-navy-light);
}

.btn-accent {
  background-color: var(--jt-accent);
  border-color: var(--jt-accent);
  color: var(--jt-navy);
  font-weight: 600;
}
.btn-accent:hover {
  background-color: var(--jt-accent-hover);
  border-color: var(--jt-accent-hover);
  color: var(--jt-navy);
}

.btn-link-accent {
  color: var(--jt-accent);
  transition: color 0.2s;
}
.btn-link-accent:hover {
  color: var(--jt-accent-hover);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: var(--jt-radius);
}

.btn-outline-light:hover {
  color: var(--jt-navy);
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(10, 30, 61, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(10, 30, 61, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
}
.navbar-brand img {
  transition: height 0.3s;
}
.navbar .nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--jt-accent);
}
.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--jt-navy) 0%, var(--jt-dark) 100%);
  min-height: 90vh;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: url('../images/image-2.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--jt-navy) 40%, transparent 100%);
}
.hero-subtitle {
  color: var(--jt-accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}
.hero-title {
  line-height: 1.15;
}
.hero-lead {
  color: rgba(255,255,255,0.8);
  max-width: 520px;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  border-bottom: 1px solid #e9ecef;
}
.trust-item .trust-number {
  color: var(--jt-navy) !important;
}

/* ---------- Practice Cards ---------- */
.practice-card {
  border-radius: var(--jt-radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
}
.practice-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* ---------- Attorney Cards ---------- */
.attorney-img-wrap {
  width: 180px;
  height: 180px;
  overflow: hidden;
  border: 3px solid var(--jt-accent);
  border-radius: 50%;
}
.attorney-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.attorney-card {
  transition: transform 0.3s;
}
.attorney-card:hover {
  transform: translateY(-4px);
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  background: url('../images/image-3.jpg') center/cover no-repeat fixed;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 61, 0.9);
}

/* ---------- Accordion (FAQ) ---------- */
.accordion-button {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--jt-navy);
  background: #fff;
}
.accordion-button:not(.collapsed) {
  background: #fff;
  color: var(--jt-navy);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(200, 169, 81, 0.25);
  border-color: var(--jt-accent);
}
.accordion-button::after {
  filter: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--jt-dark);
}
.footer-link:hover {
  color: var(--jt-accent) !important;
}

/* ---------- Page Headers (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--jt-navy) 0%, var(--jt-dark) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
}
.page-header h1 {
  color: #fff;
  font-weight: 700;
}
.page-header .breadcrumb {
  justify-content: center;
}
.page-header .breadcrumb-item a {
  color: var(--jt-accent);
  text-decoration: none;
}
.page-header .breadcrumb-item.active {
  color: rgba(255,255,255,0.7);
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* ---------- Attorney Profile (detail page) ---------- */
.attorney-profile-img {
  max-width: 300px;
  border-radius: var(--jt-radius);
  border: 4px solid var(--jt-accent);
}

.info-list {
  list-style: none;
  padding: 0;
}
.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}
.info-list li:last-child {
  border-bottom: none;
}

/* ---------- Practice Area Detail ---------- */
.practice-sidebar .nav-link {
  color: var(--jt-body);
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}
.practice-sidebar .nav-link:hover,
.practice-sidebar .nav-link.active {
  color: var(--jt-navy);
  background: var(--jt-light-bg);
  border-left-color: var(--jt-accent);
  font-weight: 600;
}

/* ---------- Contact Form ---------- */
.form-control:focus,
.form-select:focus {
  border-color: var(--jt-accent);
  box-shadow: 0 0 0 0.2rem rgba(200, 169, 81, 0.2);
}

/* ---------- Scroll Offset for Anchors ---------- */
.scroll-mt {
  scroll-margin-top: 100px;
}

/* ---------- Border Accent Utility ---------- */
.border-accent {
  border-color: var(--jt-accent) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  .hero-lead {
    margin: 0 auto;
  }
  .hero .d-flex {
    justify-content: center;
  }
  .py-section {
    padding: 3.5rem 0;
  }
  .display-3 {
    font-size: 2.5rem;
  }
  .display-5 {
    font-size: 2rem;
  }
  .display-6 {
    font-size: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: 70vh;
    padding-top: 70px;
  }
  .display-3 {
    font-size: 2rem;
  }
  .py-section {
    padding: 2.5rem 0;
  }
  .attorney-img-wrap {
    width: 140px;
    height: 140px;
  }
}

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .practice-card,
  .attorney-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}
