/* Kafilay.com — main stylesheet */

:root {
    --emerald: #0E6B53;
    --emerald-dark: #0A5241;
    --emerald-50: #E7F1EC;
    --gold: #C9A14A;
    --gold-dark: #A9853A;
    --slate: #1F2A37;
    --slate-2: #3B4756;
    --ivory: #F7F3EA;
    --ivory-2: #EFE8D9;
    --white: #FFFFFF;
    --line: #E3DCCB;
    --muted: #5E6773;

    --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(31, 42, 55, .06), 0 8px 24px rgba(31, 42, 55, .08);
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 16px/1.6 var(--sans);
    color: var(--slate);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); }
a:hover { color: var(--emerald-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--slate); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; vertical-align: -0.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--slate-2); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 6px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
    font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--gold { background: var(--gold); color: var(--slate); }
.btn--gold:hover { background: var(--gold-dark); color: var(--white); }
.btn--gold-outline { border-color: var(--gold); color: var(--slate); background: transparent; }
.btn--gold-outline:hover { background: var(--gold); color: var(--slate); }
.btn--wa { background: var(--emerald); color: var(--white); }
.btn--wa:hover { background: var(--emerald-dark); color: var(--white); }
.link-btn { background: none; border: 0; color: var(--emerald); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 243, 234, .96);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--slate); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--emerald); }
.nav-toggle { display: none; background: none; border: 0; color: var(--slate); padding: 8px; cursor: pointer; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 68px;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--ivory); border-bottom: 1px solid var(--line);
        padding: 8px 20px 20px; display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav .btn { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; background: var(--slate); }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20, 28, 38, .92) 0%, rgba(20, 28, 38, .72) 45%, rgba(20, 28, 38, .15) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 90px 20px 70px; }
.hero h1 { color: var(--white); max-width: 640px; }
.hero__lead { max-width: 560px; font-size: 1.1rem; color: rgba(255, 255, 255, .88); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--gold); font-weight: 700; margin-bottom: 12px; }

.search {
    margin-top: 32px; display: grid; gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end;
    background: rgba(255, 255, 255, .97); color: var(--slate);
    padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 1040px;
}
.search label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.search select {
    appearance: none; -webkit-appearance: none;
    font: 500 15px/1.2 var(--sans); color: var(--slate);
    padding: 12px 36px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E6B53' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
}
.search select:focus { border-color: var(--emerald); }
.search .btn { height: 46px; }

