:root {
  --header-offset: 4.75rem;
  --navy: #0a2540;
  --medic: #0c6eae;
  --teal: #0f766e;
  --ink: #12263a;
  --line: #d7e3ee;
  --mist: #f4f7fb;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 0.75rem);
}

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--mist);
}

body.lock-scroll {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  border-radius: 999px;
  background: white;
  color: var(--navy);
  padding: 0.7rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(215, 227, 238, 0.9);
  box-shadow: 0 10px 30px -24px rgba(10, 37, 64, 0.6);
}

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
}

.topbar p {
  white-space: nowrap;
}

.topbar-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  white-space: nowrap;
}

.topbar svg.topbar-icon,
.topbar-icon {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  flex: 0 0 14px !important;
  overflow: hidden;
  opacity: 0.92;
  vertical-align: middle;
}

.topbar .mx-auto > p:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .mx-auto > p:last-child {
  flex: none;
}

@media (max-width: 1100px) {
  .topbar a[href^="mailto:"] { display: none; }
}

@media (max-width: 860px) {
  .topbar a[href="tel:+917505750768"] { display: none; }
}

.nav-link {
  position: relative;
  color: #1c3348;
  font-size: 0.95rem;
  font-weight: 650;
  font-weight: 600;
  padding: 0.35rem 0;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--medic);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 99px;
  background: var(--medic);
}

.nav-drop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 1rem;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  width: min(22rem, 80vw);
  padding: 0.5rem;
  border-radius: 1.15rem;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -28px rgba(10, 37, 64, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.nav-drop:hover .dropdown-panel,
.nav-drop:focus-within .dropdown-panel,
.nav-drop.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: white;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 99px;
  background: var(--navy);
  transition: 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-offset);
  z-index: 60;
  height: calc(100dvh - var(--header-offset));
  overflow: auto;
  padding: 0.75rem 1.15rem 6.5rem;
  background: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 0.22s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s ease;
}

.btn svg.btn-icon,
.btn-icon {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  flex: 0 0 16px !important;
  overflow: hidden;
  vertical-align: middle;
}

.btn-sm svg.btn-icon,
.btn-sm .btn-icon {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  flex: 0 0 14px !important;
}

.btn:focus-visible,
.nav-link:focus-visible,
.menu-toggle:focus-visible,
.dock-btn:focus-visible,
.faq summary:focus-visible,
.field:focus-visible {
  outline: 2px solid var(--medic);
  outline-offset: 3px;
}

.btn-sm {
  min-height: 2.75rem;
  padding: 0.65rem 1.05rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--medic);
  color: white;
  box-shadow: 0 12px 24px -14px rgba(12, 110, 174, 0.95);
}

.btn-primary:hover {
  background: #0a5689;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.38);
}

.btn-ghost:hover {
  background: white;
  color: var(--navy);
}

.btn-light {
  background: white;
  color: var(--navy);
}

.btn-light:hover {
  background: #e7f3fb;
}

.btn-line {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}

.btn-line:hover {
  border-color: var(--medic);
  color: var(--medic);
}

.btn-block { width: 100%; }

[hidden] { display: none !important; }

.booking-head,
.booking-body,
.booking-success {
  padding: 1.15rem 1.25rem 1.25rem;
}

.booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #eef3f8;
}

