/* ═══════════════════════════════════════════════════════════
   DEMERS LAW — GUARDIAN PRESTIGE DESIGN SYSTEM
   Navy (#1B2A4A) + Gold (#C5962B) + White
   Traced from Package A mockup
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Design Tokens ─── */
:root {
    --navy: #1B2A4A;
    --navy-deep: #111C33;
    --navy-light: #243656;
    --gold: #C5962B;
    --gold-light: #D4A94A;
    --gold-dark: #A07A20;
    --gold-glow: rgba(197, 150, 43, 0.15);
    --white: #FFFFFF;
    --off-white: #F8F6F1;
    --text-primary: #F0EDE5;
    --text-secondary: rgba(240, 237, 229, 0.7);
    --text-muted: rgba(240, 237, 229, 0.45);
    --border: rgba(197, 150, 43, 0.15);
    --border-strong: rgba(197, 150, 43, 0.3);
    --card-bg: rgba(27, 42, 74, 0.6);
    --radius: 8px;
    --radius-lg: 16px;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --tr: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --max-w: 1200px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--navy-deep);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--tr);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ═══ SCROLL ANIMATIONS ═══ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* New scroll animations */
.reveal-rotate {
    opacity: 0;
    transform: rotate(-3deg) translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-rotate.visible {
    opacity: 1;
    transform: rotate(0) translateY(0);
}

.reveal-blur {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(20px);
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}

.reveal-blur.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.reveal-flip {
    opacity: 0;
    transform: perspective(800px) rotateX(15deg) translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-flip.visible {
    opacity: 1;
    transform: perspective(800px) rotateX(0) translateY(0);
}

/* Gold line sweep on sections */
.gold-sweep::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gold-sweep.visible::after {
    width: 100%;
}

/* ═══ PARALLAX WATERMARK DIVIDERS ═══ */
.parallax-divider {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-top: 2px solid rgba(197, 150, 43, 0.2);
    border-bottom: 2px solid rgba(197, 150, 43, 0.2);
}

.parallax-divider::before {
    content: '';
    position: absolute;
    inset: -30%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.12;
    filter: sepia(100%) saturate(300%) hue-rotate(10deg) brightness(0.7);
    z-index: 0;
}

.parallax-divider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        var(--navy-deep) 0%,
        rgba(17, 28, 51, 0.75) 30%,
        rgba(27, 42, 74, 0.6) 50%,
        rgba(17, 28, 51, 0.75) 70%,
        var(--navy-deep) 100%);
    z-index: 1;
}

.parallax-divider .divider-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 24px;
}

.parallax-divider .divider-content h3 {
    font-family: var(--font-serif);
    font-size: clamp(22px, 3vw, 32px);
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.parallax-divider .divider-content p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
}

.parallax-divider .divider-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #111;
    font-size: 16px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.parallax-divider .divider-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 150, 43, 0.35);
    color: #111;
}
.parallax-divider .divider-phone svg {
    flex-shrink: 0;
}

/* Gold corner accents on dividers */
.parallax-divider .divider-content::before,
.parallax-divider .divider-content::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(197, 150, 43, 0.3);
    border-style: solid;
}
.parallax-divider .divider-content::before {
    top: 24px; left: 24px;
    border-width: 2px 0 0 2px;
}
.parallax-divider .divider-content::after {
    bottom: 24px; right: 24px;
    border-width: 0 2px 2px 0;
}

/* Image variants */
.parallax-bg-guardian::before   { background-image: url('/images/parallax/courthouse.webp'); }
.parallax-bg-bankruptcy::before { background-image: url('/images/hero_bankruptcy.webp'); }
.parallax-bg-consumer::before   { background-image: url('/images/hero_consumer_law.webp'); }
.parallax-bg-probate::before    { background-image: url('/images/hero_probate.webp'); }
.parallax-bg-landlord::before   { background-image: url('/images/hero_landlord_tenant.webp'); }
.parallax-bg-title::before      { background-image: url('/images/hero_title_defense.webp'); }
.parallax-bg-tax::before        { background-image: url('/images/hero_tax_foreclosure.webp'); }
.parallax-bg-scales::before     { background-image: url('/images/parallax/scales.webp'); }
.parallax-bg-lawbooks::before   { background-image: url('/images/parallax/lawbooks.webp'); }
.parallax-bg-gavel::before      { background-image: url('/images/parallax/gavel.webp'); }
.parallax-bg-contract::before   { background-image: url('/images/parallax/contract.webp'); }

