/*
Theme Name: Goicoechea Law
Theme URI: https://northidahoattorney.com
Author: Goicoechea Law, LLC
Description: Custom theme for Goicoechea Law — Idaho Workers' Compensation & Personal Injury
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: goicoechea-law
*/

/* ── VARIABLES ── */
:root {
  --navy:        #1B2A4A;
  --navy-dark:   #111C33;
  --navy-mid:    #243660;
  --gold:        #C9A84C;
  --gold-light:  #E0C47A;
  --gold-pale:   #F7F0DC;
  --off-white:   #F9F7F3;
  --warm-gray:   #EAE7E0;
  --mid-gray:    #8A8880;
  --dark-gray:   #3A3834;
  --text-body:   #2C2A26;
  --serif:       'Lora', Georgia, serif;
  --sans:        'Source Sans 3', system-ui, sans-serif;
  --max-width:   1140px;
  --transition:  0.2s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text-body);
  background: #fff;
  font-size: 20px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--navy-dark);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(38px, 5vw, 56px); }
h2 { font-size: clamp(30px, 3.5vw, 42px); }
h3 { font-size: clamp(22px, 2.5vw, 28px); }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; width: 100%; }
section { padding: 80px 0; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--navy-dark);
  padding: 15px 32px; border-radius: 6px;
  font-weight: 700; font-size: 16px;
  text-decoration: none; display: inline-block;
  transition: background var(--transition), transform var(--transition);
  border: none; cursor: pointer; font-family: var(--sans);
}
.btn-primary:hover { background: var(--gold-light); color: var(--navy-dark); transform: translateY(-1px); }
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.88);
  padding: 14px 30px; border-radius: 6px;
  font-weight: 500; font-size: 16px;
  text-decoration: none; display: inline-block;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline-light:hover { border-color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.07); color: #fff; }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1.5px; background: var(--gold); flex-shrink: 0; }
.section-label--light { color: var(--gold-light); }
.section-label--light::before { background: var(--gold-light); }
.section-subtitle { font-size: 19px; color: var(--mid-gray); line-height: 1.7; max-width: 580px; font-weight: 300; margin-bottom: 48px; }

/* ── TOP BAR ── */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,0.7); font-size: 14px; padding: 9px 0; }
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.topbar a { color: rgba(255,255,255,0.7); text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar-divider { opacity: 0.3; }

/* ── NAVIGATION ── */
.site-nav { background: var(--navy); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 16px rgba(0,0,0,0.18); width: 100%; }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 6px 32px; display: flex; flex-direction: column; width: 100%; }
.nav-row-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.nav-row-bottom { display: flex; align-items: center; justify-content: flex-end; padding: 4px 0 6px; border-top: 1px solid rgba(255,255,255,0.08); gap: 2px; flex-wrap: wrap; }
.site-logo { display: flex; flex-direction: row; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 1; min-width: 0; }
.site-logo img { height: 93px; width: auto; filter: drop-shadow(0 0 3px rgba(201,168,76,0.25)); }
.site-logo > div { display: flex; flex-direction: column; gap: 2px; }
.logo-name { font-family: var(--serif); font-size: 35px; font-weight: 600; color: #fff; letter-spacing: 0.01em; line-height: 1.2; }
.logo-tagline { font-size: 18px; color: var(--gold-light); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.nav-phone { color: var(--gold-light); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 1px; list-style: none; flex-wrap: nowrap; min-width: 0; }
.nav-links li { display: flex; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 9px; border-radius: 6px; transition: background var(--transition), color var(--transition); display: flex; align-items: center; line-height: 1; white-space: nowrap; }
.nav-links a:hover { background: rgba(255,255,255,0.09); color: #fff; }
.nav-links li a.nav-cta { background: var(--gold); color: var(--navy-dark); font-weight: 700; font-size: 14px; padding: 8px 13px; border-radius: 6px; border: 2px solid var(--gold); margin-left: 6px; }
.nav-links li a.nav-cta:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-dark); }

/* ── HERO ── */
.hero { background: url('images/hero-bg.jpg') center center / cover no-repeat; min-height: 460px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,18,35,0.88) 0%, rgba(17,28,51,0.80) 45%, rgba(17,28,51,0.55) 70%, rgba(17,28,51,0.30) 100%); }
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 48px 40px; display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: center; position: relative; z-index: 1; width: 100%; }
.hero-attorney-name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.01em;
  margin-bottom: 40px;
}
.hero-eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1.5px; background: var(--gold); }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 4.5vw, 52px); font-weight: 600; color: #fff; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-desc { color: rgba(255,255,255,0.72); font-size: 18px; line-height: 1.7; margin-bottom: 36px; max-width: 520px; font-weight: 300; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.hero-phone { color: rgba(255,255,255,0.55); font-size: 15px; }
.hero-phone strong { color: rgba(255,255,255,0.9); font-size: 18px; font-weight: 600; }

