:root {
    --bocaina-forest: #164f50;
    --bocaina-teal: #0d8f91;
    --bocaina-sky: #0b596f;
    --bocaina-orange: #e96b28;
    --bocaina-mist: #eef6f6;
}

.bocaina-page {
    background: #edf5f6;
}

.bocaina-page .history-stage {
    background-image:
        linear-gradient(rgba(238, 246, 246, 0.82), rgba(238, 246, 246, 0.94)),
        url("../images/bananal-illustrated-background-1200.webp");
}

.bocaina-hero {
    min-height: 290px;
    display: grid;
    align-items: end;
    background:
        linear-gradient(90deg, rgba(10, 55, 65, 0.94) 0%, rgba(10, 69, 77, 0.78) 47%, rgba(10, 69, 77, 0.18) 100%),
        url("../images/caminhos-bocaina/serra-bananal.webp") center 48% / cover no-repeat;
}

.bocaina-hero .coffee-hero-copy {
    max-width: 760px;
}

.bocaina-hero h1 {
    max-width: 720px;
    font-size: 40px;
}

.bocaina-page .chapter-nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.territory-grid,
.water-grid,
.route-options,
.safety-grid {
    display: grid;
    gap: 11px;
}

.territory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.territory-card {
    padding: 17px;
    background: #fff;
    border: 1px solid var(--coffee-line);
    border-radius: 7px;
}

.territory-card > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--bocaina-teal);
    border-radius: 50%;
}

.territory-card svg {
    width: 20px;
    height: 20px;
}

.territory-card h3 {
    margin: 11px 0 5px;
    color: var(--coffee-ink);
    font-size: 16px;
}

.territory-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.48;
}

.image-strip {
    margin: 19px 0 0;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 10px;
}

.image-strip figure,
.water-feature {
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--coffee-line);
    border-radius: 7px;
}

.image-strip img {
    width: 100%;
    height: 260px;
    display: block;
    object-fit: cover;
}

.water-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
    align-items: stretch;
}

.water-feature img {
    width: 100%;
    height: 100%;
    min-height: 370px;
    display: block;
    object-fit: cover;
}

.water-copy {
    display: grid;
    gap: 10px;
}

.water-copy article {
    padding: 15px;
    background: #fff;
    border: 1px solid var(--coffee-line);
    border-radius: 7px;
}

.water-copy h3,
.route-options h3,
.safety-grid h3 {
    margin: 0 0 5px;
    color: var(--coffee-ink);
    font-size: 15px;
}

.water-copy p,
.route-options p,
.safety-grid p {
    margin: 0;
    font-size: 11.8px;
    line-height: 1.48;
}

.distinction-note {
    margin-top: 18px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    background: #fff5e9;
    border: 1px solid #f1c997;
    border-radius: 7px;
}

.distinction-note > svg {
    width: 22px;
    height: 22px;
    padding: 7px;
    color: #fff;
    background: var(--bocaina-orange);
    border-radius: 50%;
    box-sizing: content-box;
}

.distinction-note strong {
    color: #6d4126;
    font-size: 13px;
}

.distinction-note p {
    margin: 3px 0 0;
    color: #78533b;
    font-size: 12px;
}

.route-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.route-options article {
    min-height: 166px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--coffee-line);
    border-top: 4px solid var(--bocaina-teal);
    border-radius: 7px;
}

.route-options article:nth-child(2n) {
    border-top-color: var(--bocaina-orange);
}

.route-options span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 9px;
    color: var(--bocaina-teal);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.route-options svg {
    width: 15px;
    height: 15px;
}

.safety-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.safety-grid article {
    padding: 15px;
    background: #fff;
    border: 1px solid var(--coffee-line);
    border-radius: 7px;
}

.safety-grid svg {
    width: 20px;
    height: 20px;
    margin-bottom: 9px;
    color: var(--bocaina-orange);
}

.gear-checklist {
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
}

.gear-checklist li {
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #455d66;
    background: #fff;
    border: 1px solid var(--coffee-line);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.gear-checklist svg {
    width: 17px;
    height: 17px;
    color: var(--bocaina-teal);
}

.source-list {
    margin: 0;
    padding-left: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 22px;
}

.source-list li {
    padding: 10px 12px;
    color: #566971;
    background: #fff;
    border: 1px solid #e0e8eb;
    border-radius: 6px;
    font-size: 11.5px;
    line-height: 1.48;
}

.source-list strong {
    color: var(--coffee-ink);
}

@media (max-width: 1020px) {
    .bocaina-page .chapter-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .bocaina-page {
        overflow-x: hidden;
    }

    .bocaina-page .coffee-wrap,
    .bocaina-page .history-content,
    .bocaina-page .coffee-section,
    .bocaina-page .coffee-hero-copy,
    .bocaina-page .coffee-intro,
    .bocaina-page .chapter-nav {
        min-width: 0;
        max-width: calc(100vw - 20px);
        box-sizing: border-box;
    }

    .bocaina-page .coffee-section *,
    .bocaina-page .coffee-intro *,
    .bocaina-page .coffee-hero-copy *,
    .bocaina-page .chapter-nav * {
        min-width: 0;
        max-width: 100%;
    }

    .bocaina-page p,
    .bocaina-page h1,
    .bocaina-page h2,
    .bocaina-page h3,
    .bocaina-page figcaption,
    .bocaina-page li,
    .bocaina-page span {
        overflow-wrap: anywhere;
    }

    .bocaina-hero {
        min-height: 330px;
        background-position: 62% center;
    }

    .bocaina-hero h1 {
        font-size: 32px;
    }

    .territory-grid,
    .water-grid,
    .image-strip,
    .route-options,
    .safety-grid,
    .source-list {
        grid-template-columns: 1fr;
    }

    .image-strip img {
        height: 220px;
    }

    .water-feature img {
        min-height: 270px;
    }
}

@media (max-width: 520px) {
    .bocaina-page .chapter-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gear-checklist {
        grid-template-columns: 1fr;
    }
}
