/* ============================================
   CURIOUS LAW VISION
   Premium Legal Website — Royal Purple + Gold
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Brand Colors */
    --purple:        #5B1FA6;
    --purple-light:  #7B3CC4;
    --purple-dark:   #440F80;
    --gold:          #D4AF37;
    --gold-light:    #E8C84A;
    --gold-dark:     #B8941F;

    /* Background / Surface */
    --bg-primary:    #08080B;
    --bg-secondary:  #0F0F14;
    --bg-card:       #12121A;
    --bg-elevated:   #1A1A26;

    /* Text */
    --text-primary:  #F5F5F7;
    --text-secondary:#A1A1B5;
    --text-tertiary: #6E6E85;

    /* UI */
    --border-color:  rgba(91, 31, 166, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --white:         #FFFFFF;
    --black:         #000000;

    /* Shadows */
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
    --shadow-md:  0 4px 24px rgba(0,0,0,0.5);
    --shadow-lg:  0 12px 48px rgba(0,0,0,0.6);
    --shadow-xl:  0 24px 72px rgba(0,0,0,0.7);
    --shadow-purple: 0 8px 32px rgba(91,31,166,0.35);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

    /* Transitions */
    --transition-fast:   0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow:   0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --nav-height:        64px;
    --container-max:     1200px;
    --container-padding: 24px;
    --section-padding:   72px;
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary:    #FFFFFF;
    --bg-secondary:  #F5F3FF;
    --bg-card:       #FFFFFF;
    --bg-elevated:   #EDE9FF;
    --text-primary:  #1A0533;
    --text-secondary:#5A4A72;
    --text-tertiary: #8A7AA0;
    --border-color:  rgba(91, 31, 166, 0.2);
    --border-subtle: rgba(91, 31, 166, 0.1);
    --shadow-sm:  0 2px 8px rgba(91,31,166,0.08);
    --shadow-md:  0 4px 24px rgba(91,31,166,0.12);
    --shadow-lg:  0 12px 48px rgba(91,31,166,0.16);
    --shadow-xl:  0 24px 72px rgba(91,31,166,0.2);
    --shadow-purple: 0 8px 32px rgba(91,31,166,0.2);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-medium), color var(--transition-medium);
}

a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   LOADING SCREEN — PREMIUM REDESIGN
   ============================================ */

/* Outer shell */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ── Ambient background glows ── */
.loader-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.loader-glow-purple {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(91,31,166,0.22) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-60%, -60%);
    animation: glowPurpleDrift 5s ease-in-out infinite alternate;
}

.loader-glow-gold {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(212,175,55,0.10) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-35%, -35%);
    animation: glowGoldDrift 7s ease-in-out infinite alternate;
}

@keyframes glowPurpleDrift {
    0%   { opacity: 0.65; transform: translate(-60%, -60%) scale(1); }
    100% { opacity: 1;    transform: translate(-60%, -54%) scale(1.1); }
}
@keyframes glowGoldDrift {
    0%   { opacity: 0.5; transform: translate(-35%, -35%) scale(1); }
    100% { opacity: 0.9; transform: translate(-38%, -30%) scale(1.08); }
}

/* ── Content block — single cohesive unit ── */
.loader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    animation: contentReveal 0.7s ease 0.15s forwards;
}

@keyframes contentReveal {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo wrapper + aura ── */
.loader-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    margin-bottom: 26px;
}

.loader-aura {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(91,31,166,0.30) 0%,
        rgba(212,175,55,0.08) 45%,
        transparent 72%);
    filter: blur(18px);
    animation: auraPulse 3s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% { transform: scale(1);    opacity: 0.75; }
    50%       { transform: scale(1.14); opacity: 1; }
}

.loader-img {
    width: 144px;
    height: 144px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter:
        drop-shadow(0 0 28px rgba(91,31,166,0.6))
        drop-shadow(0 6px 20px rgba(0,0,0,0.55));
    animation: logoEntrance 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.25s both;
}

@keyframes logoEntrance {
    from { transform: scale(0.72); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ── Brand name block ── */
.loader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.8s forwards;
}

.loader-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--text-primary);
    margin: 0;
}

.loader-title-curious { color: var(--text-primary); }
.loader-title-law     { color: var(--text-primary); }

