/* websites/mwc/css/mwc-custom.css */

/* ── Brand colour overrides ── */
:root {
    --brand-primary: #3a8a8c;
    --brand-primary-light: #5caaa8;
    --brand-primary-subtle: #eaf4f4;
    --brand-primary-hover: #2d6e70;
    --brand-accent: #a390cc;
    --brand-accent-light: #e8e1f2;

    /* MWC-specific surface tint (hero background) */
    --mwc-hero-bg: #f7fbfb;
}

/* ── Hero section ── */
.mwc-hero {
    background: var(--mwc-hero-bg);
    padding-top: calc(64px + var(--space-5xl));
    padding-bottom: var(--space-5xl);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border-subtle);
}

.mwc-hero::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -15%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(58, 138, 140, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.mwc-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(163, 144, 204, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.mwc-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mwc-hero__logo {
    height: 64px;
    width: auto;
    margin-bottom: var(--space-xl);
}

.mwc-hero__inner .section__label {
    margin-bottom: var(--space-md);
}

.mwc-hero__heading {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 400;
    color: var(--color-on-surface);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-lg);
}

.mwc-hero__heading em {
    color: var(--brand-primary);
    font-style: italic;
}

.mwc-hero__description {
    font-size: var(--text-lg);
    color: var(--color-on-surface-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: var(--leading-normal);
}

.mwc-hero__actions {
    display: flex;
    flex-direction: row;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Why section ── */
.why-content p {
    font-size: var(--text-base);
    color: var(--color-on-surface-secondary);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-md);
}

.why-content p:last-of-type {
    margin-bottom: 0;
}

.why-quote {
    margin: var(--space-2xl) 0 0;
    padding: var(--space-xl) var(--space-2xl);
    border-left: 4px solid var(--brand-accent);
    background: var(--brand-accent-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.why-content .why-quote p {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--color-on-surface);
    font-style: italic;
    line-height: var(--leading-snug);
    margin-bottom: var(--space-sm);
}

.why-quote cite {
    font-size: var(--text-sm);
    color: var(--color-on-surface-tertiary);
    font-style: normal;
    font-weight: 500;
}

/* ── Mission card ── */
.mission-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--brand-primary-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-3xl);
}

.mission-card__text {
    font-size: var(--text-base);
    color: var(--color-on-surface-secondary);
    line-height: var(--leading-normal);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.mission-card__text:last-of-type {
    margin-bottom: var(--space-lg);
}

.mission-card__version {
    font-size: var(--text-xs);
    color: var(--color-on-surface-tertiary);
    text-align: right;
    font-style: normal;
}

/* ── Event card ── */
.event-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-2xl);
    align-items: start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.event-card__image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

.event-card__date {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-sm);
}

.event-card__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--color-on-surface);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-md);
}

.event-card__description {
    font-size: var(--text-base);
    color: var(--color-on-surface-secondary);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-lg);
}

.event-card__details {
    margin-bottom: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.event-card__details summary {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--brand-primary);
    cursor: pointer;
    user-select: none;
    background: var(--brand-primary-subtle);
    transition: background var(--duration-fast) var(--ease-out);
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.event-card__details summary::-webkit-details-marker {
    display: none;
}

.event-card__details summary::before {
    content: "▶";
    font-size: 0.65em;
    transition: transform var(--duration-fast) var(--ease-out);
    display: inline-block;
}

.event-card__details[open] summary::before {
    transform: rotate(90deg);
}

.event-card__details summary:hover {
    background: var(--brand-primary-subtle);
    color: var(--brand-primary-hover);
}

.event-card__details p {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
    color: var(--color-on-surface-secondary);
    line-height: var(--leading-normal);
    margin: 0;
    border-top: 1px solid var(--color-border);
}

.event-card__details p + p {
    border-top: none;
    padding-top: 0;
}

.event-card__actions {
    display: flex;
    flex-direction: row;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
}

.event-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    font-size: var(--text-sm);
    color: var(--color-on-surface-tertiary);
    margin-top: var(--space-2xl);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.event-footnote img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.event-footnote p {
    margin: 0;
    text-align: left;
}

/* ── Interest groups grid ── */
.interest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.interest-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    text-decoration: none;
    transition: box-shadow var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out);
    position: relative;
}

