/* ============================================
   THE SOMAL LAW FIRM — Design System & Styles
   Premium Law Firm Website
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Navy Palette */
    --navy-950: #0a1628;
    --navy-900: #0f1c2e;
    --navy-800: #1a2a3a;
    --navy-700: #2a3f55;
    --navy-600: #3a5570;
    --navy-500: #4a6a8a;

    /* Gold Palette */
    --gold-600: #b08f3a;
    --gold-500: #c9a84c;
    --gold-400: #d4b96a;
    --gold-300: #e0cb8a;
    --gold-200: #ede0b8;
    --gold-100: #f5efd9;
    --gold-glow: rgba(201, 168, 76, 0.25);

    /* Neutrals */
    --white: #ffffff;
    --cream: #faf9f6;
    --warm-100: #f3f1ec;
    --warm-200: #e8e5dd;
    --warm-300: #d4d0c6;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);
    --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 10px 40px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 20px 60px rgba(10, 22, 40, 0.16);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.3);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;

    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.9rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
    --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 2.75rem);
    --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 3.75rem);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    --space-4xl: 128px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 150ms var(--ease-out-quart);
    --transition-base: 300ms var(--ease-out-quart);
    --transition-slow: 500ms var(--ease-out-expo);

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 80px;
    --topbar-height: 40px;
    --radius: 6px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-base); }
ul, ol { list-style: none; }

/* --- Skip to Content (Accessibility) --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-500);
    color: var(--navy-900);
    padding: 12px 24px;
    font-weight: 600;
    z-index: 10000;
    border-radius: var(--radius);
    transition: top var(--transition-fast);
}
.skip-to-content:focus { top: 10px; }

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10001;
    pointer-events: none;
}
.scroll-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
    transform-origin: left;
    transform: scaleX(0);
}

/* --- Page Transition Overlay --- */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--navy-900);
    z-index: 9999;
    transform: translateY(100%);
    pointer-events: none;
    will-change: transform;
}
.page-transition::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 2px;
    background: var(--gold-500);
    opacity: 0;
}
/* When active, overlay covers screen; CSS fallback animates it away after 0.5s */
@keyframes page-transition-fallback {
    to { transform: translateY(-100%); pointer-events: none; }
}
.page-transition.active {
    pointer-events: all;
    transform: translateY(0);
    animation: page-transition-fallback 0.6s ease-in-out forwards;
    animation-delay: 0.5s;
}

/* Fallback: if GSAP doesn't load within 1.5s, reveal gsap-hidden content */
@keyframes gsap-fallback-reveal {
    to { opacity: 1; }
}
.gsap-hidden {
    opacity: 0;
    animation: gsap-fallback-reveal 0s forwards;
    animation-delay: 1.5s;
}

/* --- Custom Cursor --- */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--gold-500);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background 0.3s, border 0.3s;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}
.cursor-dot.hovering {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--gold-500);
    mix-blend-mode: normal;
}

/* --- Container --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); }
.container--narrow { max-width: var(--container-narrow); }

/* --- Top Bar --- */
.topbar {
    background: var(--navy-950);
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,0.7); transition: color var(--transition-fast); }
.topbar a:hover { color: var(--gold-400); }
.topbar__contact { display: flex; gap: var(--space-lg); align-items: center; }
.topbar__contact i { color: var(--gold-500); margin-right: 6px; }
.topbar__social { display: flex; gap: var(--space-md); }
.topbar__social a { font-size: 14px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); transition: all var(--transition-base); }
.topbar__social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }

/* --- Header / Navigation --- */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition-base), background var(--transition-base);
}
.header.scrolled { box-shadow: var(--shadow-md); background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); }

.header .container { display: flex; justify-content: space-between; align-items: center; }

.header__logo img { height: 55px; }
.header__logo { margin-right: var(--space-xl); flex-shrink: 0; }

