/*
 * Author: RaKiBuL HaSaN - CEO & Founder, The One Stop BD (theonestopbd.com)
 * Developer Phone: +8801752986368
 * Developer Email: rhs.rakibul@gmail.com
 *
 * File: css/theme.css
 * Purpose: "Travlia" theme look from the old WordPress site, layered on top of style.css:
 * blue + orange colors, cream topographic sections with torn-paper edges,
 * Wulkan Display headings + Barlow Condensed text, hero search bar, collage, ticket box.
 *
 * TABLE OF CONTENTS
 *  1. Variables & fonts
 *  2. Base type & buttons
 *  3. Cream sections, banner, decorations
 *  4. Header contact block
 *  5. Hero + search
 *  6. Destinations, about, tour cards
 *  7. Collage, ticket box, footer
 *  8. Media queries
 */

/* ==========================================================
   1. VARIABLES & FONTS
   ========================================================== */
@font-face { font-family: "Wulkan Display"; src: url("fonts/WulkanDisplayBold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Wulkan Display"; src: url("fonts/WulkanDisplayMedium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Wulkan Display"; src: url("fonts/WulkanDisplayMediumItalic.woff") format("woff"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
    --brand: #0b6ae6;            /* theme blue #147DFE, slightly darker for text contrast */
    --brand-dark: #0a52b3;
    --brand-soft: #e8f1ff;
    --accent: #ff5a00;
    --orange: #d84b00;
    --orange-dark: #b83f00;
    --cream: #f7e6d9;
    --navy: #071522;
    --ink: #101820;
    --text: #2b3138;
    --font: "Barlow Condensed", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Wulkan Display", Georgia, "Times New Roman", serif;
}

/* ==========================================================
   2. BASE TYPE & BUTTONS
   ========================================================== */
body { font-family: var(--font); font-size: 1.15rem; line-height: 1.5; color: var(--text); }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1.12; }
h3 { font-family: var(--font); font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 6vw + .4rem, 4.2rem); }
h2 { font-size: clamp(1.6rem, 2.6vw + 1rem, 2.6rem); }

.eyebrow { font-family: var(--font-display); font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 1.1rem; color: var(--brand-dark); }
.eyebrow-light { color: #fff; }

/* Buttons: rectangular, uppercase, condensed (as in the theme) */
.btn { font-family: var(--font); border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: 1.05rem; }
.btn-orange { background: var(--orange); color: #fff; }
.link-arrow { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; }

/* ==========================================================
   3. CREAM SECTIONS, BANNER, DECORATIONS
   ========================================================== */
.section-cream, .section-alt {
    position: relative;
    background: var(--cream) url("../img/theme/pt-bg.webp") center / cover no-repeat;
    padding-top: calc(var(--section-y) + 18px);
    padding-bottom: calc(var(--section-y) + 18px);
}
/* Torn paper edge at the top and (flipped) at the bottom */
.section-cream::before, .section-cream::after,
.section-alt::before, .section-alt::after {
    content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none;
    height: clamp(22px, 4vw, 56px);
    background: url("../img/theme/bottom-shape.webp") center top / 100% 100% no-repeat;
}
.section-cream::before, .section-alt::before { top: -1px; }
.section-cream::after, .section-alt::after { bottom: -1px; transform: scaleY(-1); }
.section-cream > .container, .section-alt > .container { position: relative; z-index: 2; }

.page-banner { position: relative; overflow: hidden; background: var(--cream) url("../img/theme/pt-bg.webp") center / cover no-repeat; }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: var(--brand-dark); }
.banner-img { display: none; background: none; }

/* Decorations from the theme */
.deco { position: absolute; z-index: 1; pointer-events: none; background: none; }
.deco-palm { right: -30px; top: 30px; width: clamp(90px, 16vw, 240px); }
.deco-cloud { left: -50px; bottom: 20px; width: clamp(110px, 18vw, 280px); opacity: .75; }

/* ==========================================================
   4. HEADER CONTACT BLOCK
   ========================================================== */
.header-contact { display: none; align-items: center; gap: 10px; line-height: 1.2; }
.hc-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-alt); color: var(--brand); display: grid; place-items: center; }
.hc-text { display: flex; flex-direction: column; font-size: 1rem; font-weight: 600; }
.hc-text a { color: var(--brand-dark); }
.main-nav a { font-weight: 600; font-size: 1.1rem; }

/* ==========================================================
   5. HERO + SEARCH
   ========================================================== */
