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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #475569;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --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);
    --transition: all 0.3s ease;
}

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-dark);
    background-color: var(--bg-white);
}

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

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

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

ul {
    list-style-position: inside;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

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

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

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

.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
}

.nav.active {
    right: 0;
}

.nav-link {
    padding: 12px 0;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-visual {
    margin-top: 2rem;
}

/* Page Hero */
.page-hero {
    padding: 60px 0 40px;
    background-color: var(--bg-light);
    text-align: center;
}

.page-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

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

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

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

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

/* Grids */
.values-grid,
.services-grid,
.benefits-grid,
.tips-grid,
.stats-grid,
.testimonials-grid,
.team-grid,
.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cards */
.value-card,
.service-card,
.benefit-item,
.tip-card,
.testimonial-card,
.team-member,
.achievement-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover,
.service-card:hover,
.tip-card:hover,
.team-member:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.value-card h3,
.service-card h3,
.benefit-item h3,
.tip-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.value-icon,
.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.value-icon img,
.service-icon img {
    width: 100%;
    height: 100%;
}

/* Service Price */
.service-price {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Services Showcase */
.service-feature {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    position: relative;
    padding-left: 80px;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background-color: 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;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Testimonials */
.testimonial-card {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.testimonial-author strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

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

/* Team Members */
.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-light);
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.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;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
}

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

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

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.cta-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Contact Page */
.contact-grid,
.directions-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card,
.direction-option {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-note {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.company-details {
    max-width: 700px;
    margin: 0 auto;
}

.company-detail-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.company-detail-item strong {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.company-detail-item span {
    color: var(--text-light);
}

/* Thank You Page */
.thank-you-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.thank-you-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.5rem;
}

.step-card .step-number {
    flex-shrink: 0;
    position: static;
}

/* Legal Pages */
.legal-content {
    padding: 40px 0 60px;
}

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

.legal-text h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--text-dark);
}

.legal-text h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.legal-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.legal-text ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.cookies-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.cookies-table thead {
    background-color: var(--bg-light);
}

.cookies-table th,
.cookies-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.cookies-table th {
    font-weight: 600;
    color: var(--text-dark);
}

.cookies-table td {
    color: var(--text-light);
}

/* Comparison Section */
.comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-column {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.comparison-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

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

.comparison-list.positive li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.comparison-list.negative li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--error-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Tips List */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.tip-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.tip-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Other Content Sections */
.intro-section,
.story-section,
.mission-section,
.approach-section,
.principles-section,
.about-office-section,
.custom-service-section {
    background-color: var(--bg-white);
}

.intro-content,
.story-content,
.office-content,
.custom-service-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content p,
.story-content p,
.office-content p,
.custom-service-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.mission-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.mission-item {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.mission-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.approach-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.approach-item {
    display: flex;
    gap: 1.5rem;
}

.approach-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.approach-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.principles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.principle-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.principle-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.achievement-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: bottom 0.3s ease;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.cookie-banner .btn {
    flex: 1;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

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

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

.cookie-modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.cookie-option {
    margin-bottom: 1.5rem;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
}

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

.cookie-option p {
    margin-top: 0.5rem;
    margin-left: 1.75rem;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: normal;
}

.cookie-modal-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    margin-top: 2rem;
}

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

    .page-hero h1 {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        gap: 2rem;
    }

    .nav-link {
        padding: 0;
        border-bottom: none;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .value-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

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

    .service-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

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

    .service-feature.reverse {
        flex-direction: row-reverse;
    }

    .service-feature-content,
    .service-feature-visual {
        flex: 1;
    }

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

    .stat-item {
        flex: 0 0 calc(50% - 0.75rem);
    }

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

    .testimonial-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

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

    .tip-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

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

    .team-member {
        flex: 0 0 calc(50% - 0.75rem);
    }

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

    .achievement-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

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

    .contact-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

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

    .direction-option {
        flex: 0 0 calc(50% - 0.75rem);
    }

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

    .comparison-column {
        flex: 1;
    }

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

    .cookie-actions {
        flex-direction: row;
        flex-shrink: 0;
    }

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

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

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

    .footer-section {
        flex: 1;
    }
}

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

    .page-hero h1 {
        font-size: 3rem;
    }

    section h2 {
        font-size: 2.25rem;
    }

    .value-card {
        flex: 0 0 calc(25% - 1.125rem);
    }

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

    .service-card {
        flex: 0 0 calc(33.333% - 1rem);
    }

    .stat-item {
        flex: 0 0 calc(25% - 1.125rem);
    }

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

    .testimonial-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

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

    .tip-card {
        flex: 0 0 calc(33.333% - 1rem);
    }

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

    .team-member {
        flex: 0 0 calc(33.333% - 1rem);
    }

    .achievements-grid {
        flex-direction: row;
    }

    .achievement-card {
        flex: 0 0 calc(33.333% - 1rem);
    }

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

    .contact-card {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

/* Accessibility */
.btn:focus,
.faq-question:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}