/* Taller variant */
.parallax-divider.tall { height: 280px; }

/* Mobile: disable fixed attachment (iOS doesn't support it) */
@media (max-width: 768px) {
    .parallax-divider::before {
        background-attachment: scroll;
        inset: -10%;
    }
    .parallax-divider { height: 180px; }
    .parallax-divider.tall { height: 220px; }
}

/* ═══ ASYMMETRICAL HERO SPLIT ═══ */
.hero-split {
    position: relative;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    min-height: 320px;
    overflow: hidden;
    background: var(--navy-deep);
    margin: 90px auto 24px;
    max-width: 1200px;
    border-radius: 16px;
    border: 2px solid rgba(197, 150, 43, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
/* Triple gold frame — inner lines */
.hero-split::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(197, 150, 43, 0.2);
    border-radius: 12px;
    pointer-events: none;
    z-index: 3;
}
.hero-split::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(197, 150, 43, 0.08);
    border-radius: 9px;
    pointer-events: none;
    z-index: 3;
}
.hero-split.reverse {
    grid-template-columns: 55% 45%;
}
.hero-split-img {
    position: relative;
    overflow: hidden;
    margin: 16px;
    border-radius: 10px;
    border: 1px solid rgba(197, 150, 43, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.hero-split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-split-img:hover img {
    transform: scale(1.05);
}
/* Corner accent lines on image frame */
.hero-split-img::before {
    content: '';
    position: absolute;
    top: 6px; left: 6px;
    width: 24px; height: 24px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    border-radius: 2px 0 0 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}
.hero-split-img::after {
    content: '';
    position: absolute;
    bottom: 6px; right: 6px;
    width: 24px; height: 24px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    border-radius: 0 0 2px 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}
.hero-split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
    z-index: 2;
}
.hero-split-text .section-eyebrow {
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.hero-split-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 36px);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-split-text h2 em {
    font-style: normal;
    color: var(--gold);
}
.hero-split-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 20px;
}
.hero-split.reverse .hero-split-img {
    order: 2;
}
.hero-split.reverse .hero-split-text {
    order: 1;
}

@media (max-width: 768px) {
    .hero-split, .hero-split.reverse {
        grid-template-columns: 1fr;
        min-height: auto;
        margin: 16px;
        border-radius: 12px;
    }
    .hero-split-img { max-height: 220px; margin: 12px 12px 0; }
    .hero-split.reverse .hero-split-img { order: 0; }
    .hero-split.reverse .hero-split-text { order: 0; }
    .hero-split-text { padding: 24px 20px 32px; }
}

/* Staggered children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.12s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.19s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.26s;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.33s;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.40s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}


/* ═══ NAVIGATION ═══ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(17, 28, 51, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--tr);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo span {
    font-size: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--tr);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ─── Free Consultation Nav Button (standalone) ─── */
.btn-nav-consult {
    display: inline-block !important;
    background: #C5962B !important;
    color: #0a0b14 !important;
    padding: 18px 48px !important;
    border-radius: 6px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
    cursor: pointer;
}

.btn-nav-consult:hover {
    background: #d4a83a;
    color: #0a0b14 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(197, 150, 43, 0.3);
}

.btn-nav-consult::after {
    display: none;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold) !important;
}

/* Mobile menu */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}


/* ═══ HERO SECTION ═══ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: var(--navy-deep);
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: -20%;
    background: url('/images/guardian-hero.webp') center/cover no-repeat;
    will-change: transform, filter;
    animation: droneApproach 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

/* Drone approach keyframes — fly in from distance */
@keyframes droneApproach {
    0% {
        transform: scale(3) translateY(-8%);
        filter: blur(6px) brightness(1.2);
    }
    40% {
        filter: blur(2px) brightness(1.05);
    }
    75% {
        transform: scale(1.3) translateY(-1%);
        filter: blur(0) brightness(1);
    }
    100% {
        transform: scale(1.1) translateY(0);
        filter: blur(0) brightness(1);
    }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 28, 51, 0.85) 0%, rgba(17, 28, 51, 0.6) 50%, rgba(17, 28, 51, 0.75) 100%);
    animation: overlayFadeIn 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