.interest-card::after {
    content: "→";
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: var(--text-sm);
    color: var(--color-on-surface-tertiary);
    transition: color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}

.interest-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: var(--brand-primary-light);
}

.interest-card:hover::after {
    color: var(--brand-primary);
    transform: translateX(2px);
}

.interest-card__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-on-surface);
    margin-bottom: var(--space-xs);
    padding-right: var(--space-xl);
}

.interest-card__text {
    font-size: var(--text-sm);
    color: var(--color-on-surface-secondary);
    line-height: var(--leading-normal);
}

.interest-footnote {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-on-surface-secondary);
}

.interest-footnote a {
    color: var(--brand-primary);
    font-weight: 500;
    text-decoration: none;
}

.interest-footnote a:hover {
    text-decoration: underline;
}

/* ── Hosts list ── */
.hosts-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md) var(--space-2xl);
    margin: 0 auto;
    padding: 0;
    max-width: 640px;
}

.hosts-list li {
    font-size: var(--text-base);
    color: var(--color-on-surface);
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.hosts-list li span {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-on-surface-tertiary);
}

/* ── Join card ── */
.join-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-3xl);
    box-shadow: var(--shadow-md);
}

.join-card p {
    font-size: var(--text-base);
    color: var(--color-on-surface-secondary);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-md);
}

.join-card__actions {
    margin-top: var(--space-xl);
}

/* ── Support section ── */
.support-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--brand-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-3xl);
    box-shadow: var(--shadow-md);
}

.support-card p {
    font-size: var(--text-base);
    color: var(--color-on-surface-secondary);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-md);
}

.support-card p:last-of-type {
    margin-bottom: 0;
}

.support-card__actions {
    margin-top: var(--space-xl);
}

/* ── Section divider ── */
.divider {
    border: none;
    border-top: 1px solid var(--color-border-subtle);
    margin: 0;
}

/* ── Simplified footer ── */
.footer__upper--simple {
    grid-template-columns: 2fr 1fr;
}

.footer__brand-text {
    font-size: var(--text-sm);
    color: var(--color-on-surface-tertiary);
    line-height: var(--leading-normal);
    margin-top: var(--space-md);
    max-width: 340px;
}

/* ── Responsive: 1024px ── */
@media (max-width: 1024px) {
    .interest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mwc-hero__heading {
        font-size: var(--text-4xl);
    }
}

/* ── Responsive: 768px ── */
@media (max-width: 768px) {
    .mwc-hero {
        padding-top: calc(64px + var(--space-3xl));
        padding-bottom: var(--space-3xl);
    }

    .mwc-hero__heading {
        font-size: var(--text-3xl);
    }

    .mwc-hero__description {
        font-size: var(--text-base);
    }

    .mwc-hero__logo {
        height: 52px;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-card__image img {
        max-width: 180px;
        margin: 0 auto;
    }

    .mission-card {
        padding: var(--space-xl);
    }

    .join-card,
    .support-card {
        padding: var(--space-xl);
    }

    .footer__upper--simple {
        grid-template-columns: 1fr;
    }

    .interest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-footnote {
        flex-direction: column;
        text-align: center;
    }

    .event-footnote p {
        text-align: center;
    }
}

/* ── Responsive: 480px ── */
@media (max-width: 480px) {
    .mwc-hero__heading {
        font-size: var(--text-2xl);
    }

    .mwc-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .interest-grid {
        grid-template-columns: 1fr;
    }

    .event-card__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .why-quote {
        padding: var(--space-lg);
    }
}
