/* ============================================================
   Travel Agency PP — public theme
   Identity: Coastal / editorial. Ocean Teal + Sunset Coral.
   Palette is overridable from SiteSettings via CSS variables in _Layout.
   ============================================================ */
:root {
    --primary: #0E7C86;      /* Ocean Teal */
    --primary-dark: #0A5B63;
    --accent: #FF6B5C;       /* Sunset Coral */
    --accent-dark: #E5503F;
    --dark: #0B2530;         /* Deep Sea */
    --ink: #14333B;
    --muted: #5B7480;
    --bg: #FBF8F3;           /* warm off-white (never pure #fff) */
    --surface: #FFFFFF;
    --hairline: #E6E0D6;
    --sand: #F3ECE0;
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(11,37,48,.06);
    --shadow: 0 10px 30px rgba(11,37,48,.10);
    --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; position: relative; min-height: 100%; overflow-x: clip; }
@media (min-width: 768px) { html { font-size: 16px; } }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    margin: 0;
    overflow-x: clip;            /* §9.31 safety net — clip not hidden (keeps sticky headers) */
    line-height: 1.6;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--dark); font-weight: 700; line-height: 1.2; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 .2rem rgba(14,124,134,.25);
    border-color: var(--primary);
}
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-dark-sea { background: var(--dark) !important; color: #fff; }

/* boarding-pass / ticket motif divider */
.ticket-divider {
    height: 2px;
    background-image: linear-gradient(90deg, var(--hairline) 60%, transparent 0);
    background-size: 14px 2px;
    background-repeat: repeat-x;
    border: 0;
    margin: 2rem 0;
}

/* ---- global mobile safety-net (§12.1) ---- */
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
table { max-width: 100%; }
.container, .container-fluid { overflow-wrap: break-word; }
h1, h2, h3, h4, p, a, span, li { overflow-wrap: break-word; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }

@media (max-width: 991.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}
@media (max-width: 767px) {
    .section, .page-hero { padding: 40px 0; }
    .hero { min-height: 78vh; }
    .cta-band { padding: 1.75rem 1.25rem; border-radius: 16px; }
    .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 575.98px) {
    .header-actions .btn-call span { display: none !important; }
    .main-nav { width: min(80vw, 280px); }
}

/* ---- notice bar + header ---- */
.notice-bar { background: var(--dark); color: #fff; font-size: .85rem; padding: .45rem 0; text-align: center; }
.notice-bar a { color: var(--accent); margin-left: .4rem; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); transition: padding .25s, box-shadow .25s; }
.site-header > .container { padding-top: .85rem; padding-bottom: .85rem; }
.site-header.shrink { box-shadow: var(--shadow-sm); }
.site-header.shrink > .container { padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: flex; align-items: center; gap: .5rem; min-width: 0; color: var(--dark); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.brand i { color: var(--accent); font-size: 1.5rem; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 180px); }
.main-nav { display: flex; gap: 1.4rem; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: .95rem; position: relative; }
.main-nav a:hover { color: var(--primary); }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--accent); transition: width .25s; }
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-toggle { border: 1px solid var(--hairline); border-radius: 20px; padding: .25rem .7rem; font-size: .8rem; font-weight: 600; color: var(--ink); }
.btn-call { background: var(--primary); color: #fff; border-radius: 20px; padding: .35rem .8rem; font-size: .85rem; font-weight: 600; }
.btn-call:hover { background: var(--primary-dark); color: #fff; }
.nav-burger { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--dark); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(11,37,48,.45); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 999; }
@media (max-width: 991.98px) {
    /* backdrop-filter/filter on the header would trap the fixed drawer to the header's height — drop it on mobile */
    .site-header { backdrop-filter: none; background: #fff; }
    .main-nav { position: fixed; top: 0; bottom: 0; right: 0; width: min(82vw, 300px); max-width: 100vw; background: #fff; flex-direction: column; padding: 4.5rem 1.5rem 1.5rem; gap: .25rem; transform: translateX(101%); transition: transform .3s; box-shadow: -10px 0 40px rgba(0,0,0,.12); z-index: 1001; overflow-y: auto; }
    .main-nav a { padding: .75rem .25rem; border-bottom: 1px solid var(--hairline); font-size: 1.05rem; }
    .main-nav a::after { display: none; }
    .main-nav.open { transform: translateX(0); }
    .nav-burger { display: block; z-index: 1002; position: relative; }
    body.nav-open { overflow: hidden; }
    body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}

/* ---- hero ---- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; transform: scale(1.08); }
.hero-slide.active { opacity: 1; animation: kenburns 12s ease forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1.18); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,37,48,.82), rgba(11,37,48,.35)); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); color: #fff; max-width: 14ch; }
.hero p { font-size: 1.15rem; max-width: 46ch; opacity: .92; }
.hero .btn { padding: .75rem 1.6rem; font-weight: 600; border-radius: 30px; }

/* ---- sections ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--sand); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: .35rem; }
.u-underline { position: relative; display: inline-block; }
.u-underline::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -8px; height: 6px; background: var(--accent); border-radius: 6px; opacity: .35; }

.card-x { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.card-x:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-x .img { aspect-ratio: 4/3; overflow: hidden; }
.card-x .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-x:hover .img img { transform: scale(1.07); }
.card-x .body { padding: 1.1rem 1.2rem; }
.price-tag { color: var(--primary); font-weight: 800; font-size: 1.15rem; }
.svc-card { text-align: center; padding: 1.8rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); transition: transform .3s, box-shadow .3s; }
.row > [class*="col"] > .svc-card.h-100 { height: 100%; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.svc-card .ic { width: 64px; height: 64px; border-radius: 18px; background: rgba(14,124,134,.1); color: var(--primary); display: grid; place-items: center; font-size: 1.7rem; margin: 0 auto 1rem; }
.stat-num { font-size: 2.6rem; font-weight: 800; color: var(--primary); font-family: var(--font-head); }
.dest-chip { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; display: block; }
.dest-chip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.dest-chip:hover img { transform: scale(1.08); }
.dest-chip .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; background: linear-gradient(transparent, rgba(11,37,48,.85)); color: #fff; font-weight: 700; }
.testi-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.5rem; }
.testi-card .stars { color: #F5A623; }
.cta-band { background: linear-gradient(110deg, var(--primary), var(--dark)); color: #fff; border-radius: 22px; padding: 3rem; text-align: center; }
.cta-band h2 { color: #fff; }

/* ---- footer ---- */
.site-footer { background: var(--dark); color: #c8d6dc; margin-top: 0; position: relative; }
.footer-accent { height: 4px; background: linear-gradient(90deg, var(--primary) 70%, var(--accent) 70%); }
.site-footer .container { padding: 56px 12px 24px; }
.site-footer h4 { color: #fff; }
.site-footer h5 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a { color: #c8d6dc; }
.site-footer a:hover { color: var(--accent); }
.contact-list li { display: flex; gap: .5rem; min-width: 0; }
.contact-list i { color: var(--accent); }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; }

/* ---- floating action buttons ---- */
.fab-whatsapp, .fab-top { position: fixed; right: 18px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; z-index: 1000; box-shadow: var(--shadow); border: 0; }
.fab-whatsapp { bottom: 80px; background: #25D366; color: #fff; }
.fab-top { bottom: 18px; background: var(--dark); color: #fff; opacity: 0; pointer-events: none; transition: opacity .3s; }
.fab-top.show { opacity: 1; pointer-events: auto; }

/* ---- cookie consent ---- */
.cookie-consent { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 1080; max-width: 560px; width: calc(100% - 24px); background: var(--dark); color: #fff; border-radius: 14px; padding: .85rem 1rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); font-size: .9rem; }
.cookie-consent .btn { flex: 0 0 auto; }

/* ---- error page ---- */
.error-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.error-wrap .code { font-size: clamp(3.5rem, 12vw, 7rem); font-weight: 800; color: var(--primary); font-family: var(--font-head); line-height: 1; }

/* ---- scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .hero-slide.active { animation: none; }
}