.loader-vision {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.72rem, 1.4vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.52em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 5px;
    padding-right: 0.52em; /* compensate for letter-spacing on last char */
}

/* ── Tagline ── */
.loader-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.65rem, 1.2vw, 0.76rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.6s ease 1s forwards;
}

/* ── Ornamental divider ── */
.loader-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    max-width: 90vw;
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp 0.5s ease 1.15s forwards;
}

.loader-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212,175,55,0.5) 40%,
        rgba(212,175,55,0.5) 60%,
        transparent 100%);
}

.loader-divider-diamond {
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: 0.8;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(212,175,55,0.5);
}

/* ── Progress bar wrapper ── */
.loader-bar-wrap {
    width: 300px;
    max-width: 90vw;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeUp 0.5s ease 1.25s forwards;
}

/* Track */
.loader-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    overflow: visible;
}

/* Outer glow track */
.loader-bar-glow {
    position: absolute;
    inset: -5px -3px;
    background: linear-gradient(90deg,
        rgba(91,31,166,0.18),
        rgba(212,175,55,0.12));
    border-radius: 8px;
    filter: blur(7px);
    z-index: 0;
}

/* Fill */
.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        var(--purple) 0%,
        var(--purple-light) 50%,
        var(--gold) 100%);
    background-size: 300% 100%;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    animation:
        loaderProgress 2.6s cubic-bezier(0.4,0,0.2,1) 1.4s forwards,
        shimmer 2.2s linear 1.4s infinite;
}

/* Glowing head dot */
.loader-bar-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    filter: blur(4px);
    opacity: 0.85;
}

@keyframes loaderProgress {
    0%   { width: 0%; }
    30%  { width: 40%; }
    60%  { width: 72%; }
    82%  { width: 88%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -200% 0; }
}

/* ── Loading label ── */
.loader-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    opacity: 0;
    animation: labelFade 1.6s ease 1.6s forwards;
}

@keyframes labelFade {
    0%   { opacity: 0; }
    30%  { opacity: 0.55; }
    60%  { opacity: 0.3; }
    100% { opacity: 0.5; }
}

/* ── Shared keyframe ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Light-theme overrides ── */
[data-theme="light"] .loader-glow-purple {
    background: radial-gradient(circle, rgba(91,31,166,0.10) 0%, transparent 70%);
}
[data-theme="light"] .loader-glow-gold {
    background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
}
[data-theme="light"] .loader-aura {
    background: radial-gradient(circle,
        rgba(91,31,166,0.14) 0%,
        rgba(212,175,55,0.04) 45%,
        transparent 72%);
}
[data-theme="light"] .loader-img {
    filter:
        drop-shadow(0 0 18px rgba(91,31,166,0.28))
        drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}
[data-theme="light"] .loader-bar {
    background: rgba(0,0,0,0.07);
}
[data-theme="light"] .loader-bar-glow {
    background: linear-gradient(90deg,
        rgba(91,31,166,0.08),
        rgba(212,175,55,0.06));
}

/* ── Mobile sizing ── */
@media (max-width: 480px) {
    .loader-logo-wrap  { width: 120px; height: 120px; margin-bottom: 20px; }
    .loader-img        { width: 108px; height: 108px; }
    .loader-aura       { filter: blur(12px); }
    .loader-glow-purple { width: 280px; height: 280px; }
    .loader-glow-gold   { width: 200px; height: 200px; }
}



