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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e40af;
}

ul {
    list-style-position: inside;
}

/* Editorial Layout - Narrow Centered Content */
.editorial-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Navigation - Minimal Top Nav */
.nav-minimal {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #4b5563;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #1a1a1a;
}

/* Hero Story Section */
.hero-story {
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.hero-story h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 2rem;
}

.story-image {
    width: 100%;
    margin: 2rem 0;
    border-radius: 4px;
}

/* Page Header */
.page-header {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.page-header h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a;
}

/* Story Sections - Article-like */
.story-section {
    margin-bottom: 3rem;
}

.story-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
    line-height: 1.3;
}

.story-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #334155;
}

.story-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: #475569;
}

.story-section p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: #334155;
}

.story-section ul,
.story-section ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.story-section li {
    margin-bottom: 0.5rem;
    color: #334155;
}

.story-section strong {
    font-weight: 600;
    color: #1e293b;
}

/* Inline Images */
.inline-image {
    width: 100%;
    margin: 2.5rem 0;
    border-radius: 4px;
}

.image-embed {
    margin: 3rem 0;
}

.caption {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
    margin-top: 0.75rem;
    text-align: center;
}

/* Inline CTA */
.inline-cta {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.inline-cta:hover {
    color: #1e40af;
    transform: translateX(4px);
}

/* Services Editorial Layout */
.services-editorial {
    margin: 3rem 0;
}

.service-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.age-range {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-description {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 1.25rem;
}

.service-card ul {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}

.service-card li {
    margin-bottom: 0.5rem;
    color: #475569;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #059669;
    margin: 1.5rem 0 1rem;
}

/* Buttons */
.btn-service {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-service:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
}

.btn-large {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-right: 1rem;
    margin-top: 1rem;
}

.btn-large:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 0.875rem 2.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-top: 1rem;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: #ffffff;
}

/* CTA Sections */
.cta-section {
    background-color: #f1f5f9;
    padding: 3rem 2rem;
    margin: 4rem -1.5rem 3rem;
    border-radius: 8px;
    text-align: center;
}

.cta-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.final-cta {
    background-color: #0f172a;
}

.final-cta h3 {
    color: #ffffff;
}

.final-cta p {
    color: #cbd5e1;
}

/* Testimonials */
.testimonial-embed {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 2rem 1.5rem;
    margin: 3rem 0;
}

.testimonial-embed blockquote {
    margin: 0;
}

.testimonial-embed p {
    font-size: 1.15rem;
    font-style: italic;
    color: #92400e;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.testimonial-embed cite {
    font-size: 0.95rem;
    color: #78350f;
    font-style: normal;
    font-weight: 600;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.contact-note {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
    margin-top: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #1a1a1a;
}

.modal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
}

.btn-submit {
    background-color: #059669;
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #047857;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1e293b;
    color: #ffffff;
    padding: 1.5rem;
    z-index: 2000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.cookie-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
    margin: 0;
    text-align: center;
}

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

.btn-cookie {
    background-color: #059669;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-cookie:hover {
    background-color: #047857;
}

.btn-cookie-alt {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 0.625rem 1.625rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-cookie-alt:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer-minimal {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #64748b;
}

.footer-links a:hover {
    color: #1e293b;
}

.footer-content p {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
}

.legal-page .story-section {
    margin-bottom: 2.5rem;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.cookie-table thead {
    background-color: #f1f5f9;
}

.cookie-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #cbd5e1;
}

.cookie-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .hero-story h1 {
        font-size: 3rem;
    }

    .page-header h1 {
        font-size: 2.75rem;
    }

    .editorial-content {
        padding: 3rem 2rem;
    }

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

    .cookie-content p {
        text-align: left;
        flex: 1;
    }

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

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

    .contact-card {
        flex: 1;
        min-width: 280px;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    .hero-story h1 {
        font-size: 3.5rem;
    }

    .nav-links {
        gap: 2.5rem;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

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