.nav { display: flex; align-items: center; gap: var(--space-xl); }
.nav__link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy-800);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-base);
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: width var(--transition-base);
}
.nav__link:hover, .nav__link.active { color: var(--gold-600); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-500);
    color: var(--navy-900);
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 24px;
    border-radius: var(--radius);
    transition: all var(--transition-base);
    border: 2px solid var(--gold-500);
}
.nav__cta:hover { background: transparent; color: var(--gold-500); }

/* Mobile Nav Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; z-index: 1001; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); transition: all var(--transition-base); display: block; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Section Styles --- */
.section { padding: var(--space-2xl) 0; position: relative; }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--cream { background: var(--cream); }
.section--warm { background: var(--warm-100); }

.section__header { text-align: center; margin-bottom: var(--space-xl); }
.section__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-500);
    margin-bottom: var(--space-md);
}
.section__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}
.section--dark .section__title { color: var(--white); }
.section__line {
    width: 60px;
    height: 2px;
    background: var(--gold-500);
    margin: 0 auto var(--space-lg);
}
.section__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
.section--dark .section__subtitle { color: rgba(255,255,255,0.7); }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900) url('../images/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}
.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.85), rgba(15,28,46,0.7));
    z-index: 2;
}
.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--space-lg);
}
.hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}
.hero__title span { color: var(--gold-400); }
.hero__subtitle {
    font-size: var(--text-xl);
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero__actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* Page Hero (inner pages) */
.hero--page {
    min-height: 40vh;
    padding-top: calc(var(--header-height) + var(--topbar-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
}
.hero--page .hero__title { font-size: var(--text-3xl); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}
.btn--primary {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}
.btn--primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}
.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
    transform: translateY(-2px);
}
.btn--outline-dark {
    background: transparent;
    color: var(--navy-800);
    border-color: var(--navy-700);
}
.btn--outline-dark:hover {
    border-color: var(--gold-500);
    color: var(--gold-600);
    transform: translateY(-2px);
}
.btn--lg { padding: 18px 40px; font-size: var(--text-base); }

/* --- Trust Indicators --- */
.trust-bar {
    background: var(--white);
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--warm-200);
}
.trust-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); text-align: center; }
.trust-item__number {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gold-500);
    line-height: 1;
    margin-bottom: var(--space-sm);
}
.trust-item__label {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gold-500);
    transition: height var(--transition-slow);
}
.card:hover::before { height: 100%; }

.card__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    font-size: 22px;
    margin-bottom: var(--space-lg);
    transition: background var(--transition-base);
}
.card:hover .card__icon { background: linear-gradient(135deg, var(--gold-500), var(--gold-400)); color: var(--navy-900); }

.card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--navy-800);
}
.card__text { color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-md); }
.card__list { margin-bottom: var(--space-md); }
.card__list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}
.card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
}
.card__link {
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-base), color var(--transition-base);
}
.card__link:hover { gap: 12px; color: var(--gold-500); }

.card--compact { display: flex; gap: var(--space-lg); align-items: flex-start; padding: var(--space-lg); }
.card--compact .card__icon { flex-shrink: 0; margin-bottom: 0; }
.card--compact .card__body { flex: 1; }
.card--compact .card__title { margin-bottom: var(--space-xs); }
.card--compact .card__text { margin-bottom: var(--space-sm); }

/* Cards Grid */
.cards-grid { display: grid; gap: var(--space-lg); }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Featured Testimonial --- */
.featured-testimonial {
    background: var(--cream);
    padding: var(--space-xl) 0;
    text-align: center;
}
.featured-testimonial__quote {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--navy-800);
    max-width: 750px;
    margin: 0 auto var(--space-lg);
    line-height: 1.5;
    position: relative;
}
.featured-testimonial__quote::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--gold-300);
    position: absolute;
    top: -30px;
    left: -20px;
    font-family: var(--font-heading);
    line-height: 1;
}
.featured-testimonial__stars { color: var(--gold-500); font-size: 18px; margin-bottom: var(--space-md); letter-spacing: 4px; }
.featured-testimonial__author { font-weight: 700; color: var(--navy-800); }
.featured-testimonial__role { font-size: var(--text-sm); color: var(--text-muted); }

