/* Discover Parbat — shared styles
   Header, navigation, hamburger menu, footer, sticky CTA, and shared tokens.
   Page-specific styles remain in each HTML file's <style> block. */

/* ─── VARIABLES ────────────────────────────────────── */
:root {
  --green-dark:   #1a3d2b;
  --green-mid:    #2d6a4f;
  --green-light:  #52b788;
  --blue-deep:    #0a3d62;
  --blue-mid:     #1a6fa8;
  --blue-light:   #4ea8d8;
  --cream:        #f7f4ef;
  --white:        #ffffff;
  --black:        #111111;
  --text-dark:    #1c1c1c;
  --text-mid:     #3a3a3a;
  --shadow-sm:    0 4px 16px rgba(0,0,0,0.07);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.18);
  --radius:       14px;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ─── HEADER ───────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 7%;
  height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(42,106,79,0.12);
  transition: box-shadow var(--transition);
}
header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.10); }
.logo img { height: 48px; width: auto; display: block; }

nav ul { display: flex; list-style: none; gap: 36px; align-items: center; }
nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  position: relative;
  transition: color var(--transition);
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--green-mid), var(--blue-mid));
  border-radius: 2px;
  transition: width var(--transition);
}
nav a:hover { color: var(--green-mid); }
nav a:hover::after { width: 100%; }
nav a.active,
nav a[aria-current="page"] { color: var(--green-mid); }
nav a.active::after,
nav a[aria-current="page"]::after { width: 100%; }

/* ─── HAMBURGER BUTTON ─────────────────────────────── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text-dark);
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background var(--transition);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), top var(--transition);
}
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

/* ─── MOBILE NAV PANEL ─────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 72px; left: 0; right: 0;
  z-index: 99;
  padding: 20px 7% 32px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(42,106,79,0.12);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--text-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] { color: var(--green-mid); padding-left: 8px; }
.mobile-nav ul li:last-child a { border-bottom: 0; }

/* ─── FOOTER ───────────────────────────────────────── */
footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 60px 7% 30px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(78,168,216,0.06);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p  { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 260px; }
.footer-col h4   { font-family: 'DM Sans', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green-light); margin-bottom: 18px; }
.footer-col ul   { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a    { text-decoration: none; color: rgba(255,255,255,0.65); font-size: 0.92rem; transition: color var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: var(--white); }
.footer-col a::before { content: '→'; font-size: 0.75rem; color: var(--green-light); opacity: 0; transform: translateX(-6px); transition: opacity var(--transition), transform var(--transition); display: inline-block; }
.footer-col a:hover::before { opacity: 1; transform: translateX(0); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-tagline  { font-size: 0.8rem; color: rgba(255,255,255,0.35); font-style: italic; }

/* ─── STICKY ENQUIRE BUTTON ────────────────────────── */
.sticky-enquire {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.sticky-enquire.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.sticky-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green-mid), var(--blue-mid));
  color: var(--white);
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 28px rgba(26,61,43,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.sticky-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 36px rgba(26,61,43,0.45); }
.sticky-btn svg   { width: 18px; height: 18px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.sticky-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  border: 2px solid rgba(82,183,136,0.5);
  animation: pulseRing 2.5s ease infinite;
  pointer-events: none;
}
.enquiry-menu {
  display: none;
  min-width: 210px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
  overflow: hidden;
}
.enquiry-menu.open { display: block; }
.enquiry-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.enquiry-option:last-child { border-bottom: 0; }
.enquiry-option:hover { background: #f5faf7; }
.enquiry-option svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
@keyframes pulseRing {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

/* ─── RESPONSIVE (shared header/nav/footer only) ───── */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  nav > ul { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  header { padding: 0 5%; }
  footer { padding: 50px 5% 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .sticky-enquire { bottom: 18px; right: 16px; }
  .sticky-btn { padding: 12px 18px; font-size: 0.85rem; }
  .enquiry-menu { min-width: 190px; }
  .mobile-nav { padding: 16px 5% 28px; }
}

/* ─── GLOBAL MOBILE HARDENING LAYER ───────────────────
   Ensures consistent behavior on iPhone 15 and other devices. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}
table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
* {
  min-width: 0;
}

@media (max-width: 1024px) {
  .contact-main-grid,
  .article-wrap,
  .page,
  .page-body,
  .shop-grid,
  .departures-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .hero,
  .hero-small {
    min-height: 360px;
  }
  .section-header {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
}

@media (max-width: 640px) {
  input,
  select,
  textarea,
  button {
    font-size: 16px !important; /* prevents iOS zoom on focus */
  }
  .sticky-enquire {
    bottom: calc(14px + env(safe-area-inset-bottom));
    right: calc(12px + env(safe-area-inset-right));
  }
  .sticky-btn {
    max-width: calc(100vw - 28px);
  }
  .enquiry-menu {
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 430px) {
  .mobile-nav a {
    font-size: 1.25rem;
  }
  .sticky-btn {
    padding: 11px 14px;
    font-size: 0.82rem !important;
  }
}

/* ─── BREADCRUMB / LONG PATH HARDENING ─────────────── */
.breadcrumb,
.breadcrumb a,
.breadcrumb span,
.page-breadcrumb,
.page-breadcrumb a,
.page-breadcrumb span {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

@media (max-width: 640px) {
  .breadcrumb,
  .page-breadcrumb {
    font-size: 0.82rem !important;
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
}
