:root {
    --bg: #f3f9f8;
    --surface: #ffffff;
    --primary: #0b7285;
    --secondary: #2f9e44;
    --earth: #7f5539;
    --text: #16302b;
    --muted: #5d6d6a;
    --border: #d7e5e1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ecf8ff 0%, var(--bg) 40%);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* Home: premium full-bleed hero — centered copy, slides, ripples, scroll cue */
.home-hero {
    position: relative;
    isolation: isolate;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: min(91svh, 860px);
    overflow: hidden;
    color: #fff;
    text-align: center;
    /* Reserve space so copy never sits under dots + scroll link */
    padding-bottom: clamp(5.5rem, 12vw, 7.5rem);
    box-sizing: border-box;
}
.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 100%;
}
.home-hero__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #0a2e28;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.1s ease-in-out, transform 1.2s ease-out;
    transform: scale(1.05);
    pointer-events: none;
}
.home-hero__slide--bg { background-image: var(--slide); }
.home-hero__slide.is-active { z-index: 1; opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
    .home-hero__slide { transition: none; transform: none; }
    .home-hero__slide.is-active { transform: none; }
}
.home-hero__ribbons,
.home-hero__floaters {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.home-hero__ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(200, 240, 230, 0.12);
    aspect-ratio: 1;
    width: min(50vmax, 520px);
    animation: home-hero-ripple 10s ease-out infinite;
    opacity: 0.7;
}
.home-hero__ripple--2 { width: min(70vmax, 720px); animation-delay: -3.3s; border-color: rgba(130, 200, 220, 0.1); }
.home-hero__ripple--3 { width: min(90vmax, 920px); animation-delay: -6.6s; border-color: rgba(255, 255, 255, 0.08); }
@keyframes home-hero-ripple {
    0% { transform: translate(-50%, -50%) scale(0.75); opacity: 0.45; }
    50% { opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero__ripple { animation: none; opacity: 0.2; }
}
.home-hero__fish {
    position: absolute;
    color: rgba(200, 245, 230, 0.35);
    width: 4.5rem;
    height: auto;
    animation: home-hero-fish 7s ease-in-out infinite;
}
.home-hero__fish svg { display: block; width: 100%; height: auto; }
.home-hero__fish--1 { left: 8%; top: 22%; }
.home-hero__fish--2 { right: 10%; top: 38%; width: 3.2rem; animation-delay: -2.5s; animation-duration: 8.5s; }
@keyframes home-hero-fish {
    0%, 100% { transform: translate(0, 0) rotate(-4deg); }
    50% { transform: translate(12px, -8px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero__fish { animation: none; opacity: 0.25; }
}
.home-hero__scrim,
.home-hero__scrim--vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 85% 70% at 50% 42%, rgba(4, 32, 28, 0.25) 0%, rgba(4, 28, 26, 0.65) 55%, rgba(3, 22, 24, 0.82) 100%),
        linear-gradient(180deg, rgba(6, 45, 50, 0.35) 0%, rgba(4, 22, 24, 0.6) 100%);
}
.home-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    min-width: 0;
    max-width: min(1120px, 92%);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(72svh, 640px);
    padding: clamp(2.5rem, 5vh, 4rem) clamp(0.75rem, 3vw, 1.25rem) clamp(1rem, 3vh, 2rem);
    box-sizing: border-box;
}
.home-hero__content {
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
.home-hero .home-hero__content > p {
    margin-top: 0;
    margin-bottom: 0;
}
.home-hero .home-hero__badges {
    margin-bottom: 1rem;
}
.home-hero .home-hero__kicker {
    margin-bottom: 0.65rem;
}
.home-hero .home-hero__title {
    margin-bottom: 0.85rem;
}
.home-hero .home-hero__lead {
    margin-bottom: 1.35rem;
}
@media (prefers-reduced-motion: no-preference) {
    .home-hero--premium .home-hero__badges { animation: home-hero-entrance 0.9s ease-out 0.05s both; }
    .home-hero--premium .home-hero__kicker { animation: home-hero-entrance 0.9s ease-out 0.12s both; }
    .home-hero--premium .home-hero__title { animation: home-hero-entrance 0.9s ease-out 0.2s both; }
    .home-hero--premium .home-hero__lead { animation: home-hero-entrance 0.9s ease-out 0.3s both; }
    .home-hero--premium .home-hero__actions { animation: home-hero-entrance 0.9s ease-out 0.38s both; }
    .home-hero--premium .home-hero__phone { animation: home-hero-entrance 0.9s ease-out 0.45s both; }
}
@keyframes home-hero-entrance {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.home-hero__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem 0.7rem;
    margin: 0 0 1.1rem;
}
.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    color: #f0faf7;
}
.home-hero__badge--star {
    background: linear-gradient(135deg, rgba(255, 200, 80, 0.25) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-color: rgba(255, 220, 120, 0.35);
}
.home-hero__star {
    font-weight: 800;
    color: #ffe08a;
    font-size: 0.95rem;
}
.home-hero__star .home-hero__star-ico {
    color: #ffd35c;
    font-size: 0.9em;
    text-shadow: 0 0 8px rgba(255, 200, 80, 0.4);
}
.home-hero__badge-text { font-weight: 500; color: #e6f2ee; }
.home-hero__badge--fresh {
    border-color: rgba(63, 185, 120, 0.45);
    background: rgba(10, 60, 40, 0.35);
}
.home-hero__dot-pulse {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
    animation: home-hero-pulse 2.2s ease-out infinite;
}
@keyframes home-hero-pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero__dot-pulse { animation: none; }
}
.home-hero__kicker {
    color: #b8e8d4;
    text-transform: none;
    letter-spacing: 0.06em;
    font-weight: 700;
    font-size: clamp(0.75rem, 1.1vw, 0.9rem);
    margin: 0 0 0.65rem;
    line-height: 1.45;
}
.home-hero__title {
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    line-height: 1.16;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.9rem;
    letter-spacing: -0.025em;
    max-width: min(100%, 20rem);
    margin-left: auto;
    margin-right: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
@media (min-width: 480px) {
    .home-hero__title { max-width: min(100%, 28rem); }
}
.home-hero__lead {
    color: #e6f0ec;
    font-size: clamp(0.95rem, 1.4vw, 1.12rem);
    line-height: 1.65;
    margin: 0 auto 1.4rem;
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 0.2rem;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.35rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.93rem;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-shadow: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
a.btn-hero { text-decoration: none; }
a.btn-hero:hover { transform: translateY(-2px); }
.btn-hero--primary { background: #fff; color: #075c6b; }
.btn-hero--primary:hover { background: #f4fdff; color: #064550; box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
.btn-hero--secondary { background: #2a9b4b; color: #fff; border-color: rgba(0,0,0,0.06); }
.btn-hero--secondary:hover { background: #238a41; filter: none; }
.btn-hero--ghost { background: rgba(0,0,0,0.15); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-hero--ghost:hover { background: rgba(0,0,0,0.3); border-color: #e8fffa; }
.home-hero__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.home-hero__phone:hover { background: rgba(0,0,0,0.32); border-color: rgba(255,255,255,0.45); transform: translateY(-1px); }
.home-hero__phone-icon { display: flex; color: #a8f0c8; }
/* Dots only — side arrows are siblings, vertically centered (see .home-hero__arrow) */
.home-hero__nav {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 min(2.5rem, 6vw);
    pointer-events: none;
}
@media (min-width: 700px) {
    .home-hero__nav { bottom: 3.5rem; }
}
.home-hero__arrow {
    position: absolute;
    z-index: 6;
    /* Compensate for .home-hero padding-bottom so arrows sit on image band, not page vertical midpoint */
    top: 50%;
    transform: translateY(calc(-50% - clamp(0.5rem, 2.5vw, 1.25rem)));
    left: auto;
    right: auto;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    line-height: 0;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.home-hero__arrow--prev {
    left: max(0.4rem, env(safe-area-inset-left, 0px));
    margin-left: 0.25rem;
}
.home-hero__arrow--next {
    right: max(0.4rem, env(safe-area-inset-right, 0px));
    margin-right: 0.25rem;
}
@media (min-width: 640px) {
    .home-hero__arrow--prev {
        left: max(0.75rem, env(safe-area-inset-left, 0px));
    }
    .home-hero__arrow--next {
        right: max(0.75rem, env(safe-area-inset-right, 0px));
    }
    .home-hero__arrow {
        width: 3rem;
        height: 3rem;
        min-width: 3rem;
        min-height: 3rem;
    }
}
.home-hero__arrow-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    margin: 0;
}
.home-hero__arrow-ico svg {
    display: block;
    margin: 0;
}
.home-hero__arrow:hover { background: rgba(0,0,0,0.6); border-color: rgba(255, 255, 255, 0.35); }
.home-hero__arrow:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
.home-hero__arrow:disabled { opacity: 0.4; cursor: not-allowed; }
.home-hero__dots {
    display: flex;
    gap: 0.45rem;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
    pointer-events: auto;
    justify-content: center;
}
.home-hero__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.home-hero__dot.is-active { background: #fff; transform: scale(1.15); }
.home-hero__dot:hover { background: rgba(255,255,255,0.85); }
.home-hero__scroll {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.4rem 0.8rem 0.2rem;
    border-radius: 0.4rem;
    pointer-events: auto;
    transition: color 0.2s, background 0.2s;
}
.home-hero__scroll:hover { color: #fff; background: rgba(0,0,0,0.12); }
.home-hero__scroll-text { opacity: 0.9; }
.home-hero__scroll-ico {
    animation: home-hero-scroll 2.2s ease-in-out infinite;
    line-height: 0;
    margin-top: 0.15rem;
    opacity: 0.9;
}
@keyframes home-hero-scroll {
    0%, 100% { transform: translateY(0); opacity: 0.65; }
    50% { transform: translateY(7px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero__scroll-ico { animation: none; }
}
.home-after-hero { padding-top: 3.5rem; }
@media (max-width: 640px) {
    .home-hero { min-height: min(100svh, 800px); padding-bottom: 6.25rem; }
    .home-hero__inner { min-height: min(64svh, 520px); padding-top: 2rem; }
    .home-hero__nav { bottom: 2.75rem; padding: 0 3rem; }
    .home-hero__arrow--prev { left: 0.35rem; margin-left: 0; }
    .home-hero__arrow--next { right: 0.35rem; margin-right: 0; }
    .home-hero__fish--1 { left: 2%; top: 16%; width: 3rem; opacity: 0.6; }
    .home-hero__fish--2 { right: 2%; top: 30%; }
    .home-hero__actions { flex-direction: column; align-items: stretch; }
    .home-hero .btn-hero { width: 100%; max-width: 20rem; margin-left: auto; margin-right: auto; }
}

.section { padding: 4.2rem 0; }
.bg-soft { background: #e9f6ef; }
.narrow { width: min(760px, 100%); }
.intro-body { color: var(--muted); line-height: 1.65; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgb(255 255 255 / 0.85); border-bottom: 1px solid var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; }
.brand-logo { max-height: 40px; width: auto; border-radius: .4rem; object-fit: contain; }
.brand-mark { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); font-size: .78rem; }
.site-nav { display: flex; gap: 1.1rem; font-weight: 500; }
.site-nav a { color: var(--muted); transition: color .2s ease; }
.site-nav a:hover { color: var(--primary); }
.menu-toggle { display: none; border: 1px solid var(--border); background: var(--surface); border-radius: .6rem; padding: .4rem .8rem; }
.hero-grid, .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: center; }
.hero h1, h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; margin: .3rem 0 1rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); margin: 0 0 1rem; }
h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
p { color: var(--muted); margin: 0 0 .8rem; }
.eyebrow { color: var(--secondary); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .8rem; }
.lead { font-size: 1.08rem; max-width: 62ch; }
.hero-media img, .rounded-img { width: 100%; border-radius: 1.2rem; object-fit: cover; min-height: 380px; box-shadow: 0 18px 35px rgb(22 48 43 / 0.15); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .76rem 1.15rem; border-radius: .7rem; font-weight: 600; transition: .24s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: #fff; }
.card-grid, .gallery-grid, .blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.service-card, .blog-card, .form-block, .gallery-item { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; box-shadow: 0 12px 24px rgb(20 45 39 / 0.08); }
.service-card--link { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.service-card--link:hover { box-shadow: 0 16px 32px rgb(20 45 39 / 0.12); border-color: var(--primary); transform: translateY(-2px); }
.service-card--link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.service-card-cta { margin-top: 0.75rem; margin-bottom: 0; font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.service-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.service-card div { padding: 1rem; }
.service-card--link h3 { color: var(--text); }
.service-card--link p { color: var(--muted); }
.blog-card > div { padding: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.text-link { color: var(--primary); font-weight: 600; }
.small { font-size: .85rem; color: #7a8c89; }
.check-list { padding-left: 1.2rem; margin: 0; }
.check-list li { margin-bottom: .52rem; color: var(--muted); }
.testimonial-list blockquote { margin: 0 0 .8rem; padding: .9rem; border-left: 4px solid var(--secondary); background: #fff; border-radius: .6rem; }
.testimonial-list footer { color: var(--earth); font-weight: 600; font-size: .9rem; }
.form-block { padding: 1.2rem; margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.form-grid textarea, .form-grid button { grid-column: 1 / -1; }
input, textarea, select, iframe { width: 100%; border: 1px solid var(--border); border-radius: .7rem; padding: .75rem .85rem; font: inherit; background: #fff; }
textarea { resize: vertical; }
iframe { min-height: 370px; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; }
.gallery-item figcaption { padding: .75rem 1rem 1rem; font-weight: 600; color: var(--text); }
.service-detail-hero h1 { margin-top: 0.25rem; }
.service-detail-hero__media { margin-top: 1.5rem; }
.service-detail-hero__media img { width: 100%; min-height: 0; max-height: 420px; object-fit: cover; }
.service-detail-body { color: var(--text); line-height: 1.7; }
.service-detail-body p { color: var(--text); margin: 0 0 0.9rem; }
.service-detail-body h1, .service-detail-body h2, .service-detail-body h3,
.service-detail-body h4 { color: var(--text); margin: 1.25rem 0 0.5rem; line-height: 1.3; }
.service-detail-body h1:first-child, .service-detail-body h2:first-child,
.service-detail-body h3:first-child { margin-top: 0; }
.service-detail-body ul, .service-detail-body ol { margin: 0.5rem 0 0.9rem; padding-left: 1.35rem; color: var(--text); }
.service-detail-body li { margin-bottom: 0.35rem; }
.service-detail-body a { color: var(--primary); text-decoration: underline; }
.service-detail-body a:hover { text-decoration: none; }
.alert-success { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: .7rem; border: 1px solid #9fd8b1; background: #e9f9ef; color: #1d6e38; }
.site-footer { background: #0f2d27; color: #d8ebe6; margin-top: 2rem; padding-top: 3rem; }
.site-footer p, .site-footer a { color: #d8ebe6; display: block; margin: .25rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.4rem; }
.copyright { border-top: 1px solid rgb(216 235 230 / 0.2); margin-top: 1.3rem; padding: 1rem 0; }
.fade-up { opacity: 0; transform: translateY(12px); transition: .55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 920px) {
    .card-grid, .gallery-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .menu-toggle { display: inline-flex; }
    .site-nav { position: absolute; top: 76px; left: 0; right: 0; padding: .9rem 4%; border-bottom: 1px solid var(--border); background: #fff; flex-direction: column; display: none; }
    .site-nav.open { display: flex; }
    .form-grid, .card-grid, .gallery-grid, .blog-grid { grid-template-columns: 1fr; }
}

/* —— Gallery page —— */
:root {
    --gallery-forest: #0f2d24;
    --gallery-river: #0a6a78;
    --gallery-mist: #e6f3ef;
    --gallery-wood: #5c3d2e;
    --gallery-sun: #e8b86d;
}
.gallery-breadcrumb a { color: #fff; opacity: .9; }
.gallery-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.gallery-breadcrumb__sep { margin: 0 .35rem; opacity: .7; }
.gallery-breadcrumb__current { font-weight: 600; }
.gallery-hero {
    position: relative;
    min-height: min(56vh, 520px);
    display: flex;
    align-items: flex-end;
    padding: 0 0 2.4rem;
    color: #fff;
    text-align: left;
    background: linear-gradient(160deg, rgba(15, 45, 36, 0.7) 0%, rgba(7, 75, 88, 0.45) 50%, rgba(20, 60, 50, 0.55) 100%),
        var(--gallery-hero-bg, url("https://images.unsplash.com/photo-1501785884341-83b5b86b31fd?auto=format&fit=crop&w=2400&q=80")) center / cover no-repeat;
}
.gallery-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(12, 35, 30, 0.35) 100%); pointer-events: none; }
.gallery-hero__inner { position: relative; z-index: 1; max-width: 42rem; }
.gallery-hero__title {
    font-size: clamp(2.1rem, 5.5vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 0.6rem;
    text-shadow: 0 2px 24px rgb(0 0 0 / 0.35);
}
.gallery-hero__subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: #e2f1ec;
    margin: 0;
    line-height: 1.5;
    max-width: 40ch;
    text-shadow: 0 1px 10px rgb(0 0 0 / 0.25);
}
.gallery-filters-eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; color: var(--secondary); font-weight: 800; margin: 0 0 .6rem; }
.gallery-filters-wrap { padding-top: 2rem; padding-bottom: 0.2rem; }
.gallery-filters {
    display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.gallery-filter-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: background .22s, color .22s, border-color .22s, box-shadow .22s, transform .2s;
}
.gallery-filter-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.gallery-filter-btn.is-active {
    background: linear-gradient(135deg, var(--primary) 0%, #0a6a78 100%);
    color: #fff; border-color: transparent;
    box-shadow: 0 6px 18px rgba(11, 114, 133, 0.35);
}
.bg-drift { background: linear-gradient(180deg, #f0faf7 0%, var(--bg) 100%); }
.section-lead { color: var(--muted); max-width: 50ch; margin: 0.35rem 0 0; }
.gallery-section-head { margin-bottom: 1.4rem; }

/* Page shell: full-width, no horizontal scroll from grids */
.gallery-page { width: 100%; max-width: 100%; overflow-x: hidden; }
.gallery-sections {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}
.gallery-photos-block,
.gallery-videos-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.gallery-videos-block {
    background: #fafcfa;
    border-top: 1px solid var(--border);
}
/* Consistent gallery vertical rhythm (base .section is 4.2rem — tune slightly) */
.gallery-page .section.gallery-photos-block { padding-top: 3.25rem; padding-bottom: 3rem; }
.gallery-page .section.gallery-videos-block { padding-top: 2.75rem; padding-bottom: 3.5rem; }
.gallery-page .section.gallery-filters-wrap { padding-top: 2rem; padding-bottom: 1.25rem; }

/* Grids: minmax(0,1fr) prevents flex/grid blowout; buttons fill the cell */
.gallery-masonry,
.gallery-video-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 1.15rem 1.1rem;
    align-items: start;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
@media (min-width: 800px) {
    .gallery-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .gallery-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gallery-sections .gallery-photos-block.is-section-hidden,
.gallery-sections .gallery-videos-block.is-section-hidden { display: none; }

/* Cards: <button> as grid child — must stretch and respect minmax(0) */
.gallery-masonry .gallery-card,
.gallery-video-grid .gallery-video-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.gallery-card, .gallery-video-btn {
    position: relative; border: 0; padding: 0; text-align: left; cursor: pointer; border-radius: 1.05rem;
    overflow: hidden; background: #0f1f1c;
    box-shadow: 0 10px 28px rgb(15 45 36 / 0.12);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
    align-self: start;
}
.gallery-masonry .gallery-card { aspect-ratio: 4 / 3; }
.gallery-masonry .gallery-card:hover { box-shadow: 0 16px 32px rgb(15 45 36 / 0.18); }

.gallery-card__img-wrap {
    position: absolute; inset: 0; overflow: hidden; border-radius: 1.05rem;
}
.gallery-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gallery-card:hover .gallery-card__img-wrap img { transform: scale(1.05); }
.gallery-card__grad {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.6) 100%);
    pointer-events: none; transition: opacity 0.3s; border-radius: 1.05rem;
}
.gallery-card:hover .gallery-card__grad { opacity: 0.9; }
.gallery-card__label {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    padding: 0.9rem 1.05rem 1.05rem; color: #fff; font-weight: 700; font-size: 0.95rem;
    text-shadow: 0 1px 8px rgb(0 0 0 / 0.5);
    pointer-events: none;
    text-align: left;
}
.gallery-card.is-clamped { display: none; }
.js-gallery-item.g-item--out { display: none; }
.gallery-loadmore-wrap { text-align: center; margin-top: 1.5rem; }
.btn-wood {
    background: #fff; color: var(--gallery-wood);
    border: 2px solid #c4a882; border-radius: 999px; font: inherit; font-weight: 700; font-size: 0.95rem;
    padding: 0.7rem 1.6rem; transition: 0.25s; cursor: pointer;
}
.btn-wood:hover { background: #faf6f0; box-shadow: 0 4px 14px rgba(92, 61, 46, 0.2); }

/* Video cards: 16:9 so thumbnails align; inner layers fill the box */
.gallery-video-grid .gallery-video-btn {
    aspect-ratio: 16 / 9;
    min-height: 0;
    color: #fff;
}
.gallery-video-btn:hover { box-shadow: 0 16px 32px rgb(15 45 36 / 0.2); }
.gallery-video-btn__img {
    position: absolute; inset: 0;
    border-radius: 1.05rem;
    overflow: hidden;
}
.gallery-video-btn__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-video-btn__play {
    position: absolute; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%);
    z-index: 2; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4));
    transition: transform 0.25s; pointer-events: none;
    line-height: 0;
}
.gallery-video-btn:hover .gallery-video-btn__play { transform: translate(-50%, -50%) scale(1.05); }
.gallery-video-btn__label {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 0.9rem 1.1rem 1.1rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    font-weight: 700; font-size: 0.95rem; line-height: 1.35;
    text-align: left; pointer-events: none;
    border-radius: 0 0 1.05rem 1.05rem;
}
.gallery-memories { text-align: center; background: linear-gradient(180deg, #e8f5ef 0%, #f3f9f6 100%); }
.gallery-memories__title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 0 0 0.75rem; color: var(--text); }
.gallery-memories__text { margin: 0 auto; max-width: 52ch; }
.gallery-cta { padding-bottom: 4.5rem; }
.gallery-cta__card {
    text-align: center; padding: 2.2rem 1.5rem 2.4rem; border-radius: 1.25rem;
    background: linear-gradient(150deg, #0a5c68 0%, var(--primary) 45%, #1a5d4a 100%);
    color: #fff; box-shadow: 0 20px 50px rgba(9, 80, 90, 0.25);
}
.gallery-cta__headline { margin: 0 0 0.4rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; }
.gallery-cta__line { color: #d4eef2; font-weight: 600; font-size: 1.05rem; margin: 0 0 1.3rem; letter-spacing: 0.04em; }
.btn-cta { background: #fff; color: var(--primary) !important; font-weight: 800; border-radius: 999px; padding: 0.8rem 1.8rem; text-decoration: none; display: inline-block; }
.btn-cta:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.gallery-lightbox {
    position: fixed; inset: 0; z-index: 200; background: rgba(8, 20, 18, 0.92);
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; gap: 0.5rem;
}
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox__frame { max-width: min(92vw, 1100px); max-height: 78vh; }
.gallery-lightbox__img { max-width: 100%; max-height: 75vh; width: auto; height: auto; border-radius: 0.4rem; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.gallery-lightbox__caption { color: #e0f0ec; margin: 0; text-align: center; max-width: 48ch; }
.gallery-lightbox__close, .gallery-lightbox__nav {
    position: absolute; border: 0; background: #fff2; color: #fff; font-size: 1.6rem; cursor: pointer; border-radius: 0.4rem; line-height: 1; padding: 0.4rem 0.6rem; transition: 0.2s;
}
.gallery-lightbox__close { top: 0.6rem; right: 0.6rem; font-size: 1.8rem; }
.gallery-lightbox__close:hover, .gallery-lightbox__nav:hover { background: #fff3; }
.gallery-lightbox__nav--prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__nav--next { right: 0.4rem; top: 50%; transform: translateY(-50%); }
.gallery-video-pop {
    position: fixed; inset: 0; z-index: 210; background: rgba(6, 18, 16, 0.88);
    display: flex; align-items: center; justify-content: center; padding: 1.2rem;
}
.gallery-video-pop[hidden] { display: none !important; }
.gallery-video-pop__inner { position: relative; width: min(100%, 900px); background: #000; border-radius: 0.5rem; overflow: hidden; }
.gallery-video-pop__body { position: relative; padding-top: 56.25%; }
.gallery-video-pop__body iframe, .gallery-video-pop__body video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-video-pop__unavailable { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; margin: 0; }
.gallery-video-pop__unavailable[hidden] { display: none; }
.gallery-video-pop__close {
    position: absolute; right: 0.4rem; top: 0.4rem; z-index: 2; border: 0; color: #fff; background: #0005; width: 2.2rem; height: 2.2rem; border-radius: 0.2rem; cursor: pointer; font-size: 1.2rem; line-height: 1; }
@media (max-width: 640px) {
    .gallery-hero { min-height: 48vh; }
    .gallery-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.2rem; }
    .gallery-filter-btn { white-space: nowrap; flex-shrink: 0; }
}
