@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-dark-green: #228B22;
    --black: #000000;
    --white: #FFFFFF;
    --light-grey: #F0F0F0;
    --medium-grey: #D3D3D3;
    --dark-grey: #333333;
    --text-dark: #333333;
    --text-muted: #666666;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    z-index: 1000;
    transition: height 200ms ease-out, box-shadow 200ms ease-out;
    border-bottom: 1px solid var(--medium-grey);
}

.site-header.scrolled {
    height: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-dark-green);
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-grey);
    position: relative;
    transition: color 200ms ease;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-dark-green);
    transition: width 200ms ease, left 200ms ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand-dark-green);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
    left: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--black);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background 150ms ease-in, transform 150ms ease;
}

.cta-button:hover {
    background: var(--dark-grey);
    transform: scale(1.02);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark-grey);
    transition: transform 100ms ease, opacity 100ms ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
    padding: 10px;
}

.mobile-menu .cta-button {
    margin-top: 20px;
    background: var(--white);
    color: var(--black);
}

.mobile-menu .cta-button:hover {
    background: var(--brand-dark-green);
    color: var(--white);
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    padding: 10px;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 40px 20px;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 800ms ease-out forwards;
    animation-delay: 200ms;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 800ms ease-out forwards;
    animation-delay: 400ms;
}

.hero-content .cta-button {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 800ms ease-out forwards;
    animation-delay: 600ms;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SECTIONS GENERAL ========== */
.section {
    padding: 80px 20px;
}

.section-dark {
    background: var(--light-grey);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== ABOUT BRIEF ========== */
.about-brief {
    background: var(--white);
}

.about-brief .section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-brief p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-brief .learn-more {
    display: inline-block;
    color: var(--brand-dark-green);
    font-weight: 600;
    margin-top: 20px;
    position: relative;
}

.about-brief .learn-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-dark-green);
    transform: scaleX(0);
    transition: transform 200ms ease;
    transform-origin: right;
}

.about-brief .learn-more:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========== SERVICES GRID ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid var(--medium-grey);
    text-align: center;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card .learn-more {
    display: inline-block;
    color: var(--brand-dark-green);
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.service-card .learn-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-dark-green);
    transform: scaleX(0);
    transition: transform 200ms ease;
    transform-origin: right;
}

.service-card .learn-more:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========== PRACTICE AREAS GRID ========== */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.practice-card {
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--medium-grey);
    transition: transform 100ms ease, border-color 200ms ease;
}

.practice-card:hover {
    transform: scale(1.02);
    border-color: var(--brand-dark-green);
}

.practice-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.practice-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.practice-card .view-details {
    color: var(--brand-dark-green);
    font-weight: 600;
    font-size: 14px;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    background: var(--light-grey);
}

.testimonials-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-carousel {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 500ms ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    background: var(--white);
    text-align: center;
}

.testimonial-card blockquote {
    font-size: 20px;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    padding: 0 20px;
}

.testimonial-card blockquote::before {
    content: '"';
    font-size: 60px;
    color: var(--brand-dark-green);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
}

.testimonial-card cite {
    font-style: normal;
    font-weight: 600;
    color: var(--text-muted);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-controls button {
    width: 50px;
    height: 50px;
    border: 2px solid var(--dark-grey);
    background: var(--white);
    cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls button:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--brand-dark-green);
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-section .cta-button {
    background: var(--white);
    color: var(--brand-dark-green);
    font-size: 16px;
    padding: 15px 40px;
}

.cta-section .cta-button:hover {
    background: var(--black);
    color: var(--white);
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: var(--light-grey);
    padding: 150px 20px 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== SERVICES DETAIL ========== */
.services-detail {
    background: var(--white);
}

.service-item {
    padding: 40px 0;
    border-bottom: 1px solid var(--medium-grey);
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.service-item p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.related-areas {
    margin-top: 60px;
}

.related-areas h3 {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.related-links a {
    padding: 10px 25px;
    border: 1px solid var(--medium-grey);
    font-size: 14px;
    font-weight: 500;
    transition: border-color 200ms ease, background 200ms ease;
}

.related-links a:hover {
    border-color: var(--brand-dark-green);
    background: var(--brand-dark-green);
    color: var(--white);
}

/* ========== PRACTICE AREAS GRID PAGE ========== */
.practice-areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.practice-area-card {
    background: var(--white);
    border: 1px solid var(--medium-grey);
    padding: 35px;
    text-align: center;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.practice-area-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.practice-area-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.practice-area-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== ABOUT PAGE ========== */
.firm-philosophy {
    background: var(--white);
}

.firm-philosophy .section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.firm-philosophy .text-content h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.firm-philosophy .text-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.firm-philosophy .quote-box {
    background: var(--light-grey);
    padding: 30px;
    border-left: 4px solid var(--brand-dark-green);
    font-style: italic;
    font-size: 18px;
    color: var(--text-dark);
}

.firm-philosophy .image-content img {
    width: 100%;
    border-radius: 5px;
}

/* ========== TEAM SECTION ========== */
.team-section {
    background: var(--light-grey);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.team-card {
    background: var(--white);
    overflow: hidden;
}

.team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 200ms ease;
}

.team-card:hover img {
    filter: grayscale(0%);
}

.team-card .team-info {
    padding: 25px;
    text-align: center;
}

.team-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.team-card .title {
    font-size: 14px;
    color: var(--brand-dark-green);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== CONTACT PAGE ========== */
.contact-section {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border: 1px solid var(--medium-grey);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-dark-green);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .cta-button {
    margin-top: 10px;
    padding: 16px;
    font-size: 15px;
}

.contact-info-wrapper h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-info p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    color: var(--brand-dark-green);
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

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

.footer-col ul a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 200ms ease;
}

.footer-col ul a:hover {
    color: var(--brand-dark-green);
}

.footer-logo {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-dark-green);
    margin-bottom: 15px;
    display: block;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: border-color 200ms ease, background 200ms ease, transform 50ms ease;
}

.social-links a:hover {
    border-color: var(--brand-dark-green);
    background: var(--brand-dark-green);
    transform: scale(1.1);
}

.footer-bottom {
    background: #555555;
    padding: 20px;
    margin-top: 40px;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .legal-links {
    display: flex;
    gap: 20px;
}

.footer-bottom .legal-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .legal-links a:hover {
    color: var(--white);
}

.trust-badges {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.trust-badges p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1023px) {
    .main-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 30px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .practice-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .firm-philosophy .section-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .site-header {
        height: 60px;
    }

    .hero {
        margin-top: 60px;
        min-height: 80vh;
    }

    .hero-bg {
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 26px;
    }

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

    .practice-areas-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 120px 20px 60px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .testimonial-card blockquote {
        font-size: 17px;
    }

    .cta-section h2 {
        font-size: 28px;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-bg {
        background-attachment: scroll;
    }
}

:focus-visible {
    outline: 2px solid var(--brand-dark-green);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== SCROLL ANIMATIONS ========== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
