/**
 * YOUbuntu CIC — Public Site Styles
 * Design System: DESIGN.md
 * Mobile-first, no build tools
 */

/* ─── CSS Custom Properties ─────────────────────────────────── */

:root {
    /* Brand colours */
    --black: #000000;
    --white: #ffffff;
    --orange: #fd7014;
    --magenta: #fe41a0;
    --yellow: #fdcc00;
    --red: #fd0707;

    /* Warm greys */
    --grey-50: #f5f0eb;
    --grey-100: #e8e2dc;
    --grey-200: #d4ccc4;
    --grey-300: #b8aea4;
    --grey-400: #9a8e82;
    --grey-500: #7d7068;
    --grey-600: #5e534a;
    --grey-700: #443b34;
    --grey-800: #2d2926;
    --grey-900: #1a1614;

    /* Semantic */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Spacing (8px base) */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    /* Motion */
    --ease-enter: cubic-bezier(0, 0, 0.2, 1);
    --ease-exit: cubic-bezier(0.4, 0, 1, 1);
    --ease-move: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-micro: 80ms;
    --duration-short: 200ms;
    --duration-medium: 350ms;
    --duration-long: 500ms;

    /* Typography */
    --font-heading: 'Anton', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Layout */
    --container-max: 1400px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--orange);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--black);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ─── Layout ────────────────────────────────────────────────── */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section {
    padding: var(--space-xl) 0;
}

.section-divider {
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    margin: 0;
}

/* ─── Typography ────────────────────────────────────────────── */

.heading-hero {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 80px);
    color: var(--site-heading-color, var(--white));
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow:
        4px 4px 0 var(--site-shadow-color, rgba(253, 7, 7, 0.75)),
        0 0 30px rgba(0, 0, 0, 0.4);
}

.heading-section {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 48px);
    color: var(--site-heading-color, var(--white));
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow:
        3px 3px 0 var(--site-shadow-color, rgba(253, 7, 7, 0.75)),
        0 0 20px rgba(0, 0, 0, 0.35);
}

.heading-sub {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3vw, 32px);
    color: var(--site-heading-color, var(--white));
    text-transform: uppercase;
    line-height: 1.3;
    text-shadow:
        2px 2px 0 var(--site-shadow-color, rgba(253, 7, 7, 0.75)),
        0 0 15px rgba(0, 0, 0, 0.3);
}

.heading-label {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-small {
    font-size: 14px;
    font-weight: 400;
    color: var(--grey-600);
}

/* ─── Navigation ────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--orange);
    padding: var(--space-sm) 0;
    transition: box-shadow var(--duration-short) var(--ease-enter);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.nav-logo img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-logo-text span { color: var(--orange); }

.nav-pills {
    display: none;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.nav-pill a {
    display: block;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    letter-spacing: 2px;
    transition: transform var(--duration-short) var(--ease-enter);
}

.nav-pill a:hover,
.nav-pill a.active {
    transform: scale(1.05);
}

/* Hamburger */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.nav-hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: transform var(--duration-short) var(--ease-move),
                opacity var(--duration-short) var(--ease-move);
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--black);
    z-index: 200;
    padding: var(--space-2xl) var(--space-lg);
    transition: right var(--duration-medium) var(--ease-move);
    overflow-y: auto;
}

.nav-drawer.open { right: 0; }

.nav-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-medium) var(--ease-move),
                visibility var(--duration-medium);
}

.nav-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-drawer-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    padding: 8px;
}

.nav-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.nav-drawer a {
    display: block;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 20px;
    text-transform: uppercase;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

.nav-drawer a:hover { color: var(--magenta); }

/* Desktop nav */
@media (min-width: 768px) {
    .nav-pills { display: flex; }
    .nav-hamburger { display: none; }
}

/* ─── Text Box (Pink/Magenta) ───────────────────────────────── */

.text-box {
    background: var(--magenta);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.text-box h2,
.text-box h3 {
    font-family: var(--font-heading);
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 3px 3px 0 var(--site-shadow-color, rgba(253, 7, 7, 0.75));
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.text-box h2 { font-size: clamp(28px, 5vw, 42px); }
.text-box h3 { font-size: clamp(22px, 4vw, 32px); }

.text-box p {
    color: var(--black);
    font-weight: 700;
    line-height: var(--site-body-line-height, 1.6);
    letter-spacing: var(--site-body-letter-spacing, 0.01em);
}

@media (min-width: 768px) {
    .text-box { padding: var(--space-lg) var(--space-xl); }
}

/* ─── Yellow Accent Box ─────────────────────────────────────── */

.accent-box {
    background: var(--yellow);
    border: 4px solid var(--magenta);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
}

.accent-box h3 {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3vw, 28px);
    color: var(--black);
    text-transform: uppercase;
    line-height: 1.2;
}

/* ─── Image Circle ──────────────────────────────────────────── */

.image-circle {
    width: 120px;
    height: 120px;
    background: var(--yellow);
    border-radius: 50%;
    border: 5px solid var(--orange);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-circle-lg { width: 200px; height: 200px; }
.image-circle-xl { width: 280px; height: 280px; }

@media (min-width: 768px) {
    .image-circle { width: 200px; height: 200px; }
    .image-circle-lg { width: 280px; height: 280px; }
}

/* ─── Buttons ───────────────────────────────────────────────── */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    text-decoration: none;
    text-align: center;
    transition: transform var(--duration-short) var(--ease-enter);
}

.btn:hover { transform: scale(1.05); }

.btn-primary {
    background: var(--magenta);
    color: var(--white);
    border-radius: var(--radius-sm);
}

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

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: var(--radius-sm);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--black);
    border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
    .btn { font-size: 16px; padding: 12px 28px; }
}