/* ============================================
   DISCLAIMER MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 11, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    animation: modalFadeIn 0.4s ease forwards;
}

@keyframes modalFadeIn { to { opacity: 1; } }

.modal-container {
    width: 100%;
    max-width: 720px;
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: translateY(30px);
    opacity: 0;
}

@keyframes modalSlideUp { to { transform: translateY(0); opacity: 1; } }

.modal-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(91,31,166,0.1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
    margin-bottom: 20px;
}

.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 10px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 10px; }

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(91,31,166,0.3));
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.modal-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.modal-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.modal-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
    cursor: pointer;
}

.modal-checkbox label {
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
}

.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn-primary { flex: 1; }

.modal-actions .btn-secondary {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.modal-actions .btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10001;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--purple), var(--gold));
    transition: width 0.1s linear;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(8, 8, 11, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(91,31,166,0.15);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-left { display: flex; align-items: center; flex-shrink: 0; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-firm-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--gold));
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-elevated);
    color: var(--gold);
}

.btn-consultation {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white);
    border-radius: 24px;
    font-size: 0.813rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: 1px solid rgba(212,175,55,0.3);
}

.btn-consultation:hover {
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    transform: translateY(-1px);
    box-shadow: var(--shadow-purple);
    border-color: var(--gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 4px 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-menu-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all var(--transition-medium);
}

.mobile-menu.active .mobile-menu-logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.mobile-link:hover { color: var(--gold); }

.mobile-menu.active .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(7) { transition-delay: 0.35s; }

.mobile-cta {
    margin-top: 8px;
    font-size: 1rem !important;
    padding: 12px 32px !important;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    transition-delay: 0.35s;
}

.mobile-menu.active .mobile-cta { opacity: 1; transform: translateY(0); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white);
    border-radius: 32px;
    font-size: 0.938rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: 1px solid rgba(212,175,55,0.25);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
    border-color: var(--gold);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 32px;
    font-size: 0.938rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212,175,55,0.15);
}

.magnetic { position: relative; transition: transform var(--transition-fast); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--nav-height) + 8px) var(--container-padding) 48px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(91,31,166,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(212,175,55,0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 90%, rgba(91,31,166,0.10) 0%, transparent 50%);
}

[data-theme="light"] .hero-gradient {
    background:
        radial-gradient(ellipse at 15% 50%, rgba(91,31,166,0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(212,175,55,0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 90%, rgba(91,31,166,0.06) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 18s infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; background: var(--purple);    animation-duration: 20s; }
.particle:nth-child(2) { top: 60%; left: 80%; background: var(--gold);      animation-duration: 18s; animation-delay: 3s; }
.particle:nth-child(3) { top: 40%; left: 30%; background: var(--purple-light); animation-duration: 22s; animation-delay: 6s; }
.particle:nth-child(4) { top: 80%; left: 60%; background: var(--gold);      animation-duration: 16s; animation-delay: 9s; }
.particle:nth-child(5) { top: 10%; left: 70%; background: var(--purple);    animation-duration: 24s; animation-delay: 12s; }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25%       { transform: translate(30px, -50px) scale(1.5); opacity: 0.6; }
    50%       { transform: translate(-20px, -100px) scale(1); opacity: 0.2; }
    75%       { transform: translate(40px, -50px) scale(1.2); opacity: 0.4; }
}

.hero-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    max-width: var(--container-max);
    width: 100%;
}

.hero-content { text-align: left; }

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 460px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 48px rgba(91,31,166,0.3));
    animation: heroImageFloat 6s ease-in-out infinite;
}

.hero-img:hover { animation-play-state: paused; }

[data-theme="light"] .hero-img {
    filter: drop-shadow(0 20px 48px rgba(91,31,166,0.15));
}

@keyframes heroImageFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(91,31,166,0.15);
    border: 1px solid rgba(91,31,166,0.35);
    border-radius: 32px;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-title .gold { color: var(--gold); }

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.063rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 0 32px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    max-width: var(--container-max);
    width: 100%;
}

.stat { text-align: center; }

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 22px;
    height: 22px;
    border-right: 2px solid var(--text-tertiary);
    border-bottom: 2px solid var(--text-tertiary);
    transform: rotate(45deg);
    opacity: 0.4;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ============================================
   PRACTICE AREAS
   ============================================ */
.practice-section { background: var(--bg-secondary); }

.practice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch; /* force equal-height rows */
}

.practice-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px 20px;
    transition: all var(--transition-medium);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* stretch to fill grid cell */
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--gold));
    transform: scaleX(0);
    transition: transform var(--transition-medium);
    transform-origin: left;
}

.practice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-purple);
    border-color: rgba(91,31,166,0.4);
}

.practice-card:hover::before { transform: scaleX(1); }

.practice-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    color: var(--purple-light);
    flex-shrink: 0;
}

.practice-icon svg { width: 100%; height: 100%; }

.practice-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    flex-shrink: 0;
}