/* --- CTA Banner --- */
.cta-banner {
    position: relative;
    padding: var(--space-3xl) 0;
    background: var(--navy-900);
    overflow: hidden;
}
.cta-banner__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}
.cta-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.cta-banner__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--white);
    margin-bottom: var(--space-md);
}
.cta-banner__text {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

/* --- About / Bio Sections --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.about__image img { width: 100%; height: 450px; object-fit: cover; }
.about__image::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold-500);
    border-radius: var(--radius-lg);
    z-index: -1;
}
.about__text h3 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--navy-800);
    margin-bottom: var(--space-lg);
}
.about__text p { color: var(--text-secondary); margin-bottom: var(--space-md); line-height: 1.8; }
.about__text blockquote {
    border-left: 3px solid var(--gold-500);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-style: italic;
    color: var(--navy-700);
    font-size: var(--text-lg);
}
.about__text blockquote cite {
    display: block;
    margin-top: var(--space-sm);
    font-style: normal;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--gold-600);
}

/* Attorney Profile */
.attorney-profile { display: grid; grid-template-columns: 380px 1fr; gap: var(--space-2xl); align-items: start; }
.attorney__photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.attorney__photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.attorney__photo::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--gold-500);
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none;
}
.attorney__name {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--navy-800);
    margin-bottom: 4px;
}
.attorney__title-text {
    font-size: var(--text-base);
    color: var(--gold-600);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}
.attorney__bio p { color: var(--text-secondary); margin-bottom: var(--space-md); line-height: 1.8; }

/* Education Timeline */
.timeline { position: relative; padding-left: 30px; margin: var(--space-xl) 0; }
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--warm-200);
}
.timeline__item { position: relative; margin-bottom: var(--space-lg); }
.timeline__item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--gold-500);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.timeline__degree {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--navy-800);
}
.timeline__school { color: var(--text-secondary); font-size: var(--text-sm); }
.timeline__note { color: var(--gold-600); font-size: var(--text-xs); font-weight: 600; font-style: italic; }

/* Bar Admissions */
.credentials-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm) var(--space-lg); margin: var(--space-md) 0; }
.credentials-list li {
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}
.credentials-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--gold-500);
    font-size: 10px;
}

/* Affiliations Logo Bar */
.affiliations { padding: var(--space-lg) 0; }
.affiliations__grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}
.affiliations__logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: all var(--transition-base);
}
.affiliations__logo:hover { opacity: 1; transform: scale(1.05); }
/* If only one logo, make it bigger and centered */
.affiliations__grid .affiliations__logo:only-child {
    height: 140px;
}

/* --- Practice Areas (full page) --- */
.practice-section { padding: var(--space-3xl) 0; }
.practice-section:nth-child(even) { background: var(--cream); }
.practice-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.practice-section:nth-child(even) .practice-section__grid { direction: rtl; }
.practice-section:nth-child(even) .practice-section__grid > * { direction: ltr; }

.practice-section__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    font-size: 32px;
    margin-bottom: var(--space-lg);
}
.practice-section__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--navy-800);
    margin-bottom: var(--space-md);
}
.practice-section__text { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-lg); }

/* Accordion */
.accordion { border: 1px solid var(--warm-200); border-radius: var(--radius-lg); overflow: hidden; }
.accordion__item { border-bottom: 1px solid var(--warm-200); }
.accordion__item:last-child { border-bottom: none; }
.accordion__trigger {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--navy-800);
    transition: background var(--transition-fast);
    text-align: left;
}
.accordion__trigger:hover { background: var(--cream); }
.accordion__trigger i { color: var(--gold-500); transition: transform var(--transition-base); font-size: 12px; }
.accordion__trigger.active i { transform: rotate(180deg); }
.accordion__content { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out-quart); }
.accordion__content-inner { padding: 0 var(--space-lg) var(--space-lg); color: var(--text-secondary); line-height: 1.8; }