/* ─── Service Cards ─────────────────────────────────────────── */

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.service-card {
    background: var(--magenta);
    border: 4px solid var(--yellow);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: transform var(--duration-short) var(--ease-enter);
}

.service-card:hover { transform: translateY(-4px); }

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(253, 7, 7, 0.75);
    margin-bottom: var(--space-xs);
}

.service-card p {
    color: var(--black);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card { padding: var(--space-lg); }
}

/* ─── Testimonial Carousel ──────────────────────────────────── */

.testimonial-row {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xl) 0;
}

.testimonial-arrow {
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 12px;
    padding: 10px 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    z-index: 5;
    transition: transform var(--duration-short) var(--ease-enter);
}

.testimonial-arrow:hover { transform: scale(1.05); }

.testimonial-track-wrapper {
    flex: 1;
    overflow: visible;
    perspective: 800px;
    min-width: 0;
}

.testimonial-track {
    display: flex;
    gap: var(--space-sm);
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    will-change: transform;
}

.testimonial-card {
    background: var(--magenta);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    flex: 0 0 75%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: scale(0.78);
    opacity: 0.5;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    overflow: hidden;
}

@keyframes slide-fwd-center {
    0% { transform: scale(1) translateZ(0); }
    100% { transform: scale(1) translateZ(160px); }
}

.testimonial-card.center {
    transform: scale(1) translateZ(0);
    opacity: 1;
    animation: slide-fwd-center 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    z-index: 2;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.testimonial-card.near {
    transform: scale(0.88);
    opacity: 0.75;
    z-index: 1;
}

.testimonial-card blockquote {
    color: var(--white);
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: var(--space-xs);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.testimonial-card.center blockquote {
    font-size: 16px;
    -webkit-line-clamp: 8;
}

.testimonial-card cite {
    color: var(--black);
    font-weight: 700;
    font-style: normal;
    font-size: 12px;
    display: block;
    margin-top: auto;
    flex-shrink: 0;
}

.testimonial-card.center cite { font-size: 14px; }

.testimonial-card .testimonial-video {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
    background: var(--black);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-card .play-btn {
    width: 44px;
    height: 44px;
    background: var(--magenta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform var(--duration-short) var(--ease-enter);
}

.testimonial-card .play-btn:hover { transform: scale(1.1); }

.testimonial-card .play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent var(--white);
    margin-left: 3px;
}

/* Video-only cards */
.testimonial-card.video-only { padding: 0; }
.testimonial-card.video-only .testimonial-video {
    margin: 0;
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

/* Mobile: swipe only, no arrows */
.mobile-only { display: none; }
.testimonial-swipe-hint { display: none; }

@media (max-width: 767px) {
    .testimonial-arrow { display: none; }
    .testimonial-row { gap: 0; }
    .mobile-only { display: inline; }
    .testimonial-swipe-hint { display: block; }
}

@media (min-width: 768px) {
    .testimonial-card { flex: 0 0 calc((100% - 2 * var(--space-sm)) / 3); }
    .testimonial-arrow { font-size: 14px; padding: 14px 24px; }
}

@media (min-width: 1024px) {
    .testimonial-card { flex: 0 0 calc((100% - 4 * var(--space-sm)) / 5); }
    .testimonial-row { gap: var(--space-md); }
}

/* ─── Marquee (3-row alternating) ───────────────────────────── */

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--mq-gap, 10px);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.marquee-container { overflow: hidden; }

.marquee-track {
    display: flex;
    gap: var(--mq-gap, 10px);
    width: max-content;
}

.marquee-track--rtl { animation: marquee-rtl 60s linear infinite; }
.marquee-track--ltr { animation: marquee-ltr 60s linear infinite; }

.marquee-container:hover .marquee-track { animation-play-state: paused; }

/*
 * Marquee logo tiles — consistent square tiles like the Canva reference.
 * Each logo is a fixed-size rounded square. Images fill the tile via object-fit cover.
 * Logos with their own coloured backgrounds look great as standalone tiles.
 * Logos without images fall back to a white tile with text.
 */
/*
 * Marquee logos — bare images, no wrapper divs.
 * CSS variables: --mq-radius, --mq-height, --mq-gap
 */
.marquee-logo {
    height: var(--mq-height, 110px);
    width: auto;
    display: block;
    border-radius: var(--mq-radius, 32px);
    flex-shrink: 0;
}

/* Text-only fallback (no image uploaded) */
.marquee-text {
    height: var(--mq-height, 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--grey-700);
    border-radius: var(--mq-radius, 32px);
    padding: var(--space-sm) var(--space-md);
    min-width: var(--mq-height, 110px);
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    word-break: break-word;
    white-space: normal;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .marquee-logo { height: calc(var(--mq-height, 110px) * 0.8); }
    .marquee-text { height: calc(var(--mq-height, 110px) * 0.8); }
}

@keyframes marquee-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-ltr {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ─── Impact Counters ───────────────────────────────────────── */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    text-align: center;
}

.impact-stat {
    background: var(--yellow);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.impact-number {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 56px);
    color: var(--black);
    line-height: 1;
}

.impact-label {
    font-size: 14px;
    color: var(--grey-800);
    margin-top: var(--space-xs);
}

/* ─── Blog Cards ────────────────────────────────────────────── */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.blog-card {
    background: var(--magenta);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--duration-short) var(--ease-enter);
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: var(--space-md);
}

.blog-card-body h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(253, 7, 7, 0.75);
    margin-bottom: var(--space-xs);
}

.blog-card-body p {
    color: var(--black);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.blog-card-meta {
    font-size: 12px;
    font-weight: 400;
    color: var(--grey-800);
}

@media (min-width: 768px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Footer ────────────────────────────────────────────────── */

.site-footer {
    background: var(--magenta);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.footer-col p,
.footer-col a {
    color: var(--black);
    font-size: 14px;
    line-height: 1.8;
}

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

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-short) var(--ease-enter);
}

.footer-social a:hover { transform: scale(1.1); }

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding-top: var(--space-sm);
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    color: var(--grey-800);
}

.footer-bottom a { text-decoration: underline; }

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: auto 1fr 1fr 1fr; }
}

