/* GA Defense — Home page styles. Loaded only on is_front_page(). */

/* ── HERO ── */
.hero {
	background: var(--navy);
	position: relative;
	overflow: hidden;
	padding: 100px 0 80px;
}

/* Background photo slider. Crossfades behind the hero text + form card.
   Stacking: .hero-slides (z:0) → .hero::before / .hero-overlay (z:1) → .hero-grid (z:2). */
.hero-slides { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero-slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Brand-crest slide: shows the full square logo on a black ground (the
   logo's own bordered background extends seamlessly). Always "contain" —
   never crop the crest, regardless of viewport. */
.hero-slide--logo { background: #000; }
.hero-slide-img--logo { object-fit: contain; object-position: center; padding: 4vh 4vw; }

/* Dark gradient sits over the photos so the white hero text stays readable.
   Top-down + left-right gradients keep the right column (form card) slightly lighter
   so the form's backdrop-filter blur shows through the photo. */
.hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(11,22,40,0.55) 0%, rgba(11,22,40,0.85) 100%),
		linear-gradient(90deg, rgba(11,22,40,0.6) 0%, rgba(11,22,40,0.3) 100%);
	pointer-events: none;
	transition: opacity 1.2s ease-in-out;
}
/* When the logo slide is the active slide, dim the overlay so the bright
 * white crest (and the "GA DEFENSE / CRIMINAL LAWYERS" wordmark inside it)
 * actually reads as a brand moment instead of being washed navy. The hero
 * text still has the slide's own black background behind it, so contrast
 * remains adequate. */
.hero:has(.hero-slide--logo.is-active) .hero-overlay { opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
	.hero-slide { transition: none; }
}
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
		radial-gradient(ellipse at 20% 80%, rgba(11,22,40,0.8) 0%, transparent 50%);
	pointer-events: none;
}
.hero::after {
	content: '';
	position: absolute;
	right: 0; top: 0; bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, transparent, var(--gold), transparent);
	opacity: 0.3;
}
/* Grid children get `min-width: 0` so a long word / wide flex row inside
 * the left column cannot blow past the viewport (CSS grid items default
 * to `min-width: auto` = the intrinsic content width). */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-content, .hero-card { min-width: 0; }
.hero-eyebrow { font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 32px; height: 1px; background: var(--gold); }
.hero h1 { font-family: var(--f-display); font-size: clamp(44px, 5.8vw, 72px); font-weight: 800; line-height: 1.02; color: #fff; margin-bottom: 28px; letter-spacing: -0.035em; }
/* Hero/CTA em: not italic — use weight + gold color for emphasis (Stack C). */
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 19px; font-weight: 400; color: rgba(255,255,255,0.78); line-height: 1.55; margin-bottom: 36px; max-width: 560px; }
/* flex-wrap is load-bearing: without it the 4 trust items form a single
 * row that pushes the hero column wider than the viewport on phones,
 * which cascades to the form card and triggers horizontal page scroll. */
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.trust-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trust-num { font-family: var(--f-display); font-size: 32px; font-weight: 800; letter-spacing: -0.025em; color: var(--gold); line-height: 1; }
.trust-label { font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* Hero contact card */
.hero-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; padding: 36px 32px; backdrop-filter: blur(10px); }
.hero-card-title { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; color: #fff; margin-bottom: 8px; }
.hero-card-sub { font-family: var(--f-ui); font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 28px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.78); }
.form-field input,
.form-field select,
.form-field textarea {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 3px;
	padding: 11px 14px;
	font-family: var(--f-body);
	font-size: 14px;
	color: #fff;
	outline: none;
	transition: border-color 0.2s;
	width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold); }
.form-field select option { background: var(--navy2); color: #fff; }
.form-submit { width: 100%; background: var(--gold); border: none; color: var(--navy); font-family: var(--f-ui); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 15px; border-radius: 3px; cursor: pointer; margin-top: 8px; transition: background 0.2s; }
.form-submit:hover { background: var(--gold2); }
.form-note { text-align: center; font-family: var(--f-ui); font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 12px; letter-spacing: 0; }

/* ── PRACTICE AREAS GRID ── */
.practices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.practice-card {
	background: var(--warm);
	border: 1px solid #EDE5D6;
	border-radius: 6px;
	padding: 36px 32px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
	position: relative;
	overflow: hidden;
	display: block;
}
.practice-card::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: var(--gold);
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.2s;
}
.practice-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.06); transform: translateY(-2px); border-color: var(--gold); }
.practice-card:hover::before { transform: scaleY(1); }
.practice-icon { width: 44px; height: 44px; background: rgba(201,168,76,0.12); border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; font-size: 22px; }
.practice-card h3 { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; color: var(--navy); }
.practice-card p { font-size: 16px; color: var(--muted); line-height: 1.55; }
.practice-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-top: 20px; text-decoration: none; }

/* ── WHY US ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.why-item { display: flex; gap: 20px; align-items: flex-start; }
.why-num { flex-shrink: 0; width: 44px; height: 44px; background: rgba(201,168,76,0.12); border: 1.5px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--gold); }
.why-item-body h4 { font-family: var(--f-display); font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: #fff; margin-bottom: 8px; }
.why-item-body p { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.55; }
.why-visual { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 6px; padding: 48px 40px; text-align: center; }
.courthouse-note { font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.address-display { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; color: #fff; line-height: 1.4; margin-bottom: 24px; }
.map-placeholder { background: var(--navy3); border: 1px solid var(--border); border-radius: 4px; height: 180px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; margin: 0; }
.map-placeholder p { font-family: var(--f-ui); font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65); letter-spacing: 0.02em; }

/* Google Maps facade. Trigger wraps the placeholder figure + hint label.
   Click swaps the entire .map-facade contents for an iframe. */
