/* =============================================================
   EZY TOUR FRAMEWORK — base.css  v1.0.0
   Shared structural CSS across ALL sites.
   Contains: reset, layout, components, utilities, responsive.
   Contains ZERO colours, ZERO font choices — those are in theme.css
   =============================================================

   Load order per site:
   1. Google Fonts (in theme.css or <link> in HTML)
   2. base.css       ← this file
   3. theme.css      ← site's colour/font skin
   4. page.css       ← optional per-page overrides
   ============================================================= */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ── CONTAINER ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap; text-decoration: none; letter-spacing: 0.2px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 15px 34px; font-size: 1rem; }

/* Semantic button variants — colours set by theme */
.btn-primary    { background: var(--accent); color: var(--accent-text); box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-accent-hover); }
.btn-secondary  { background: var(--secondary); color: var(--secondary-text); }
.btn-whatsapp   { background: #25D366; color: white; box-shadow: 0 4px 16px rgba(37,211,102,.35); }
.btn-whatsapp:hover { background: #20ba59; }
.btn-outline    { background: transparent; border: 2px solid var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,.6); color: white; }
.btn-outline-light:hover { background: white; color: var(--text); }

/* ── TAGS ────────────────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tag-accent { background: var(--accent); color: var(--accent-text); }
.tag-muted  { background: rgba(255,255,255,.15); color: white; backdrop-filter: blur(4px); }
.tag-light  { background: rgba(255,255,255,.9); color: var(--text); }
.tag-alt    { background: var(--secondary); color: var(--secondary-text); }

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: transparent; transition: var(--transition);
}
.navbar.scrolled { background: var(--nav-bg); box-shadow: var(--nav-shadow); backdrop-filter: blur(12px); }
.nav-inner { display: flex; align-items: center; height: var(--nav-h); max-width: 1200px; margin: 0 auto; padding: 0 24px; gap: 24px; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 2px; align-items: center; flex: 1; }
.nav-links a { padding: 8px 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.875rem; color: var(--nav-link); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { background: var(--nav-link-active-bg); color: var(--nav-link-active); }
.nav-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-phone { font-weight: 700; font-size: 0.85rem; color: var(--nav-link); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--nav-link); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ─────────────────────────────────────────────── */
.mobile-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; background: var(--bg); transform: translateX(-100%); transition: transform 0.3s ease; display: flex; flex-direction: column; padding: 100px 32px 40px; overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.mobile-nav-links a { padding: 14px 20px; border-radius: var(--radius); font-weight: 700; font-size: 1.05rem; color: var(--text); transition: var(--transition); border-left: 3px solid transparent; }
.mobile-nav-links a:hover { background: var(--card-bg); border-left-color: var(--accent); }
.mobile-cta { display: flex; flex-direction: column; gap: 12px; }

/* ── SECTIONS ────────────────────────────────────────────────── */
.section    { padding: 96px 0; }
.section-sm { padding: 60px 0; }
.section-label { display: inline-block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--text); margin-bottom: 16px; line-height: 1.1; }
.section-sub { font-size: 1.05rem; color: var(--text-soft); max-width: 560px; margin-bottom: 48px; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }
.text-accent { color: var(--accent); }

