@font-face {
    font-family: "Alatsi";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/alatsi-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Alatsi";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../assets/fonts/alatsi-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --teal: #458a7e;
    --teal-dark: #3d796e;
    --ink: #244d56;
    --peach: #ffdbb6;
    --deep: #1f4a52;
    --white: #ffffff;
    --header-h: 4.6rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--peach);
    font-family: "Alatsi", "Trebuchet MS", sans-serif;
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 400;
}

img { max-width: 100%; height: auto; }

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

button,
input { font-family: inherit; }

.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -3rem;
    background: var(--ink);
    color: var(--white);
    padding: 0.4rem 0.7rem;
    z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.topbar {
    background: var(--teal);
    color: var(--white);
    position: relative;
    padding: 1.05rem 1.25rem 1.05rem 3.2rem;
}

.topbar-contact {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.75rem;
    font-size: 1rem;
    text-align: center;
}

.topbar a {
    color: var(--white);
    text-decoration: none;
}
.topbar a:hover { text-decoration: underline; }

.nav-toggle {
    position: absolute;
    left: 0.7rem;
    top: 0.85rem;
    width: 2.4rem;
    height: 2.2rem;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    display: none;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.35rem;
    height: 2px;
    background: var(--white);
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header {
    display: flex;
    align-items: stretch;
    padding-right: 1.25rem;
    background: transparent;
}

.logo {
    flex: 0 0 13rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.15rem 0.6rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.12em;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
}

.main-nav {
    flex: 1;
    background: var(--teal);
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0 0.4rem;
    min-height: var(--header-h);
}

.nav-list > li { display: flex; align-items: stretch; position: relative; }

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.95rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.08em;
    font-size: 0.98rem;
    white-space: nowrap;
}

.nav-list > li.is-active > a,
.nav-list > li > a[aria-current="page"] {
    background: var(--peach);
    color: var(--teal);
}

.nav-list > li > a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}
.nav-list > li.is-active > a:hover,
.nav-list > li > a[aria-current="page"]:hover {
    background: var(--peach);
    color: var(--teal-dark);
}

.caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    display: inline-block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 11rem;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: var(--teal);
    z-index: 30;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.has-sub:hover > .dropdown,
.has-sub:focus-within > .dropdown { display: block; }
.dropdown a {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--white);
    text-decoration: none;
}
.dropdown a:hover,
.dropdown a[aria-current="page"] { background: rgba(0, 0, 0, 0.12); }

.phone-link { color: var(--teal); text-decoration: none; font-weight: 700; }
.phone-link:hover { text-decoration: underline; }
.topbar .phone-link, .topbar a.phone-link { color: var(--white); font-weight: 400; }