.map-facade { margin-bottom: 20px; }
.map-facade-trigger { display: block; width: 100%; padding: 0; background: transparent; border: 0; cursor: pointer; color: inherit; text-align: inherit; font: inherit; }
.map-facade-trigger .map-placeholder { transition: border-color 0.2s, background 0.2s; }
.map-facade-trigger:hover .map-placeholder,
.map-facade-trigger:focus-visible .map-placeholder { border-color: rgba(201,168,76,0.45); background: var(--navy2); }
.map-facade-hint { display: block; margin-top: 10px; font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.map-facade-trigger:hover .map-facade-hint,
.map-facade-trigger:focus-visible .map-facade-hint { color: var(--gold); }
.map-facade-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

/* Iframe rendered after the user clicks the facade. */
.map-iframe { width: 100%; height: 240px; border: 0; border-radius: 4px; display: block; }

.directions-link { font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); text-decoration: none; }

/* ── PROCESS STEPS ── */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; position: relative; }
.process-steps::before {
	content: '';
	position: absolute;
	top: 28px;
	left: calc(12.5% + 20px);
	right: calc(12.5% + 20px);
	height: 1px;
	background: linear-gradient(90deg, var(--gold), rgba(201,168,76,0.2), var(--gold));
	opacity: 0.3;
}
.step { text-align: center; position: relative; }
.step-num { width: 56px; height: 56px; background: var(--navy3); border: 1.5px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 22px; font-weight: 800; letter-spacing: -0.025em; color: var(--gold); margin: 0 auto 20px; }
.step h3 { font-family: var(--f-display); font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: #fff; margin-bottom: 10px; }
.step p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.55; }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.testimonial-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; padding: 32px 28px; }
.stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card blockquote { font-size: 16px; font-style: italic; color: rgba(255,255,255,0.78); line-height: 1.6; margin-bottom: 20px; }
.testimonial-name { font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.testimonial-case { font-family: var(--f-ui); font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── MACON LOCATION ── */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.location-details { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.detail-row { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid #EDE5D6; }
.detail-row:last-child { border-bottom: none; }
.detail-icon { width: 36px; height: 36px; background: rgba(201,168,76,0.12); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.detail-label { font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.detail-value { font-size: 16px; color: var(--text); line-height: 1.45; }
.detail-value a { color: var(--text); text-decoration: none; font-weight: 600; }
.courts-served { background: var(--navy); border-radius: 6px; padding: 32px; margin-top: 32px; }
.courts-title { font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.courts-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.courts-list li { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.78); display: flex; align-items: center; gap: 10px; }
.courts-list li::before { content: '▸'; color: var(--gold); font-size: 10px; }

/* ── FAQ (homepage variant) ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.faq-item { background: var(--warm); border: 1px solid #EDE5D6; border-radius: 6px; padding: 28px; }
.faq-item h3 { font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); margin-bottom: 12px; line-height: 1.25; }
.faq-item p { font-size: 16px; color: var(--muted); line-height: 1.6; }

/* ── BOTTOM CTA ── */
.cta-section { background: var(--navy); text-align: center; padding: 96px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.1) 0%, transparent 60%); }
.cta-section h2 { font-family: var(--f-display); font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: #fff; margin-bottom: 16px; position: relative; }
.cta-section h2 em { font-style: normal; color: var(--gold); }
.cta-section p { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto 40px; font-weight: 400; position: relative; line-height: 1.55; }
.cta-section .hero-actions { justify-content: center; position: relative; }
.cta-phone { display: block; font-family: var(--f-display); font-size: 52px; font-weight: 800; letter-spacing: -0.035em; color: var(--gold); text-decoration: none; margin-bottom: 12px; position: relative; }
.cta-available { font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); position: relative; margin-bottom: 40px; }

/* ── HOMEPAGE RESPONSIVE ── */
@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	/* Hero text + form share the same centered column on stacked layouts so
	 * they read as one composition instead of one-left/one-centered. */
	.hero-content { max-width: 480px; margin: 0 auto; text-align: center; }
	.hero-eyebrow { justify-content: center; }
	/* Symmetric gold line on both sides of the eyebrow when centered. */
	.hero-eyebrow::after {
		content: '';
		display: inline-block;
		width: 32px;
		height: 1px;
		background: var(--gold);
	}
	.hero-sub { margin-left: auto; margin-right: auto; }
	.hero-actions { justify-content: center; }
	.hero-trust { justify-content: center; }
	/* Hero card stays visible on mobile — it's the highest-converting element
	 * on the homepage. Reduce padding so it doesn't dominate the viewport. */
	.hero-card { padding: 24px 20px; max-width: 480px; margin: 0 auto; }
	.practices-grid { grid-template-columns: 1fr 1fr; }
	.testimonials-grid { grid-template-columns: 1fr; }
	.process-steps { grid-template-columns: 1fr 1fr; }
	.process-steps::before { display: none; }
	.why-grid { grid-template-columns: 1fr; }
	.location-grid { grid-template-columns: 1fr; }
	.faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.hero { padding: 80px 0 60px; }
	.hero-card { padding: 22px 18px; }
	.hero-actions { width: 100%; }
	.hero-actions .btn-primary,
	.hero-actions .btn-outline { width: 100%; justify-content: center; padding-left: 18px; padding-right: 18px; }
	/* Trust strip becomes a 2x2 grid so labels never collide on the smallest
	 * phones (≤360px), with smaller numbers to fit cleanly. */
	.hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 36px; padding-top: 24px; }
	.trust-num { font-size: 26px; }
	.trust-label { font-size: 11px; letter-spacing: 0.08em; }
	.practices-grid { grid-template-columns: 1fr; }
	.process-steps { grid-template-columns: 1fr; }
}
