/* Shared navbar + footer styles (used by service detail pages) */
/* =========================================================
   BRAND TOKENS
   ========================================================= */
:root {
  --orange: #E94E1B;   /* buttons, active links, hover */
  --maroon: #7A0C1A;   /* logo text, headings, footer  */
  --offwhite: #FFF9F5; /* page / mobile menu background */
  --white: #FFFFFF;    /* navbar, cards */
  --text: #2B2B2B;     /* dark text */
  --border: #EDE6E0;   /* light grey border */

  --nav-h: 76px;
  --ease: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--nav-h);            /* room for the fixed navbar */
  background: var(--offwhite);
  color: var(--text);
  font-family: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;                   /* no horizontal scroll */
}

/* Lock page scroll while the mobile menu is open */
body:has(.nav-toggle:checked) { overflow: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* =========================================================
   NAVBAR WRAPPER (fixed, full width)
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}

/* Soft shadow added by the tiny scroll script at the bottom */
.navbar.scrolled { box-shadow: 0 4px 18px rgba(43, 43, 43, 0.10); }

/* Hidden checkbox that drives the mobile menu (CSS-only toggle) */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Centered inner container: [Logo] [Links] [Actions] */
.navbar-inner {
  max-width: 1280px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* =========================================================
   LOGO
   ========================================================= */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img { height: 68px; width: auto; }

.logo-text {
  color: var(--maroon);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* =========================================================
   DESKTOP NAV LINKS
   ========================================================= */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--ease);
}

/* Underline (hidden by default, grows on hover, always on for active) */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Active page */
.nav-links a.active {
  color: var(--orange);
  font-weight: 700;
}
.nav-links a.active::after { transform: scaleX(1); }

/* =========================================================
   ACTIONS (Book Now + hamburger)
   ========================================================= */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--orange);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.btn-book .arrow { transition: transform var(--ease); }
.btn-book:hover { background: var(--maroon); }
.btn-book:hover .arrow { transform: translateX(4px); }

/* Hamburger (a <label> for the checkbox) – hidden on desktop */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 10px;
  transition: background var(--ease);
}

.hamburger:hover { background: var(--offwhite); }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
}

/* Keyboard focus ring for the hidden checkbox */
.nav-toggle:focus-visible ~ .navbar-inner .hamburger {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* =========================================================
   MOBILE MENU (slides down from top)
   ========================================================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(43, 43, 43, 0.15);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--ease), visibility var(--ease);
  z-index: 1100;
}

.nav-toggle:checked ~ .mobile-menu {
  transform: translateY(0);
  visibility: visible;
}

/* Top row: logo + close X */
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-top .logo img { height: 56px; }

.close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  color: var(--maroon);
  cursor: pointer;
  border-radius: 10px;
  transition: color var(--ease), background var(--ease);
}
.close-btn:hover { color: var(--orange); background: var(--white); }

/* Stacked links */
.mobile-links a {
  display: block;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 500;
  color: var(--maroon);
  border-bottom: 1px solid var(--border);
  border-left: 4px solid transparent;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}

.mobile-links a:hover { color: var(--orange); background: var(--white); }

.mobile-links a.active {
  color: var(--orange);
  font-weight: 700;
  border-left-color: var(--orange);
}

/* Bottom: Book Now + phone numbers */
.mobile-menu-bottom {
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-menu-bottom .btn-book {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
}

.mobile-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  color: var(--maroon);
  font-weight: 600;
  font-size: 16px;
}

.mobile-phones a { color: var(--maroon); transition: color var(--ease); }
.mobile-phones a:hover { color: var(--orange); }
.mobile-phones .sep { color: var(--border); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---- Tablet: 768px – 1024px (still horizontal, tighter) ---- */
@media (max-width: 1024px) {
  .navbar-inner { gap: 16px; }
  .logo img { height: 62px; }
  .logo-text { font-size: 13px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 15px; }
  .btn-book { padding: 10px 16px; font-size: 15px; }
}

/* ---- Mobile: below 768px (hamburger layout) ---- */
@media (max-width: 767px) {
  :root { --nav-h: 68px; }

  .navbar-inner { padding: 0 16px; gap: 8px; }

  .nav-links { display: none; }              /* hide desktop links */
  .hamburger { display: flex; }              /* show hamburger */

  .logo img { height: 58px; }
  .logo-text { font-size: 12px; max-width: 110px; }

  .nav-actions .btn-book {                   /* small Book Now */
    padding: 9px 14px;
    font-size: 14px;
    border-radius: 10px;
  }
}

/* ---- Very small phones: logo image only, keep everything on one row ---- */
@media (max-width: 420px) {
  .logo-text { display: none; }
}

/* Menu is a mobile-only feature */
@media (min-width: 768px) {
  .mobile-menu { display: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  --footer-text: #E8D5D0;
  background: var(--maroon);
  color: var(--white);
  padding: 50px 5% 20px;
}

/* 4 columns: brand is ~30% */
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 3fr;
  gap: 32px;
}

.footer-col h4 { margin: 0 0 16px; font-size: 17px; font-weight: 700; color: var(--white); }

/* link style shared by the 3 link columns */
.footer-col > a:not(.footer-logo),
.footer-col > span {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--footer-text);
}

.footer-col > a:not(.footer-logo) { transition: color var(--ease), transform var(--ease); }
.footer-col > a:not(.footer-logo):hover { color: var(--orange); transform: translateX(4px); }

/* ---- Brand column ---- */
.footer-logo { display: inline-flex; flex-direction: column; line-height: 1.1; margin-bottom: 14px; }
.footer-logo strong { font-size: 24px; font-weight: 800; letter-spacing: 1px; color: var(--white); }
.footer-logo span   { font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--orange); }

.footer-brand p { margin: 0 0 20px; max-width: 340px; font-size: 14px; line-height: 1.6; color: var(--footer-text); }

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  transition: background var(--ease), transform var(--ease);
}
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); }

/* ---- Contact column ---- */
.footer-col > .footer-phone { font-size: 16px; font-weight: 700; color: var(--white); }

/* ---- Divider + bottom bar ---- */
.footer-line {
  max-width: 1280px;
  margin: 32px auto 16px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--footer-text);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--white); transition: color var(--ease); }
.footer-bottom a:hover { color: var(--orange); }

/* ---- Footer responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .footer { padding: 40px 20px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}
