@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-bg: #030712;
    --secondary-bg: #0f172a;
    --navy-light: #1e293b;
    --gold: #c5a059;
    --gold-bright: #e2c275;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-glow: rgba(197, 160, 89, 0.15);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Prevent scrolling while disclaimer is active */
body:not(.modal-closed) {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gold-text {
    background: linear-gradient(to right, var(--gold), var(--gold-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Base Components */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    /* Consistent wide padding */
}

section {
    padding: 100px 0;
    scroll-margin-top: 80px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(3, 7, 18, 0.95);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Vertical center on desktop */
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(3, 7, 18, 0.8), rgba(3, 7, 18, 0.9)), url('hero.png?v=1.1');
    background-size: cover;
    background-position: center;
    padding: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    /* Align top of image and text */
    padding-top: 120px;
    padding-bottom: 120px;
    gap: 6rem;
}

.hero-content {
    width: 100%;
    z-index: 2;
    text-align: left;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-bg);
}

.btn-primary:hover {
    background: var(--gold-bright);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--accent-glow);
    transform: translateY(-3px);
}

.hero-media {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.media-label {
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.media-item {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    opacity: 0.6;
    transition: var(--transition);
    text-decoration: none;
}

.media-item:hover {
    opacity: 1;
    color: var(--gold);
}

/* Why Choose Section */
.why-choose-section {
    background: #000;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.why-choose-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.why-choose-text {
    flex: 1;
}

.stats-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Statistics/Highlights */
.stats {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--gold);
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

/* Video Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Practice Areas Grid */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 3rem 2rem;
    transition: var(--transition);
    border-radius: 8px;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    background: var(--secondary-bg);
}

.card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Cases Timeline/Grid */
.case-card {
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition);
}

.case-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(197, 160, 89, 0.3);
}

.case-card .tag {
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.case-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.case-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    margin-top: 1.5rem;
    display: inline-block;
}

/* Floating Action Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 5000;
    background: var(--gold);
    color: var(--navy);
    padding: 14px 28px;
    border-radius: 50px;
    display: none;
    /* Hidden until disclaimer accepted */
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.4);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-closed .floating-cta {
    display: flex;
}

.floating-cta:hover {
    transform: scale(1.05) translateY(-5px);
    background: var(--gold-bright);
    color: var(--navy);
}

/* Contact Action Links */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.contact-action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.contact-action-item:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--gold);
    transform: translateX(5px);
}

.contact-action-item i {
    font-size: 1.1rem;
    color: var(--gold);
    width: 25px;
    text-align: center;
}

.contact-action-item span {
    font-size: 0.95rem;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: var(--secondary-bg);
    border: 1px solid var(--gold);
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(197, 160, 89, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gold);
}

/* Vibrant Badges */
.badge-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.badge {
    background: transparent;
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    width: 320px;
    max-width: 100%;
}

.badge i {
    color: var(--gold);
}

/* Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}


/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    background: var(--primary-bg);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-content {
        width: 80%;
    }

    .why-choose-container {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    .navbar {
        padding: 1rem 0;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1050;
        border-left: 1px solid rgba(197, 160, 89, 0.2);
    }

    .nav-active .nav-links {
        right: 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        height: auto;
        padding-top: 120px;
        padding-bottom: 2rem;
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        order: 2;
        width: 100%;
        text-align: center;
        padding: 0 1rem;
    }

    .hero p {
        margin: 1.5rem auto 2.5rem;
        font-size: 1.1rem;
    }

    .hero-portrait {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0;
        height: auto;
    }

    .hero-portrait img {
        height: auto;
        max-height: 45vh;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
        object-position: center;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-media {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .media-label {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.6rem;
    }

    .media-item {
        font-size: 0.85rem;
    }

    .badge-group {
        align-items: center;
        margin-bottom: 2rem;
    }

    .badge {
        width: 320px;
        max-width: 100%;
    }

    .why-choose-container {
        flex-direction: column;
        padding: 3rem 1.5rem;
        text-align: center;
        gap: 2rem;
    }

    .why-choose-text ul {
        align-items: center;
        padding: 0;
    }

    .why-choose-text h2 {
        font-size: 2.5rem !important;
    }

    .stats-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-content {
        padding: 2rem;
        width: 90%;
    }

    .modal-content h2 {
        font-size: 1.8rem;
    }

    footer {
        padding-bottom: 10rem;
        /* Space for the floating button */
    }

    .copyright {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {

    .hero-content span.serif {
        font-size: 0.9rem !important;
        letter-spacing: 2px !important;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

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

    .why-choose-text {
        text-align: center;
    }

    .why-choose-text h2 {
        font-size: 2.5rem !important;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .floating-contact {
        bottom: 20px;
        right: 20px;
    }

    .contact-pill {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .case-card {
        padding: 1.5rem;
    }
}

/* Hero Portrait */
.hero-portrait {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    /* Align with text top */
    height: 100%;
    animation: fadeIn 1.5s ease-out;
}

.hero-portrait img {
    max-width: 100%;
    width: auto;
    height: 85vh;
    display: block;
    object-fit: contain;
    object-position: top left;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}