.practice-card p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1; /* pushes link to bottom */
}

.practice-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    transition: all var(--transition-fast);
    margin-top: auto;
    flex-shrink: 0;
    display: inline-block;
}

.practice-link:hover {
    color: var(--gold-light);
    letter-spacing: 0.02em;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section { background: var(--bg-primary); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
    gap: 0;
}

.about-content .section-tag { text-align: center; }
.about-content .section-title { text-align: center; }

.about-bio {
    font-size: 0.975rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 28px;
    text-align: center;
}

.about-details {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.about-detail {
    padding: 20px 22px;
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
    background: var(--bg-card);
    text-align: center;
}

.about-detail:last-child {
    border-right: none;
}

.about-detail h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.about-detail p {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.55;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-section { background: var(--bg-secondary); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-purple);
    border-color: rgba(91,31,166,0.4);
}

.why-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    color: var(--purple-light);
    flex-shrink: 0;
}

.why-icon svg { width: 100%; height: 100%; }

.why-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.why-card p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--purple-dark) 0%, #08080B 60%, #1A0533 100%);
}

[data-theme="light"] .cta-gradient {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 16px 0;
}

.cta-content h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.063rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--gold);
    color: #0A0010;
    border-color: var(--gold);
}

.cta-buttons .btn-primary:hover {
    background: var(--gold-light);
    box-shadow: 0 8px 24px rgba(212,175,55,0.4);
    border-color: var(--gold-light);
}

.cta-buttons .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.cta-buttons .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section { background: var(--bg-primary); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-purple);
    border-color: rgba(91,31,166,0.4);
}

