:root {
    /* Primary Colors */
    --color-deep-navy: #0B2E59;
    --color-royal-blue: #1F5FAE;
    
    /* Background & Neutrals */
    --color-white: #FFFFFF;
    --color-light-gray: #F7F8FA;
    --color-border: #E5E7EB;
    
    /* Text Colors */
    --color-title: #1B1F27;
    --color-body: #5B6472;
    
    /* Accent */
    --color-luxury-gold: #C9A95A;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', 'Noto Sans SC', sans-serif;
    
    /* Layout */
    --max-width: 1280px;
    --gap: 32px;
    --section-padding-desktop: 160px;
    --section-padding-mobile: 80px;
    
    /* Radii */
    --radius-md: 0px;
    --radius-lg: 0px;
    
    /* Shadows */
    --shadow-sm: 0 4px 24px rgba(11, 46, 89, 0.04);
    --shadow-md: 0 12px 32px rgba(11, 46, 89, 0.08);
    --shadow-hover: 0 24px 48px rgba(11, 46, 89, 0.12);
    
    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-body);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-title);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--section-padding-desktop) 0;
    position: relative;
    overflow: hidden;
}

.section-light {
    background-color: var(--color-light-gray);
}

.section-dark {
    background-color: var(--color-deep-navy);
    color: var(--color-white);
}

.section-dark h2, .section-dark h3, .section-dark p {
    color: var(--color-white);
}

/* Section Titles & Watermarks */
.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
    position: relative;
}

.section-title-wrapper.center {
    justify-content: center;
}

.title-accent {
    width: 40px;
    height: 2px;
    background-color: var(--color-luxury-gold);
}

.watermark {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 20rem;
    color: rgba(11, 46, 89, 0.03);
    line-height: 1;
    top: -20px;
    left: -40px;
    z-index: 0;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: -5px;
}

.section-dark .watermark {
    color: rgba(255, 255, 255, 0.03);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--gap);
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    .section {
        padding: var(--section-padding-mobile) 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 40px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-deep-navy);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-royal-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-deep-navy);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-luxury-gold);
    color: var(--color-white);
}

.btn-accent:hover {
    background-color: #b59851;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    border: 1px solid var(--color-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-invertible:hover {
    background-color: var(--color-deep-navy);
    border-color: var(--color-deep-navy);
    color: var(--color-white);
}

.card-invertible:hover h3, 
.card-invertible:hover p {
    color: var(--color-white);
}

/* Images */
.img-rounded {
    border-radius: var(--radius-lg);
    object-fit: cover;
    width: 100%;
}

/* Header / Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-deep-navy);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-title);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-luxury-gold);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 46, 89, 0.9) 0%, rgba(31, 95, 174, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    color: var(--color-white);
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* About Section */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.stat-item {
    border-left: 1px solid var(--color-border);
    padding-left: 24px;
}

.stat-item h4 {
    font-size: clamp(3rem, 4vw, 4rem);
    color: var(--color-royal-blue);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-item p {
    color: var(--color-title);
    font-weight: 500;
    font-size: 1.125rem;
}

/* Practice Areas */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--color-border);
}

.practice-grid .card {
    border: none;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.practice-grid .card:nth-child(4n) { border-right: none; }
.practice-grid .card:nth-child(n+5) { border-bottom: none; }

@media (max-width: 1024px) { 
    .practice-grid { grid-template-columns: repeat(2, 1fr); } 
    .practice-grid .card:nth-child(2n) { border-right: none; }
    .practice-grid .card:nth-child(n+3) { border-bottom: 1px solid var(--color-border); }
    .practice-grid .card:nth-child(n+7) { border-bottom: none; }
}
@media (max-width: 768px) { 
    .practice-grid { grid-template-columns: 1fr; } 
    .practice-grid .card { border-right: none; border-bottom: 1px solid var(--color-border); }
    .practice-grid .card:last-child { border-bottom: none; }
}

/* Attorney Team */
.attorney-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
}

.attorney-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.attorney-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px;
    background: linear-gradient(to top, rgba(11, 46, 89, 0.9) 0%, transparent 100%);
    color: var(--color-white);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-fast);
}

