/* ==========================================================================
   Component Styles - Uses Design Tokens
   ========================================================================== */

/* ========== BASE UTILITIES ========== */

/* Prevent transitions on page load */
.no-transitions * {
    transition: none !important;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--color-focus-ring-alpha);
}

section[id] {
    scroll-margin-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
    html.scroll-smooth {
        scroll-behavior: auto !important;
    }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-default),
                transform var(--duration-slow) var(--ease-default);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children - each child delays 100ms more */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 400ms; }

/* CTA Attention Glow - subtle idle animation */
@keyframes cta-glow {
    0%, 100% { box-shadow: 0 4px 14px rgba(138, 56, 32, 0.35); }
    50% { box-shadow: 0 4px 24px rgba(138, 56, 32, 0.55), 0 0 20px rgba(138, 56, 32, 0.2); }
}

.cta-glow {
    animation: cta-glow 3s ease-in-out infinite;
}

.cta-glow:hover,
.cta-glow:focus {
    animation: none;
}

/* Counter animation placeholder */
.counter[data-target] {
    display: inline-block;
}

.bg-grid-pattern {
    background-image: radial-gradient(var(--color-accent-light) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.1;
}

/* ========== FLUID HERO LAYOUT ========== */
/* Resolution-independent hero using flexbox + clamp() */
/* Full viewport height with POWERED BY bar at bottom */

.hero-section {
    /* Fallback for older browsers, then modern dvh */
    min-height: var(--hero-min-height-fallback);
    min-height: var(--hero-min-height);

    /* Flex column: content area fills space, powered-by at bottom */
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    position: relative;
    overflow: hidden;
}

/* Main content wrapper - vertically centers hero grid */
.hero-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding-block: var(--hero-padding-y);
}

/* PARTNERS SECTION */
.partners-section {
    padding-block: var(--space-8);
    border-block: 1px solid var(--color-border);
}

.partners-label {
    text-align: center;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2.5vw, 2rem);
}

.partners-logo {
    flex: 1 1 clamp(80px, 16vw, 160px);
    max-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-logo img {
    height: clamp(28px, 5vw, 48px);
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.5;
    transition: filter var(--duration-slow) var(--ease-default), opacity var(--duration-slow) var(--ease-default);
}

.partners-logo:hover img,
.partners-logo:focus-visible img {
    filter: grayscale(0);
    opacity: 1;
}

/* Dark partners section */
.partners-dark {
    background: var(--color-secondary);
    border-block: none;
}

.partners-dark .partners-label {
    color: var(--color-text-subtle);
}

/* All logos converted to white, opacity controls grey vs white */
.partners-dark .partners-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.partners-dark .partners-logo:hover img,
.partners-dark .partners-logo:focus-visible img {
    opacity: 1;
}

@media (min-width: 1024px) {
    .partners-logos {
        flex-wrap: nowrap;
    }
}

/* Small viewport fallback - prevent content crushing */
@media (max-height: 600px) {
    .hero-section {
        min-height: auto;
    }

    .hero-main {
        padding-block: var(--space-8);
    }
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hero-gap);
    align-items: center;
}

.hero-content {
    flex: 1 1 var(--hero-content-basis);
    min-width: 0; /* prevent overflow from long words */
    min-height: 420px; /* prevent CLS from font loading on desktop */
}

@media (max-width: 767px) {
    .hero-content {
        min-height: auto; /* allow flexible height on mobile */
    }
}

.hero-card-wrapper {
    flex: 1 1 var(--hero-card-basis);
    max-width: var(--hero-card-max);
    width: 100%;
}

/* Center card when stacked (narrow viewports) */
@media (max-width: 767px) {
    .hero-card-wrapper {
        margin-inline: auto;
    }
}

.hero-title {
    font-size: var(--hero-title-size);
    line-height: var(--leading-headline);
    letter-spacing: var(--tracking-tight);
}

.hero-text {
    font-size: var(--hero-text-size);
    line-height: var(--leading-relaxed);
}

/* ========== HERO BADGE ========== */
/* Charity badge with neobrutalist box-shadow using Bergh brand colors */