@media (max-width: 960px) {
    .search { grid-template-columns: 1fr 1fr; }
    .search .btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .hero__inner { padding: 56px 20px 40px; }
    .hero::after { background: linear-gradient(180deg, rgba(20, 28, 38, .78), rgba(20, 28, 38, .9)); }
    .search { grid-template-columns: 1fr; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--emerald) url("../img/pattern-dark.svg") repeat; background-size: 220px; color: var(--white); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.trust__grid div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.trust__grid .icon { grid-row: span 2; color: var(--gold); }
.trust__grid strong { font-size: 15px; }
.trust__grid span { font-size: 13px; color: rgba(255, 255, 255, .78); line-height: 1.4; }
@media (max-width: 900px) { .trust__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust__grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--ivory { background: var(--ivory); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 4px 0 0; }

.notice {
    background: var(--ivory); border: 1px solid var(--line); border-left: 4px solid var(--gold);
    padding: 10px 14px; border-radius: 8px; font-size: 14px;
}

/* ---------- Package cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 1px 2px rgba(31, 42, 55, .04);
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--ivory-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ribbon, .tag {
    position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.ribbon { left: 12px; background: var(--gold); color: var(--slate); }
.tag { right: 12px; background: rgba(31, 42, 55, .85); color: var(--white); }
.tag--static { position: static; display: inline-block; margin-bottom: 10px; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card__operator { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.card__operator a { color: var(--muted); text-decoration: none; font-weight: 600; }
.card__operator a:hover { color: var(--emerald); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--emerald); background: var(--emerald-50); padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.sample { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); border: 1px solid var(--gold); padding: 1px 6px; border-radius: 4px; }
.card__title { font-size: 1.2rem; margin-bottom: 10px; }
.card__title a { color: var(--slate); text-decoration: none; }
.card__title a:hover { color: var(--emerald); }
.card__facts { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; color: var(--slate-2); display: grid; gap: 6px; }
.card__facts li { display: flex; gap: 8px; align-items: flex-start; }
.card__facts .icon { color: var(--emerald); margin-top: 3px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.card__foot .btn { padding: 10px 14px; font-size: 14px; }

.price { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--slate); line-height: 1; white-space: nowrap; }
.price small { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }
.price--lg { font-size: 2.2rem; }

.empty { text-align: center; padding: 48px 20px; background: var(--ivory); border-radius: var(--radius); }

/* ---------- Destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dest { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; }
.dest img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dest:hover img { transform: scale(1.05); }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 28, 38, .85)); }
.dest__text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; }
.dest__text strong { font-family: var(--serif); font-size: 1.35rem; }
.dest__text span { font-size: 14px; opacity: .85; }
.dest:hover { color: var(--white); }
@media (max-width: 900px) { .dest-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--ivory); border-radius: var(--radius); padding: 24px; }
.steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--emerald); color: var(--gold); font: 700 1.2rem var(--serif); margin-bottom: 12px; }
.steps p { margin: 0; color: var(--slate-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.atol-note { display: flex; gap: 12px; align-items: flex-start; background: var(--emerald-50); border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 24px; }
.atol-note .icon { color: var(--emerald); margin-top: 2px; }
.atol-note p { margin: 0; font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: var(--white); overflow: hidden; background: var(--slate); }
.cta-band__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 42, 55, .95) 0%, rgba(31, 42, 55, .8) 55%, rgba(31, 42, 55, .35) 100%); }
.cta-band__inner { position: relative; z-index: 1; padding: 80px 20px; max-width: var(--wrap); }
.cta-band h2 { color: var(--white); max-width: 560px; }
.cta-band p { max-width: 520px; color: rgba(255, 255, 255, .85); font-size: 1.1rem; }

/* ---------- Package page ---------- */
.pkg { padding: 40px 0 72px; }
.pkg__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.pkg__poster { position: sticky; top: 92px; }
.lightbox-trigger { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lightbox-trigger__hint { position: absolute; right: 12px; bottom: 12px; background: rgba(31, 42, 55, .8); color: var(--white); font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.pkg__operator { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--slate-2); }
.pkg__price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; margin: 20px 0; background: var(--ivory); border-radius: var(--radius); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 0 0 28px; }
.facts div { background: var(--white); padding: 12px 14px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.facts dt .icon { color: var(--emerald); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.includes { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.includes li { display: flex; gap: 8px; align-items: center; }
.includes .yes .icon, .includes li.yes .icon { color: var(--emerald); }
.includes li.no { color: #9AA1AA; }
.includes .dash { width: 18px; text-align: center; }
.itinerary { padding-left: 20px; margin: 0 0 28px; }
.itinerary li { margin-bottom: 8px; }
.pkg h2 { font-size: 1.4rem; margin-top: 8px; }
.op-head { max-width: 760px; margin-bottom: 32px; }

.sticky-cta { display: none; }
@media (max-width: 860px) {
    .pkg__grid { grid-template-columns: 1fr; gap: 28px; }
    .pkg__poster { position: static; max-width: 440px; }
    .facts, .includes { grid-template-columns: 1fr; }
    .sticky-cta {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(31, 42, 55, .08);
    }
    body:has(.sticky-cta) .site-footer { padding-bottom: 80px; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 20, 27, .92); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 8px; }
.lightbox__close { position: absolute; top: 12px; right: 16px; font-size: 40px; line-height: 1; color: var(--white); background: none; border: 0; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: rgba(255, 255, 255, .8); padding-top: 56px; font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h4 { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .muted { color: rgba(255, 255, 255, .65); margin-top: 14px; max-width: 320px; }
.site-footer img { height: 44px; width: auto; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 32px; padding-bottom: 40px; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.site-footer__legal a { text-decoration: underline; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
