/* pulse-jump Financial Education - Editorial Story Archetype */
/* Mobile-first, Flexbox only */

:root {
    --primary: #1e3a5f;
    --secondary: #3d7ea6;
    --accent: #f4a261;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --text: #2d3748;
    --text-light: #6b7280;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.875rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.875rem; }

p { margin-bottom: 1.25rem; }

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

.narrow-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 5rem 2rem 2rem;
}

.main-nav.active {
    right: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.main-nav li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.main-nav a {
    display: block;
    padding: 1rem 0;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
}

.nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
}

.nav-overlay.active {
    display: block;
}

/* Hero - Editorial Style */
.hero-editorial {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.hero-editorial .narrow-container {
    text-align: center;
}

.hero-editorial h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.hero-editorial .lead {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

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

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

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

.btn-secondary:hover {
    background: var(--light);
}

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

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

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Editorial Sections */
.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--light);
}

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

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #f7b787 100%);
}

.editorial-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text);
}

.editorial-text p {
    margin-bottom: 1.5rem;
}

.pull-quote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary);
}

/* Inline Image */
.inline-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.inline-image img {
    width: 100%;
    height: auto;
}

.inline-image figcaption {
    padding: 0.75rem 1rem;
    background: var(--light);
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

/* Services Cards */
.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-age {
    display: inline-block;
    background: var(--light);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Stats Row */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem 0;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Testimonials */
.testimonials-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Team Section */
.team-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-member h4 {
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* CTA Blocks */
.cta-block {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    color: var(--white);
    margin: 2rem 0;
}

.cta-block h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.cta-block p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-inline {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.cta-inline p {
    margin: 0;
    font-weight: 500;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 999;
    display: flex;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta .btn {
    width: 100%;
    max-width: 400px;
}

/* Forms */
.form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(61, 126, 166, 0.15);
}

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

.form-submit {
    margin-top: 1.5rem;
}

.form-submit .btn {
    width: 100%;
}

/* Contact Info */
.contact-info {
    background: var(--light);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-details p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FAQ */
.faq-wrapper {
    margin-top: 2rem;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

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

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

.faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
}

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

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

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

.footer-brand {
    max-width: 280px;
}

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

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

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

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 1.25rem;
    z-index: 9999;
    display: none;
}

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

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

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.cookie-content a {
    color: var(--accent);
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

.cookie-buttons .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.btn-reject {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
}

.btn-reject:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

/* Thanks Page */
.thanks-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0;
}

.thanks-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success), #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.thanks-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--white);
}

.thanks-section h1 {
    color: var(--success);
}

/* Legal Pages */
.legal-page {
    padding: 3rem 0;
}

.legal-page h1 {
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Image Placeholder Style */
.img-placeholder {
    background: linear-gradient(135deg, #e0e7ee, #c9d6e3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    min-height: 200px;
}

/* Desktop Styles */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }

    .section {
        padding: 5rem 0;
    }

    .hero-editorial {
        padding: 5rem 0;
    }

    .hero-editorial h1 {
        font-size: 2.75rem;
    }

    .hero-editorial .lead {
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        width: auto;
        height: auto;
        box-shadow: none;
        padding: 0;
        background: transparent;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 0.25rem;
    }

    .main-nav li {
        border: none;
    }

    .main-nav a {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .nav-close {
        display: none;
    }

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

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

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

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

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

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

    .cta-inline {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .sticky-cta {
        display: none;
    }

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

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

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

@media (min-width: 1024px) {
    .hero-editorial h1 {
        font-size: 3.25rem;
    }

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

    .narrow-container {
        max-width: 800px;
    }

    .editorial-text {
        font-size: 1.2rem;
    }

    .pull-quote {
        font-size: 1.4rem;
        margin: 2.5rem 0;
    }
}