/* Hero card */
.hero-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 18px 24px; }
.hero-card-title { font-family: var(--serif); font-size: 17px; color: #fff; font-weight: 500; margin-bottom: 2px; }
.hero-card-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--off-white); border-bottom: 1px solid var(--warm-gray); padding: 18px 0; }
.trust-bar .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; padding: 6px 28px; font-size: 14px; color: var(--navy); font-weight: 500; border-right: 1px solid var(--warm-gray); }
.trust-item:last-child { border-right: none; }
.trust-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* ── PRACTICE AREAS ── */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.practice-card { border: 1px solid var(--warm-gray); border-radius: 10px; padding: 36px 32px; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); position: relative; overflow: hidden; text-decoration: none; display: block; background: #fff; }
.practice-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.practice-card:hover { border-color: #ccc; box-shadow: 0 8px 32px rgba(27,42,74,0.08); transform: translateY(-2px); color: inherit; }
.practice-card:hover::before { transform: scaleX(1); }
.practice-icon { width: 52px; height: 52px; background: var(--gold-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.practice-icon svg { width: 26px; height: 26px; color: var(--gold); }
.practice-icon--img { background: transparent; padding: 0; border-radius: 50%; overflow: hidden; }
.practice-icon--img img { width: 52px; height: 52px; display: block; }
.practice-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy-dark); margin-bottom: 10px; }
.practice-card p { font-size: 16px; color: var(--mid-gray); line-height: 1.65; margin-bottom: 16px; }
.practice-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.practice-tag { font-size: 12px; background: var(--off-white); color: var(--navy); padding: 4px 10px; border-radius: 20px; font-weight: 500; border: 1px solid var(--warm-gray); }
.practice-link { font-size: 15px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.practice-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.practice-card:hover .practice-link svg { transform: translateX(3px); }

/* ── WHY SECTION ── */
.why-section { background: var(--off-white); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-points { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.why-point { display: flex; gap: 16px; align-items: flex-start; }
.why-check { width: 22px; height: 22px; background: var(--gold); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.why-check svg { width: 11px; height: 11px; color: var(--navy-dark); }
.why-point-text { font-size: 17px; color: var(--dark-gray); line-height: 1.55; }
.why-point-text strong { color: var(--navy-dark); font-weight: 600; display: block; margin-bottom: 3px; font-size: 18px; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--warm-gray); border-radius: 10px; padding: 28px 24px; text-align: center; }
.stat-number { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--navy-dark); line-height: 1; margin-bottom: 6px; }
.stat-number span { color: var(--gold); }
.stat-label { font-size: 14px; color: var(--mid-gray); font-weight: 400; line-height: 1.45; }

/* ── ATTORNEY SPOTLIGHT ── */
.attorney-grid { display: grid; grid-template-columns: clamp(220px, 28%, 320px) 1fr; gap: 56px; align-items: start; }
.attorney-photo-wrap { position: relative; }
.attorney-photo-wrap img { width: 100%; border-radius: 12px; display: block; object-fit: cover; aspect-ratio: 3/4; }
.attorney-photo-accent { position: absolute; bottom: -12px; left: 24px; right: 24px; height: 4px; background: var(--gold); border-radius: 2px; }
.attorney-name { font-family: var(--serif); font-size: 36px; color: var(--navy-dark); font-weight: 600; margin-bottom: 6px; }
.attorney-title { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 24px; }
.attorney-bio { font-size: 17px; color: var(--dark-gray); line-height: 1.75; margin-bottom: 20px; }
.attorney-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.attorney-tag { font-size: 13px; background: var(--off-white); color: var(--navy); padding: 6px 14px; border-radius: 20px; font-weight: 500; border: 1px solid var(--warm-gray); }

/* ── TESTIMONIALS ── */
.testimonials-section { background: var(--navy-dark); }
.testimonials-section h2 { color: #fff; }
.testimonials-section .section-subtitle { color: rgba(255,255,255,0.5); }
.rating-summary { text-align: center; margin-bottom: 36px; }
.rating-number { font-size: 48px; font-weight: 600; color: #fff; font-family: var(--serif); }
.rating-stars { font-size: 24px; color: var(--gold); margin-left: 8px; }
.rating-sub { font-size: 15px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 30px 28px; animation: fadeUp 0.55s ease both; }
.testimonials-grid .testimonial-card:nth-child(1) { animation-delay: 0.05s; }
.testimonials-grid .testimonial-card:nth-child(2) { animation-delay: 0.20s; }
.testimonials-grid .testimonial-card:nth-child(3) { animation-delay: 0.35s; }
.stars { color: var(--gold); font-size: 15px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 16px; color: rgba(255,255,255,0.78); line-height: 1.7; margin-bottom: 20px; font-style: italic; font-family: var(--serif); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-mid); border: 1.5px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); flex-shrink: 0; }
.author-name { font-size: 14px; color: #fff; font-weight: 600; }
.author-detail { font-size: 13px; color: rgba(255,255,255,0.45); }
.reviews-link-wrap { text-align: center; margin-top: 36px; }
.reviews-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.55); font-size: 15px; text-decoration: none; border: 1px solid rgba(255,255,255,0.15); padding: 11px 24px; border-radius: 6px; transition: border-color var(--transition), color var(--transition); }
.reviews-link:hover { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.35); }

/* ── AREAS ── */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.area-chip { background: var(--off-white); border: 1px solid var(--warm-gray); border-radius: 8px; padding: 14px 18px; font-size: 15px; font-weight: 500; color: var(--navy); text-align: center; transition: background var(--transition), border-color var(--transition); }
.area-chip:hover { background: var(--gold-pale); border-color: var(--gold); }

/* ── CTA BANNER ── */
.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 600px 300px at 50% 50%, rgba(201,168,76,0.08), transparent); }
.cta-banner-inner { max-width: 700px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.cta-banner h2 { font-family: var(--serif); font-size: clamp(26px, 3.5vw, 38px); color: #fff; font-weight: 600; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.6); font-size: 18px; margin-bottom: 36px; font-weight: 300; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: 14px; color: rgba(255,255,255,0.3); margin-top: 18px; }

/* ── FOOTER ── */
.site-footer { background: #0D1625; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.footer-brand-logo img { height: 54px; width: auto; opacity: 0.85; }
.footer-brand-name { font-family: var(--serif); font-size: 20px; color: #fff; font-weight: 600; }
.footer-brand p { font-size: 15px; color: rgba(255,255,255,0.4); line-height: 1.65; max-width: 280px; margin-bottom: 20px; }
.footer-contact a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 15px; line-height: 1.9; }
.footer-contact a:hover { color: var(--gold-light); }
.footer-col h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 600; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 15px; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,0.2); line-height: 1.6; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.25); }
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; font-size: 13px; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── INNER PAGE HERO ── */
.page-hero { background: var(--navy); padding: 60px 0; position: relative; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(10,18,35,0.95), rgba(17,28,51,0.85)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.5); font-size: 14px; }
.page-hero .breadcrumb a { color: var(--gold-light); text-decoration: none; }