@keyframes overlayFadeIn {
    0%   { opacity: 0.3; }
    60%  { opacity: 0.7; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 80px 0 60px;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 560px;
}

/* ═══ HERO ENTRANCE ANIMATIONS ═══ */
@keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.hero-content .hero-eyebrow {
    animation: slideFromLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.8s both;
}
.hero-content h1 {
    animation: slideFromRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 3.1s both;
}
.hero-content .hero-sub {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 3.5s both;
}
.hero-content .hero-actions {
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 3.8s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--navy-deep);
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all var(--tr);
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 150, 43, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--border-strong);
    cursor: pointer;
    transition: all var(--tr);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}


/* ═══ TRUST BAR ═══ */
.trust-bar {
    background: var(--navy);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.trust-inner {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.trust-icon {
    width: 28px;
    height: 28px;
}

.trust-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.trust-val {
    color: var(--white);
    font-weight: 700;
}


/* ═══ PRACTICE AREAS ═══ */
.practice {
    background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
    padding: 100px 0;
}

.section-hdr {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--white);
}

.section-sub {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ═══ TRIPLE-FRAME PRACTICE CARDS ═══ */
.practice-card {
    background: linear-gradient(145deg, rgba(27, 42, 74, 0.85) 0%, rgba(17, 28, 51, 0.98) 100%);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;

    /* ── LAYER 1: Outer gold border ── */
    border: 2px solid rgba(197, 150, 43, 0.4);
    /* ── LAYER 2: Gold shadow outline ── */
    box-shadow:
        inset 0 0 0 1px rgba(197, 150, 43, 0.12),
        0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ── LAYER 3: Inner gold inset border ── */
.card-frame {
    display: flex;
    align-items: flex-start;
    gap: 0;
    border: 1px solid rgba(197, 150, 43, 0.15);
    border-radius: calc(var(--radius-lg) - 2px);
    margin: 5px;
    overflow: hidden;
    position: relative;
}

/* ── Gold accent top line ── */
.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    z-index: 2;
}

/* ── Art Deco corner ornaments ── */
.practice-card::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(197, 150, 43, 0.25);
    border-bottom: 2px solid rgba(197, 150, 43, 0.25);
    border-radius: 0 0 4px 0;
    z-index: 2;
    transition: all var(--tr);
}

.card-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-left: 2px solid rgba(197, 150, 43, 0.25);
    border-top: 2px solid rgba(197, 150, 43, 0.25);
    border-radius: 4px 0 0 0;
    z-index: 2;
}

/* ── ICON FRAME (left panel) — BIG & BOLD ── */
.card-icon-frame {
    flex-shrink: 0;
    width: 180px;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(197, 150, 43, 0.14) 0%, rgba(197, 150, 43, 0.04) 100%);
    border-right: 2px solid rgba(197, 150, 43, 0.3);
    padding: 28px 20px;
    position: relative;
}

.card-icon-frame::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(197, 150, 43, 0.18);
    border-radius: 10px;
    pointer-events: none;
}

.card-icon-frame img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(197, 150, 43, 0.5)) drop-shadow(0 0 8px rgba(197, 150, 43, 0.3));
    transition: transform 0.4s ease;
}

/* ── CARD BODY (right panel) ── */
.card-body {
    flex: 1;
    padding: 24px 28px 24px 24px;
    text-align: left;
}

.practice-card h3 {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

/* Gold underline beneath title */
.practice-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.practice-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.practice-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    opacity: 0.6;
    transition: all var(--tr);
    letter-spacing: 0.5px;
}

/* ═══ HOVER STATES ═══ */
.practice-card:hover {
    border-color: rgba(197, 150, 43, 0.7);
    transform: translateY(-6px);
    box-shadow:
        inset 0 0 0 1px rgba(197, 150, 43, 0.25),
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(197, 150, 43, 0.1);
}

.practice-card:hover::before {
    height: 4px;
}

.practice-card:hover::after {
    border-color: rgba(197, 150, 43, 0.5);
    width: 30px;
    height: 30px;
}

.practice-card:hover .card-icon-frame img {
    transform: scale(1.1);
}

.practice-card:hover .learn-more {
    opacity: 1;
}


/* ═══ WHY CHOOSE — PARALLAX LEGAL BACKGROUND ═══ */
.why-choose {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.why-choose::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/bg-legal-abstract.webp') center/cover no-repeat fixed;
    opacity: 0.35;
    z-index: 0;
}