.hero { flex-direction: column; align-items: stretch; justify-content: flex-end; min-height: 580px; overflow: hidden; }
.hero-overlay { background: rgba(7, 21, 34, .5); }
.hero-content { padding-top: 56px; padding-bottom: 20px; }
.hero h1 { max-width: 14ch; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.hero-plane { position: absolute; z-index: 2; right: 5%; top: 12%; width: clamp(70px, 13vw, 210px); height: auto; background: none; opacity: 1 !important; animation: planeFloat 6s ease-in-out infinite; }
@keyframes planeFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(-4deg); } }

.hero-search-wrap { position: relative; z-index: 3; padding-bottom: 24px; }
.hero-search { background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 12px; }
.hs-field label { display: flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0; }
.hs-field .icon { color: var(--brand); }
.hs-field select { border: 0; border-bottom: 1.5px solid #cfd6df; border-radius: 0; padding-left: 0; min-height: 46px; background-color: transparent; }
.hs-field select:focus { box-shadow: none; border-bottom-color: var(--brand); }
.hero-search .btn { align-self: end; }

/* ==========================================================
   6. DESTINATIONS, ABOUT, TOUR CARDS
   ========================================================== */
.dest-arch { border-radius: 999px 999px 18px 18px; aspect-ratio: 3 / 4.1; }
.dest-arch .dest-info { text-align: center; background: rgba(7, 21, 34, .58); padding: 12px 14px 16px; }
.dest-arch .dest-info h3 { font-size: 1.35rem; }

.about-media img { background: none; max-width: 520px; margin: 0 auto; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .16)); }
.feature-list { display: grid; gap: 18px; margin: 18px 0 24px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .icon-badge { margin: 0; }
.feature-list h3 { margin: 0 0 2px; font-size: 1.25rem; color: var(--brand-dark); }
.feature-list p { margin: 0; color: var(--muted); }

.tour-card { border-radius: 16px; }
.tour-media { aspect-ratio: 16 / 10; }
.tour-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-dark); }
.tour-title { color: var(--brand-dark); font-size: 1.4rem; }
.tour-meta { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-weight: 600; }
.tour-card .btn { margin-top: auto; }
.filter-note { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 24px; }

/* ==========================================================
   7. COLLAGE, TICKET BOX, FOOTER
   ========================================================== */
.collage { display: grid; gap: 28px; align-items: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tag-list li { padding: 6px 14px; background: var(--cream); border-radius: 999px; font-weight: 600; color: var(--ink); }
.collage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.collage-item { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.collage-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collage-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: rgba(7, 21, 34, .58); color: #fff; font-weight: 600; font-size: 1rem; }

.ticket-box { position: relative; background: var(--cream) url("../img/theme/pt-bg.webp") center / cover; border-radius: 24px; overflow: hidden; padding: 16px; display: grid; gap: 16px; }
.ticket-img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; }
.ticket-form { background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow-lg); }
.ticket-form h2 { color: var(--brand); font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); }

.site-footer { background: var(--navy) url("../img/theme/ft-bg.webp") center / cover; color: #aebdca; }
.footer-title { color: #fff; font-family: var(--font); }
.footer-title::after { content: ""; display: block; width: 34px; height: 2px; background: var(--accent); margin-top: 10px; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .08); }
.mobile-footer { background: var(--cream); }

/* ==========================================================
   8. MEDIA QUERIES
   ========================================================== */
@media (max-width: 767px) {
    .hero-plane { top: 8%; right: 3%; width: 64px; }
}

@media (min-width: 768px) {
    .banner-img { display: block; position: absolute; right: 5%; bottom: 0; width: auto; height: 118%; max-height: 300px; z-index: 1; }
    .hero { min-height: 640px; }
    .hero-content { padding-top: 110px; }
    .hero-search { grid-template-columns: 1fr 1fr auto; align-items: end; padding: 18px 22px; gap: 22px; }
    .hero-search .btn { min-width: 180px; }
    .collage-grid { gap: 16px; }
    .collage-item:nth-child(even) { transform: translateY(14px); }
    .ticket-box { grid-template-columns: 1fr 1fr; padding: 28px; gap: 28px; }
    .ticket-img { height: 100%; min-height: 360px; }
}

@media (min-width: 1024px) {
    .header-contact { display: flex; margin-left: 8px; }
    .collage { grid-template-columns: 1fr 1.15fr; gap: 56px; }
    .hero { min-height: 720px; }
}

@media (min-width: 1024px) and (hover: hover) {
    .btn-orange:hover { background: var(--orange-dark); }
}
