/*
Theme Name: GeneratePress Child
Template: generatepress
*/

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
    --primary:   #A74D4A;
    --text:      #2d2d2d;
    --link:      #A74D4A;
    --max-width: clamp(580px, 56vw, 880px);
    --max-page-width: 1900px;
}

/* ── Base overrides ────────────────────────────────── */
body {
    /* font-family: 'acumin-pro', system-ui, -apple-system, Arial, sans-serif; */
    background: #ffffff;
}

/* h1, h2, h3, h4, h5, h6 {
    font-family: 'acumin-pro', system-ui, Arial, sans-serif;
} */

a { color: var(--link); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #EAE6E1 !important;
}

body.home       .site-header { background: #A74D4A !important; }
body.page-id-9  .site-header { background: #818B7E !important; }
body.page-id-12 .site-header { background: #F5F5F5 !important; }
body.page-id-14 .site-header { background: #EAE6E1 !important; }
body.page-id-18 .site-header { background: #A74D4A !important; }
body.page-id-16 .site-header { background: #A74D4A !important; }
body.page-id-20 .site-header { background: #818B7E !important; }
body.page-id-22 .site-header { background: #F5F5F5 !important; }

.site-header .inside-header {
    width: 100%;
    max-width: 100%;
    
    padding: 2.1vw 10vw;
    /* display: flex !important; */
    /* align-items: center !important; */
    /* justify-content: space-between !important; */
    /* flex-wrap: nowrap !important; */
    /* gap: 2em; */
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.main-navigation { background: transparent; }

#site-navigation ul li > a,
.main-navigation ul li a {
    /* font-family: 'acumin-pro', system-ui, Arial, sans-serif !important; */
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 2;
    white-space: nowrap;
    transition: opacity 0.15s;
    color: var(--text);
}

/* White nav text on dark hero pages */
body.jfo-hero-light #site-navigation ul li a,
body.jfo-hero-light .main-navigation ul li a,
body.jfo-hero-light p.main-title a { color: #fff !important; }

/* Hover: fade */
#site-navigation ul li a:hover,
.main-navigation ul li a:hover { opacity: 0.7; }
body.jfo-hero-light #site-navigation ul li a:hover,
body.jfo-hero-light .main-navigation ul li a:hover { opacity: 0.7; }

/* Current page underlined */
#site-navigation ul li.current-menu-item > a,
#site-navigation ul li.current_page_item > a,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 1px;
}

body.jfo-hero-light .menu-toggle,
body.jfo-hero-light button.menu-toggle { color: #fff; }

/* ── Hero section ────────────────────────────────────────────────────────── */
.jfo-hero { position: relative; overflow: hidden; }

.jfo-hero__inner {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.jfo-hero__title {
    /* font-family: 'acumin-pro', system-ui, Arial, sans-serif; */
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.05;
    margin: 0;
    text-transform: uppercase;
    max-width: 58%;
    flex: 0 0 auto;
}
.jfo-hero--light .jfo-hero__title { color: #fff; }
.jfo-hero--dark  .jfo-hero__title { color: #1a1a1a; }

.jfo-hero__blob {
    position: absolute;
    right: -10px;
    top: 0;
    bottom: 60px;
    width: 280px;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}
.jfo-hero__blob img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

/* Home: marquee */
.jfo-hero--home { overflow: hidden; padding: 0.7em 0; min-height: 0; }

.jfo-hero--home .jfo-marquee-track {
    display: flex;
    width: max-content;
    animation: jfo-scroll 22s linear infinite;
}
.jfo-hero--home .jfo-marquee-track:hover { animation-play-state: paused; }

.jfo-marquee-item {
    white-space: nowrap;
    color: #fff;
    font-family: 'acumin-pro', Arial, sans-serif;
    font-size: 1.05em;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding-right: 2em;
    text-decoration: none;
}
.jfo-marquee-item:hover { opacity: 0.8; color: #fff; }

@keyframes jfo-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Wave ────────────────────────────────────────────────────────────────── */
.jfo-wave { position: relative; line-height: 0; margin-top: -1px; }
.jfo-wave > svg:last-child { display: block; width: 100%; height: 70px; }
.jfo-wave__stroke {
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 70px; z-index: 2; display: block;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.widget-area { display: none !important; }
.content-area { width: 100% !important; max-width: 100% !important; }
.entry-content { max-width: var(--max-width); width: calc(100% - 2rem); margin: 0 auto !important; }
.wp-block-cover__inner-container { max-width: var(--max-width); width: calc(100% - 2rem); margin: 0 auto; }

.inside-article {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Utility classes */
.rounded img { border-radius: 20px; }

/* Image captions */
figcaption, .wp-element-caption { font-style: italic; }

/* Blockquotes */
blockquote, .wp-block-quote {
    border-left: 4px solid var(--primary);
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.jfo-footer {
    background: #EAE6E1;
    padding: 3em 2em;
    margin-top: 4em;
}

.jfo-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5em;
}

.jfo-footer__sponsors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
}

.jfo-footer__sponsors img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.jfo-footer__profolk {
    display: flex;
    align-items: center;
    gap: 2em;
}

.jfo-footer__profolk img {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.jfo-footer__profolk address {
    font-style: normal;
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text);
}

.jfo-footer__legal {
    text-align: center;
    font-size: 0.9em;
}

.jfo-footer__legal a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .jfo-hero__blob { width: 200px; right: -5px; }
    .jfo-hero__title { max-width: 65%; }
}

@media (max-width: 768px) {

    /* .site-header .inside-header {
        height: auto;
        flex-wrap: wrap !important;
        padding: 0.6em 1em;
        gap: 0.5em;
    }

    .main-navigation { width: 100%; }
    #site-navigation ul { flex-wrap: wrap !important; }
    #site-navigation ul li > a,
    .main-navigation ul li a { font-size: 1em !important; padding: 0.3em 0.45em !important; } */

    #site-navigation ul li > a,
    .main-navigation ul li a { font-size: 1.2rem; line-height: 2.5; }

    .jfo-hero__inner { padding: 2rem 1rem 3rem; min-height: 220px; }
    .jfo-hero__blob { width: 160px; bottom: 40px; }
    .jfo-hero__title { max-width: 60%; }
}

@media (max-width: 480px) {
    .jfo-hero__inner { padding: 1.5rem 1rem 2.5rem; min-height: 180px; }
    .jfo-hero__blob { width: 120px; bottom: 30px; }
    .jfo-hero__title { max-width: 70%; font-size: 2rem; }
}