.attorney-card:hover {
    box-shadow: var(--shadow-hover);
}

.attorney-card:hover img {
    transform: scale(1.05);
}

.attorney-card:hover .attorney-info {
    transform: translateY(0);
    opacity: 1;
}

.attorney-info h3 {
    color: var(--color-white);
    margin-bottom: 4px;
    font-size: 1.5rem;
}

.attorney-info p {
    color: var(--color-luxury-gold);
    font-size: 1rem;
    margin: 0;
}

/* Post Blocks (Success Cases / News) */
.post-block {
    display: flex;
    flex-direction: column;
    padding: 40px;
    padding-bottom: 80px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
    height: 100%;
    position: relative;
    cursor: pointer;
}

.post-block:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--color-deep-navy);
    transform: translateY(-4px);
}

.post-date {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-body);
    margin-bottom: 24px;
    display: block;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-title);
    margin-bottom: 16px;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.post-block:hover .post-title {
    color: var(--color-royal-blue);
}

.post-excerpt {
    font-size: 1rem;
    color: var(--color-body);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-read-more {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-deep-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 40px;
    transition: color var(--transition-fast);
}

.post-block:hover .post-read-more {
    color: var(--color-royal-blue);
}

/* Success Cases Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -44.5px;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--color-royal-blue);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-deep-navy);
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.timeline-content .case-result {
    color: var(--color-royal-blue);
    font-weight: 500;
    margin-top: 16px;
}

/* Client Logos Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 120px;
    padding-right: 120px;
    align-items: center;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.client-logo {
    height: 48px;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-body);
    opacity: 0.4;
    transition: all var(--transition-fast);
}

.client-logo:hover {
    opacity: 1;
    color: var(--color-deep-navy);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    box-shadow: var(--shadow-sm);
}

.map-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background-color: var(--color-deep-navy);
    color: rgba(255,255,255,0.7);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer h4 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 46, 89, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

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

.modal-content {
    background: var(--color-white);
    width: 100%;
    max-width: 640px;
    padding: 60px;
    position: relative;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-title);
    line-height: 1;
    font-weight: 300;
    transition: color var(--transition-fast);
    background: none;
    border: none;
    outline: none;
}

.modal-close:hover {
    color: var(--color-luxury-gold);
}

.modal-header {
    margin-bottom: 40px;
}

.modal-header h2 {
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 40px;
    position: relative;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    font-size: 1rem;
    color: var(--color-title);
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition-fast);
    resize: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-bottom-color: var(--color-deep-navy);
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 1rem;
    color: var(--color-body);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-group input:focus ~ label, 
.form-group input:valid ~ label, 
.form-group textarea:focus ~ label, 
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--color-luxury-gold);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Mobile Responsiveness (V1)
   ========================================================================== */
@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .nav-links {
        display: none; /* simple fix, hide nav links on mobile for now, or wrap them */
    }

    .hero-content {
        grid-template-columns: 1fr !important; /* Force 1 column since image is hidden */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image-wrapper {
        display: none;
    }
    
    .hero-text {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .practice-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 cols on mobile */
        gap: 0;
    }

    .practice-grid .card {
        padding: 16px 8px; /* Extremely small padding to fit all on one screen */
        text-align: center;
        align-items: center;
        justify-content: center;
        min-height: auto;
    }
    
    .practice-grid .card p {
        display: none; /* Hide descriptions on mobile so they all fit on one screen */
    }
    
    .practice-grid h3 {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .timeline {
        padding-left: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modal-content {
        padding: 32px 24px;
        margin: 0 16px;
    }
    
    .watermark {
        font-size: 10rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Attorney Team on Mobile - Fit on one screen */
    #team .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important; /* 2x2 grid */
        gap: 16px;
    }

    .attorney-info {
        opacity: 1; /* Always visible */
        transform: translateY(0);
        padding: 12px 8px;
        background: linear-gradient(to top, rgba(11, 46, 89, 0.95) 0%, rgba(11, 46, 89, 0.4) 100%);
    }

    .attorney-info h3 {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .attorney-info p {
        font-size: 0.75rem;
        margin: 0;
    }
}
