/* Movoya site system: one rhythm for every section. Loaded last on every page.
   The sections were built one by one; this file states what they share (brand guide v2.5, sections 4 to 7):
   - one vertical rhythm, - two alternating light grounds (white, warm white), - one heading and kicker style,
   - one media radius, - neutral tags (orange stays the only accent colour).
   Change the tokens here instead of adding one-off values to a section. */
:root {
    --section-y: clamp(3.5rem, 6.5vw, 6rem);          /* space above a section's kicker and below its content */
    --section-head-gap: clamp(2rem, 3.5vw, 3rem);     /* heading block to content */
    --ground-white: var(--surface-0, #FFFFFF);
    --ground-warm: var(--surface-2, #F9F8F7);
    --radius-media: 20px;                             /* photos, video, map, scene */
    --radius-card: 16px;                              /* cards and panels */
    --kicker-color: #C8622A;                          /* dark orange: the only orange allowed as text on light */
}
:root[data-theme="dark"] { --kicker-color: #E07A3A; }

/* ---- Rhythm ---- */
.section,
.case-studies-section,
.news-section,
.public-progress-section,
.movement-story { padding: var(--section-y) 0; }
.partners-team-combined, .faq-footer-combined { padding: 0; }
.partners-half { padding: var(--section-y) 0; }
.faq-half { padding: var(--section-y) 0 clamp(1.5rem, 3vw, 2.5rem); }
.faq-ask-wrap { padding-bottom: var(--section-y); }
.demo-map-section-cowboy { padding-bottom: var(--section-y); }
.demo-map-section-intro { padding-top: var(--section-y); padding-bottom: var(--section-head-gap); }
.section-header, .news-section-head, .movement-heading { margin-bottom: var(--section-head-gap); }
.movement-heading { margin-left: auto; margin-right: auto; }

/* ---- Grounds: white and warm white alternate down the page ---- */
.problem-section { background: var(--ground-warm); }
.scroll-assembly { background: var(--ground-white); }
.movement-story { --trail-paper: var(--ground-warm); --trail-ink: #C8622A; background: var(--ground-warm); }
.case-studies-section { background: var(--ground-white); }
.public-progress-section { background: var(--ground-warm); }
.demo-map-section-cowboy { background: var(--ground-white); }
.partners-team-combined, .partners-half { background: var(--ground-warm); }
.news-section { background: var(--ground-white); }
.faq-footer-combined, .faq-half, .faq-ask-wrap { background: var(--ground-warm); }
.faq-ask { background: var(--ground-white); }

/* ---- Headings and kickers ---- */
.section-kicker,
.scroll-assembly__kicker,
.movement-heading .section-kicker,
.testimonials-combined .testimonials-header .section-kicker,
.about-hero .section-kicker,
.about-hero__text .section-kicker { color: var(--kicker-color); }
.section-kicker + h2,
.scroll-assembly__title,
.movement-heading h2,
.partners-half .section-header h2 {
    margin-top: 0;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-color);
    text-wrap: balance;
}
.movement-heading .section-kicker { margin-bottom: 0.75rem; }
.testimonials-combined, .testimonials-combined h2, .testimonials-combined blockquote, .testimonials-combined p { color: var(--text-color); }
@media (max-width: 800px) {
    .movement-heading { text-align: center; }
    .hero h1, .hero-title { letter-spacing: -0.035em; }
}

/* ---- Media and cards ---- */
.problem-scene.is-scrolling .problem-frame, .problem-img { border-radius: var(--radius-media); }
.video-wrapper, .demo-map-cowboy-layout { border-radius: var(--radius-media); }
.movement-image,
.movement-step:nth-child(even) .movement-image { border-radius: var(--radius-media); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08); }
.news-card, .partner-card, .post-ask, .faq-ask { border-radius: var(--radius-card); }
.news-section .news-card { border: 1px solid var(--border-soft); }

/* ---- Tags: one neutral style; the label carries the meaning, not a colour ---- */
.news-tag-badge,
.news-tag-badge--research,
.news-tag-badge--media,
.news-tag-badge--partnership,
:root[data-theme="dark"] .news-tag-badge,
:root[data-theme="dark"] .news-tag-badge--research,
:root[data-theme="dark"] .news-tag-badge--media,
:root[data-theme="dark"] .news-tag-badge--partnership {
    color: var(--secondary-text);
    border: 1px solid var(--border-soft);
    background: var(--surface-2);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

/* ---- About page ---- */
.founder-role { color: var(--kicker-color); letter-spacing: 0.14em; font-size: 0.7rem; }
.founder-section--warm { background: var(--ground-warm); }
.founder-section--warm .founder-tag { background: var(--ground-white); border: 1px solid var(--border-soft); }
.founder-linkedin { color: var(--text-color); border: 1.5px solid rgba(0, 0, 0, 0.18); border-radius: 9999px; }
.founder-linkedin:hover { background: var(--text-color); border-color: var(--text-color); color: var(--surface-0); }
:root[data-theme="dark"] .founder-linkedin { border-color: rgba(255, 255, 255, 0.25); }
.about-hero__img img, .founder-photo, .founder-section img { border-radius: var(--radius-media); }

/* Partner logos: the strip brings its own padding; keep the section's bottom space equal to the others. */
.partners-conveyor { padding-top: 0.5rem; padding-bottom: 0.75rem; }
.news-tag-filters button, .news-tag-filter { text-transform: capitalize; }

/* Problem section: same heading block as every other section, above the sticky scene. */
.problem-header { margin-bottom: clamp(0.5rem, 1.5vw, 1.25rem); }
.problem-section { padding: var(--section-y) 0; }
