/* ============================================================
   INSTALLIFY — SHARED STYLESHEET
   Mobile-first, fully responsive — NO horizontal scroll
   ============================================================ */
:root {
  --green:       #1d3c34;
  --green-light: #2a5244;
  --yellow:      #cfbc8e;
  --pink:        #ec5fa3;
  --purple:      #7a3fcf;
  --blue:        #0d3b66;
  --sky:         #5bc8f5;
  --white:       #ffffff;
  --off:         #f8f7f4;
  --dark:        #0c0c0c;
  --text:        #1d1d1d;
  --muted:       #666;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.16);
  --transition:  .28s ease;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-script: 'Dancing Script', cursive;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* FIX: Prevent ALL horizontal scroll at root level */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
  font-size: 16px;
  overflow-x: hidden; /* FIX: no horizontal scroll */
  width: 100%;
}
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--off);
  overflow-x: hidden; /* FIX: no horizontal scroll */
  width: 100%;
  min-height: 100vh;
  line-height: 1.65;
  position: relative; /* FIX: needed for overlay positioning */
}

img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── UTILITY ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%; /* FIX: never exceed viewport */
}
.section    { padding: 56px 0; }
.section--dark  { background: var(--green); color: var(--white); }
.section--black { background: var(--dark);  color: var(--white); }
.section--sky   { background: var(--sky); }
.section--off   { background: var(--off); }

