/*
Theme Name: FOMP Main Navigation
Theme URI: https://example.com/
Author: FOMP
Description: Interactive main navigation for the FOMP Mere website.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fomp-main-navigation
*/
:root {
    --fomp-ink: #153b3a;
    --fomp-paper: #f4f0e7;
    --fomp-accent: #b8dca8;
    --fomp-shadow: 0 18px 40px rgba(8, 31, 30, .22);
    --fomp-radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--fomp-paper);
    color: var(--fomp-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
}

button,
a {
    font: inherit;
    touch-action: manipulation;
}

a {
    color: inherit;
}

.fomp-page {
    min-height: 100vh;
    padding: clamp(.75rem, 2vw, 1.5rem);
    background: radial-gradient(circle at 88% 8%, rgba(213, 235, 179, .5), transparent 25rem), linear-gradient(145deg, #173e3b, #245b54 55%, #8ebfae);
}

.fomp-shell {
    width: min(100%, 1160px);
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 32px;
    background: rgba(244, 240, 231, .09);
    box-shadow: 0 30px 80px rgba(5, 24, 23, .2);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.fomp-home-topline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    color: #d9eee2;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fomp-location {
    opacity: .75;
}

.fomp-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 clamp(1.5rem, 4vw, 3rem);
    color: #fff;
}

.fomp-kicker {
    margin: 0 0 .35rem;
    color: var(--fomp-accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.fomp-title {
    max-width: 9ch;
    margin: 0;
    font-size: clamp(2.8rem, 8vw, 6.8rem);
    line-height: .88;
    letter-spacing: -.075em;
}

.fomp-hero-copy {
    max-width: 27rem;
}

.fomp-hero-logo {
    display: block;
    width: 100%;
    max-width: 25rem;
    height: auto !important;
    aspect-ratio: 1419 / 927;
    margin: 0 0 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 26px;
    box-shadow: 0 24px 50px rgba(5, 24, 23, .28);
    object-fit: cover;
    object-position: center 52%;
}

.fomp-intro-copy {
    max-width: 25rem;
    margin: 0;
    color: #e1eee6;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.5;
}

.fomp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.5rem;
}

.fomp-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .75rem 1.1rem;
    border: 1px solid var(--fomp-accent);
    border-radius: 999px;
    background: var(--fomp-accent);
    color: var(--fomp-ink);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 750;
}

.fomp-hero-button:hover,
.fomp-hero-button:focus-visible {
    background: #d9f0c9;
}

.fomp-hero-button--quiet {
    border-color: rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
}

.fomp-home-section {
    width: min(100%, 1160px);
    margin: clamp(3rem, 8vw, 6rem) auto 0;
}

.fomp-home-section--explore {
    padding: clamp(1.25rem, 4vw, 3.5rem);
    border-radius: 32px;
    background: rgba(16, 44, 43, .55);
}

.fomp-section-heading {
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    text-align: center;
}

.fomp-section-heading .fomp-kicker {
    color: #d2edbd;
}

.fomp-section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: .98;
    letter-spacing: -.05em;
}

.fomp-section-heading p:last-child {
    margin: .8rem auto 0;
    color: #e1eee6;
    line-height: 1.55;
}

.fomp-home-section>.fomp-live-stream,
.fomp-home-section>.fomp-setup-quiz {
    margin-top: 0;
}

.fomp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.75rem, 1.8vw, 1.25rem);
}

.fomp-card {
    display: flex;
    align-items: center;
    min-height: 162px;
    gap: .9rem;
    padding: clamp(1rem, 2vw, 1.3rem);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--fomp-radius);
    color: #064480;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--fomp-shadow);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.fomp-card:hover,
.fomp-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 24px 42px rgba(8, 31, 30, .3);
    filter: saturate(1.12) brightness(1.03);
}

.fomp-card:focus-visible {
    outline: 4px solid #fff;
    outline-offset: 4px;
}

.fomp-card[data-tone="pink"] {
    background: #f4dfe8;
}

.fomp-card[data-tone="blue"] {
    background: #e3f0fb;
}

.fomp-card[data-tone="green"] {
    background: #dff5c2;
}

.fomp-card[data-tone="cream"] {
    background: #fff6bd;
}

.fomp-card[data-tone="peach"] {
    background: #fff0e3;
}

.fomp-card[data-tone="gray"] {
    background: #e8e8e8;
}

.fomp-icon,
.fomp-card-image {
    display: grid;
    flex: 0 0 4.5rem;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid rgba(7, 61, 123, .24);
    border-radius: 16px;
    background: rgba(255, 255, 255, .55);
    font-size: 2.5rem;
    line-height: 1;
    object-fit: cover;
}

