/* styles.css */
/* Base Variables and Theme */
:root {
    --navy: #1a233a;
    --off-white: #f8f6f2;
    --ivory: #fffff8;
    --accent: #2d5c4b; /* Forest Green - elegant and professional */
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Color Themes - toggle via JS or user preference */
body {
    margin: 0;
    padding: 0;
    font-family: 'Libre Baskerville', serif;
    background-color: var(--navy);
    color: var(--off-white);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* Subtle paper texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3e%3cpath fill='%231a233a' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3e%3c/path%3e%3c/svg%3e");
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
}

/* Typography */
body, p, ul, li {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    margin: 0;
    color: var(--off-white);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin: 2rem 0 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

h3 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    color: var(--accent);
}

p {
    margin: 1rem 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

a:hover {
    border-bottom: 1px solid var(--accent);
}

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

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 35, 58, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--off-white);
    font-size: 1rem;
    border-bottom: 1px solid transparent;
}

.main-nav a:hover {
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 35, 58, 0.9) 0%, rgba(10, 15, 25, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 4px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 1.5rem 0;
    color: var(--accent);
}

.scroll-down {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--off-white);
    font-size: 0.9rem;
    gap: 0.5rem;
}

.arrow {
    animation: bounce 2s infinite;
    opacity: 0.7;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.bio p {
    margin-bottom: 1.5rem;
}

.credential-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.credential-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.credential-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credential-card li {
    margin: 0.5rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.credential-card li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
}

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

.area-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-5px);
    background: rgba(45, 92, 75, 0.1);
    border-color: var(--accent);
}

.area-card h3 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

/* Courts Section */
.courts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.court-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.principle {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.principle h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    max-width: 600px;
}

.contact-info p {
    margin: 1rem 0;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
}

.whatsapp-link:hover {
    color: var(--accent);
}

.whatsapp-icon {
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.whatsapp-link:hover .whatsapp-icon {
    transform: scale(1.2);
}

.disclaimer {
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* Footer */
.site-footer {
    background: rgba(26, 35, 58, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ivory);
    box-shadow: 0 4px 20px rgba(45, 92, 75, 0.3);
    transition: var(--transition);
    z-index: 1000;
    border: 2px solid var(--ivory);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(45, 92, 75, 0.4);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.3rem;
    }

    .main-nav ul {
        gap: 1.5rem;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .photo-placeholder {
        margin: 0 auto 2rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .scroll-down {
        margin-top: 2rem;
    }

    .areas-grid,
    .courts-list,
    .principles {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

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

    .main-nav ul {
        gap: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .whatsapp-float,
    .scroll-progress,
    .site-header {
        display: none;
    }

    .photo-placeholder img {
        border-radius: 50%;
    }
}