.why-choose::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 42, 74, 0.92) 0%, rgba(17, 28, 51, 0.95) 100%);
    z-index: 0;
}

.why-choose .container {
    position: relative;
    z-index: 1;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.why-item {
    text-align: center;
    padding: 32px 24px;
}

.why-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
}

.why-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.why-item h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.why-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ═══ ABOUT SECTION ═══ */
.about {
    background: var(--navy-deep);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-credentials {
    list-style: none;
    margin-top: 24px;
}

.about-credentials li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.about-credentials li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 700;
    font-size: 16px;
}

.about-image {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-image .building-icon {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
}

.about-image .building-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.about-image h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 8px;
}

.about-image p {
    font-size: 14px;
    color: var(--text-secondary);
}


/* ═══ CALL NOW CTA BANNER ═══ */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.btn-call-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--navy-deep) !important;
    padding: 18px 48px;
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all var(--tr);
}

.btn-call-now:hover {
    background: var(--gold-light);
    color: var(--navy-deep) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 150, 43, 0.3);
}

/* Inline phone link (footer, body text) */
.phone-cta-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold) !important;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--tr);
}
.phone-cta-inline:hover {
    color: var(--gold-light) !important;
}


/* ═══ ABOUT PHOTO GRID ═══ */
.about-photos {
    padding: 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.photo-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    aspect-ratio: 1;
    background: var(--card-bg);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.photo-portrait {
    grid-row: span 2;
}


/* ═══ TESTIMONIALS — PARALLAX LEGAL BACKGROUND ═══ */
.testimonials {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/bg-legal-abstract.png') center bottom/cover no-repeat fixed;
    opacity: 0.3;
    z-index: 0;
    transform: scaleX(-1);
}

.testimonials::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 42, 74, 0.93) 0%, rgba(17, 28, 51, 0.96) 100%);
    z-index: 0;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color var(--tr);
}

.testimonial-card:hover {
    border-color: var(--border-strong);
}

.stars {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
}

.testimonial-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}


/* ═══ FAQ SECTION (AI Overview Targeting) ═══ */
.faq {
    background: var(--navy-deep);
    padding: 100px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--tr);
}

.faq-item:hover {
    border-color: var(--border-strong);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: var(--card-bg);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    transition: background var(--tr);
}

.faq-q:hover {
    background: rgba(27, 42, 74, 0.8);
}

.faq-q .arrow {
    color: var(--gold);
    font-size: 18px;
    transition: transform var(--tr);
}

.faq-item.open .arrow {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 24px;
    background: rgba(17, 28, 51, 0.5);
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding: 20px 24px;
}

.faq-a p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ═══ CONTACT / FOOTER ═══ */
.contact {
    background: var(--navy);
    padding: 80px 0;
    border-top: 3px solid var(--gold);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.contact-detail .icon {
    font-size: 18px;
    color: var(--gold);
    margin-top: 2px;
}

.contact-detail .info {
    font-size: 15px;
    color: var(--text-primary);
}

.contact-detail .info small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 24px;
}

.contact-map iframe {
    width: 100%;
    height: 220px;
    border: none;
    filter: grayscale(50%) brightness(0.8);
}



.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-sans);
    margin-bottom: 14px;
    transition: border-color var(--tr);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-gold {
    width: 100%;
    justify-content: center;
}


/* ═══ FOOTER ═══ */
.footer {
    background: var(--navy-deep);
    padding: 60px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}


/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: block;
    }

    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .practice-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .trust-inner {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ─── Stagger children for 7th and 8th practice cards ─── */
.stagger-children.visible>*:nth-child(7) {
    transition-delay: 0.47s;
}

.stagger-children.visible>*:nth-child(8) {
    transition-delay: 0.54s;
}

/* ─── Landing Page Responsive ─── */
@media (max-width: 900px) {
    [style*="grid-template-columns: 1fr 1fr"][style*="gap: 48px"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ─── Contact Form Select Dropdown Fix ─── */
#contactSubject,
.contact-form select {
    color: #0a0b14 !important;
    background-color: #ffffff !important;
    -webkit-appearance: menulist !important;
    appearance: menulist !important;
}

#contactSubject option,
.contact-form select option {
    color: #0a0b14 !important;
    background-color: #ffffff !important;
}