.hero-badge {
    position: relative;
    background-color: var(--color-charity-light);
    box-shadow: -3px 3px 0 0 #016633;
    transition: background-color var(--duration-fast) var(--ease-default),
                box-shadow var(--duration-fast) var(--ease-default);
}

.hero-badge:hover {
    background-color: var(--color-charity-hover);
    box-shadow: -2px 2px 0 0 #016633;
    transform: translate(-1px, 1px);
}

.hero-badge__highlight {
    color: var(--color-charity);
}

/* ========== DATE BOX ========== */

.date-box__background {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, #141e28 0%, var(--color-secondary) 50%, #0f1822 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-box__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

.date-box__overlay {
    position: absolute;
    inset: 0;
    /* Increased opacity from 0.75 to 0.85 for WCAG AA contrast compliance */
    background:
        radial-gradient(circle at 15% 15%, rgba(26, 127, 168, 0.2), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(26, 127, 168, 0.25), transparent 50%),
        linear-gradient(135deg, rgba(15, 23, 32, 0.85) 0%, rgba(25, 38, 50, 0.8) 50%, rgba(10, 18, 26, 0.85) 100%);
    z-index: 1;
}

/* Shimmer sweep effect */
.date-box__background::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    animation: date-box-shimmer 6s ease-in-out infinite;
    animation-delay: 2s;
    pointer-events: none;
}

@keyframes date-box-shimmer {
    0%, 100% {
        transform: translateX(-100%);
    }
    30%, 70% {
        transform: translateX(100%);
    }
}

/* Respect reduced motion for shimmer */
@media (prefers-reduced-motion: reduce) {
    .date-box__background::after {
        animation: none;
        display: none;
    }
}

.date-box__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    pointer-events: none;
}

.date-box__day-label {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4db8e8;
    margin-bottom: var(--space-2);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.date-box__day-display {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.date-box__day-number {
    font-size: 72px;
    font-weight: var(--font-bold);
    line-height: 0.9;
    color: var(--color-text-inverse);
    font-family: var(--font-serif);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.date-box__day-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: var(--space-1);
    gap: 2px;
}

.date-box__month {
    font-size: var(--text-xl);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.date-box__year {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.06em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.date-box__time {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: #ffffff;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.date-box__time svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.date-box__location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: white;
    text-decoration: none;
    transition: opacity var(--duration-normal) var(--ease-default);
}

.date-box__location:hover {
    opacity: 0.8;
}

.date-box__location svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

@media (max-width: 480px) {
    .date-box__day-number {
        font-size: 56px;
    }

    .date-box__month {
        font-size: var(--text-lg);
    }

    .date-box__background {
        height: 200px;
    }
}

@media (max-width: 360px) {
    .date-box__background {
        height: 190px;
    }

    .date-box__day-label {
        letter-spacing: 0.16em;
    }

    .date-box__day-display {
        gap: var(--space-2);
    }

    .date-box__day-number {
        font-size: 48px;
    }

    .date-box__month {
        font-size: var(--text-base);
    }

    .date-box__time {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }
}

/* ========== IRAISER LOGO ========== */
/* iRaiser logo is white SVG - invert to black, use opacity for grey effect */

.partners-logo img.iraiser-logo {
    filter: invert(1);
    opacity: 0.5;
    transition: filter var(--duration-slow) var(--ease-default), opacity var(--duration-slow) var(--ease-default);
}

.iraiser-logo-link:hover img.iraiser-logo,
.iraiser-logo-link:focus-visible img.iraiser-logo {
    filter: invert(1);
    opacity: 1;
}

/* ========== CTA TEXT ========== */

.cta-text--full {
    display: none;
}

.cta-text--short {
    display: inline;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.cta-text--full {
    white-space: nowrap;
    letter-spacing: 0.01em;
}

@media (min-width: 640px) {
    .cta-text--full {
        display: inline;
    }

    .cta-text--short {
        display: none;
    }
}

/* ========== SHARE CHIP ========== */

.share-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-border);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.02em;
    transition: border-color var(--duration-slow) var(--ease-default),
                background-color var(--duration-slow) var(--ease-default),
                color var(--duration-slow) var(--ease-default),
                transform var(--duration-slow) var(--ease-default);
    text-decoration: none;
}

.share-chip svg,
.share-chip .material-symbols-outlined {
    width: 18px;
    height: 18px;
    color: var(--color-border);
    transition: color var(--duration-slow) var(--ease-default);
}

.share-chip:hover,
.share-chip:focus-visible {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-surface);
    transform: translateY(-1px);
}

.share-chip:focus-visible {
    outline: 2px solid var(--color-surface);
    outline-offset: 3px;
}

.share-chip:hover svg,
.share-chip:hover .material-symbols-outlined,
.share-chip:focus-visible svg,
.share-chip:focus-visible .material-symbols-outlined {
    color: var(--color-surface);
}

/* ========== CHAT WIDGET ========== */

.chat-widget {
    position: fixed;
    bottom: var(--space-5);
    right: var(--space-5);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: background-color var(--duration-normal) var(--ease-default),
                transform var(--duration-normal) var(--ease-default),
                box-shadow var(--duration-normal) var(--ease-default);
}

.chat-toggle:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 80, 57, 0.45);
}

