/* 
   BAAND Law - Enterprise Website Stylesheet
   Design Style: Modern Professional, Minimalist, Authoritative
*/

:root {
    /* Color Palette */
    --primary-color: #1A1A1A;       /* Charcoal Black */
    --accent-color: #C5A059;        /* Muted Gold/Bronze */
    --accent-hover: #AD8B45;
    --text-main: #1A1A1A;
    --text-muted: #4A4A4A;
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --border-color: #E5E5E5;
    --overlay: rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Spacing & Sizing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --transition: all 0.3s ease;
}

/* 1. Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
    font-family: var(--font-serif);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* 2. Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gold { color: var(--accent-color); }
.bg-dark { background-color: var(--primary-color); color: var(--bg-white); }
.bg-gray { background-color: var(--bg-light); }

.py-100 { padding-top: 100px; padding-bottom: 100px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

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

/* 3. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

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

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

/* 4. Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

/* 5. Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

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

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    margin-bottom: 24px;
    color: white;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

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

/* 6. Cards & Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.img-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.img-card img {
    transition: transform 0.6s ease;
}

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

/* 7. Contact Section & Forms */
.contact-wrapper {
    display: flex;
    background: var(--primary-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.contact-info {
    flex: 1;
    padding: 60px;
    color: white;
}

.contact-form-container {
    flex: 1.2;
    background: white;
    padding: 60px;
    margin: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-sans);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent-color);
}

/* 8. Footer */
.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

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

.footer-title {
    color: white;
    font-size: 18px;
    margin-bottom: 25px;
    font-family: var(--font-sans);
}

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

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* 9. Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* 10. Responsive Media Queries */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .nav-menu {
        display: none; /* In practice, a burger menu would be implemented */
    }

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

    .hero-title {
        font-size: 40px;
    }

    .hero-btns {
        flex-direction: column;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .contact-info, .contact-form-container {
        padding: 30px;
    }
    
    .contact-form-container {
        margin: 15px;
    }
}

/* Custom Accessibility & Polish */
.btn:focus {
    outline: 3px solid rgba(197, 160, 89, 0.4);
    outline-offset: 2px;
}

::selection {
    background-color: var(--accent-color);
    color: white;
}