.fomp-card-title {
    display: block;
    margin: 0 0 .55rem;
    font-size: .9rem;
    font-weight: 750;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.fomp-card-description {
    display: block;
    margin: 0;
    font-size: .88rem;
    line-height: 1.5;
}

.fomp-card small {
    display: block;
    margin-top: .55rem;
    font-size: .75rem;
    opacity: .7;
}

.fomp-panel[hidden] {
    display: none;
}

.fomp-panel {
    position: fixed;
    z-index: 10;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(5, 26, 45, .62);
}

.fomp-panel-inner {
    width: min(100%, 540px);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border: 1px solid #b7d7cb;
    border-radius: 24px;
    background: var(--fomp-paper);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
}

.fomp-panel-close {
    float: right;
    border: 0;
    background: transparent;
    color: var(--fomp-ink);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.fomp-panel-kicker {
    margin: 0 0 .4rem;
    color: #2d786f;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fomp-panel h2 {
    margin: 0 0 .75rem;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.fomp-panel p {
    margin: 0 0 1.25rem;
    line-height: 1.65;
}

.fomp-panel-link {
    display: inline-block;
    padding: .75rem 1rem;
    border-radius: 999px;
    background: var(--fomp-ink);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.fomp-content-page {
    padding-top: clamp(2rem, 6vw, 5rem);
    padding-bottom: clamp(2rem, 6vw, 5rem);
}

.fomp-content-shell {
    width: min(100%, 800px);
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 4rem);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 30px;
    background: rgba(244, 240, 231, .96);
    color: var(--fomp-ink);
    box-shadow: 0 24px 50px rgba(5, 24, 23, .22);
}

.fomp-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 3rem;
    color: #286c63;
    font-weight: 700;
    text-decoration: none;
}

.fomp-content-title {
    margin: 0 0 2rem;
    color: var(--fomp-ink);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: .9;
    letter-spacing: -.07em;
}

.fomp-content-body {
    font-size: 1.05rem;
    line-height: 1.7;
}

.fomp-content-body h2 {
    margin-top: 2.5rem;
    color: #286c63;
    font-size: 1.35rem;
}

.fomp-content-body h3 {
    margin-top: 2rem;
    color: var(--fomp-ink);
    font-size: 1.1rem;
}

.fomp-content-image {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 0 0 2rem;
    border-radius: 20px;
    object-fit: cover;
}

.fomp-admin-only-notice {
    margin: 0 0 2rem;
    padding: .75rem 1rem;
    border: 1px dashed #b98a2e;
    border-radius: 12px;
    background: #fdf3dd;
    color: #6b4d12;
    font-size: .85rem;
}

.fomp-section-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #c7ddd2;
}

.fomp-section-pager a {
    color: #286c63;
    font-weight: 700;
    text-decoration: none;
}

.fomp-section-pager a:hover,
.fomp-section-pager a:focus-visible {
    text-decoration: underline;
}

.fomp-page-lead {
    font-size: 1.3rem;
    line-height: 1.5;
}

.fomp-editable-outline {
    margin-top: 3rem;
    padding: 1.25rem;
    border: 1px solid #c7ddd2;
    border-radius: 16px;
    background: #e9f2e9;
    font-size: .9rem;
}

.fomp-editable-outline h3 {
    margin-top: 0;
    color: #286c63;
}

.fomp-editable-outline p {
    margin: .45rem 0 1rem;
}

.fomp-editable-outline li {
    margin: .35rem 0;
}

.fomp-content-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #c7ddd2;
}

.fomp-content-block h3 {
    margin: 0 0 .5rem;
    color: #286c63;
    font-size: 1.2rem;
}

.fomp-placeholder {
    margin: 0;
    padding: 1rem;
    border-radius: 12px;
    background: #f0f5ed;
    color: #59736e;
    font-style: italic;
}

.fomp-page-gallery {
    margin-top: 2.5rem;
}

@media (max-width:900px) {
    .fomp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:760px) {

    .fomp-home-topline,
    .fomp-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .fomp-home-topline {
        margin-bottom: 3rem;
    }

    .fomp-intro-copy {
        margin-top: 1rem;
    }

    .fomp-hero-logo {
        margin-left: 0;
    }

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

@media (max-width:480px) {
    .fomp-page {
        padding: .5rem;
    }

    .fomp-shell {
        padding: .9rem;
        border-radius: 24px;
    }

    .fomp-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .fomp-card {
        min-height: 130px;
    }

    .fomp-title {
        max-width: 10ch;
    }

    .fomp-home-section--explore {
        padding: .9rem;
        border-radius: 24px;
    }

    .fomp-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fomp-hero-button {
        text-align: center;
    }
}

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

    .fomp-card {
        transition: none;
    }
}
