/* CSS Reset & Variables */
:root {
    /* Color Palette */
    --navy-dark: #0a192f;
    --navy-light: #112240;
    --gold: #d4af37;
    --gold-light: #fdd860;
    --white: #e6f1ff;
    --slate: #8892b0;

    /* Semantic Variables (Default = Dark) */
    --bg-body: var(--navy-dark);
    --bg-card: var(--navy-light);
    --bg-header: rgba(10, 25, 47, 0.95);
    --text-main: var(--white);
    --text-muted: var(--slate);
    --border-color: rgba(212, 175, 55, 0.1);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
}

[data-theme="light"] {
    --bg-body: #f5f7fa;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.95);
    --text-main: #1e2a3b;
    --text-muted: #555555;
    --navy-dark: #f0f2f5;
    /* Mapping for specific overrides */
    --navy-light: #ffffff;
    --white: #1e2a3b;
    /* Invert white text to dark */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-muted);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
}

.btn:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-primary:hover {
    background: var(--gold-light);
    color: var(--navy-dark);
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold);
}

.section-subtitle {
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

/* Header */
header {
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gold);
    margin-left: 20px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--gold);
    color: var(--navy-dark);
}

.mobile-toggle {
    display: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    /* Full width on mobile, max-width largely handles desktop */
    max-width: 600px;
    background: var(--bg-card);
    color: var(--text-muted);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--gold);
    z-index: 10001;
    /* Above modal */
    display: none;
    /* Hidden by default */
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-text {
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cookie-accept {
    background: var(--gold);
    color: var(--navy-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cookie-reject {
    background: transparent;
    border: 1px solid var(--slate);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.7)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

[data-theme="light"] .hero {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

[data-theme="light"] .hero h1,
[data-theme="light"] .hero p {
    color: #0a192f;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Practice Areas */
.practice-areas {
    padding: 100px 0;
    background: var(--bg-body);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.area-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.area-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.area-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.area-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-card);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--gold);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item h4 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact/Appointment */
.contact {
    padding: 100px 0;
    background: var(--bg-body);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.contact-info {
    padding: 50px;
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--bg-body) 100%);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-form-wrapper {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(136, 146, 176, 0.1);
    border: 1px solid rgba(136, 146, 176, 0.2);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.8rem;
    color: var(--slate);
    line-height: 1.4;
}

/* Footer */
footer {
    background: #020c1b;
    padding: 50px 0 20px;
    text-align: center;
    border-top: 1px solid rgba(136, 146, 176, 0.1);
}

.footer-content {
    margin-bottom: 30px;
}

.footer-bottom {
    font-size: 0.85rem;
    color: var(--slate);
}

/* Responsive */
@media (max-width: 900px) {

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        background: var(--navy-light);
        height: calc(100vh - 80px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }
}