.blog-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-image-placeholder {
    background: linear-gradient(135deg, rgba(91,31,166,0.25) 0%, rgba(212,175,55,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image-placeholder span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    opacity: 0.7;
}

.blog-content {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.blog-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    flex: 1;
}

.blog-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.blog-link {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: auto;
}

.blog-link:hover { color: var(--gold-light); }

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section { background: var(--bg-secondary); }

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item { border-bottom: 1px solid var(--border-subtle); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    gap: 12px;
    transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--gold); }

.faq-question svg {
    transition: transform var(--transition-fast);
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.faq-item.active .faq-question { color: var(--gold); }
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.faq-item.active .faq-answer { max-height: 250px; }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section { background: var(--bg-primary); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { position: relative; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.938rem;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(91,31,166,0.2);
}

.form-group label {
    position: absolute;
    left: 18px;
    top: 16px;
    font-size: 0.938rem;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 14px;
    font-size: 0.75rem;
    background: var(--bg-card);
    padding: 0 4px;
    color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.info-card:hover {
    transform: translateX(4px);
    border-color: rgba(91,31,166,0.35);
}

.info-icon {
    width: 36px;
    height: 36px;
    color: var(--purple-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-icon svg { width: 100%; height: 100%; }

.info-card h4 {
    font-size: 0.813rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: 56px 0 28px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(91,31,166,0.3));
}

.footer-logo span {
    font-size: 1.063rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a svg { width: 15px; height: 15px; }

.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    background: rgba(212,175,55,0.08);
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.footer-links ul li { margin-bottom: 10px; }

.footer-links ul li a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover { color: var(--gold); }

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.813rem;
    color: var(--text-tertiary);
}

/* ============================================
   FLOATING BUTTON
   ============================================ */
.floating-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-purple);
    z-index: 100;
    transition: all var(--transition-fast);
    border: 1px solid rgba(212,175,55,0.3);
    animation: floatPulse 3s ease-in-out infinite;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 36px rgba(91,31,166,0.5);
    border-color: var(--gold);
}

.floating-tooltip {
    position: absolute;
    right: 66px;
    white-space: nowrap;
    background: var(--bg-elevated);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    border: 1px solid var(--border-color);
}

.floating-btn:hover .floating-tooltip { opacity: 1; }

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(91,31,166,0.35); }
    50%       { box-shadow: 0 8px 36px rgba(91,31,166,0.55); }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CUSTOM CURSOR (Desktop only)
   ============================================ */
@media (hover: hover) {
    .custom-cursor {
        position: fixed;
        width: 20px;
        height: 20px;
        border: 2px solid var(--purple);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        transition: transform 0.15s ease, opacity 0.15s ease;
        opacity: 0;
    }

    .custom-cursor.visible { opacity: 1; }
    .custom-cursor.hover {
        transform: scale(2);
        background: rgba(91,31,166,0.1);
        border-color: var(--gold);
    }
}

/* ============================================
   SELECTION & SCROLLBAR
   ============================================ */
::selection {
    background: rgba(91,31,166,0.3);
    color: var(--text-primary);
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--purple-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ---- 1100px: 4→2 column grids ---- */
@media (max-width: 1100px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- 1024px: tablet ---- */
@media (max-width: 1024px) {
    :root { --section-padding: 56px; }

    .about-details {
        grid-template-columns: 1fr;
    }

    .about-detail {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .about-detail:last-child { border-bottom: none; }

    .why-grid { grid-template-columns: repeat(2, 1fr); }

    .blog-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-split { gap: 36px; }
}

/* ---- 768px: mobile ---- */
@media (max-width: 768px) {
    :root {
        --nav-height:        56px;
        --container-padding: 18px;
        --section-padding:   44px;
    }

    /* Nav */
    .nav-center { display: none; }
    .btn-consultation { display: none; }
    .hamburger { display: flex; }

    /* Hero — no min-height on mobile */
    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 8px) var(--container-padding) 32px;
    }

    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .hero-content { text-align: center; }
    .hero-subtitle { margin: 0 auto 20px; max-width: 100%; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-image { order: -1; }
    .hero-img   { max-width: 200px; margin: 0 auto; }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding-top: 20px;
        margin-top: 20px;
    }

    .stat-number { font-size: 1.875rem; }
    .stat-suffix { font-size: 1.125rem; }

    /* Section header */
    .section-header { margin-bottom: 24px; }

    /* Practice — 2 col on tablet-mobile */
    .practice-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* About */
    .about-details { grid-template-columns: 1fr; }
    .about-detail {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        text-align: left;
    }
    .about-detail:last-child { border-bottom: none; }

    /* Why — 2 col */
    .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

    /* Blog */
    .blog-grid { grid-template-columns: 1fr; }

    /* Form */
    .form-row { grid-template-columns: 1fr; gap: 14px; }
    .contact-grid { gap: 24px; }

    /* Footer */
    .footer { padding: 40px 0 20px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    /* Modal */
    .modal-glass     { padding: 20px 16px; }
    .modal-actions   { flex-direction: column; }
    .modal-logo      { width: 52px; height: 52px; }
    .modal-header h2 { font-size: 0.9rem; }

    /* Floating */
    .floating-btn     { bottom: 18px; right: 18px; width: 46px; height: 46px; }
    .floating-tooltip { display: none; }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .cta-buttons .btn-primary,
    .cta-buttons .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .cta-content p { margin-bottom: 20px; }
}

/* ---- 540px: small mobile — cards go single column ---- */
@media (max-width: 540px) {
    .practice-grid { grid-template-columns: 1fr; }
    .why-grid      { grid-template-columns: 1fr; }
}

/* ---- 480px: extra small ---- */
@media (max-width: 480px) {
    :root { --container-padding: 16px; }

    .hero-title    { font-size: 1.6rem; line-height: 1.15; }
    .hero-badge    { font-size: 0.7rem; padding: 5px 12px; }
    .section-title { font-size: 1.45rem; }
    .section-subtitle { font-size: 0.875rem; }

    .hero-stats    { gap: 10px; }
    .stat-number   { font-size: 1.5rem; }
    .stat-suffix   { font-size: 1rem; }
    .hero-img      { max-width: 180px; }

    .btn-primary,
    .btn-outline   { padding: 11px 20px; font-size: 0.85rem; }

    .about-details { border-radius: 12px; }
    .about-detail  { padding: 14px 16px; }

    .faq-question  { font-size: 0.875rem; }

    .footer-logo-img { width: 38px; height: 38px; }
    .footer-logo span { font-size: 0.9rem; }

    .nav-logo-img  { width: 28px; height: 28px; }
    .nav-firm-name { font-size: 0.875rem; }

    .practice-card { padding: 18px 16px; }
    .why-card      { padding: 20px 16px; }
}
