/*
 * Author: RaKiBuL HaSaN - CEO & Founder, The One Stop BD (theonestopbd.com)
 * Developer Phone: +8801752986368
 * Developer Email: rhs.rakibul@gmail.com
 *
 * File: css/style.css
 * Approach: mobile-first. Base = mobile app look.
 * Breakpoints: 768px (tablet) -> 1024px (desktop) -> 1280px (large desktop)
 *
 * TABLE OF CONTENTS
 *  1. Variables
 *  2. Base
 *  3. Layout utilities
 *  4. Buttons
 *  5. Header / App bar
 *  6. Hero
 *  7. Sections & headings
 *  8. Cards
 *  9. Swipe rows
 * 10. Steps, chips, lists, FAQ
 * 11. CTA band
 * 12. Forms & contact
 * 13. Footer
 * 14. Bottom nav
 * 15. FAB & install banner
 * 16. Animations
 * 17. Media queries: tablet / desktop / large desktop
 * 18. Reduced motion
 */

/* ==========================================================
   1. VARIABLES
   ========================================================== */
:root {
    --brand: #0757e0;
    --brand-dark: #0a3fa8;
    --brand-soft: #e8f0fe;
    --accent: #ff5a00;          /* from the logo - used sparingly */
    --wa: #1a9e53;

    --ink: #111827;
    --text: #374151;
    --muted: #5b6472;
    --line: #e3e8ef;
    --bg: #ffffff;
    --bg-alt: #f4f6f9;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 2px 12px rgba(17, 24, 39, .08);
    --shadow-lg: 0 8px 28px rgba(17, 24, 39, .12);

    --space: 16px;
    --section-y: 40px;
    --header-h: 56px;
    --bottom-h: 64px;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==========================================================
   2. BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    padding-top: calc(var(--header-h) + var(--safe-top));
    padding-bottom: calc(var(--bottom-h) + var(--safe-bottom));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5.5vw + .5rem, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 2.4vw + 1rem, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.05rem, .6vw + 1rem, 1.25rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { flex-shrink: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
.sr-only, .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Image loading placeholder + fade-in (class "js" is added by script.js) */
img { background: #e9eef5; }
.js img[loading="lazy"] { opacity: 0; transition: opacity .5s ease; }
.js img[loading="lazy"].is-loaded { opacity: 1; }

/* ==========================================================
   3. LAYOUT UTILITIES
   ========================================================== */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--space); }
.container.narrow, .narrow { max-width: 800px; }
.center { text-align: center; justify-content: center; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }

.split { display: grid; gap: 24px; align-items: center; }
.split-media img { width: 100%; }
.img-rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ==========================================================
   4. BUTTONS
   ========================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px;
    font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
    border: 2px solid transparent; border-radius: var(--radius-sm);
    cursor: pointer; text-decoration: none !important;
    transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); opacity: .92; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-lg { min-height: 52px; padding: 14px 26px; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-row > .btn { flex: 1 1 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 44px; }

/* ==========================================================
   5. HEADER / APP BAR
   ========================================================== */
/* Mobile: compact fixed top app bar */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    padding-top: var(--safe-top);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; background: none; }
.app-title { flex: 1; font-weight: 700; color: var(--ink); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-action {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
}
.app-action:active { transform: scale(.92); }

/* Hidden on mobile, enabled in media queries */
.main-nav, .header-cta, .nav-toggle { display: none; }

/* ==========================================================
   6. HERO
   ========================================================== */
.hero { position: relative; color: #fff; display: flex; align-items: flex-end; min-height: 520px; overflow: hidden; background: #123; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1 !important; }
.hero-overlay { position: absolute; inset: 0; background: rgba(8, 22, 48, .55); }
.hero-content { position: relative; padding-top: 48px; padding-bottom: 36px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-lead { font-size: 1.05rem; max-width: 52ch; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: #7fb0ff; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.eyebrow-light { color: #cfe0ff; }

/* Inner page banner */
.page-banner { background: var(--brand-soft); padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.page-banner h1 { font-size: clamp(1.7rem, 4vw + .6rem, 2.8rem); margin-bottom: .25em; }
.page-banner p { margin: 0; color: var(--muted); }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--brand-dark); }
.breadcrumb span { margin: 0 4px; }

/* ==========================================================
   7. SECTIONS & HEADINGS
   ========================================================== */
.section { padding: var(--section-y) 0; }
.section-tight { padding: 20px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 24px; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }
.prose p { font-size: 1.05rem; }
.mini-title { font-size: 1rem; margin: 14px 0 8px; }

/* ==========================================================
   8. CARDS
   ========================================================== */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; margin-bottom: 12px; }
.icon-badge-soft { background: var(--brand-soft); color: var(--brand); }

.service-card { display: flex; flex-direction: column; }
.service-card .link-arrow { margin-top: auto; }
.feature { text-align: center; padding: 12px; }
.feature p { color: var(--muted); margin: 0; }

.contact-card { display: block; text-align: center; color: inherit; text-decoration: none !important; transition: transform .15s ease; }
.contact-card:active { transform: scale(.98); }
.contact-card .icon-badge { margin-inline: auto; }
.contact-card p { overflow-wrap: anywhere; }

.mv-card p { margin: 0; }

/* Destination cards */
.dest-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none !important; box-shadow: var(--shadow); }
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dest-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: rgba(8, 22, 48, .62); }
.dest-info h3 { color: #fff; margin: 0 0 2px; }
.dest-info p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .9); }