/* ── TOUR CARDS ──────────────────────────────────────────────── */
.tours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.tour-card { background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--card-shadow); transition: var(--transition); cursor: pointer; border: var(--card-border); }
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color: var(--accent); }
.tour-card-img { position: relative; height: 210px; overflow: hidden; background: var(--skeleton-base); }
.tour-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tour-card:hover .tour-card-img img { transform: scale(1.06); }
.tour-card-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tour-card-body { padding: 20px; }
.tour-card-rating { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.stars { color: var(--accent); letter-spacing: -1px; }
.tour-card-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); margin-bottom: 10px; line-height: 1.2; }
.tour-card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tour-meta-item { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.tour-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.tour-price .from { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.tour-price .amount { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.tour-price .per { font-size: 0.75rem; color: var(--text-muted); }

/* ── SERVICE CARDS ───────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.service-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 28px; border: var(--card-border); transition: var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent-grad); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: var(--accent); }
.service-card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; color: var(--text); }
.service-card-desc { font-size: 0.875rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 16px; }

/* ── WHY CARDS ───────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.why-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 28px; border: var(--card-border); transition: var(--transition); text-align: center; }
.why-card:hover { border-color: var(--accent); box-shadow: var(--card-shadow); }
.why-icon { font-size: 2.5rem; margin-bottom: 16px; }
.why-title { font-family: var(--font-display); font-size: 1rem; margin-bottom: 10px; color: var(--text); }
.why-desc { font-size: 0.875rem; color: var(--text-soft); line-height: 1.6; }

/* ── BOOKING BAR ─────────────────────────────────────────────── */
.booking-bar { background: var(--card-bg); box-shadow: 0 -4px 0 var(--accent), 0 8px 40px var(--card-shadow-color); position: relative; z-index: 10; }
.booking-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.booking-tabs { display: flex; border-bottom: 2px solid var(--border); }
.booking-tab { flex: 1; padding: 16px 20px; font-weight: 700; font-size: 0.875rem; cursor: pointer; border: none; background: transparent; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); text-align: center; }
.booking-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.booking-form-panel { padding: 20px 0; display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 130px; }
.form-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.form-control { background: var(--input-bg); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 11px 14px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--text); outline: none; transition: var(--transition); width: 100%; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
textarea.form-control { resize: vertical; min-height: 110px; }

/* ── TRANSFER ROUTES ─────────────────────────────────────────── */
.routes-section { background: var(--card-bg); border-radius: var(--radius-xl); padding: 48px; box-shadow: var(--card-shadow); border: var(--card-border); }
.transfer-routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 28px; }
.transfer-route { display: flex; align-items: center; justify-content: space-between; background: var(--input-bg); border-radius: var(--radius); padding: 16px 20px; cursor: pointer; transition: var(--transition); border: var(--card-border); }
.transfer-route:hover { background: var(--accent); border-color: var(--accent-dark); transform: translateX(4px); }
.transfer-route:hover .route-price { color: var(--accent-text); }
.route-info { display: flex; flex-direction: column; }
.route-from { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.route-name { font-family: var(--font-display); font-size: 1rem; color: var(--text); }
.route-time { font-size: 0.78rem; color: var(--text-muted); }
.route-price { font-family: var(--font-display); font-size: 1.4rem; color: var(--secondary); }

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.testimonials-wrap { overflow: hidden; }
.testimonials-track { display: flex; gap: 24px; animation: scroll-test 35s linear infinite; width: max-content; }
.testimonials-track:hover { animation-play-state: paused; }
@keyframes scroll-test { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.testimonial-card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 28px; width: 320px; flex-shrink: 0; box-shadow: var(--card-shadow); border: var(--card-border); }
.test-stars { color: var(--accent); font-size: 1rem; margin-bottom: 12px; letter-spacing: -1px; }
.test-text { font-size: 0.9rem; color: var(--text-soft); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-grad); display: flex; align-items: center; justify-content: center; color: var(--accent-text); font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.test-name { font-weight: 700; font-size: 0.875rem; color: var(--text); }
.test-loc { font-size: 0.75rem; color: var(--text-muted); }

/* ── GALLERY ─────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--skeleton-base); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); color: white; font-weight: 700; font-size: 1.2rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── REVIEWS GRID ────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* ── CTA BANNER ──────────────────────────────────────────────── */
.cta-banner { background: var(--cta-bg); border-radius: var(--radius-xl); padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; border-radius: 50%; background: var(--accent); opacity: 0.12; }
.cta-banner::after  { content: ''; position: absolute; bottom: -40px; left: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--secondary); opacity: 0.1; }
.cta-banner-title { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); color: var(--cta-text); margin-bottom: 16px; position: relative; z-index: 1; }
.cta-banner-sub { color: var(--cta-sub); font-size: 1.05rem; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-banner-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── FEATURE STRIP ───────────────────────────────────────────── */
.feature-strip { background: var(--accent); padding: 18px 0; border-top: 3px solid var(--secondary); border-bottom: 3px solid var(--secondary); overflow: hidden; }
.feature-strip-inner { display: flex; gap: 48px; animation: scroll-strip 22s linear infinite; width: max-content; }
@keyframes scroll-strip { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.strip-item { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 0.9rem; color: var(--accent-text); white-space: nowrap; font-weight: 700; }
.strip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); flex-shrink: 0; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 60px; filter: var(--footer-logo-filter, none); }
.footer-desc { font-size: 0.875rem; color: var(--footer-muted); line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--footer-social-bg); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--transition); cursor: pointer; color: var(--footer-text); }
.social-btn:hover { background: var(--accent); color: var(--accent-text); }
.footer-heading { font-family: var(--font-display); font-size: 0.9rem; color: var(--footer-heading); letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--footer-muted); transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--footer-muted); margin-bottom: 10px; }
.footer-contact-item a { color: var(--footer-muted); }
.footer-contact-item a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--footer-border); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.8rem; color: var(--footer-muted); }
.footer-copy a { color: var(--accent); }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badge { font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--footer-badge-bg); color: var(--footer-muted); }

/* ── WHATSAPP FLOAT ──────────────────────────────────────────── */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; z-index: 500; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 6px 24px rgba(37,211,102,.4); text-decoration: none; transition: var(--transition); animation: wa-pulse 3s infinite; }
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes wa-pulse { 0%,100%{box-shadow:0 6px 24px rgba(37,211,102,.4)} 50%{box-shadow:0 6px 32px rgba(37,211,102,.65)} }
.whatsapp-tooltip { position: absolute; right: 68px; background: var(--text); color: white; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--transition); }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ── SKELETON ────────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── REVEAL ANIMATIONS ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero { padding: calc(var(--nav-h) + 60px) 0 80px; background: var(--page-hero-bg); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--accent-grad); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); font-weight: 700; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem); color: var(--text); margin-bottom: 16px; }

/* ── GRIDS ───────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
  .cta-banner-actions .btn { width: 100%; }
  .routes-section { padding: 24px 20px; }
  .transfer-routes { grid-template-columns: 1fr; }
  .booking-form-panel { flex-direction: column; gap: 12px; }
  .booking-form-panel .form-group { flex: 1 1 100%; min-width: 100%; }
  .booking-form-panel .btn, .booking-form-panel a.btn { width: 100%; text-align: center; }
  .booking-tab { font-size: 0.78rem; padding: 12px 10px; }
  .booking-bar-inner { padding: 0 16px; }
  .tours-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-track { animation-duration: 20s; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .feature-strip { display: none; }
}
