/* ==== Global Reset ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  position: relative;
  color: var(--main-light);
  font-size: 14px;
  background-color: var(--main-light);
  overflow-x: hidden;
}

/* ==== Typography Weights ==== */
h1,
h2,
.font-weight-bold {
  font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
  font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
  font-weight: 500 !important;
}
a {
  text-decoration: none;
}

/* ==== Header Styling ==== */

/* ===== Theme fallbacks (use your existing vars) ===== */

body {
  padding-top: var(--header-h);
}

/* ========== Header Base ========== */
:root {
  --main: #c7933a;
  --secmain: #4a3a28;
  --main-light: #f6efe5;
  --ink: #121212;

  --header-h: 72px;
  --header-h: 72px; /* desktop header height */
  --drawer-w: 300px; /* drawer width on mobile */
  --radius: 12px; /* rounded components */
  --focus: 0 0 0 3px rgba(199, 147, 58, 0.25); /* focus ring */
}

/* Layout offset for fixed header */
body {
  padding-top: var(--header-h);
}

/* ===== Header base ===== */
.main-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: var(--main-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 16px 0 8px; /* top=0, right=16px, bottom=0, left=8px */
  display: grid;
  grid-template-columns: auto 1fr auto; /* logo | nav | socials */
  align-items: center;
  gap: 16px;
}

/* ---------- Hamburger (shown on mobile) ---------- */
.menu-toggle {
  display: none; /* mobile shows it */
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-toggle .bar {
  width: 26px;
  height: 3px;
  background: var(--secmain);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
.menu-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 10px;
}

/* ---------- Logo ---------- */
.logo {
  justify-self: start;
}
.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* ---------- Desktop Nav (centered) ---------- */
.nav-desktop {
  grid-column: 2;
  justify-self: center;
}
.nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
}
.nav-desktop a {
  color: var(--secmain);
  font: 700 16px/1.2 Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  text-decoration: none;
  padding: 8px 2px;
  transition: color 0.25s;
}
.nav-desktop a:hover {
  color: var(--main);
}
.nav-desktop a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}
.nav-desktop a.active {
  color: var(--main);
  position: relative;
}
.nav-desktop a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 3px;
  background: var(--main);
  border-radius: 2px;
}

/* ---------- Desktop Socials (right) ---------- */
.social-icons {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--secmain);
  padding: 7px 16px;
  border-radius: 999px;
}
.social-icons a {
  color: var(--secmain);
  font-size: 20px;
  transition: color 0.25s;
}
.social-icons a:hover {
  color: var(--main);
}
.social-icons a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 999px;
}

/* ==========================================================
   Mobile Drawer (≤ 992px)
   ========================================================== */

/* Dim backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 998;
}
.backdrop.is-show {
  opacity: 1;
  visibility: visible;
}

/* Drawer panel */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: var(--drawer-w);
  background: var(--main-light);
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}
/* Open state */
.nav-drawer.is-open {
  transform: translateX(0);
}

/* Drawer top bar (logo + close) */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.drawer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.drawer-close {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.drawer-close span {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 50%;
  height: 3px;
  background: var(--secmain);
  border-radius: 2px;
}
.drawer-close span:first-child {
  transform: translateY(-1px) rotate(45deg);
}
.drawer-close span:last-child {
  transform: translateY(-1px) rotate(-45deg);
}
.drawer-close:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 10px;
}

/* Drawer navigation area */
.drawer-nav {
  flex: 1 1 auto;
  padding: 16px 18px 12px;
  overflow: auto;
}
.drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Button-like links (clear “this is clickable”) */
.drawer-nav a {
  display: block;
  padding: 14px 14px;
  font: 800 18px/1.35 Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--secmain);
  text-decoration: none;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  background: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.08s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.drawer-nav a:hover {
  background: #fff8ef; /* subtle warm hover */
  border-color: var(--main);
  color: var(--ink);
}
.drawer-nav a:active {
  transform: translateY(1px);
}
.drawer-nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.drawer-nav a.active {
  border-color: var(--main);
  background: #fff3e1;
  color: var(--ink);
}

/* Socials at bottom inside drawer */
.drawer-social {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.drawer-social a {
  font-size: 22px;
  color: var(--secmain);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.08s;
  background: #fff;
}
.drawer-social a:hover {
  color: var(--main);
  border-color: var(--main);
  background: #fff8ef;
}
.drawer-social a:active {
  transform: translateY(1px);
}
.drawer-social a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* ---------- Responsive switches ---------- */
@media (max-width: 992px) {
  :root {
    --header-h: 64px;
  }

  .header-container {
    grid-template-columns: auto 1fr auto; /* hamburger | logo | (social hidden) */
  }
  .menu-toggle {
    display: flex;
  }
  .logo {
    justify-self: center;
  }
  .nav-desktop {
    display: none;
  }
  .social-icons {
    display: none;
  }
}

/* Tiny phones */
@media (max-width: 360px) {
  .logo img {
    height: 44px;
  }
}

#nav-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--main-light);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  padding: 16px 18px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
#nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#nav-menu a {
  display: block;
  padding: 12px 10px;
  font: 700 18px/1.3 Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--secmain);
  text-decoration: none;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  background: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
