/* ==========================================================================
   SAROYA LAW FIRM - PREMIUM STYLING DESIGN SYSTEM (VANILLA CSS)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Montserrat:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #060b13;
    --bg-secondary: #0c121e;
    --bg-tertiary: #141c2b;
    --gold-primary: #d4af37;
    --gold-secondary: #aa7c11;
    --gold-dark: #6e5008;
    --gold-light: #f3e5ab;
    --gold-glow: rgba(212, 175, 55, 0.25);
    
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-gold: rgba(212, 175, 55, 0.15);
    
    /* Typography */
    --font-header: 'Playfair Display', 'Cinzel', Georgia, serif;
    --font-body: 'Inter', 'Montserrat', -apple-system, sans-serif;
    --font-urdu: 'Noto Nastaliq Urdu', 'Georgia', serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom Cursor enabled */
}

/* Custom WebGL Canvas */
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

/* Custom Interactive Cursor */
.custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--gold-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Cursor Hover states */
.custom-cursor.hover {
    width: 16px;
    height: 16px;
    background-color: var(--gold-light);
}

.custom-cursor-ring.hover {
    width: 54px;
    height: 54px;
    border-color: var(--gold-light);
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px var(--gold-glow);
}

/* Urdu Mode Typography Overrides */
[dir="rtl"] {
    font-family: var(--font-urdu);
}

[dir="rtl"] p, 
[dir="rtl"] span, 
[dir="rtl"] li, 
[dir="rtl"] a, 
[dir="rtl"] input, 
[dir="rtl"] textarea, 
[dir="rtl"] button {
    font-family: var(--font-urdu);
    line-height: 2.2; /* Urdu Nastaliq demands taller line heights */
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4 {
    font-family: var(--font-urdu);
    line-height: 1.8;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Premium Typography Elements */
.royal-title {
    font-family: var(--font-header);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gold-gradient-text {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-line {
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-secondary) 50%, transparent 100%);
    margin: 1.5rem 0;
    width: 100%;
}

[dir="rtl"] .gold-line {
    background: linear-gradient(-90deg, var(--gold-primary) 0%, var(--gold-secondary) 50%, transparent 100%);
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--glass-border-gold);
    box-shadow: 0 10px 30px rgba(6, 11, 19, 0.8), 0 0 15px rgba(212, 175, 55, 0.05);
}

/* Header & Navigation */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 11, 19, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-text-main {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--gold-primary);
}

.logo-separator {
    width: 1px;
    height: 30px;
    background-color: var(--text-muted);
}

.logo-text-sub {
    font-size: 0.75rem;
    font-family: var(--font-body);
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-quick);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--gold-primary);
    transition: var(--transition-quick);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Right Header Block */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.clock-widget {
    text-align: right;
}

.clock-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.clock-val {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--gold-primary);
}

/* Bilingual Language Toggler Button */
.lang-toggle-btn {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-quick);
}

.lang-toggle-btn:hover {
    background-color: var(--gold-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Magnetic Buttons & CTAs */
.magnetic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.magnetic-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
}

.magnetic-btn.outline {
    background: transparent;
    border: 1.5px solid var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: none;
}

.magnetic-btn.outline:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-light);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
}

.hero-subtitle-top {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.hero-title-main {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Bento Grid System & Cards */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

.bento-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.bento-icon {
    font-size: 2.2rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
}

.bento-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: var(--transition-quick);
}

.bento-card:hover .bento-title {
    color: var(--gold-primary);
}

.bento-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.bento-tags {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Sections Global */
.section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 750px;
}

.section-lbl {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--gold-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Executive Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.principal-profile-card {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(20, 28, 43, 0.4) 0%, rgba(12, 18, 30, 0.4) 100%);
}

.leader-name {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.leader-title {
    font-size: 0.9rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.leader-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 2rem 0;
}

.leader-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cofounders-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cofounder-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cofounder-name {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
}

.cofounder-title {
    font-size: 0.75rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cofounder-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Timeline Components */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold-secondary) 0%, var(--glass-border) 100%);
    transform: translateX(-50%);
}

[dir="rtl"] .timeline-line {
    left: 50%;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 3rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 2rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--gold-primary);
    border: 3px solid var(--bg-primary);
    z-index: 5;
    box-shadow: 0 0 8px var(--gold-primary);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -7px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -7px;
}

.timeline-year {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: var(--gold-primary);
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.timeline-card {
    padding: 1.75rem;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Practice Explorer Accordion / Tabs */
.practice-detail-sec {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.practice-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.practice-menu-btn {
    width: 100%;
    text-align: left;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-header);
    font-size: 1.15rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-quick);
}

[dir="rtl"] .practice-menu-btn {
    text-align: right;
}

.practice-menu-btn:hover, .practice-menu-btn.active {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.04);
}