/* ─── Forms ─────────────────────────────────────────────────── */

.form-container {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    max-width: 600px;
}

.form-group { margin-bottom: var(--space-md); }

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: var(--space-2xs);
    color: var(--grey-800);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    background: var(--grey-50);
    transition: border-color var(--duration-short) var(--ease-enter);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--magenta);
    background: var(--white);
}

.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey-400); font-weight: 400; }

.form-error {
    font-size: 13px;
    color: var(--error);
    margin-top: var(--space-2xs);
}

.form-success {
    background: #dcfce7;
    border-left: 4px solid var(--success);
    color: #166534;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

@media (min-width: 768px) {
    .form-container { padding: var(--space-xl); }
}

/* ─── Hero Section ──────────────────────────────────────────── */

.hero {
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) 0;
}

.hero-logo {
    width: 280px;
    height: 280px;
    margin: 0 auto var(--space-lg);
}

.hero-logo img { width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 768px) {
    .hero-logo { width: 400px; height: 400px; }
}

/* On very short screens, scale down the hero logo so everything fits */
@media (max-height: 600px) {
    .hero-logo { width: 150px; height: 150px; }
    .heading-hero { font-size: 36px; }
}

/* ─── Content Sections (alternating left/right) ─────────────── */

.content-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.content-row--reverse .content-image { order: -1; }

@media (min-width: 768px) {
    .content-row { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
    .content-row--reverse .content-image { order: 1; }
    .content-row--reverse .content-text { order: 0; }
}

.content-image {
    display: flex;
    justify-content: center;
}

/* ─── Scroll Animations ─────────────────────────────────────── */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-enter), transform 0.6s var(--ease-enter);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Newsletter Signup ─────────────────────────────────────── */

.newsletter-form {
    display: flex;
    gap: var(--space-xs);
    max-width: 480px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--white);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.6); }

/* ─── Page-specific ─────────────────────────────────────────── */

/* Blog single post */
.post-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
    color: var(--grey-900);
    font-weight: 400;
    line-height: 1.8;
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--black);
    text-transform: uppercase;
    margin: var(--space-lg) 0 var(--space-sm);
}

.post-content p { margin-bottom: var(--space-sm); }

.post-content img {
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

@media (min-width: 768px) {
    .post-content { padding: var(--space-2xl); }
}

/* ─── Utility ───────────────────────────────────────────────── */

.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