/* ── PAGE CONTENT ── */
.page-content { padding: 72px 0; }
.page-content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.entry-content h2 { margin: 40px 0 16px; font-size: 28px; }
.entry-content h3 { margin: 32px 0 12px; font-size: 22px; }
.entry-content p { font-size: 18px; color: var(--dark-gray); line-height: 1.75; margin-bottom: 20px; }
.entry-content ul { list-style: disc; padding-left: 24px; margin-bottom: 20px; }
.entry-content ul li { font-size: 18px; color: var(--dark-gray); line-height: 1.65; margin-bottom: 8px; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; }
.sidebar-card { background: var(--navy-dark); border-radius: 10px; padding: 28px; margin-bottom: 24px; }
.sidebar-card h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.sidebar-card p { color: rgba(255,255,255,0.6); font-size: 15px; margin-bottom: 20px; }
.sidebar-card .btn-primary { width: 100%; text-align: center; display: block; }
.sidebar-phone { display: block; color: var(--gold-light); font-size: 22px; font-weight: 700; text-decoration: none; text-align: center; margin-top: 12px; }
.sidebar-practice-links { background: var(--off-white); border: 1px solid var(--warm-gray); border-radius: 10px; padding: 24px; }
.sidebar-practice-links h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid-gray); font-weight: 600; margin-bottom: 14px; }
.sidebar-practice-links ul li { border-bottom: 1px solid var(--warm-gray); }
.sidebar-practice-links ul li:last-child { border-bottom: none; }
.sidebar-practice-links ul a { display: block; padding: 10px 0; font-size: 15px; color: var(--navy); text-decoration: none; font-weight: 500; transition: color var(--transition); }
.sidebar-practice-links ul a:hover { color: var(--gold); }