.section-tag   { display: inline-block; background: var(--yellow); color: #111; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 4px 14px; border-radius: 50px; margin-bottom: 12px; }
.section-title { font-family: var(--font-serif); font-size: clamp(22px, 5vw, 40px); font-weight: 700; margin-bottom: 10px; }
.section-sub   { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.section--dark .section-sub,
.section--black .section-sub { color: rgba(255,255,255,.65); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  max-width: 100%; /* FIX: never overflow */
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-yellow  { background: var(--yellow); color: #111; }
.btn-green   { background: var(--green);  color: #fff; }
.btn-white   { background: #fff; color: var(--green); }
.btn-outline { background: transparent; border: 2px solid var(--yellow); color: var(--yellow); }
.btn-wa      { background: #25D366; color: #fff; }
.btn-sm      { padding: 9px 16px; font-size: 13px; }

/* ── CARDS ── */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── SCROLL SNAP ROW ── */
.snap-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  /* FIX: contain scroll within section only */
  width: 100%;
}
.snap-row::-webkit-scrollbar { display: none; }
.snap-row .snap-card { flex: 0 0 82vw; max-width: 300px; scroll-snap-align: start; }

/* ── FADE ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── IMAGE PLACEHOLDER ── */
.img-ph { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg,#e8e3d8,#d4cfc0); color: #9a9070; font-size: 13px; border-radius: inherit; }
.img-ph i { font-size: 32px; opacity: .5; }

/* ── STARS ── */
.stars { color: var(--yellow); letter-spacing: 2px; font-size: 16px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9996; /* below hamburger, overlay and drawer */
  background: rgba(29,59,48,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.logo-name { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: #fff; }
.logo-tag  { font-family: var(--font-script); font-size: 10px; color: var(--yellow); }

/* Desktop nav links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: rgba(255,255,255,.88); font-size: 14px; font-weight: 500; padding: 7px 10px; border-radius: 8px; transition: background var(--transition), color var(--transition); white-space: nowrap; }
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-links .nav-cta { background: var(--yellow); color: #111 !important; padding: 8px 16px; border-radius: 50px; font-weight: 700; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-toggle { display: flex; align-items: center; gap: 5px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--green);
  border-radius: var(--radius-sm);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  overflow: hidden;
  z-index: 200;
  border: 1px solid rgba(255,255,255,.1);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: rgba(255,255,255,.85); font-size: 13.5px; font-weight: 500; transition: background var(--transition); }
.dropdown-menu li a:hover { background: rgba(255,255,255,.12); color: var(--yellow); }
.dropdown-menu li a i { color: var(--yellow); width: 16px; }

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 9999; /* HIGHEST — always on top */
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.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); }

/* ── DARK OVERLAY behind mobile nav ── */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9997; /* just below drawer */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-overlay.show { display: block; }

/* ── BODY LOCK when nav open ── */
body.nav-open { overflow: hidden; }

/* ============================================================
   MOBILE NAV (≤ 768px) — DROPDOWN BELOW NAVBAR
   ============================================================ */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  /* Nav panel drops DOWN from navbar — not a side drawer */
  .nav-links {
    position: fixed;
    top: 56px;          /* sits right below navbar height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--green);
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
    gap: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 9998;
    border-top: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
  }

  /* Open — expand downward */
  .nav-links.open {
    max-height: 85vh;
    padding: 12px 16px 20px;
  }

  /* Nav items */
  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links > li:last-child { border-bottom: none; }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    padding: 14px 8px;
    border-radius: 0;
    color: rgba(255,255,255,.92);
    background: transparent;
    transition: color var(--transition);
  }
  .nav-links a:hover,
  .nav-links a:active { color: var(--yellow); background: transparent; }

  /* Book Now CTA inside mobile menu */
  .nav-links .nav-cta {
    margin: 12px 0 4px;
    border-radius: 50px !important;
    background: var(--yellow) !important;
    color: #111 !important;
    justify-content: center;
    font-weight: 700;
    padding: 13px 20px !important;
  }

  /* Mobile dropdown toggle arrow */
  .nav-dropdown { width: 100%; }
  .nav-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 8px;
    color: rgba(255,255,255,.92);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    gap: 8px;
  }
  .nav-dropdown .dropdown-toggle .toggle-arrow {
    font-size: 11px;
    transition: transform 0.3s ease;
    color: rgba(255,255,255,.6);
    margin-left: auto;
    flex-shrink: 0;
  }
  .nav-dropdown.open .toggle-arrow { transform: rotate(180deg); }

  /* Disable hover on mobile */
  .nav-dropdown:hover .dropdown-menu { display: none !important; }

  /* Dropdown panel inside mobile menu */
  .dropdown-menu {
    position: static !important;
    display: none;
    box-shadow: none !important;
    border: none !important;
    background: rgba(255,255,255,0.05) !important;
    border-radius: 10px !important;
    margin: 4px 0 8px !important;
    min-width: unset !important;
    width: 100% !important;
    overflow: hidden;
  }
  .nav-dropdown.open .dropdown-menu { display: block !important; }

  .dropdown-menu li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .dropdown-menu li:last-child { border-bottom: none; }
  .dropdown-menu li a {
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: rgba(255,255,255,.8) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .dropdown-menu li a:hover { color: var(--yellow) !important; background: transparent !important; }
  .dropdown-menu li a i { color: var(--yellow); width: 18px; font-size: 14px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: #fff; padding: 48px 0 0; width: 100%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand .logo-name { font-size: 22px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 13px; margin-top: 10px; line-height: 1.7; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.footer-col a  { display: block; color: rgba(255,255,255,.6); font-size: 13px; margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; transition: transform var(--transition); flex-shrink: 0; }
.social-icon:hover { transform: translateY(-3px); }
.si-fb { background: #1877f2; }
.si-ig { background: radial-gradient(circle at 30% 110%,#fdf497,#fd5949,#d6249f,#285AEB); }
.si-yt { background: #f00; }
.si-li { background: #0a66c2; }
.si-wa { background: #25D366; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { color: rgba(255,255,255,.35); font-size: 12px; }

/* ── BACK TO TOP ── */
#backTop { position: fixed; bottom: 20px; right: 16px; width: 42px; height: 42px; background: var(--yellow); color: #111; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--transition); z-index: 800; }
#backTop.show { opacity: 1; visibility: visible; transform: none; }

/* ============================================================
   TABLET  (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============================================================
   SMALL MOBILE  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .container { padding: 0 14px; }
  .section-title { font-size: 22px; }
  .btn { padding: 11px 16px; font-size: 13px; }
  .btn-sm { padding: 8px 12px; font-size: 12px; }
  .snap-row .snap-card { flex: 0 0 88vw; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-social { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, html { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* overlay and body lock already defined above in mobile nav section */