/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #d4af37;
    --accent-hover: #b8860b;
    --text-color: #2c3e50;
    --light-text: #7f8c8d;
    --background-white: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--light-text);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.primary-btn {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow);
}

.primary-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Header and Navigation */
.main-header {
    background: var(--background-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23d4af37" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,122.7C1248,128,1344,160,1392,176L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 60px;
}

.hero-subtitle {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--accent-color);
    position: relative;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--light-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-snapshot {
    background: var(--background-white);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: var(--background-light);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature p {
    color: var(--light-text);
    font-size: 1rem;
}

/* Practice Areas */
.practice-areas {
    background: var(--background-light);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.area-card {
    background: var(--background-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.area-card:hover::before {
    transform: scaleX(1);
}

.area-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.area-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.area-card p {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.area-link {
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.area-link:hover {
    color: var(--accent-hover);
}

/* Testimonials */
.testimonials-preview {
    background: var(--background-white);
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
}

.testimonial {
    min-width: 400px;
    background: var(--background-light);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    scroll-snap-align: center;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    margin-bottom: 30px;
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info cite {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}

.author-info span {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Page */
.contact-page {
    background: var(--background-white);
}

.contact-content {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
}

.contact-form, .contact-details {
    flex: 1;
}

.form-container, .details-container {
    background: var(--background-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-container h2, .details-container h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.contact-info h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-info p {
    margin: 0;
    color: var(--light-text);
}

.contact-info a {
    color: var(--accent-color);
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--accent-hover);
}

.map-section {
    background: var(--background-light);
    text-align: center;
}

.map-section h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.map iframe {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border: 0;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Footer */
.main-footer {
    background: var(--gradient);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section ul {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* About Page Styles */
.about-us {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.portrait img {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: var(--shadow-hover);
}

.biography {
    flex: 1;
}

.philosophy, .mission {
    text-align: center;
    margin-bottom: 60px;
}

.philosophy ul {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    list-style: none;
}

.philosophy ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.philosophy ul li:last-child {
    border-bottom: none;
}

/* Practice Areas Page */
.practice-areas-page .areas-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Testimonials Page */
.testimonials-page .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--background-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    z-index: 1001;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal p {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--light-text);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-button {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.agree-button {
    background-color: var(--primary-color);
    color: white;
}

.agree-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.disagree-button {
    background-color: white;
    color: var(--primary-color);
}

.disagree-button:hover {
    background-color: var(--background-light);
    transform: translateY(-2px);
}

.disagree-button:hover {
    background-color: var(--background-light);
    transform: translateY(-2px);
}

/* Responsive Design */
/* Large screens (desktops) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Medium screens (tablets) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .navbar {
        padding: 1rem 15px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero */
    .hero {
        padding: 120px 0 80px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* About */
    .about-us {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .portrait img {
        width: 200px;
        height: 200px;
    }
    
    /* Areas Grid */
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Testimonials */
    .testimonials-slider {
        flex-direction: column;
    }
    
    .testimonial {
        min-width: 100%;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}

/* Small screens (mobile phones) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        max-width: 250px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .modal {
        padding: 30px 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-button {
        width: 100%;
    }
    
    .area-card, .testimonial-card {
        padding: 30px 20px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .logo-text {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 10px;
    }
}