.chat-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.chat-toggle .material-symbols-outlined {
    font-size: 20px;
}

.chat-toggle__label {
    display: none;
}

@media (min-width: 640px) {
    .chat-toggle__label {
        display: inline;
    }
}

.chat-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    max-height: 70vh;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: chat-panel-enter var(--duration-normal) var(--ease-default);
}

@keyframes chat-panel-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-panel.hidden {
    display: none;
}

@media (min-width: 640px) {
    .chat-panel {
        width: 360px;
    }
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 0;
        right: 0;
        left: 0;
        padding: var(--space-3);
    }

    .chat-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 80vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        animation: chat-panel-enter-mobile 0.25s var(--ease-default);
    }

    @keyframes chat-panel-enter-mobile {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .chat-toggle {
        position: fixed;
        bottom: var(--space-5);
        right: var(--space-5);
    }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
}

.chat-header__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-header__title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text);
}

.chat-header__subtitle {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.chat-header__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--button-min-height);
    height: var(--button-min-height);
    border: none;
    border-radius: var(--radius-md);
    background-color: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-default),
                color var(--duration-fast) var(--ease-default);
}

.chat-header__close:hover {
    background-color: var(--color-border);
    color: var(--color-text);
}

.chat-header__close:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.chat-messages {
    flex: 1;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.chat-message {
    max-width: 85%;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    word-wrap: break-word;
}

.chat-message--user {
    align-self: flex-end;
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
    border-bottom-right-radius: var(--radius-sm);
}

.chat-message--assistant {
    align-self: flex-start;
    background-color: var(--color-border-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-message--system {
    align-self: center;
    max-width: 90%;
    background-color: transparent;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-style: italic;
    text-align: center;
    padding: var(--space-2) var(--space-3);
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-3);
    border-top: 1px solid var(--color-border);
    background-color: var(--color-surface);
}

.chat-input-area__input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-text);
    background-color: var(--color-background);
    transition: border-color var(--duration-fast) var(--ease-default),
                box-shadow var(--duration-fast) var(--ease-default);
}

.chat-input-area__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(160, 80, 57, 0.15);
}

.chat-input-area__input:disabled {
    background-color: var(--color-border-light);
    color: var(--color-text-subtle);
    cursor: not-allowed;
}

.chat-input-area__input::placeholder {
    color: var(--color-text-subtle);
}

.chat-input-area__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-default),
                color var(--duration-fast) var(--ease-default),
                transform var(--duration-fast) var(--ease-default);
}

.chat-input-area__btn .material-symbols-outlined {
    font-size: 20px;
}

.chat-input-area__btn--voice {
    background-color: var(--color-border-light);
    color: var(--color-text-muted);
}

.chat-input-area__btn--voice:hover {
    background-color: var(--color-border);
    color: var(--color-text);
}

.chat-input-area__btn--voice:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.chat-input-area__btn--voice.chat-input-area__btn--active {
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
}

.chat-input-area__btn--voice.chat-input-area__btn--active:hover {
    background-color: var(--color-accent-dark);
}

.chat-input-area__btn--send {
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
}

