/* New homepage ([ogp_home]). */
.ogp-home { --hm-ink: var(--wp--preset--color--contrast, #1f2d1f); --hm-green: var(--ogp-green, #5a8f3c); }
.ogp-home p:empty { display: none; }
.wp-site-blocks > .ogp-home-main { margin-block-start: 0 !important; }
.ogp-hm-inner { max-width: 1300px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.ogp-hm-sec { padding: clamp(3rem, 6vw, 5rem) 0; }
.ogp-hm-alt { background: #f1ede3; }
.ogp-hm-5 { color: var(--hm-green); }
.ogp-hm-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7d5f;
    margin-bottom: 0.6rem;
}
.ogp-hm-head { max-width: 760px; margin: 0 0 2rem; }
.ogp-hm-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.1; margin: 0 0 0.75rem; font-weight: 600; text-transform: none; }
.ogp-hm-head p { color: #4a4a42; font-size: 1.05rem; line-height: 1.6; margin: 0; }
.ogp-home .ogp-prod-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; }

/* 1 — Hero */
.ogp-hm-hero {
    position: relative;
    min-height: min(78vh, 720px);
    display: flex;
    align-items: center;
    background: #3f5139 center / cover no-repeat;
    color: #fff;
}
.ogp-hm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Dark only behind the text (left), the photo stays bright on the right. */
    background: linear-gradient(90deg, rgba(18, 24, 16, 0.72) 0%, rgba(18, 24, 16, 0.42) 38%, rgba(18, 24, 16, 0.05) 68%, rgba(18, 24, 16, 0) 100%);
}
.ogp-hm-hero { background-position: center 62%; }
.ogp-hm-hero-inner { position: relative; width: 100%; padding-top: 3rem; padding-bottom: 3rem; }
.ogp-hm-hero .ogp-hm-eyebrow { color: rgba(255, 255, 255, 0.85); }
.ogp-hm-hero .ogp-hm-5 { color: #9fd17a; }
.ogp-hm-hero h1 {
    font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5rem);
    line-height: 1;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: #fff;
    text-transform: none;
}
.ogp-hm-lead { font-size: clamp(1rem, 0.95rem + 0.35vw, 1.25rem); line-height: 1.55; max-width: 56ch; margin: 0 0 1.75rem; color: rgba(255, 255, 255, 0.92); }
.ogp-hm-hero .ogp-hero-btn:not(.ogp-hero-btn-ghost) { background: #fff; color: var(--hm-ink) !important; }
.ogp-hm-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; padding: 0; margin: 2.25rem 0 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); }
.ogp-hm-facts strong { font-size: 1.5rem; color: #fff; margin-right: 0.25rem; }

/* 2 — Five areas */
.ogp-hm-areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.ogp-hm-area {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 3 / 4.4;
    border-radius: 14px;
    overflow: hidden;
    background: #6f8564 center / cover no-repeat;
    color: #fff !important;
    text-decoration: none;
    isolation: isolate;
}
.ogp-hm-area::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(14, 20, 12, 0.85) 100%);
    transition: background 0.25s ease;
}
.ogp-hm-area:hover::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 10%, rgba(14, 20, 12, 0.9) 100%); }
.ogp-hm-num {
    position: absolute;
    top: 0.6rem;
    left: 1rem;
    font-family: var(--wp--preset--font-family--heading, Georgia, serif);
    font-size: clamp(3rem, 2rem + 3vw, 5rem);
    line-height: 1;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.ogp-hm-area-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.1rem 1.2rem; }