/* ── BLOG ── */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.post-card { border: 1px solid var(--warm-gray); border-radius: 10px; overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); background: #fff; }
.post-card:hover { box-shadow: 0 8px 32px rgba(27,42,74,0.08); transform: translateY(-2px); }
.post-card-img { aspect-ratio: 16/9; background: var(--warm-gray); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card-meta { font-size: 13px; color: var(--mid-gray); margin-bottom: 10px; }
.post-cat { color: var(--gold); font-weight: 600; }
.post-card h3 { font-size: 20px; margin-bottom: 10px; }
.post-card h3 a { color: var(--navy-dark); text-decoration: none; }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { font-size: 15px; color: var(--mid-gray); line-height: 1.6; }

/* ── WPFORMS OVERRIDES ── */
.wpforms-container .wpforms-form input[type=text],
.wpforms-container .wpforms-form input[type=email],
.wpforms-container .wpforms-form input[type=tel],
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
  border: 1px solid var(--warm-gray) !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  font-family: var(--sans) !important;
  color: var(--text-body) !important;
  width: 100% !important;
  transition: border-color var(--transition) !important;
}
.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus { border-color: var(--gold) !important; outline: none !important; }
.wpforms-container .wpforms-form .wpforms-submit {
  background: var(--gold) !important; color: var(--navy-dark) !important;
  border: none !important; border-radius: 6px !important;
  padding: 14px 32px !important; font-size: 16px !important;
  font-weight: 700 !important; font-family: var(--sans) !important;
  cursor: pointer !important; transition: background var(--transition) !important;
}
.wpforms-container .wpforms-form .wpforms-submit:hover { background: var(--gold-light) !important; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.55s ease both; }
.practice-grid .practice-card:nth-child(1) { animation-delay: 0.05s; }
.practice-grid .practice-card:nth-child(2) { animation-delay: 0.15s; }
.practice-grid .practice-card:nth-child(3) { animation-delay: 0.25s; }
.why-stats .stat-card:nth-child(1) { animation: fadeUp 0.5s 0.1s ease both; }
.why-stats .stat-card:nth-child(2) { animation: fadeUp 0.5s 0.2s ease both; }
.why-stats .stat-card:nth-child(3) { animation: fadeUp 0.5s 0.3s ease both; }
.why-stats .stat-card:nth-child(4) { animation: fadeUp 0.5s 0.4s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 6px 24px; }
  .hero-inner { padding: 36px 24px; grid-template-columns: 1fr; gap: 32px; }
  .hero-card { max-width: 560px; }
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .page-content-grid { grid-template-columns: 1fr 280px; gap: 40px; }
  .attorney-grid { grid-template-columns: 240px 1fr; gap: 40px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-inner { padding: 0 16px; }
  .nav-links a { font-size: 13px; padding: 6px 7px; }
  .logo-name { font-size: 30px; }
  .site-logo img { height: 72px; }
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  .hero-inner { padding: 28px 16px; }
  .practice-grid, .posts-grid { grid-template-columns: 1fr; }
  .attorney-grid { grid-template-columns: 1fr; }
  .attorney-photo-wrap { max-width: 260px; margin: 0 auto 32px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions, .hero-actions { flex-direction: column; align-items: center; }
  .page-content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
  .nav-links li { display: flex; }
  .nav-links a { font-size: 12px; padding: 6px 7px; }
  .nav-links li a.nav-cta { font-size: 12px; padding: 6px 10px; margin-left: 2px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar .container { flex-direction: column; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--warm-gray); width: 100%; justify-content: center; padding: 8px 16px; }
  .trust-item:last-child { border-bottom: none; }
}

/* ── CONTACT FORM 7 OVERRIDES ── */
/* Force ALL text inside the hero contact card to white */
.hero-card,
.hero-card *,
.hero-card p,
.hero-card label,
.hero-card span,
.hero-card .wpcf7,
.hero-card .wpcf7 *,
.hero-card .wpcf7-form,
.hero-card .wpcf7-form *,
.hero-card .wpcf7-form p,
.hero-card .wpcf7-form label,
.hero-card .wpcf7-form span:not(.wpcf7-not-valid-tip) {
  color: #fff !important;
}
.hero-card .wpcf7-form input[type=text],
.hero-card .wpcf7-form input[type=tel],
.hero-card .wpcf7-form input[type=email],
.hero-card .wpcf7-form select,
.hero-card .wpcf7-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff !important;
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 12px;
  display: block;
  -webkit-text-fill-color: #fff;
}
.hero-card .wpcf7-form input::placeholder,
.hero-card .wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.4) !important; opacity: 1; }
.hero-card .wpcf7-form input:focus,
.hero-card .wpcf7-form select:focus,
.hero-card .wpcf7-form textarea:focus { border-color: var(--gold); }
.hero-card .wpcf7-form select { color: #fff !important; -webkit-text-fill-color: #fff; }
.hero-card .wpcf7-form select option { background: var(--navy-dark); color: #fff; }
.hero-card .wpcf7-form label,
.hero-card .wpcf7-form span,
.hero-card .wpcf7-form span.wpcf7-form-control-wrap,
.hero-card .wpcf7-form p,
.hero-card .wpcf7-form div,
.hero-card .wpcf7-form * { color: #fff !important; }
.hero-card .wpcf7-form label { display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; font-weight: 500; }
.hero-card .wpcf7-form textarea { resize: none; min-height: 80px; }
.hero-card .wpcf7-form input[type=submit] {
  width: 100%;
  background: var(--gold);
  color: var(--navy-dark) !important;
  -webkit-text-fill-color: var(--navy-dark);
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
  transition: background var(--transition);
  margin-top: 4px;
}
.hero-card .wpcf7-form input[type=submit]:hover { background: var(--gold-light); }
.hero-card .wpcf7-form .wpcf7-not-valid-tip { color: var(--gold-light) !important; font-size: 12px; }
.hero-card .wpcf7-form .wpcf7-response-output { color: rgba(255,255,255,0.7) !important; font-size: 13px; border-color: var(--gold) !important; margin-top: 8px; padding: 8px 12px; border-radius: 4px; }
/* Fix browser autofill background turning white */
.hero-card .wpcf7-form input:-webkit-autofill,
.hero-card .wpcf7-form input:-webkit-autofill:hover,
.hero-card .wpcf7-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px rgba(27,42,74,0.9) inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
}

/* ── TESTIMONIAL CAROUSEL ── */
.carousel-outer { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 -8px; }
.carousel-track-wrap { overflow: hidden; width: 100%; }
.carousel-track { display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); will-change: transform; }
.carousel-slide { min-width: 100%; padding: 0 8px; box-sizing: border-box; }
@media (min-width: 768px) {
  .carousel-slide { min-width: 50%; }
}
@media (min-width: 1024px) {
  .carousel-slide { min-width: 33.333%; }
}
.carousel-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.carousel-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none; cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.carousel-dot.active { background: var(--gold); transform: scale(1.3); }

.hero-serious-injury { margin-top: 0; margin-bottom: 24px; }
.hero-serious-injury-header { font-family: var(--serif); font-size: clamp(36px, 4.5vw, 52px); font-weight: 600; color: #fff; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 16px; }
.hero-serious-injury-text { color: rgba(255,255,255,0.72); font-size: 18px; line-height: 1.7; margin: 0; max-width: 520px; font-weight: 300; }