/* ==========================================================================
   SKYTREE TRAVELS — components.css
   Style Inspired by Skytree Travels (https://Skytree Travels.in/)
   Palette: Deep Navy #052E44 | Sky Blue #1679B2 | Tangerine CTA #FF5A36
   ========================================================================== */

/* ─── 1. BUTTONS ────────────────────────────────────────────────────────── */
.button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--duration-standard) var(--ease-standard);
  white-space: nowrap;
  user-select: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* -- Primary Button (Skytree Travels Deep Navy) -- */
.button--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(5, 46, 68, 0.25);
}

.button--primary:hover {
  background: var(--primary-light);
  color: #fff;
  box-shadow: 0 8px 26px rgba(5, 46, 68, 0.35);
}

/* -- Accent Button (Skytree Travels Vibrant Coral Orange) -- */
.button--accent {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 90, 54, 0.35);
}

.button--accent:hover {
  background: linear-gradient(135deg, #E04826 0%, #FF6F48 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 90, 54, 0.5);
}

/* -- Blue Button (Sky Blue Accent) -- */
.button--blue {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 4px 18px rgba(22, 121, 178, 0.35);
}

.button--blue:hover {
  background: linear-gradient(135deg, #0B4B6E 0%, #1679B2 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(22, 121, 178, 0.5);
}

/* -- Outline Button -- */
.button--outline {
  border-color: #D3E4F0;
  background: #fff;
  color: var(--primary);
}

.button--outline:hover {
  border-color: var(--secondary);
  background: var(--secondary-bg);
  color: var(--secondary);
  box-shadow: 0 4px 16px rgba(22, 121, 178, 0.12);
}

.button--block {
  width: 100%;
}

.button--light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(5, 46, 68, 0.1);
}

.button--light:hover {
  background: var(--surface-alt);
  color: var(--secondary);
}

.button--outline-light {
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}

.button--outline-light:hover {
  background: rgba(255, 255, 255, .25);
  border-color: #fff;
  color: #fff;
}

/* -- WhatsApp Button (Official Green) -- */
.button--whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.button--whatsapp:hover {
  background: #20BD5A;
  color: #fff;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
}

/* ─── 2. TOPBAR ──────────────────────────────────────────────────────────── */
.topbar {
  background: var(--primary);
  color: rgba(255, 255, 255, .85);
  font-size: .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar__inner,
.topbar__contact,
.topbar__social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar__inner {
  min-height: 38px;
  justify-content: space-between;
}

.topbar__contact a,
.topbar__social a {
  color: rgba(255, 255, 255, .85);
  transition: color var(--duration-fast) ease;
}

.topbar__contact a:hover,
.topbar__social a:hover {
  color: var(--secondary-light);
  text-decoration: none;
}

.topbar__social {
  gap: .85rem;
}

/* ─── 3. SITE HEADER (Skytree Travels Signature Clean White Header) ───────── */
.site-header {
  position: sticky;
  z-index: var(--z-header);
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #EDF2F7;
  box-shadow: 0 2px 20px rgba(5, 46, 68, 0.05);
  transition: all var(--duration-standard) ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 28px rgba(5, 46, 68, 0.09);
}

.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo */
.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .75rem;
  color: var(--primary);
  text-decoration: none;
}

.brand:hover {
  color: var(--primary);
  text-decoration: none;
}

.brand__logo {
  width: 48px;
  height: 48px;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.brand__title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #052E44;
  white-space: nowrap;
}

.brand__slogan {
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #64748B;
  white-space: nowrap;
  margin-top: 1px;
}

.brand__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(5, 46, 68, 0.25);
  flex-shrink: 0;
}

.brand__name {
  max-width: 220px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--primary);
}

/* Navigation Menu */
.primary-nav {
  margin-left: auto;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 1.8vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav__link {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--duration-fast) ease;
}

.primary-nav__link::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 2.5px;
  border-radius: 999px;
  background: var(--secondary);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-standard) var(--ease-standard);
}

.primary-nav__link:hover {
  color: var(--secondary);
}

.primary-nav__link:hover::after,
.primary-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.primary-nav__link[aria-current="page"] {
  color: var(--secondary);
}

/* Header Actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: .85rem;
}

/* Skytree Travels Pill Phone button */
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  padding: .5rem 1.15rem;
  border: 1.5px solid var(--secondary-light);
  border-radius: var(--radius-pill);
  background: var(--secondary-bg);
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--duration-standard) ease;
}

.site-header__phone:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.site-header__phone .icon {
  font-size: .95rem;
}

/* Enquire Now Button */
.site-header__cta {
  background: var(--gradient-accent);
  color: #fff;
  min-height: 42px;
  padding: .5rem 1.35rem;
  font-size: .9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(255, 90, 54, 0.35);
}

.site-header__cta:hover {
  box-shadow: 0 8px 24px rgba(255, 90, 54, 0.5);
  color: #fff;
}

.menu-toggle,
.menu-close,
.primary-nav__header,
.primary-nav__mobile-contact {
  display: none;
}

