@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --color-primary: #1a3e2e;
    --color-primary-dark: #0f2419;
    --color-accent: #e8d4c9;
    --color-accent-dark: #d4b5a4;
    --color-white: #ffffff;
    --color-off-white: #faf8f6;
    --color-gray-50: #f5f3f0;
    --color-gray-100: #e8e5e1;
    --color-gray-200: #d1ccc4;
    --color-gray-600: #6b6560;
    --color-gray-700: #4a4540;
    --color-gray-900: #1f1d1a;
    --color-black: #0a0908;
    
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 2px;
    --radius-md: 4px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-gray-900);
    line-height: 1.65;
    font-weight: 400;
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-100);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
}

.logo-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

.logo:hover {
    opacity: 0.7;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    display: none;
    flex-direction: column;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    height: 1rem;
    background: transparent;
}

.logo-wrapper:hover .dropdown-menu,
.dropdown-menu:hover {
    display: flex;
    opacity: 1;
}

.dropdown-link {
    color: var(--color-gray-700);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: all 0.2s ease-in-out;
    padding: 0.75rem 1.5rem;
}

.dropdown-link:hover {
    background: var(--color-off-white);
    color: var(--color-primary);
}

.nav {
    display: none;
}

.nav-link {
    color: var(--color-gray-700);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 2rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background: var(--color-navy);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1rem;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-menu-link:hover {
    background: var(--color-gray-50);
    color: var(--color-gold);
}

.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-off-white) 100%);
    color: var(--color-primary);
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(232, 212, 201, 0.85);
    backdrop-filter: blur(2px);
}

.hero-content {
    padding: 8rem 1rem 10rem;
    position: relative;
    z-index: 1;
}

.hero-inner {
    max-width: 58rem;
    margin: 0 auto;
}

.hero-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
}

.hero-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-white);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
    font-style: italic;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 3rem;
    color: var(--color-gray-700);
    font-weight: 300;
    max-width: 42rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.7;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

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

.btn-full {
    width: 100%;
}

.section {
    padding: 7rem 0;
}

.section-alt {
    background: var(--color-off-white);
}

.section-header {
    max-width: 52rem;
    margin: 0 auto 5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    font-style: italic;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-gray-600);
    font-weight: 300;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.stat-card {
    text-align: left;
    padding: 0;
}

.stat-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    background: var(--color-accent);
    border-radius: var(--radius-md);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.stat-value {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-style: italic;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.about-content {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 4rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    font-weight: 300;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.lawyer-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.lawyer-card:hover {
    border-color: var(--color-gray-200);
    transform: translateY(-4px);
}

.lawyer-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--color-gray-50);
}

.lawyer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.lawyer-card:hover .lawyer-image img {
    transform: scale(1.03);
}

.lawyer-info {
    padding: 2rem;
}

.lawyer-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    font-style: italic;
    color: var(--color-primary);
}

.lawyer-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lawyer-specialization {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.lawyer-bio {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.lawyer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-gray-100);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link svg {
    width: 18px;
    height: 18px;
}

.contact-link:hover {
    color: var(--color-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 62, 46, 0.12);
}

.service-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--color-gray-50);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-content {
    padding: 2rem 2rem 2.5rem;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.875rem;
    font-style: italic;
    color: var(--color-primary);
    line-height: 1.3;
}

.service-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-gray-600);
    font-weight: 300;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-section,
.contact-info-section {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 3rem;
}

.contact-form-header,
.contact-info-header {
    margin-bottom: 2.5rem;
}

.contact-form-title,
.contact-info-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.contact-form-subtitle,
.contact-info-subtitle {
    font-size: 1rem;
    color: var(--color-gray-600);
    font-weight: 300;
    line-height: 1.6;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.info-card-modern {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-card-modern:hover {
    background: var(--color-accent);
}

.info-icon-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
}

.info-icon-modern svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.info-content-modern {
    flex: 1;
}

.info-label-modern {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value-modern {
    font-size: 1rem;
    color: var(--color-gray-900);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.info-secondary {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    font-weight: 300;
}

.consultation-cta {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.cta-text {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.95;
    font-weight: 300;
    max-width: 32rem;
}

.consultation-cta .btn-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

.consultation-cta .btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.contact-form-wrapper {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.01em;
}

.form-input,
.form-textarea {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: var(--color-white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-off-white);
}

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

.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.65;
    opacity: 0.85;
    font-weight: 300;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9375rem;
    opacity: 0.85;
    transition: var(--transition);
    font-weight: 300;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-links li {
    font-size: 0.9375rem;
    opacity: 0.85;
    font-weight: 300;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
    font-weight: 300;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(150%);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
    font-weight: 400;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

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

    .hero-content {
        padding: 5rem 1rem 7rem;
    }

    .section {
        padding: 4rem 0;
    }

    .about-content {
        padding: 2.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (min-width: 769px) {
    .contact-grid {
        grid-template-columns: 1fr 1.25fr;
    }

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

    .consultation-cta {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 3rem;
    }

    .cta-content {
        flex: none;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }
}