.chat-input-area__btn--send:hover {
    background-color: var(--color-secondary-light);
    transform: scale(1.05);
}

.chat-input-area__btn--send:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========== CHAT UI STATES ========== */

.chat-state-listening .chat-input-area__btn--voice {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    box-shadow: 0 0 0 4px rgba(52, 153, 205, 0.3);
    animation: chat-listening-pulse 1.5s ease-in-out infinite;
}

@keyframes chat-listening-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(52, 153, 205, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(52, 153, 205, 0.15);
    }
}

.chat-state-processing .chat-input-area__btn--send {
    position: relative;
    color: transparent;
}

.chat-state-processing .chat-input-area__btn--send::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-text-inverse);
    border-radius: var(--radius-full);
    animation: chat-processing-spin 0.8s linear infinite;
}

@keyframes chat-processing-spin {
    to {
        transform: rotate(360deg);
    }
}

.chat-state-processing .chat-input-area__input {
    opacity: 0.7;
    pointer-events: none;
}

.chat-state-speaking .chat-input-area__btn--voice {
    background-color: var(--color-success);
    color: var(--color-text-inverse);
    animation: chat-speaking-wave 0.6s ease-in-out infinite;
}

@keyframes chat-speaking-wave {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.chat-state-error .chat-panel {
    border-color: var(--color-error);
}

.chat-state-error .chat-input-area__btn--voice {
    background-color: var(--color-error);
    color: var(--color-text-inverse);
    animation: chat-error-shake 0.5s ease-in-out;
}

@keyframes chat-error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-4px);
    }
    40%, 80% {
        transform: translateX(4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-panel {
        animation: none;
    }

    .chat-state-listening .chat-input-area__btn--voice,
    .chat-state-processing .chat-input-area__btn--send::after,
    .chat-state-speaking .chat-input-area__btn--voice,
    .chat-state-error .chat-input-area__btn--voice {
        animation: none;
    }

    .chat-state-listening .chat-input-area__btn--voice {
        box-shadow: 0 0 0 4px rgba(52, 153, 205, 0.4);
    }
}

/* ========== VOICE MODAL ========== */

.voice-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    animation: fadeIn var(--duration-normal) var(--ease-default);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.voice-modal-container {
    background: var(--color-surface);
    width: 100%;
    max-width: 500px;
    height: 700px;
    max-height: 90vh;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (max-width: 640px) {
    .voice-modal-overlay {
        padding: 0;
    }

    .voice-modal-container {
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

.voice-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-8) var(--space-8) var(--space-4);
    flex-shrink: 0;
}

.voice-modal-avatar {
    width: var(--space-12);
    height: var(--space-12);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-inverse);
}

.voice-modal-avatar .material-symbols-outlined {
    font-size: var(--text-2xl);
}

.voice-modal-close {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-1) var(--space-2);
    margin-top: var(--space-1);
    transition: color var(--duration-normal) var(--ease-default);
}

.voice-modal-close:hover {
    color: var(--color-text);
    text-decoration: underline;
}

.voice-modal-close:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.voice-modal-content {
    flex: 1;
    padding: 0 var(--space-8) var(--space-8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.voice-modal-consent {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    flex: 1;
}

.voice-modal-consent-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    line-height: var(--leading-tight);
    margin-top: var(--space-4);
}

.voice-modal-consent-text {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.voice-modal-consent-text p {
    margin: 0;
}

.voice-modal-consent-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-text-inverse);
    border: none;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform var(--duration-normal) var(--ease-default),
                box-shadow var(--duration-normal) var(--ease-default);
    margin-top: auto;
}

.voice-modal-consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(160, 80, 57, 0.3);
}

.voice-modal-consent-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.voice-modal-consent-btn .material-symbols-outlined {
    font-size: var(--text-2xl);
}

.voice-modal-consent-note {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    text-align: center;
    margin: 0;
}

.voice-modal-voice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: var(--space-6);
    padding: var(--space-8) 0;
}

.voice-modal-waveform {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--space-1);
    height: var(--space-12);
}

.waveform-bar {
    width: 6px;
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-default);
    transform-origin: bottom;
    background: var(--color-border);
    height: var(--space-3);
}