/* Showcase */
.showcase-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.showcase-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.showcase-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(8, 22, 48, .62); color: #fff; font-weight: 600; font-size: .95rem; }

.quote { margin: 0; }
.quote .stars { color: #f5a300; display: flex; gap: 2px; margin-bottom: 8px; }
.quote .stars .icon { fill: currentColor; }
.quote footer { display: flex; flex-direction: column; font-size: .9rem; }
.quote footer span { color: var(--muted); }

.team-card { text-align: center; }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }

/* ==========================================================
   9. SWIPE ROWS (mobile: horizontal scroll-snap, tablet+: grid)
   ========================================================== */
.card-row.swipe {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--space) * -1); padding: 4px var(--space) 12px;
    scrollbar-width: none; overscroll-behavior-x: contain;
}
.card-row.swipe::-webkit-scrollbar { display: none; }
.card-row.swipe > * { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; }

/* ==========================================================
  10. STEPS, CHIPS, LISTS, FAQ
   ========================================================== */
.steps { display: grid; gap: 14px; counter-reset: none; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 72px; position: relative; box-shadow: var(--shadow); }
.step h3 { margin-bottom: .2em; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.step-num { position: absolute; left: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink); }
.chips .icon { color: var(--brand); }

.check-list { display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--brand); margin-top: 3px; }

.quick-services { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 calc(var(--space) * -1); padding: 0 var(--space) 6px; scrollbar-width: none; }
.quick-services::-webkit-scrollbar { display: none; }
.quick-services a { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; padding: 4px; color: var(--ink); font-size: .8rem; font-weight: 600; text-align: center; text-decoration: none !important; scroll-snap-align: start; }
.quick-services .icon-badge { margin: 0; }
.quick-services a:active .icon-badge { transform: scale(.92); }