.nav-backdrop {
  position: fixed;
  z-index: 2400;
  inset: 0;
  background: rgba(5, 46, 68, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.nav-backdrop:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

/* ─── 4. SITE FOOTER (Skytree Travels Luxury Navy Footer) ─────────────────── */
.site-footer {
  background: #052E44;
  color: rgba(255, 255, 255, .75);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--topographic-pattern);
  opacity: .5;
  pointer-events: none;
}

.site-footer__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-block: 5rem 3.5rem;
}

.site-footer__heading {
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.site-footer__about p {
  max-width: 320px;
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
  line-height: 1.7;
}

.brand--footer {
  margin-bottom: 1.2rem;
  color: #fff;
}

.brand--footer .brand__name {
  color: #fff;
}

.brand--footer .brand__mark {
  background: var(--secondary);
}

.site-footer__main ul {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__main a,
.site-footer__contact span {
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
  transition: color var(--duration-fast) ease;
}

.site-footer__main a:hover {
  color: var(--secondary-light);
  text-decoration: none;
}

.site-footer__contact address {
  display: grid;
  gap: .75rem;
}

.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* Social links pill */
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .9rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-pill);
  font-size: .82rem;
  color: rgba(255, 255, 255, .8);
  transition: all var(--duration-fast) ease;
}

.social-link:hover {
  border-color: var(--secondary-light);
  background: rgba(22, 121, 178, 0.3);
  color: #fff;
}

/* Newsletter Input */
.site-footer__newsletter p {
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  line-height: 1.6;
}

.input-group {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

.input-group input {
  min-width: 0;
  flex: 1;
}

.site-footer .input-group input {
  border: 1.5px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
}

.site-footer .input-group input::placeholder {
  color: rgba(255, 255, 255, .45);
}

.site-footer .input-group input:focus {
  border-color: var(--secondary-light);
  background: rgba(255, 255, 255, .15);
  box-shadow: 0 0 0 3px rgba(117, 194, 238, 0.2);
}

/* Bottom copyright bar */
.site-footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__bottom-inner {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .84rem;
  color: rgba(255, 255, 255, .6);
}

.site-footer__bottom nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__bottom a {
  color: rgba(255, 255, 255, .65);
}

.site-footer__bottom a:hover {
  color: #fff;
}

/* ─── 5. FORMS ───────────────────────────────────────────────────────────── */
.form {
  display: grid;
  gap: 1.15rem;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form__field {
  display: grid;
  gap: .45rem;
}

.form__field--full {
  grid-column: 1/-1;
}

.form__field label {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: .88rem;
  font-weight: 600;
}

.form__optional {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  transition: all var(--duration-fast) ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #94A3B8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--secondary);
  outline: 0;
  box-shadow: var(--focus);
}

.form__message {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.form__message.is-error {
  color: var(--error);
}

.form__message.is-success {
  color: var(--success);
}

.form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form__privacy {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}

/* ─── 6. MODAL ───────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  z-index: var(--z-modal);
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 46, 68, 0.7);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: min(92vh, 880px);
  overflow-y: auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 25px 70px rgba(5, 46, 68, 0.25);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--light);
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.modal__close:hover {
  background: #E2E8F0;
  color: var(--accent);
}

/* ─── 7. FLOATING ACTIONS (WhatsApp, Call, Back to Top) ─────────────────── */
.global-actions {
  position: fixed;
  z-index: var(--z-floating);
  right: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  justify-items: end;
  gap: .8rem;
}

.floating-whatsapp,
.floating-call,
.back-to-top {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .7rem 1.25rem;
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 26px rgba(5, 46, 68, 0.18);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--duration-standard) var(--ease-spring), box-shadow var(--duration-standard) ease;
}

.floating-whatsapp:hover,
.floating-call:hover,
.back-to-top:hover {
  transform: translateY(-3px);
}

.floating-whatsapp {
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.floating-whatsapp__label {
  display: none;
}

.floating-whatsapp:hover {
  background: #20BD5A;
  color: #fff;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
  transform: scale(1.08);
}

.floating-whatsapp__icon svg {
  width: 30px;
  height: 30px;
}

.floating-call {
  display: none;
  background: var(--primary);
  color: #fff;
}

.floating-call:hover {
  background: var(--primary-light);
  color: #fff;
}

.back-to-top {
  width: 48px;
  min-height: 48px;
  padding: 0;
  background: var(--secondary);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.back-to-top:hover {
  background: var(--primary);
  box-shadow: var(--shadow-glow);
}

/* ─── 8. COOKIE CONSENT ──────────────────────────────────────────────────── */
.cookie-consent {
  position: fixed;
  z-index: 1800;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  max-width: 860px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-inline: auto;
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 45px rgba(5, 46, 68, 0.15);
}

.cookie-consent__copy p {
  margin: .25rem 0;
  font-size: .88rem;
  color: var(--muted);
}

.cookie-consent__actions {
  display: flex;
  gap: .5rem;
  flex: 0 0 auto;
}

/* ─── 9. TOAST ───────────────────────────────────────────────────────────── */
.site-toast {
  position: fixed;
  z-index: 3000;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: min(420px, calc(100% - 2.5rem));
  padding: 1rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
}
