/* ================================================
   calm-engine - Finance Advisory Website
   Mobile-first CSS using Flexbox
   ================================================ */

/* CSS Variables */
:root {
    --color-primary: #1a365d;
    --color-primary-light: #2c5282;
    --color-secondary: #4299e1;
    --color-accent: #48bb78;
    --color-accent-light: #f0fff4;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-bg: #ffffff;
    --color-bg-alt: #f7fafc;
    --color-bg-blue: #ebf8ff;
    --color-border: #e2e8f0;
    --color-error: #e53e3e;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
    list-style: none;
}

address {
    font-style: normal;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--color-primary);
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #38a169;
    border-color: #38a169;
    color: white;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-text-light);
    color: var(--color-text);
}

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

.btn-light:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

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

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

.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
}

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

.nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
}

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

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        border: none;
        padding: 0;
        gap: 0.25rem;
    }

    .nav-menu a {
        padding: 0.5rem 1rem;
    }
}

/* Hero Section */
.hero {
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, var(--color-bg-blue) 0%, var(--color-bg) 100%);
}

.hero .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 400px;
}

@media (min-width: 768px) {
    .hero {
        padding: 5rem 0 6rem;
    }

    .hero .container {
        flex-direction: row;
        align-items: center;
    }

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

/* Page Hero */
.page-hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--color-bg-blue) 0%, var(--color-bg) 100%);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-intro {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 4rem 0;
    }
}

/* Section Styles */
section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Philosophy Section */
.philosophy-section {
    background-color: var(--color-bg-alt);
}

.philosophy-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.philosophy-content {
    max-width: 600px;
}

.philosophy-visual {
    flex-shrink: 0;
}

.philosophy-icon {
    width: 200px;
    height: auto;
}

@media (min-width: 768px) {
    .philosophy-grid {
        flex-direction: row;
        gap: 4rem;
    }

    .philosophy-icon {
        width: 280px;
    }
}

/* Stats Section */
.stats-section {
    background-color: var(--color-primary);
    padding: 3rem 0;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

/* Services Preview */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.service-card {
    flex: 1;
    min-width: 250px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow var(--transition), transform var(--transition);
}

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

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

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.services-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Services Detail */
.services-overview {
    padding-bottom: 2rem;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-light);
}

.services-detail {
    padding-top: 0;
}

.service-detail-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-detail-card.featured {
    border-color: var(--color-accent);
    border-width: 2px;
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.service-detail-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.service-detail-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
}

.service-detail-content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
    font-size: 0.9375rem;
}

.feature-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .service-detail-header {
        flex-direction: row;
        align-items: center;
    }
}

/* Comparison Section */
.comparison-section {
    background-color: var(--color-bg-alt);
}

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