#nav-menu a:hover {
  background: #fff8ef;
  border-color: var(--main);
  color: var(--ink);
}
#nav-menu a.active {
  border-color: var(--main);
  background: #fff3e1;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

/* End Of Header Styling */

/* === HERO SLIDER === */
/* ====== YOUR CURRENT DESKTOP RULES (unchanged) ====== */
.hero-slider {
  position: relative;
  height: 91.5vh;
  background: url("/assets/img/home-page/Homepage-bg22.png") no-repeat center
    center/cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--main-light);
  padding: 0 100px;
}

.hero-overlay {
  background: rgba(244, 236, 227, 0.1); /* Optional dark overlay */
  opacity: 0.9;
  border-radius: 50px;
  width: 100%;
  height: 52%;
  display: flex;
  align-items: center;
  padding: 0 50px;
  
}
.typed{
    border-right: 2px solid var(--main);
  white-space: nowrap;     
  overflow: hidden;
  animation: typing 3.5s steps(18), cursor 0.4s step-end infinite alternate;
}
@keyframes cursor{
50% { border-color:transparent}
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.hero-content {
  max-width: 500px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: bolder;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 17px;
  color: var(--main-light);
  opacity: 0.8;
  margin-bottom: 30px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn-book {
  padding: 12px 24px;
  background-color: var(--main-light);
  color: var(--dark-text);
  font-weight: 600;
  border-radius: 7px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-book:hover {
  background-color: var(--main);
  color: var(--dark-text);
}

.btn-find {
  padding: 12px 24px;
  border: 2px solid var(--main-light);
  color: var(--main-light);
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: 0.3s;
}

.btn-find:hover {
  background-color: var(--main-light);
  color: var(--dark-text);
}

/* Car Animation (desktop base) */
.hero-car {
  padding-top: 300px;
  max-width: 100%;
  animation: carSlideIn 4.5s ease-out forwards;
  transform: translateX(100vw); /* start off-screen right */
  z-index: 10;
}

.hero-car img {
  width: 100%;
  height: auto;
}

@keyframes carSlideIn {
  to {
    transform: translateX(0);
  }
}

/* ====== YOUR CURRENT MOBILE RULES (<= 992px) — unchanged ====== */
@media (max-width: 992px) {
  .hero-slider {
    height: 45vh;
    min-height: 340px;
    padding: 0 18px;
    background-position: center 30%;
    border-radius: 0;
  }

  .hero-overlay {
    position: absolute;
    top: 100px;
    left: 0;
    width: 70%;
    height: 30%;
    min-height: 120px;
    max-width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 18px;
    padding: 18px 0px 10px 18px;
    align-items: flex-start;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    color: var(--main-light);
    text-align: left;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0; /* Remove extra padding so content fits inside overlay */
    z-index: 30;
  }

  .hero-content h1 {
    font-size: 20px; /* Smaller font size for mobile */
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 12px; /* Smaller font size for mobile */
    line-height: 1.2;
  }

  .hero-buttons {
    z-index: 30;
  }

  .btn-book,
  .btn-find {
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 5px;
    z-index: 30;
  }

  .hero-car {
    position: absolute;
    left: 35%;
    bottom: 1%;
    transform: translateX(50%) translateY(10px);
    width: 80vw;
    max-width: 100%;
    padding-top: 0;
    z-index: 10;
    animation: carSlideIn 5.5s ease-out forwards;
  }

  .hero-car img {
    width: 100%;
    height: auto;
    display: block;
  }
}
/* end of mobile slider */

/* =========================================================
   TABLET / iPAD FIXES (BETWEEN MOBILE AND DESKTOP ONLY)
   - Small tablets (portrait): 768px–992px
   - Large tablets (landscape): 993px–1200px
   These override the look without changing your phone/desktop.
   ========================================================= */

/* ----- Small tablets: 768–992px (overrides the mobile block above) ----- */
@media (min-width: 768px) and (max-width: 992px) {
  .hero-slider {
    height: 56vh;
    min-height: 420px;
    padding: 0 24px;
    background-position: center 28%;
  }

  /* Give the widget a bit more room and nudge to the right */
  .hero-overlay {
    top: 88px;
    left: 50px; /* slightly higher */
    width: 64%;
    height: 36%;
    margin-left: 0; /* align with left edge */
    margin-right: 0;
    padding: 18px 16px 14px 18px;
    border-radius: 20px;
  }

  .hero-content h1 {
    font-size: 26px;
  }
  .hero-content p {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .btn-book,
  .btn-find {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  /* Car sits nicer in bottom-left and slightly larger */
  .hero-car {
    left: 250px; /* true left instead of 35% */
    bottom: 0.5%;
    transform: translateX(65%) translateY(6px); /* smoother slide position */
    width: 60vw;
  }
}

/* ----- Large tablets: 993–1200px (gently scale desktop so it breathes) ----- */
@media (min-width: 993px) and (max-width: 1200px) {
  .hero-slider {
    height: 82vh; /* a bit shorter so it feels balanced */
    padding: 0 50px;
    background-position: center 38%;
  }

  .hero-overlay {
    position: absolute;
    top: 120px; /* lift overlay higher */
    left: 50px;
    width: 45%; /* narrower so text doesn’t stretch too wide */
    height: auto; /* shrink to fit content */
    min-height: 220px;
    border-radius: 28px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-content p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap; /* if smaller screen, buttons wrap nicely */
  }

  .btn-book,
  .btn-find {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
  }

  .hero-car {
    position: absolute;
    right: 30px;
    bottom: 0;
    width: 100%;
    max-width: 650px;
    padding-top: 0;
    transform: translateX(0); /* car sits in place after animation */
    animation: carSlideIn 5.2s ease-out forwards;
  }
}

/* Optional: honor reduced motion on tablets too */
@media (prefers-reduced-motion: reduce) {
  .hero-car {
    transform: none !important;
    animation: none !important;
  }
}
/* Shared Button Styles */
.scroll-top-btn {
  position: fixed;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

/* Scroll to Top Button (bottom) */
.scroll-top-btn {
  bottom: 20px;
  background: var(--main);
  border: none;
  display: none; /* hidden by default */
}
.scroll-top-btn:hover {
  background: var(--secmain);
  transform: translateY(-3px);
}

/* ===== Glass Header Redesign ===== */
:root {
  /* default desktop height; JS updates this when compact */
  --header-h: 72px;
}

.main-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  /* glass look */
  background: color-mix(in srgb, #faaf31 10%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid #ffffff33;
  /* soft glow that increases when scrolled */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: background 0.35s ease, border-color 0.35s ease,
    box-shadow 0.25s ease, transform 0.35s ease;
}

/* at top: lighter, almost transparent */
.main-header.is-top {
  background: color-mix(in srgb, #ffffff 6%, transparent);
  border-color: #ffffff28;
  box-shadow: none;
}

/* after the user scrolls a bit: denser glass + shadow */
.main-header.is-scrolled {
  background: color-mix(in srgb, #ffffff 55%, transparent);
  border-color: #ffffff55;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* auto-hide when scrolling down (reappears on up) */
.main-header.is-hidden {
  transform: translateY(calc(-1 * var(--header-h)));
}

/* keep your grid but align to new dynamic height */
.header-container {
  height: var(--header-h);
}

/* Fancy underline hover for desktop links */
.nav-desktop a {
  position: relative;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px
    no-repeat;
  transition: background-size 0.25s ease, color 0.2s ease;
}

/* Glassy pill for socials (lighter border on glass) */
.social-icons {
  border-color: #ffffff50;
  background: color-mix(in srgb, var(--main) 35%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}

/* Scroll progress line (driven by --progress) */
.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--main), #ffd97a, var(--secmain));
  box-shadow: 0 0 12px rgba(255, 217, 122, 0.55);
  transition: width 0.12s linear;
  pointer-events: none;
}

/* Mobile keeps the glass, but no auto-hide jitter */
@media (max-width: 992px) {
  .main-header.is-hidden {
    transform: none;
  }
}

/* Reduce motion: keep it still */
@media (prefers-reduced-motion: reduce) {
  .main-header {
    transition: none;
  }
}

.scroll-top-btn {
  position: fixed;
  right: 16px;
  z-index: 3100; /* above bars */
}

/* (optional) smaller phones */
@media (max-width: 992px) {
  .scroll-top-btn {
    right: 12px;
    bottom: 80px;
  }
} /* 1) Ensure the drawer is above the Quick Actions FAB */
@media (max-width: 992px) {
  .nav-drawer {
    z-index: 5000;
  }
  .backdrop {
    z-index: 4990;
  }
  .qa-fab {
    z-index: 2600;
  } /* keep FAB below the drawer */
}

/* 2) Hide the Quick Actions FAB when the menu drawer is open */
@media (max-width: 992px) {
  body:has(.nav-drawer.is-open) .qa-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(16px);
  }
}


