/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-white);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header and Navigation */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: var(--spacing-sm);
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    margin: var(--spacing-xs) 0;
}

.nav-menu a {
    display: block;
    padding: var(--spacing-sm);
    color: var(--text-color);
    font-weight: 500;
    transition: background 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

h1 {
    font-size: 2rem;
    color: var(--text-color);
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Sections */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-title-center {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.bg-light {
    background: var(--bg-light);
}

/* Hero Section */
.hero {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
}

.hero-content h1 {
    color: var(--bg-white);
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-visual {
    margin-top: var(--spacing-lg);
}

.page-hero,
.page-hero-small {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    text-align: center;
}

.page-hero h1,
.page-hero-small h1 {
    color: var(--bg-white);
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Service Cards */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    margin-bottom: var(--spacing-md);
}

.service-icon img {
    width: 60px;
    height: 60px;
}

/* Stats Section */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

/* Testimonials */
.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.testimonial-text {
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Benefits */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.benefit-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.benefit-item img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

/* Knowledge Grid */
.knowledge-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.knowledge-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.knowledge-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--bg-white);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* Content Split */
.content-split {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.content-split-text {
    flex: 1;
}

.content-split-visual {
    flex: 1;
}

/* Services Detailed */
.services-detailed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.service-detailed {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: var(--spacing-lg);
}

.service-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.service-icon-large img {
    width: 80px;
    height: 80px;
}

.service-title-price {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-features {
    list-style: none;
    margin-top: var(--spacing-md);
}

.service-features li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* Comparison Table */
.comparison-table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.comparison-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-header {
    background: var(--primary-color);
    color: var(--bg-white);
}

.comparison-cell {
    padding: var(--spacing-md);
}

.comparison-row:not(.comparison-header):nth-child(even) {
    background: var(--bg-light);
}

/* Contact */
.contact-main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-info-primary,
.contact-info-office {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

.contact-detail {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-detail img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.directions-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.company-info-block {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.company-detail {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.contact-tips-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-tip {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
    text-align: center;
}

.contact-tip img {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--spacing-md);
}

.offices-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.office-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.offices-note {
    margin-top: var(--spacing-lg);
    font-style: italic;
    color: var(--text-light);
}

/* Values */
.values-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.value-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.value-card img {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
}

/* Team */
.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    color: var(--text-light);
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.team-member {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.team-member-visual img {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
}

.team-role {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

/* Differentiators */
.differentiators-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.differentiator-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.differentiator-icon img {
    width: 60px;
    height: 60px;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Process Detailed */
.process-detailed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.process-item {
    display: flex;
    gap: var(--spacing-md);
}

.process-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.process-content {
    flex: 1;
}

/* Thank You */
.thank-you-section {
    padding: var(--spacing-2xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
}

.thank-you-message {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

.thank-you-next-steps {
    margin: var(--spacing-xl) 0;
    text-align: left;
}

.next-steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.next-step {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.thank-you-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.helpful-links-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.helpful-link-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.helpful-link-card a {
    font-weight: 600;
    margin-top: var(--spacing-sm);
    display: inline-block;
}

/* Legal Content */
.legal-content {
    padding: var(--spacing-2xl) 0;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text h2 {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
}

.legal-text h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-text h3 {
    margin-top: var(--spacing-lg);
    color: var(--primary-color);
}

.legal-text ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.legal-text li {
    margin-bottom: var(--spacing-xs);
}

.legal-text code {
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--bg-white);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    margin-bottom: var(--spacing-md);
    color: var(--bg-white);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-col a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-color);
    color: var(--bg-white);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: var(--spacing-md);
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-option {
    margin: var(--spacing-md) 0;
}

.cookie-option label {
    display: flex;
    gap: var(--spacing-md);
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.cookie-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

/* Tablet Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
        padding: 0;
        gap: var(--spacing-sm);
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-toggle {
        display: none;
    }

    .services-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .service-card {
        flex: 0 0 calc(50% - var(--spacing-md));
    }

    .stats-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 0 0 50%;
    }

    .process-steps {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .process-step {
        flex: 0 0 calc(50% - var(--spacing-md));
    }

    .testimonials-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - var(--spacing-md));
    }

    .knowledge-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .knowledge-card {
        flex: 0 0 calc(50% - var(--spacing-md));
    }

    .content-split {
        flex-direction: row;
        align-items: center;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-col {
        flex: 1;
    }

    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-buttons {
        flex-direction: row;
    }

    .contact-main {
        flex-direction: row;
    }

    .directions-content {
        flex-direction: row;
        align-items: center;
    }

    .company-info-block {
        flex-direction: row;
    }

    .contact-tips-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-tip {
        flex: 0 0 calc(50% - var(--spacing-md));
    }

    .offices-list {
        flex-direction: row;
    }

    .office-card {
        flex: 1;
    }

    .values-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .value-card {
        flex: 0 0 calc(50% - var(--spacing-md));
    }

    .team-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .team-member {
        flex: 0 0 calc(50% - var(--spacing-md));
    }

    .service-header {
        flex-direction: row;
        align-items: center;
    }

    .comparison-row {
        flex-direction: row;
    }

    .comparison-cell {
        flex: 1;
    }

    .comparison-cell:first-child {
        flex: 2;
    }

    .thank-you-actions {
        flex-direction: row;
        justify-content: center;
    }

    .helpful-links-grid {
        flex-direction: row;
    }

    .helpful-link-card {
        flex: 1;
    }

    .cookie-modal-buttons {
        flex-direction: row;
    }

    .differentiator-item {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .container {
        padding: 0 var(--spacing-lg);
    }

    .service-card {
        flex: 0 0 calc(33.333% - var(--spacing-md));
    }

    .stat-item {
        flex: 0 0 25%;
    }

    .process-step {
        flex: 0 0 calc(33.333% - var(--spacing-md));
    }

    .testimonial-card {
        flex: 0 0 calc(33.333% - var(--spacing-md));
    }

    .knowledge-card {
        flex: 0 0 calc(50% - var(--spacing-md));
    }

    .value-card {
        flex: 0 0 calc(25% - var(--spacing-md));
    }

    .team-member {
        flex: 0 0 calc(25% - var(--spacing-md));
    }

    .contact-tip {
        flex: 0 0 calc(25% - var(--spacing-md));
    }
}