@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --gold: #C8A882;
    --gold-dark: #B08968;
    --gold-light: #DCC9B3;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --section-padding: 60px 0;
    --container-width: 1200px;
}

body {
    --bg-primary: #0A0A0A;
    --bg-secondary: #151515;
    --bg-elevated: #1F1F1F;
    --text-primary: #F5F5F5;
    --text-secondary: #B8B8B8;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(200, 168, 130, 0.15);
    --border-color: rgba(200, 168, 130, 0.1);
    --nav-bg: rgba(10, 10, 10, 0.95);
    --hero-gradient: linear-gradient(135deg, #0A0A0A 0%, #1A1410 100%);
}

body.light-mode {
    --bg-primary: #FAF9F7;
    --bg-secondary: #FFFFFF;
    --bg-elevated: #F5F3F0;
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(176, 137, 104, 0.12);
    --border-color: rgba(176, 137, 104, 0.2);
    --nav-bg: rgba(250, 249, 247, 0.95);
    --hero-gradient: linear-gradient(135deg, #FAF9F7 0%, #F5F0E8 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: var(--shadow-soft);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 65px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a.active {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-elevated);
    min-width: 220px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 5px;
    padding-top: 5px;
    z-index: 1000;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background: var(--bg-secondary);
    color: var(--gold);
    padding-left: 25px;
}

.dropdown-content a.active {
    color: var(--gold);
    background: var(--bg-secondary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown.active .dropdown-content {
    display: block;
}

/* Footer Dropdown - Opens Upwards */
footer .dropdown {
    position: relative;
}

footer .dropdown-content {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 5px;
}

footer .dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 5px;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--gold);
    font-size: 1.3rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--gold);
    color: var(--bg-primary);
    border-color: var(--gold);
    transform: rotate(180deg);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 160px;
    background: var(--hero-gradient);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    font-weight: 500;
    padding-left: 20px;
    border-left: 3px solid var(--gold);
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(200, 168, 130, 0.3);
}

.hero-image-container {
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin: 0 auto;
    display: block;
}

/* ===== SECTIONS ===== */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
    animation: fadeInUp 1s ease;
}

.section-label {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-description {
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===== PRACTICE AREAS ===== */
.practice-areas {
    background: var(--bg-secondary);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.practice-card {
    background: var(--bg-elevated);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.practice-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
}

.practice-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.practice-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.practice-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.practice-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-card {
    padding: 25px 20px;
}

/* ===== ABOUT ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.education-list,
.role-highlight {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    margin-bottom: 25px;
}

.education-list h4,
.role-highlight h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.education-list ul {
    list-style: none;
}

.education-list li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.education-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.role-highlight p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===== BLOG SECTION ===== */
.blog {
    background: var(--bg-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-elevated);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-date,
.blog-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.blog-category {
    color: var(--gold);
    font-weight: 500;
}

.blog-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: var(--gold-light);
    transform: translateX(5px);
}

/* ===== CONTACT ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 18px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 3px;
}

.contact-details h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details p {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.contact-details a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--gold);
}

.map-container {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

body:not(.light-mode) .map-container iframe {
    filter: grayscale(0.2) invert(0.9) contrast(0.9);
}

body.light-mode .map-container iframe {
    filter: grayscale(0.1) brightness(1.05);
}

.book-consultation-section {
    flex-direction: row;
}

@media (max-width: 968px) {
    .book-consultation-section {
        flex-direction: column;
        gap: 30px !important;
    }

    .map-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .book-consultation-section {
        flex-direction: column;
        gap: 20px !important;
    }

    .map-container {
        height: 300px;
    }
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link.active {
    color: var(--gold);
}

.footer-link.active::after {
    width: 100%;
}

.footer-dropdown {
    display: inline-block;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }


    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        flex-direction: column;
        background: var(--nav-bg);
        width: 100%;
        max-width: 350px;
        padding: 40px;
        height: calc(100vh - 90px);
        transition: right 0.3s ease;
        box-shadow: var(--shadow-soft);
        gap: 25px;
        align-items: flex-start;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .dropdown-content {
        position: static;
        display: block !important;
        box-shadow: none;
        margin-top: 10px;
        margin-left: 20px;
        border-left: 2px solid var(--gold);
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .practice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }
}