.waveform-bar.idle {
    background: var(--color-border);
    height: var(--space-3);
}

.waveform-bar.muted {
    background: var(--color-error);
    height: var(--space-3);
}

.waveform-bar.listening {
    background: var(--color-accent);
    animation: waveform 0.6s ease-in-out infinite;
}

.waveform-bar.speaking {
    background: var(--color-accent);
    height: var(--space-8);
    animation: waveform 0.4s ease-in-out infinite;
}

.waveform-bar[data-bar="1"] { animation-delay: 0s; }
.waveform-bar[data-bar="2"] { animation-delay: 0.1s; }
.waveform-bar[data-bar="3"] { animation-delay: 0.2s; }
.waveform-bar[data-bar="4"] { animation-delay: 0.3s; }
.waveform-bar[data-bar="5"] { animation-delay: 0.4s; }

@keyframes waveform {
    0%, 100% { height: var(--space-3); }
    50% { height: var(--space-8); }
}

.waveform-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waveform-spinner .material-symbols-outlined {
    font-size: var(--text-4xl);
    color: var(--color-accent);
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.voice-modal-status {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.voice-modal-status-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin: 0;
}

.voice-modal-status-hint {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.voice-modal-transcript {
    width: 100%;
    background: var(--color-background);
    padding: var(--space-4);
    margin-top: var(--space-4);
    max-height: 128px;
    overflow-y: auto;
    border-radius: var(--radius-md);
}

.transcript-entry {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: var(--space-2) 0;
}

.transcript-entry + .transcript-entry {
    border-top: 1px solid var(--color-border);
}

.transcript-label {
    font-weight: var(--font-semibold);
    color: var(--color-accent);
    margin-right: var(--space-2);
}

.transcript-user .transcript-label {
    color: var(--color-text);
}

.voice-modal-controls {
    margin-top: auto;
    padding-top: var(--space-4);
}

.voice-modal-mute {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--color-border-light);
    border: 2px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-default);
}

.voice-modal-mute:hover {
    background: var(--color-border);
}

.voice-modal-mute.muted {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: var(--color-error);
}

.voice-modal-mute .material-symbols-outlined {
    font-size: var(--text-2xl);
}

.voice-modal-mute:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========== CARD COMPONENTS ========== */

/* Default card - for testimonials, FAQ, program cards */
.card {
    padding: var(--space-6);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-md);
}

.dark .card {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}

/* Large card - for feature/value prop cards */
.card-lg {
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-md);
    transition: border-color var(--duration-normal) var(--ease-default);
}

.card-lg:hover {
    border-color: rgba(26, 127, 168, 0.3);
}

.dark .card-lg {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}

/* ========== SECTION LABELS ========== */

.label-section {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
}

/* ========== UTILITIES ========== */

.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;
}

.value-section-title {
    font-weight: var(--font-bold);
    text-shadow: 0 2px 16px rgba(16, 24, 32, 0.18);
}

/* Hero title - improved contrast on gradient backgrounds */
.hero-title {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.glow-teal {
    box-shadow: 0 0 30px rgba(52, 153, 205, 0.15);
}

.glow-teal-strong {
    box-shadow: 0 0 40px rgba(52, 153, 205, 0.25);
}

.text-glow-teal {
    text-shadow: 0 0 20px rgba(52, 153, 205, 0.3);
}

.accent-italic {
    font-style: italic;
    font-family: var(--font-serif);
}

/* ========== MOBILE MENU ========== */

#mobile-menu {
    animation: mobile-menu-slide-down var(--duration-normal) var(--ease-default);
}

@keyframes mobile-menu-slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu.hidden {
    display: none;
}

/* Ensure proper focus styles for menu links */
#mobile-menu a:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: -2px;
}

/* ========== MOBILE/TABLET LOGO BAR - 2 ROWS CENTERED ========== */

@media (max-width: 1023px) {
    .partners-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4) var(--space-6);
        padding-bottom: var(--space-2);
    }

    .partners-logo {
        flex: 0 0 calc(33.333% - var(--space-6));
        max-width: 120px;
    }

    .partners-logo img {
        height: clamp(32px, 7vw, 44px);
    }
}
