/* ============================================
   HBHK Law — Design System & Styles
   Navy: #0A1F3F  Gold: #B8860B  Cream: #FAF8F5
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: #1A1A1A;
  background: #FAF8F5;
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- CSS Variables --- */
:root {
  --navy: #0A1F3F;
  --navy-light: #122D54;
  --navy-dark: #071528;
  --gold: #B8860B;
  --gold-light: #D4A843;
  --cream: #FAF8F5;
  --cream-dark: #F5F0E8;
  --text: #1A1A1A;
  --text-light: #555555;
  --text-muted: #999999;
  --border: #E8E4DF;
  --sans: 'Source Sans 3', -apple-system, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --display: 'Cormorant Garamond', Georgia, serif;
  --container: 1200px;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(22px, 3vw, 28px); }

.section-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-light);
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.6;
}

/* --- Container --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,134,11,0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}
.btn-secondary:hover {
  background: rgba(250,248,245,0.1);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--cream);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10,31,63,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding: 18px 0;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(10,31,63,0.97);
  border-bottom-color: rgba(184,134,11,0.3);
  padding: 12px 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  flex-direction: column;
}
.navbar-logo-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.navbar-logo-sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-top: 2px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--gold-light); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
  margin-left: 8px;
  padding: 10px 24px;
  font-size: 13px;
}

/* Mobile Nav */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.hamburger-line {
  width: 28px;
  height: 2px;
  background: var(--cream);
  display: block;
  margin: 6px 0;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 100;
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 32px;
  color: var(--cream);
  font-weight: 500;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-light) 40%, #0D2440 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-circle {
  position: absolute;
  border: 1px solid rgba(184,134,11,0.1);
  border-radius: 50%;
}
.hero-circle-1 { top: 15%; right: 10%; width: 300px; height: 300px; opacity: 0.5; }
.hero-circle-2 { bottom: 20%; left: 5%; width: 200px; height: 200px; opacity: 0.4; }
.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-content {
  max-width: 900px;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
}
.hero h1 { color: var(--cream); margin-bottom: 28px; }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(250,248,245,0.75);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 40px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn { font-size: 16px; padding: 16px 40px; }

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}
.fade-up-1 { animation-delay: 0.2s; }
.fade-up-2 { animation-delay: 0.4s; }
.fade-up-3 { animation-delay: 0.6s; }
.fade-up-4 { animation-delay: 0.8s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Trust Bar --- */
.trust-bar {
  background: #0F2847;
  padding: 16px 0;
  border-bottom: 1px solid rgba(184,134,11,0.2);
  overflow: hidden;
}
.trust-scroll {
  display: flex;
  animation: trustScroll 30s linear infinite;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  white-space: nowrap;
}
.trust-item-diamond { color: var(--gold-light); font-size: 10px; }
.trust-item-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250,248,245,0.7);
}
@keyframes trustScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Practice Area Cards --- */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.practice-card {
  background: #fff;
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all 0.35s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width 0.35s;
}
.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,31,63,0.08);
  border-color: transparent;
}
.practice-card:hover::before { width: 100%; }
.practice-card-icon { font-size: 28px; margin-bottom: 16px; }
.practice-card h3 { margin-bottom: 10px; }
.practice-card p { font-size: 15px; color: var(--text-light); line-height: 1.6; }
.practice-card-link {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Stats Strip --- */
.stats-strip {
  background: var(--navy);
  padding: 80px 24px;
  position: relative;
}
.stats-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.stat-number {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(250,248,245,0.6);
  margin-top: 8px;
}

/* --- Attorney Cards --- */
.attorneys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.attorney-card { text-align: center; transition: transform 0.3s; }
.attorney-card:hover { transform: translateY(-6px); }
.attorney-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
  transition: all 0.3s;
}
.attorney-card:hover .attorney-avatar {
  box-shadow: 0 8px 24px rgba(10,31,63,0.2);
}
.attorney-initials {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  color: var(--gold-light);
}
.attorney-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.attorney-focus { font-size: 15px; color: var(--text-light); line-height: 1.5; margin-bottom: 8px; }
.attorney-credential { font-family: var(--sans); font-size: 12px; color: var(--text-muted); font-style: italic; }

/* --- Courthouse Callout --- */
.courthouse {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
  text-align: center;
}
.courthouse-icon { font-size: 40px; margin-bottom: 20px; }
.courthouse p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 24px;
}
.courthouse-detail {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  padding: 36px 32px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.testimonial-stars { color: var(--gold-light); font-size: 18px; margin-bottom: 12px; }
.testimonial-text {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: 15px; }
.testimonial-type { font-family: var(--sans); font-size: 12px; color: var(--text-muted); }

/* --- Contact Section --- */
.contact-section {
  padding: 100px 24px;
  background: var(--navy);
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-info h2 { color: var(--cream); margin-bottom: 20px; }
.contact-info p { color: rgba(250,248,245,0.65); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.contact-detail-icon { font-size: 20px; }
.contact-detail-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.contact-detail-value { color: var(--cream); font-size: 18px; font-weight: 600; }
.contact-detail-text { color: rgba(250,248,245,0.8); font-size: 15px; }

/* Form */
.contact-form-wrap {
  background: rgba(250,248,245,0.05);
  border: 1px solid rgba(250,248,245,0.1);
  padding: 36px;
}
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-input {
  font-family: var(--sans);
  font-size: 15px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D1CEC8;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: #999; }
textarea.form-input { resize: vertical; }
.form-submit { width: 100%; font-size: 16px; padding: 16px; }
.form-disclaimer {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(250,248,245,0.4);
  text-align: center;
  line-height: 1.5;
  margin-top: 12px;
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  padding: 60px 24px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-firm-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-address { font-size: 14px; color: rgba(250,248,245,0.5); line-height: 1.7; }
.footer-heading {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: rgba(250,248,245,0.5);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(250,248,245,0.08);
  padding-top: 24px;
}
.footer-disclaimer {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(250,248,245,0.3);
  line-height: 1.7;
  text-align: center;
}

/* --- Mobile Call Bar --- */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--gold);
  padding: 14px 20px;
  display: none;
  text-align: center;
}
.mobile-call-bar a {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.5px;
}

/* --- Section Spacing --- */
.section { padding: 100px 24px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: block; }
  .mobile-call-bar { display: block; }
  .hero-content { padding: 100px 20px 60px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 60px; } /* space for mobile call bar */
}
@media (min-width: 769px) {
  .mobile-toggle { display: none; }
}