.service-block .split-text > .icon-badge { margin-bottom: 8px; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--ink); min-height: 48px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* Tour packages */
.tour-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tour-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--brand-soft); }
.tour-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--brand); }
.tour-placeholder strong { font-size: 1.2rem; color: var(--brand-dark); }
.tour-badge { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.tour-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tour-title { font-size: 1.15rem; margin: 0; }
.tour-price { margin: 0; color: var(--muted); }
.tour-price strong { color: var(--brand-dark); font-size: 1.35rem; }
.price-from { font-size: .85rem; }
.price-call { font-weight: 600; color: var(--brand-dark); }
.tour-card .btn { margin-top: auto; }
.narrow-wide { max-width: 940px; }
.tour-head { margin-bottom: 20px; }
.tour-head h2 { margin-bottom: .2em; }
.itinerary { margin-bottom: 24px; }
.itinerary summary { align-items: center; }
.day-tag { flex-shrink: 0; background: var(--brand-soft); color: var(--brand-dark); font-size: .8rem; padding: 3px 10px; border-radius: 999px; }
.itinerary summary { justify-content: flex-start; gap: 10px; }
.itinerary summary::after { margin-left: auto; }
.plain-list { padding: 0 18px 16px 34px; list-style: disc; color: var(--muted); display: grid; gap: 4px; }
.inc-exc { margin-bottom: 8px; }
.inc-exc h3 { margin-bottom: .6em; }
.cross-list { display: grid; gap: 8px; }
.cross-list li { display: flex; gap: 10px; align-items: flex-start; }
.cross-list .icon { color: #c62828; margin-top: 3px; }

.error-page { padding: 64px 0; }
.error-code { font-size: clamp(4.5rem, 20vw, 8rem); font-weight: 800; line-height: 1; color: var(--brand); margin: 0 0 8px; letter-spacing: -.04em; }
.error-page .btn-row { justify-content: center; }

/* ==========================================================
  11. CTA BAND
   ========================================================== */
.cta-band { background: var(--brand-dark); color: #fff; padding: 36px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .9); }
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; }
.cta-inner { display: grid; gap: 20px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================
  12. FORMS & CONTACT
   ========================================================== */
.quick-actions { display: grid; gap: 12px; }
.contact-layout { display: grid; gap: 24px; }
.form-card h2, .contact-details h2 { font-size: 1.4rem; }

.field { margin-bottom: 14px; }
.field-row { display: grid; gap: 0; }
label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    font: inherit; font-size: 16px; /* 16px prevents iOS auto-zoom */
    color: var(--ink); background: #fff;
    border: 1.5px solid #c9d2de; border-radius: var(--radius-sm);
    appearance: none; -webkit-appearance: none;
}
select { background-image: 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='%235b6472' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(7, 87, 224, .18); }
.field.has-error input, .field.has-error textarea { border-color: #c62828; }
.field-error { color: #c62828; font-size: .85rem; margin-top: 4px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

.form-status { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; }
.form-status.is-success { background: #e6f6ec; color: #14612f; border: 1px solid #b7e2c6; }
.form-status.is-error { background: #fdeaea; color: #8a1c1c; border: 1px solid #f3bcbc; }

.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--brand); margin-top: 3px; }
.contact-list-lg li div { display: flex; flex-direction: column; }
.contact-list-lg strong { color: var(--ink); }
.contact-list a, .contact-list span { overflow-wrap: anywhere; }
.contact-details { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; }

.map-section iframe { display: block; width: 100%; height: 320px; border: 0; }

.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
.social-dark a { background: var(--brand); color: #fff; }

/* ==========================================================
  13. FOOTER
   ========================================================== */
.site-footer { display: none; background: #0f172a; color: #cbd5e1; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-about img { background: none; margin-bottom: 14px; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.site-footer .contact-list .icon { color: #7fb0ff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .9rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { margin: 0; }

/* Compact footer (mobile) - sits just above the bottom nav */
.mobile-footer { text-align: center; padding: 22px var(--space) 28px; font-size: .85rem; color: var(--muted); background: var(--bg-alt); border-top: 1px solid var(--line); }
.mobile-footer p { margin: 0 0 4px; }
.heart { display: inline-block; }

/* ==========================================================
  14. BOTTOM NAV (mobile app tab bar)
   ========================================================== */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line);
    padding-bottom: var(--safe-bottom);
    box-shadow: 0 -2px 12px rgba(17, 24, 39, .06);
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    height: var(--bottom-h); min-width: 44px;
    color: var(--muted); font-size: .72rem; font-weight: 600; text-decoration: none !important;
    transition: color .2s ease, transform .15s ease;
}
.bottom-nav a:active { transform: scale(.92); }
.bottom-nav a.active { color: var(--brand); }
.bottom-nav a.active .icon { stroke-width: 2.4; }

/* ==========================================================
  15. FAB & INSTALL BANNER
   ========================================================== */
.fab-group { position: fixed; right: 16px; bottom: calc(var(--bottom-h) + var(--safe-bottom) + 16px); z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-lg); transition: transform .15s ease; }
.fab:active { transform: scale(.92); }
.fab-wa { background: var(--wa); }
.fab-call { background: var(--brand); }

.install-banner {
    position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-h) + var(--safe-bottom) + 12px); z-index: 95;
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 10px 10px 10px 14px; animation: slideUp .35s ease;
}
.install-banner[hidden] { display: none; }
.install-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; font-size: .85rem; color: var(--muted); }
.install-text strong { color: var(--ink); font-size: .95rem; }
.install-close { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }

/* ==========================================================
  16. ANIMATIONS
   ========================================================== */