.practice-content-card {
    padding: 3rem;
    display: none;
}

.practice-content-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.practice-content-title {
    font-family: var(--font-header);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--gold-primary);
}

.practice-content-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Case Studies Cards */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.case-card {
    padding: 2.5rem;
}

.case-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold-primary);
    margin-bottom: 0.75rem;
}

.case-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.case-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Stats Counter Row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.stat-value {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold-primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Testimonials Carousel */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 3rem auto;
    position: relative;
    min-height: 250px;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

.testimonial-text {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.testimonial-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 0.05em;
}

.testimonial-org {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: var(--transition-quick);
}

.slider-dot.active {
    background-color: var(--gold-primary);
    transform: scale(1.3);
}

/* Consultation Page Intake Form */
.consult-grid {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 3rem;
    align-items: start;
}

.consult-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    background: rgba(6, 11, 19, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    transition: var(--transition-quick);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow);
    background: rgba(6, 11, 19, 0.9);
}

/* Custom Signature Pad */
.signature-container {
    background: rgba(6, 11, 19, 0.8);
    border: 1px dashed var(--glass-border-gold);
    border-radius: 6px;
    padding: 0.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.signature-pad {
    width: 100%;
    height: 120px;
    display: block;
    background-color: #04080e;
    cursor: crosshair;
}

.sig-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition-quick);
}

.sig-clear-btn:hover {
    color: var(--gold-primary);
}

/* Success Message Alert */
.success-alert {
    display: none;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1.5px solid var(--gold-primary);
    border-radius: 8px;
    color: var(--gold-light);
    margin-top: 1.5rem;
    animation: fadeIn 0.5s ease;
}

/* Legal Intake Fee Estimator */
.calculator-card {
    padding: 2.5rem;
}

.calc-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.calc-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.calc-result-panel {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--glass-border-gold);
    border-radius: 8px;
    padding: 1.75rem;
    margin-top: 2rem;
    text-align: center;
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.calc-result-row:last-child {
    border-top: 1px solid var(--glass-border-gold);
    padding-top: 1rem;
    margin-bottom: 0;
    font-weight: 700;
}

.calc-result-label {
    color: var(--text-secondary);
}

.calc-result-value {
    color: var(--gold-primary);
}

.calc-final-price {
    font-size: 1.3rem;
    color: var(--gold-light) !important;
}

/* Contact Info & Mapping */
.contact-grid {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 3rem;
}

.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-icon {
    font-size: 2rem;
    color: var(--gold-primary);
}

.contact-details-block {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.contact-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Premium Interactive Map Overlay */
.map-container {
    height: 480px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.map-mock-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--bg-secondary) 20%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Abstract Grid Blueprint */
.map-blueprint {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
    opacity: 0.4;
}

.map-radar-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: var(--gold-glow);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    animation: radarRipple 2s infinite ease-out;
}

.map-pin {
    width: 16px;
    height: 16px;
    background-color: var(--gold-light);
    border: 3px solid var(--gold-secondary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px var(--gold-primary);
}

.map-label-popup {
    background: var(--bg-primary);
    border: 1px solid var(--gold-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    margin-top: 2rem;
    z-index: 2;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.map-loc-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.map-loc-coords {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Site Footer */
.site-footer {
    border-top: 1px solid var(--glass-border);
    background-color: #04080e;
    padding: 4rem 0 2rem 0;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo-main {
    font-family: var(--font-header);
    font-size: 1.15rem;
    color: var(--gold-primary);
    font-weight: 700;
}

.footer-logo-sub {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .bento-col-4, .bento-col-6, .bento-col-8 {
        grid-column: span 6;
    }
    
    .leadership-grid, .practice-detail-sec, .consult-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title-main {
        font-size: 3.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-line {
        left: 0;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 2.5rem;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item .timeline-dot {
        left: -6px !important;
        right: auto !important;
    }
}

@media screen and (max-width: 768px) {
    body {
        cursor: auto; /* Disable custom cursor on touch/small devices */
    }
    
    .custom-cursor, .custom-cursor-ring {
        display: none !important;
    }
    
    .site-header {
        position: absolute;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .clock-widget {
        display: none;
    }
    
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bento-col-4, .bento-col-6, .bento-col-8 {
        grid-column: span 12;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes radarRipple {
    0% {
        transform: scale(0.3);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Scroll-reveal animation system */
.reveal-block {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.85s ease-out, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-block.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside a revealed grid */
.reveal-block.revealed .glass-panel {
    animation: cardEntrance 0.6s ease-out both;
}

/* Hero character animation setup */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.char.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