.ogp-hm-area-body strong { font-size: 1.3rem; font-weight: 600; }
.ogp-hm-area-body span { font-size: 0.86rem; line-height: 1.45; color: rgba(255, 255, 255, 0.88); }
.ogp-hm-area-body em { font-style: normal; font-size: 0.78rem; font-weight: 600; color: #cfe6bd; margin-top: 0.25rem; }
@media (max-width: 1100px) {
    .ogp-hm-areas { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(240px, 46%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
    .ogp-hm-area { scroll-snap-align: start; }
}
@media (max-width: 600px) { .ogp-hm-areas { grid-auto-columns: 78%; } }

/* Generic portals (site profile) */
.ogp-hm-hero--generic { background-color: #22232e; background-image: radial-gradient(circle at 75% 30%, #3b3f6b 0%, #22232e 60%); }
.ogp-hm-area.is-noimg { background: linear-gradient(160deg, #3b3f6b, #1c1d26); }
.ogp-hm-genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem 2rem; }
.ogp-hm-genre-col h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.75rem; text-transform: none; }
.ogp-hm-genre-col h3 a { color: inherit; text-decoration: none; }

/* 3 — Steps */
.ogp-hm-steps-sec { background: #f1ede3; }
.ogp-hm-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding: 0; margin: 0; counter-reset: none; }
.ogp-hm-steps li { background: #fff; border-radius: 14px; padding: 1.75rem 1.5rem; position: relative; }
.ogp-hm-steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: var(--hm-ink);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}
.ogp-hm-steps h3 { font-size: 1.25rem; margin: 0 0 0.5rem; font-weight: 600; }
.ogp-hm-steps p { color: #4a4a42; line-height: 1.55; margin: 0 0 1rem; }
.ogp-hm-steps a { color: var(--hm-ink); font-weight: 600; }
@media (max-width: 860px) { .ogp-hm-steps { grid-template-columns: 1fr; } }

/* 4 — Planner band */
.ogp-hm-planner { background: var(--hm-ink); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; }
.ogp-hm-planner-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ogp-hm-planner h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.1; margin: 0 0 1rem; font-weight: 600; text-transform: none; }
.ogp-hm-planner p { color: rgba(255, 255, 255, 0.85); line-height: 1.6; margin: 0 0 1.5rem; font-size: 1.05rem; }
.ogp-hm-planner .ogp-hm-eyebrow { color: #9fd17a; }
.ogp-hm-planner .ogp-hero-btn { background: #fff; color: var(--hm-ink) !important; }
.ogp-hm-plan { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
/* Planner slider */
.ogp-hm-slider { position: relative; min-width: 0; }
.ogp-hm-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    background: #f3f0e8;
}
.ogp-hm-slides::-webkit-scrollbar { display: none; }
.ogp-hm-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; position: relative; }
.ogp-hm-slide a { display: block; aspect-ratio: 16 / 11; background: #f3f0e8; }
.ogp-hm-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ogp-hm-slide figcaption {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    background: rgba(20, 28, 18, 0.82);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
}
.ogp-hm-slider-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2d1f;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.ogp-hm-slider-btn.is-prev { left: -1.1rem; }
.ogp-hm-slider-btn.is-next { right: -1.1rem; }
.ogp-hm-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
.ogp-hm-dots button {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}
.ogp-hm-dots button.is-active { width: 1.6rem; background: #9fd17a; }
@media (max-width: 860px) {
    .ogp-hm-slider-btn.is-prev { left: 0.4rem; }
    .ogp-hm-slider-btn.is-next { right: 0.4rem; }
}
.ogp-hm-plan-shot { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.ogp-hm-plan-shot:hover { transform: translateY(-3px); }
.ogp-hm-plan-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .ogp-hm-planner-inner { grid-template-columns: 1fr; } }

/* 5 — Season */
.ogp-hm-season { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ogp-hm-tip {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem;
    border: 1px solid #e5e0d5;
    border-radius: 14px;
    background: #fff;
    color: #2b2b24 !important;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.ogp-hm-tip:hover { border-color: var(--hm-ink); transform: translateY(-2px); }
.ogp-hm-tip-n { font-family: var(--wp--preset--font-family--heading, Georgia, serif); font-size: 2rem; color: var(--hm-green); line-height: 1; }
.ogp-hm-tip strong { font-size: 1.1rem; }
.ogp-hm-tip span:last-child { color: #4a4a42; line-height: 1.5; font-size: 0.92rem; }
@media (max-width: 860px) { .ogp-hm-season { grid-template-columns: 1fr; } }

/* 7 — Inspiration wall */
/* 4×3 cells, 2 tall + 8 small tiles; "dense" back-fills any gap. */
.ogp-hm-wall { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 0.75rem; }
.ogp-hm-wall-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #e5e0d5 center / cover no-repeat;
    text-decoration: none;
}
.ogp-hm-wall-item.is-tall { grid-row: span 2; }
.ogp-hm-wall-item span {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.5rem 0.8rem 0.6rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    opacity: 0;
    transition: opacity 0.2s ease;
}
.ogp-hm-wall-item:hover span { opacity: 1; }
@media (max-width: 860px) { .ogp-hm-wall { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .ogp-hm-wall-item span { opacity: 1; } }

/* 8 — Why */
.ogp-hm-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ogp-hm-why h3 { font-size: 1.1rem; margin: 0 0 0.5rem; font-weight: 600; }
.ogp-hm-why h3::before { content: "✓"; color: var(--hm-green); margin-right: 0.45rem; }
.ogp-hm-why p { color: #4a4a42; line-height: 1.55; margin: 0; font-size: 0.95rem; }
.ogp-hm-transparency { margin: 2rem 0 0; font-size: 0.82rem; color: #6b6b60; max-width: 80ch; }
@media (max-width: 960px) { .ogp-hm-why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ogp-hm-why { grid-template-columns: 1fr; } }