/* --- Reviews --- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.review-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.review-card__stars { color: var(--gold-500); margin-bottom: var(--space-md); letter-spacing: 2px; }
.review-card__text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    position: relative;
}
.review-card__text::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--gold-200);
    font-family: var(--font-heading);
    position: absolute;
    top: -15px;
    left: -5px;
    line-height: 1;
}
.review-card__author { font-weight: 700; color: var(--navy-800); }
.review-card__role { font-size: var(--text-xs); color: var(--text-muted); }

/* Endorsements */
.endorsement { display: flex; gap: var(--space-lg); padding: var(--space-xl) 0; border-bottom: 1px solid var(--warm-200); }
.endorsement:last-child { border-bottom: none; }
.endorsement__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy-700);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    flex-shrink: 0;
}
.endorsement__name { font-weight: 700; color: var(--navy-800); }
.endorsement__title { font-size: var(--text-xs); color: var(--gold-600); font-weight: 600; margin-bottom: var(--space-sm); }
.endorsement__text { color: var(--text-secondary); line-height: 1.7; font-style: italic; }
.endorsement__date { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-sm); }

.endorsements-grid { max-width: 800px; margin: 0 auto; }
.endorsement__icon {
    width: 48px;
    height: 48px;
    background: var(--gold-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-600);
    flex-shrink: 0;
    font-size: 18px;
}
.endorsement__body { flex: 1; }
.endorsement__quote {
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: var(--space-sm);
    font-size: var(--text-base);
}
.endorsement__quote::before, .endorsement__quote::after { content: none; }
.endorsement__author strong { display: block; font-weight: 700; color: var(--navy-800); }
.endorsement__author span { font-size: var(--text-xs); color: var(--gold-600); font-weight: 600; }

.rating-summary__number { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 700; color: var(--navy-800); line-height: 1; }
.rating-summary__out-of { font-size: var(--text-lg); color: var(--text-muted); margin-left: var(--space-xs); }
.rating-summary__text { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-sm); }

.review-card__quote { color: var(--text-secondary); line-height: 1.7; font-style: italic; margin-bottom: var(--space-md); font-size: var(--text-sm); }
.review-card__quote::before, .review-card__quote::after { content: none; }

/* Contact Expect */
.contact-expect {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--cream);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--gold-500);
}
.contact-expect h3 { font-family: var(--font-heading); font-size: var(--text-lg); color: var(--navy-800); margin-bottom: var(--space-md); }
.contact-expect h3 i { color: var(--gold-500); margin-right: var(--space-sm); }
.contact-expect ul { list-style: none; }
.contact-expect li { padding: var(--space-xs) 0; color: var(--text-secondary); font-size: var(--text-sm); }
.contact-expect li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--gold-500); margin-right: var(--space-sm); font-size: 12px; }

/* Attorney Quote */
.attorney__quote {
    background: var(--cream);
    border-left: 3px solid var(--gold-500);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
}
.attorney__quote cite { display: block; margin-top: var(--space-sm); font-style: normal; font-weight: 600; color: var(--gold-600); font-size: var(--text-sm); }

/* Utility */
.mb-lg { margin-bottom: var(--space-lg); }

/* Rating Summary */
.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
}
.rating-summary__score {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--navy-800);
    line-height: 1;
}
.rating-summary__stars { color: var(--gold-500); font-size: 20px; letter-spacing: 3px; margin-bottom: 4px; }
.rating-summary__count { font-size: var(--text-sm); color: var(--text-muted); }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
.contact-info__item { display: flex; gap: var(--space-md); margin-bottom: var(--space-lg); }
.contact-info__icon {
    width: 44px;
    height: 44px;
    background: var(--navy-800);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    flex-shrink: 0;
}
.contact-info__label { font-weight: 700; color: var(--navy-800); font-size: var(--text-sm); margin-bottom: 2px; }
.contact-info__text { color: var(--text-secondary); font-size: var(--text-sm); }
.contact-info__text a { color: var(--gold-600); }
.contact-info__text a:hover { color: var(--gold-500); }

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: var(--space-lg);
    height: 250px;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* Contact Form */