.comparison-column {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-header {
    padding: 1.5rem;
    text-align: center;
}

.comparison-header.honorar {
    background-color: var(--color-accent-light);
    border-bottom: 2px solid var(--color-accent);
}

.comparison-header.honorar h3 {
    color: var(--color-accent);
}

.comparison-header.provision {
    background-color: #fff5f5;
    border-bottom: 2px solid var(--color-error);
}

.comparison-header.provision h3 {
    color: var(--color-error);
}

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

.comparison-items {
    padding: 1.5rem;
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.comparison-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .comparison-table {
        flex-direction: row;
    }

    .comparison-column {
        flex: 1;
    }
}

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

.process-step {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-secondary);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.process-connector {
    display: none;
}

.process-steps.horizontal {
    flex-wrap: wrap;
}

.process-steps.horizontal .process-step {
    flex: 1;
    min-width: 180px;
}

@media (min-width: 768px) {
    .process-steps {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .process-step {
        flex: 1;
        min-width: 200px;
    }

    .process-connector {
        display: flex;
        align-items: center;
        padding-top: 1.5rem;
    }

    .process-connector svg {
        width: 40px;
    }
}

/* Testimonials */
.testimonials-section {
    background-color: var(--color-bg-alt);
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.testimonial-card {
    flex: 1;
    min-width: 280px;
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--color-text);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.author-info strong {
    display: block;
    color: var(--color-primary);
}

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

/* Industries Section */
.industries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.industry-item {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}

.industry-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
}

.industry-item p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* Knowledge Section */
.knowledge-section {
    background-color: var(--color-primary);
    color: white;
}

.knowledge-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.knowledge-content h2 {
    color: white;
}

.knowledge-content .section-label {
    color: var(--color-accent);
}

.knowledge-items {
    margin-top: 2rem;
}

.knowledge-item {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.knowledge-item:last-child {
    margin-bottom: 0;
}

.knowledge-item h3 {
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.knowledge-item p {
    color: rgba(255, 255, 255, 0.85);
}

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

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--color-bg);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: background-color var(--transition);
}

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

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.25rem 1.25rem;
    background-color: var(--color-bg);
}

.faq-answer.active {
    display: block;
}

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

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

/* Story Section */
.story-section {
    padding: 4rem 0;
}

.story-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.story-content {
    max-width: 600px;
}

.story-visual {
    flex-shrink: 0;
}

.story-illustration {
    width: 100%;
    max-width: 350px;
}

@media (min-width: 768px) {
    .story-grid {
        flex-direction: row;
        gap: 4rem;
    }
}

/* Values Section */
.values-section {
    background-color: var(--color-bg-alt);
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.value-card {
    flex: 1;
    min-width: 250px;
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.value-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* Team Section */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.team-member {
    flex: 1;
    min-width: 240px;
    max-width: 280px;
    text-align: center;
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.member-role {
    display: block;
    color: var(--color-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.team-member p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* Timeline / Milestones */
.milestones-section {
    background-color: var(--color-bg-alt);
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-secondary);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    transform: translateX(-50%);
    background-color: var(--color-bg);
    padding: 0.25rem 0;
}

.timeline-marker span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 30px;
    background-color: var(--color-secondary);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.timeline-content {
    background-color: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-left: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* Approach Section */
.approach-section {
    padding: 4rem 0;
}

.approach-list {
    margin-top: 2rem;
}

.approach-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

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

.approach-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.approach-item p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* Certifications Section */
.certifications-section {
    padding: 3rem 0;
}

.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.certification-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 150px;
}

.certification-item svg {
    width: 80px;
    height: 80px;
}

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

/* Contact Page */
.contact-main {
    padding: 3rem 0;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.contact-card {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

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

.contact-card h3 {
    margin-bottom: 0.75rem;
}

.contact-detail {
    font-size: 1.125rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

.hours-list {
    margin: 1rem 0;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9375rem;
}

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

.directions-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.directions-content {
    margin-top: 1.5rem;
}

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

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

.direction-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.direction-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.direction-item p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

@media (min-width: 768px) {
    .contact-grid {
        flex-direction: row;
    }

    .contact-info-section {
        flex: 0 0 45%;
    }

    .contact-directions {
        flex: 1;
    }
}

/* Company Info Section */
.company-info-section {
    background-color: var(--color-bg-alt);
    padding: 3rem 0;
}

.company-info-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.company-info-card h2 {
    margin-bottom: 1.5rem;
}

.company-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.company-info-item {
    flex: 1;
    min-width: 200px;
}

.company-info-item h4 {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.company-info-item p {
    font-size: 0.9375rem;
}

/* Contact CTA */
.contact-cta-section {
    padding: 3rem 0;
}

.contact-cta-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-text h2 {
    margin-bottom: 0.75rem;
}

.cta-text p {
    color: var(--color-text-light);
}

.email-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-primary);
}

.email-display svg {
    width: 40px;
    height: 40px;
}

@media (min-width: 768px) {
    .contact-cta-content {
        flex-direction: row;
        text-align: left;
    }

    .cta-text {
        flex: 1;
    }
}

/* Thank You Page */
.thank-you-section {
    padding: 4rem 0;
    text-align: center;
}

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

.thank-you-icon {
    width: 100px;
    margin: 0 auto 2rem;
}

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

.thank-you-info {
    text-align: left;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.thank-you-info h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.next-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-icon {
    flex-shrink: 0;
    width: 50px;
}

.step-text h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.step-text p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Resources Section */
.resources-section {
    background-color: var(--color-bg-alt);
    padding: 3rem 0;
}

.resources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.resource-card {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}

a.resource-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: inherit;
}

.resource-card.highlight {
    background-color: var(--color-accent-light);
    border: 1px solid var(--color-accent);
}

.resource-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.resource-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.resource-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

/* Legal Pages */
.legal-hero {
    padding: 2.5rem 0;
}

.legal-content {
    padding: 3rem 0;
}

.legal-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-toc {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.legal-toc h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.legal-toc ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-toc a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.legal-toc a:hover {
    color: var(--color-secondary);
}

.legal-toc li:last-child a {
    border-bottom: none;
}

.legal-body {
    flex: 1;
}

.legal-body article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-body article:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-body h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.legal-body h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-body li {
    list-style: disc;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.legal-body address {
    background-color: var(--color-bg-alt);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.rights-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-item {
    flex: 1;
    min-width: 250px;
    background-color: var(--color-bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.right-item h3 {
    font-size: 1rem;
    margin-top: 0;
}

.right-item p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

@media (min-width: 768px) {
    .legal-wrapper {
        flex-direction: row;
    }

    .legal-toc {
        flex: 0 0 250px;
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

/* Cookie Category Styles */
.cookie-category {
    background-color: var(--color-bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.cookie-category h3 {
    margin-top: 0;
}

.cookie-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.cookie-table th,
.cookie-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.cookie-table th {
    background-color: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-primary);
}

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

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .logo svg circle:first-child {
    fill: rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-links {
    flex: 0 0 auto;
    min-width: 140px;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    flex: 0 0 auto;
    min-width: 180px;
}

.footer-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

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

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

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 9999;
}

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

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

.cookie-content p {
    font-size: 0.9375rem;
    color: var(--color-text);
    margin: 0;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        text-align: left;
    }

    .cookie-content p {
        flex: 1;
    }
}

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

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

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

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.cookie-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--color-text-light);
    transition: color var(--transition);
}

.cookie-modal-close:hover {
    color: var(--color-text);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-option {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-option-header label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.cookie-option-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-badge {
    font-size: 0.75rem;
    color: var(--color-text-light);
    background-color: var(--color-bg-alt);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.cookie-option p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
    padding-left: 1.875rem;
}

.cookie-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
    justify-content: flex-end;
}

/* Accessibility */
.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;
}

*:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    a {
        color: var(--color-text);
    }

    .page-hero {
        background: none;
    }
}