.wrap {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.prose h2, .prose h3, .page-title {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25;
    margin: 1.1rem 0 0.6rem;
}
.prose p { margin: 0 0 1rem; }
.prose h2:first-child { margin-top: 0; }

.button {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    text-decoration: none;
    padding: 0.85rem 1rem;
    line-height: 1.35;
}
.button:hover { background: var(--teal-dark); color: var(--white); }

.hero {
    position: relative;
    min-height: 28rem;
    background: #c9a27a;
    overflow: hidden;
}
.hero-slides { position: relative; min-height: 32rem; }
.hero-slide {
    margin: 0;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.hero-slide.is-active { opacity: 1; position: relative; pointer-events: auto; }
.hero-slide img {
    width: 100%;
    height: 32rem;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}
.hero-slide figcaption {
    position: absolute;
    left: 6%;
    bottom: 18%;
    margin: 0;
    max-width: 22rem;
}
.hero-slide figcaption p {
    margin: 0;
    background: var(--deep);
    color: var(--white);
    padding: 1.35rem 1.4rem;
    font-size: 1.7rem;
    line-height: 1.25;
}
.hero-slide figcaption a { color: var(--white); }

.hero-dots, .trip-dots {
    position: absolute;
    left: 8%;
    bottom: 8%;
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}
.hero-dots button, .trip-dots button {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
}
.hero-dots button.is-active, .trip-dots button.is-active { background: var(--white); }

.hexes { position: absolute; pointer-events: none; z-index: 2; }
.hexes svg { width: 100%; height: auto; display: block; }
.hexes-hero { right: 2%; top: 18%; width: 11rem; }
.hexes-feature { left: 4%; bottom: 0; width: 8rem; opacity: 0.9; }

.team {
    width: min(1080px, calc(100% - 2rem));
    margin: 2.2rem auto 1rem;
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 1.8rem;
    align-items: start;
}
.team-photo img { width: 100%; display: block; }
.team-copy h2 { margin-top: 1.1rem; font-size: 1.55rem; }
.team-copy h3 { font-size: 1.15rem; line-height: 1.4; }

.feature {
    width: min(1100px, calc(100% - 2rem));
    margin: 1.5rem auto 3rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.25rem;
    align-items: start;
    position: relative;
}
.feature-tabs { position: relative; z-index: 1; padding-top: 1.4rem; }
.feature-tabs button {
    display: block;
    width: fit-content;
    text-align: left;
    background: transparent;
    border: 0;
    color: var(--white);
    font-size: 1.35rem;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
}
.feature-tabs button.is-active { background: var(--deep); }
.feature-tabs .plus { margin-right: 0.15rem; }
.feature-frame { position: relative; z-index: 1; }
.feature-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.lead-photo img { width: 100%; display: block; margin-bottom: 1rem; }

.prices {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem;
    color: var(--teal-dark);
}
.prices li { margin: 0.28rem 0; }
.prices ul { list-style: none; padding: 0.35rem 0 0; margin: 0; }
.prices em { font-style: italic; }

.bio-photo {
    float: left;
    width: min(280px, 46%);
    margin: 0 1.4rem 1rem 0;
}
.bio-photo img { display: block; width: 100%; }
.bio-photo figcaption { text-align: center; color: #6d6258; margin-top: 0.35rem; }
.clear { clear: both; }

.location-phone { font-size: 1.8rem; margin-top: 0.4rem; }
.location-phone .phone-link { font-weight: 700; }

.specials {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: start;
}
.specials h2 { font-size: 1.15rem; letter-spacing: 0.02em; color: var(--ink); }
.specials-photo img { width: 100%; background: var(--white); display: block; }

.gallery-page { width: min(1200px, calc(100% - 1.5rem)); }
.page-title { margin: 0.2rem 0 1rem; }

.gallery-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 1fr;
    align-items: start;
}
.gallery-item {
    display: block;
    color: inherit;
    text-decoration: none;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    background: #efd3ae;
}
.gallery-item:focus-visible img,
.gallery-item:hover img { outline: 3px solid var(--teal); outline-offset: 2px; }
.gallery-caption {
    display: block;
    padding: 0.45rem 0.15rem 0.2rem;
    font-size: 0.92rem;
    color: var(--ink);
    white-space: pre-line;
}

.trip-intro {
    width: min(1080px, calc(100% - 2rem));
    margin: 1.2rem auto 0.6rem;
}
.trip-intro h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.trip-slider {
    position: relative;
    width: min(1100px, calc(100% - 1.5rem));
    margin: 0.8rem auto 1.2rem;
    background: #111;
}
.trip-slides { position: relative; min-height: 16rem; }
.trip-slide {
    display: none;
    margin: 0;
}
.trip-slide.is-active { display: block; }
.trip-slide img {
    width: 100%;
    max-height: 34rem;
    object-fit: contain;
    background: #111;
    display: block;
}
.trip-dots { position: static; justify-content: center; padding: 0.55rem 0 0.7rem; background: var(--peach); }
.trip-dots button { background: #c4a888; }
.trip-dots button.is-active { background: var(--teal); }

.horse {
    float: left;
    width: 150px;
    margin: 0.2rem 1rem 0.6rem 0;
}
.horse img { width: 100%; display: block; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.4rem 0 1rem;
    clear: both;
}
.filter-bar button {
    border: 0;
    background: transparent;
    color: var(--teal);
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    font-size: 1.05rem;
}
.filter-bar button.is-active,
.filter-bar button[aria-selected="true"] {
    background: var(--teal);
    color: var(--white);
}

.not-found { padding-top: 3rem; padding-bottom: 5rem; min-height: 40vh; }
.not-found h1 { font-size: 2.4rem; margin-bottom: 0.4rem; }
.error-code { font-size: 1.6rem; font-weight: 700; color: var(--ink); }

.site-footer {
    background: #000 url("../assets/footer-bg.svg") center bottom / cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 4.2rem 1rem 1.4rem;
    font-size: 0.92rem;
}
.site-footer p { margin: 0; }

.lightbox[hidden] { display: none; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: #000;
}
.lightbox-dialog {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.2rem 3.5rem 1.5rem;
}
.lightbox-figure { margin: 0; max-width: 100%; text-align: center; }
.lightbox-figure img {
    max-width: min(92vw, 1100px);
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #111;
}
.lightbox-figure figcaption {
    color: var(--white);
    margin-top: 0.7rem;
    max-width: 46rem;
    white-space: pre-line;
    font-size: 0.95rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    color: var(--white);
    border: 0;
    cursor: pointer;
    line-height: 1;
}
.lightbox-close { top: 0.4rem; right: 0.7rem; font-size: 2.6rem; padding: 0.2rem 0.45rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 0.2rem 0.5rem; }
.lightbox-prev { left: 0.3rem; }
.lightbox-next { right: 0.3rem; }
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible,
.nav-toggle:focus-visible,
.nav-list a:focus-visible,
.button:focus-visible,
.filter-bar button:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}
.nav-list a:focus-visible, .button:focus-visible, .filter-bar button:focus-visible {
    outline-color: var(--ink);
}

body.lightbox-open { overflow: hidden; }

@media (min-width: 720px) {
    .gallery-grid--hair { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
    .gallery-grid--hair { grid-template-columns: repeat(5, 1fr); }
    .gallery-grid--thai { grid-template-columns: repeat(2, 1fr); }
    .topbar { padding-left: 1.25rem; }
}
@media (min-width: 1400px) {
    .gallery-grid--thai { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-header { display: block; padding-right: 0; }
    .logo { width: 100%; flex: none; padding: 0.85rem 1rem; }
    .main-nav { display: none; }
    .main-nav.is-open { display: block; }
    .nav-list { flex-direction: column; min-height: 0; padding: 0; }
    .nav-list > li > a { padding: 0.85rem 1.1rem; }
    .dropdown { position: static; display: block; box-shadow: none; background: #3b756b; }
    .has-sub:hover > .dropdown { display: block; }
    .hero-slides, .hero-slide img { min-height: 18rem; height: 20rem; }
    .hero-slide figcaption { left: 4%; right: 4%; bottom: 16%; max-width: none; }
    .hero-slide figcaption p { font-size: 1.25rem; }
    .hexes-hero { width: 5.5rem; top: auto; bottom: 8%; }
    .team, .feature, .specials { grid-template-columns: 1fr; }
    .feature { min-height: 0; }
    .bio-photo { float: none; width: min(280px, 100%); margin: 0 auto 1rem; }
    .horse { float: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-slide { transition: none; }
}