.page-main { animation: pageIn .4s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ==========================================================
  17. MEDIA QUERIES
   ========================================================== */

/* ---- Tablet: 768px and up ---- */
@media (min-width: 768px) {
    :root { --section-y: 64px; --space: 24px; }
    body { padding-top: 0; padding-bottom: 0; }

    .site-header { position: sticky; }
    .header-inner { height: 72px; gap: 16px; }
    .brand img { height: 52px; }
    .app-title, .app-action { display: none; }
    .header-cta { display: inline-flex; margin-left: auto; }

    /* Tablet menu: hamburger opens a dropdown panel */
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); color: var(--ink); cursor: pointer; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 8px var(--space) 16px; }
    .main-nav.open { display: block; }
    .main-nav ul { display: grid; gap: 2px; }
    .main-nav a { display: block; padding: 14px 8px; font-weight: 600; color: var(--ink); border-radius: 8px; }
    .main-nav a:hover { background: var(--bg-alt); text-decoration: none; }
    .main-nav a.active { color: var(--brand); background: var(--brand-soft); }

    .bottom-nav, .mobile-footer, .fab-call { display: none; }
    .site-footer { display: block; }
    .fab-group { bottom: 24px; right: 24px; }
    .install-banner { display: none !important; }

    .hero { min-height: 600px; align-items: center; }
    .hero-content { padding-top: 80px; padding-bottom: 80px; }
    .hero-actions { flex-direction: row; }

    .btn-row > .btn { flex: 0 0 auto; }
    .cta-actions { flex-direction: row; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .card-row.swipe { display: grid; overflow: visible; margin: 0; padding: 0; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .card-row.swipe > * { max-width: none; }

    .split { grid-template-columns: 1fr 1fr; gap: 40px; }
    .split-reverse .split-media { order: 2; }

    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .field-row { grid-template-columns: 1fr 1fr; gap: 16px; }
    .quick-actions { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; }
    .quick-services { justify-content: center; flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
    .quick-services a { min-width: 120px; font-size: .9rem; }
    .cta-inner { grid-template-columns: 1fr auto; align-items: center; }
    .map-section iframe { height: 400px; }
}

/* ---- Desktop: 1024px and up ---- */
@media (min-width: 1024px) {
    :root { --section-y: 88px; }

    .nav-toggle { display: none; }
    .main-nav { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; margin-left: auto; }
    .main-nav ul { display: flex; gap: 6px; }
    .main-nav a { padding: 10px 16px; }
    .header-cta { margin-left: 8px; }

    .hero { min-height: 680px; }
    .hero h1 { max-width: 14ch; }
    .hero-lead { font-size: 1.2rem; }

    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .card-row.grid-3 { grid-template-columns: repeat(3, 1fr); }
    .card-row.grid-4 { grid-template-columns: repeat(4, 1fr); }

    .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
    .step { padding: 72px 16px 18px; text-align: center; }
    .step-num { left: 50%; top: 16px; transform: translateX(-50%); width: 44px; height: 44px; }

    .footer-grid { grid-template-columns: 1.4fr .8fr 1fr 1.2fr; gap: 48px; }
    .contact-layout { grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
    .form-card { padding: 32px; }

    /* Hover effects only for devices that really hover (not touch) */
    @media (hover: hover) {
        .btn-primary:hover { background: var(--brand-dark); }
        .btn-outline:hover { background: var(--brand); color: #fff; }
        .btn-light:hover { background: var(--brand-soft); }
        .btn-ghost:hover { background: rgba(255, 255, 255, .15); }
        .btn-wa:hover { background: #148343; }
        .card:hover, .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
        .card, .step { transition: transform .25s ease, box-shadow .25s ease; }
        .dest-card:hover img, .showcase-item:hover img { transform: scale(1.06); }
        .link-arrow:hover .icon { transform: translateX(4px); }
        .link-arrow .icon { transition: transform .2s ease; }
        .fab:hover { transform: translateY(-3px); }
        .social a:hover { background: var(--accent); }
    }
}

/* ---- Large desktop: 1280px and up ---- */
@media (min-width: 1280px) {
    .container { max-width: 1320px; padding: 0 32px; }
    .hero { min-height: 740px; }
    .split { gap: 64px; }
}

/* ==========================================================
  18. REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Print: simple, clean output */
@media print {
    .site-header, .bottom-nav, .fab-group, .install-banner, .mobile-footer { display: none !important; }
    body { padding: 0; }
}