.kicker {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.booking-head h2,
.booking-success h3 {
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.booking-head p,
.booking-success p,
.fine-print {
  margin-top: 0.35rem;
  color: #526277;
  font-size: 0.875rem;
  line-height: 1.55;
}

.fine-print {
  text-align: center;
  font-size: 0.75rem;
}

.close-x {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.form-grid { display: grid; gap: 0.35rem; }

.form-split {
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .form-split { grid-template-columns: 1fr 1fr; }
  .booking-head, .booking-body, .booking-success { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

@media (min-width: 640px) {
  .success-actions { flex-direction: row; }
}

.lightbox [data-close-light] {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox figcaption {
  margin-top: 0.75rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 650;
  font-weight: 600;
  text-align: center;
}

.hero-scrim {
  background:
    linear-gradient(180deg, rgba(6, 20, 34, 0.55), rgba(6, 20, 34, 0.78) 42%, rgba(6, 20, 34, 0.92)),
    radial-gradient(700px circle at 85% 20%, rgba(15, 118, 110, 0.28), transparent 55%);
}

@media (min-width: 1024px) {
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(6, 20, 34, 0.94) 0%, rgba(10, 37, 64, 0.86) 42%, rgba(10, 37, 64, 0.42) 100%),
      radial-gradient(500px circle at 78% 30%, rgba(12, 110, 174, 0.25), transparent 60%);
  }
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.48), transparent 42%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tilt-card:hover .tilt-glare,
.tilt-card:focus-visible .tilt-glare {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards;
}

.js .reveal-delay-1 { animation-delay: 0.08s; }
.js .reveal-delay-2 { animation-delay: 0.16s; }
.js .reveal-delay-3 { animation-delay: 0.24s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.faq summary {
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  transition: transform 0.2s ease;
}

.faq[open] .faq-icon {
  transform: rotate(45deg);
}

.callout {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: 1.5rem;
  color: white;
  background:
    radial-gradient(520px circle at 100% 0%, rgba(227, 178, 60, 0.28), transparent 46%),
    linear-gradient(135deg, #0a2540 0%, #0f4c5c 55%, #0f766e 100%);
}

.callout::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2.5rem;
  width: 9rem;
  height: 9rem;
  border: 18px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  pointer-events: none;
}

.callout > * {
  position: relative;
  z-index: 1;
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 0.95rem;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
}

.field:focus {
  border-color: var(--medic);
  box-shadow: 0 0 0 4px rgba(12, 110, 174, 0.14);
  outline: none;
}

.field.is-invalid {
  border-color: #b42318;
}

.field-error {
  min-height: 1.05rem;
  margin-top: 0.28rem;
  color: #b42318;
  font-size: 0.75rem;
  font-weight: 650;
  font-weight: 600;
}

.quick-dock {
  position: fixed;
  z-index: 40;
  right: 1.15rem;
  bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.dock-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.55rem;
  height: 3.55rem;
  border: 0;
  border-radius: 999px;
  color: white;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  text-decoration: none;
}

.dock-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dock-wa { background: #25d366; }
.dock-call { background: #0c6eae; }
.dock-book { display: none; }

.dock-wa::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  70% { transform: scale(1.12); opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 767px) {
  .quick-dock {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    gap: 0;
    background: white;
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 30px rgba(10, 37, 64, 0.08);
  }

  .dock-btn {
    width: auto;
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border-radius: 0;
    background: white;
    color: var(--ink);
    box-shadow: none;
    padding: 0.65rem 0.2rem 0.72rem;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .dock-btn span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }

  .dock-wa { color: #128c7e; }
  .dock-call { color: #0c6eae; }
  .dock-book {
    display: flex;
    color: var(--navy);
    background: #e7f3fb;
  }

  .dock-wa::after { display: none; }

  body { padding-bottom: calc(4.15rem + env(safe-area-inset-bottom)); }
}

@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.booking-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 34, 0.62);
}

.booking-dialog {
  position: relative;
  width: min(100%, 34rem);
  max-height: min(92svh, 46rem);
  overflow: auto;
  margin: 0;
  border-radius: 1.5rem 1.5rem 0 0;
  background: white;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.booking-modal.is-open .booking-dialog {
  transform: none;
  opacity: 1;
}

@media (min-width: 768px) {
  .booking-modal {
    place-items: center;
    padding: 1.25rem;
  }

  .booking-dialog {
    border-radius: 1.5rem;
    transform: translateY(12px) scale(0.98);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(6, 20, 34, 0.86);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-height: min(78svh, 860px);
  width: auto;
  max-width: min(92vw, 520px);
  border-radius: 1.25rem;
  object-fit: contain;
  background: white;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