.contact-form {
    background: var(--cream);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.contact-form__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--navy-800);
    margin-bottom: var(--space-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
.form-group { margin-bottom: var(--space-md); }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--navy-800);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--warm-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-success {
    display: none;
    text-align: center;
    padding: var(--space-xl);
}
.form-success.show { display: block; }
.form-success i { font-size: 48px; color: #059669; margin-bottom: var(--space-md); }
.form-success h3 { font-family: var(--font-heading); color: var(--navy-800); margin-bottom: var(--space-sm); }

/* --- Footer --- */
.footer {
    background: var(--navy-950);
    color: rgba(255,255,255,0.7);
    padding: var(--space-3xl) 0 var(--space-xl);
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-2xl); }
.footer__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--white);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}
.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold-500);
}
.footer__about-text { font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--space-md); }
.footer__logo { height: 60px; width: 60px; object-fit: contain; margin-bottom: var(--space-md); filter: brightness(0) invert(1); }
.footer__social { display: flex; gap: var(--space-sm); }
.footer__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    transition: all var(--transition-base);
    font-size: 14px;
}
.footer__social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }

.footer__links li { margin-bottom: var(--space-sm); }
.footer__links a { font-size: var(--text-sm); transition: color var(--transition-fast); }
.footer__links a:hover { color: var(--gold-400); }

.footer__contact-item { display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); font-size: var(--text-sm); }
.footer__contact-item i { color: var(--gold-500); width: 16px; margin-top: 3px; }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.footer__credit { color: rgba(255,255,255,0.3); }
.footer__credit a { color: var(--gold-500); transition: color var(--transition-fast); }
.footer__credit a:hover { color: var(--gold-400); }

/* --- Service Cards (Practice Areas page) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--warm-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-500);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-base);
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    font-size: 20px;
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
}
.service-card:hover .service-card__icon {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
}
.service-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--navy-800);
    margin-bottom: var(--space-sm);
}
.service-card__text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--text-sm);
}
.section--cream .service-card { background: var(--white); }

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--navy-800);
    color: var(--gold-400);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 900;
    box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-500); color: var(--navy-900); }

/* --- Utility --- */
.text-gold { color: var(--gold-500); }
.text-center { text-align: center; }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }
/* gsap-hidden initial state set in fallback section above */

/* Mobile shimmer fallback for Three.js */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.hero__shimmer {
    display: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.03), transparent);
    background-size: 200% 100%;
    animation: shimmer 8s ease-in-out infinite;
    z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid { gap: var(--space-xl); }
    .attorney-profile { grid-template-columns: 300px 1fr; gap: var(--space-xl); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
    .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .topbar__contact { display: none; }
    .topbar { justify-content: center; }

    .nav-toggle { display: flex; }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-slow);
        z-index: 1000;
    }
    .nav.open { right: 0; }
    .nav__link { font-size: var(--text-base); }
    .nav__cta { margin-top: var(--space-md); }

    .hero { min-height: 80vh; }
    .hero__shimmer { display: block; }
    .hero__title { font-size: var(--text-3xl); }
    .hero--page { min-height: 30vh; padding-top: calc(var(--header-height) + var(--space-2xl)); }

    .trust-bar__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    .about-grid { grid-template-columns: 1fr; }
    .about__image img { height: 300px; }
    .attorney-profile { grid-template-columns: 1fr; }
    .attorney__photo { max-width: 300px; margin: 0 auto; }

    .cards-grid--2,
    .cards-grid--3,
    .cards-grid--4 { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }

    .practice-section__grid { grid-template-columns: 1fr; }
    .practice-section:nth-child(even) .practice-section__grid { direction: ltr; }

    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .credentials-list { grid-template-columns: 1fr; }

    .footer__grid { grid-template-columns: 1fr; }

    .cursor-dot { display: none; }
}

@media (max-width: 480px) {
    .hero { min-height: 70vh; }
    .hero__actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .section { padding: var(--space-2xl) 0; }
    .trust-bar__grid { grid-template-columns: 1fr 1fr; }
    .endorsement { flex-direction: column; }
}
