/* =========================================================
   Subhash Travel Service — Brand-Only Luxury Stylesheet
   Palette strictly derived from STS LOGO PG.png:
   - Deep Ocean Navy:   #0B4A7D
   - Sky Blue:          #5AA3E8
   - Emerald Green:     #249C49
   - Tangerine Orange:  #F27930
   - Silver-Grey:       #C4C7CC
   - Canvas White:      #FFFFFF / #F8FAFC
   ========================================================= */

:root {
  --navy: #0B4A7D;
  --navy-dark: #073357;
  --sky: #5AA3E8;
  --sky-soft: #EDF5FD;
  --emerald: #249C49;
  --emerald-dark: #1B7A38;
  --orange: #F27930;
  --orange-dark: #D9631E;
  --silver: #C4C7CC;
  --silver-light: #E6E9ED;
  --bg-white: #FFFFFF;
  --bg-mist: #F8FAFC;
  --text-main: #0B4A7D;
  --text-body: #334E68;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 12px 32px rgba(11, 74, 125, 0.08);
  --shadow-card: 0 6px 20px rgba(11, 74, 125, 0.06);
  --header-offset: 185px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

section[id],
#enquiry {
  scroll-margin-top: var(--header-offset);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-navy { color: var(--navy); }
.text-sky { color: var(--sky); }
.text-emerald { color: var(--emerald); }
.text-orange { color: var(--orange); }

/* Continuous Left-to-Right Marquee Top Bar */
.top-bar {
  background-color: var(--navy);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 9px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(90, 163, 232, 0.35);
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollLeftToRight 26s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.marquee-group span {
  color: #FFFFFF;
}

.m-sep {
  margin: 0 56px;
  color: var(--sky);
  font-weight: 700;
}

@keyframes scrollLeftToRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* Header — Centered Two-Row Editorial Layout */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--silver-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0 12px;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  height: 108px;
  max-width: 90vw;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-nav-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  border-top: 1px solid var(--silver-light);
}

.fallback-logo {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-subhash {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sky);
  display: block;
  line-height: 1;
}

.brand-travel {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--sky);
}

.main-nav a.nav-pay-trigger {
  color: var(--orange);
  font-weight: 700;
}

.main-nav a.nav-pay-trigger:hover {
  color: var(--navy);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--silver);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-full {
  width: 100%;
}

.btn-orange {
  background-color: var(--orange);
  color: #FFFFFF;
}

.btn-orange:hover {
  background-color: var(--orange-dark);
}

.btn-emerald {
  background-color: var(--emerald);
  color: #FFFFFF;
}

.btn-emerald:hover {
  background-color: var(--emerald-dark);
}

.btn-navy {
  background-color: var(--navy);
  color: #FFFFFF;
}

.btn-navy:hover {
  background-color: var(--navy-dark);
}

.btn-email-submit {
  margin-top: 10px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--bg-white) 100%);
  padding: 44px 0 64px;
  border-bottom: 1px solid var(--silver-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-white);
  border: 1px solid var(--silver);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
}

.dot-orange {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--silver);
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--text-body);
}

.trust-sep {
  width: 1px;
  height: 32px;
  background: var(--silver);
}

/* Hero Card */
.hero-card {
  background: var(--bg-white);
  border: 1px solid var(--silver);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.hero-card-header {
  margin-bottom: 18px;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--sky);
  margin-bottom: 4px;
}

.hero-card-header h2 {
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.hero-card-header p {
  font-size: 0.88rem;
}

/* Forms */
.enquiry-form .form-group {
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--silver);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--bg-white);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(90, 163, 232, 0.2);
}

/* Heritage Spotlight & Refined Double-Ring Emblem */
.heritage-section {
  padding: 54px 0;
  background: var(--bg-white);
}

.heritage-box {
  display: flex;
  align-items: center;
  gap: 36px;
  background: var(--bg-mist);
  border: 1px solid var(--silver);
  border-left: 5px solid var(--emerald);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.seal-circle {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: var(--bg-white);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(11, 74, 125, 0.1);
}

.seal-inner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px dashed var(--sky);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
}

.seal-top {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--orange);
  margin-bottom: 2px;
}

.seal-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.seal-divider {
  width: 34px;
  height: 1.5px;
  background: var(--silver);
  margin: 5px 0;
}

.seal-bot {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: var(--sky);
}

.section-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.heritage-text-col h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.heritage-subpara {
  margin-top: 12px;
}

.generations-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.gen-pill {
  background: var(--bg-white);
  border: 1px solid var(--silver);
  border-top: 3px solid var(--sky);
  border-radius: 10px;
  padding: 12px 14px;
}

.gen-pill:nth-child(2) {
  border-top-color: var(--navy);
}

.gen-pill:nth-child(3) {
  border-top-color: var(--orange);
}

.gen-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--emerald);
  margin-bottom: 3px;
}

.gen-pill strong {
  color: var(--navy);
  font-size: 0.96rem;
}

/* Services */
.services-section {
  padding: 64px 0;
  background: var(--bg-mist);
  border-top: 1px solid var(--silver-light);
  border-bottom: 1px solid var(--silver-light);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 42px;
}

.section-header h2 {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--sky);
  transform: translateY(-3px);
}

.featured-card {
  border: 2px solid var(--emerald);
}

.card-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--emerald);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.icon-navy { background: var(--navy); }
.icon-sky { background: var(--sky); }
.icon-emerald { background: var(--emerald); }
.icon-orange { background: var(--orange); }

.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-link {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.service-link:hover {
  color: var(--navy);
}

/* Why Book With Us Section */
.why-section {
  padding: 64px 0;
  background: var(--bg-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg-mist);
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  border-color: var(--navy);
}

.why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.num-navy { background: var(--navy); }
.num-emerald { background: var(--emerald); }
.num-sky { background: var(--sky); }
.num-orange { background: var(--orange); }

.why-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.92rem;
}

/* Offices */
.offices-section {
  padding: 64px 0;
  background: var(--sky-soft);
  border-top: 1px solid var(--silver-light);
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.office-card {
  background: var(--bg-white);
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.office-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.tag-navy { background: var(--navy); }
.tag-sky { background: var(--sky); }

.office-card h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.office-address {
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.map-link {
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #FFFFFF;
  padding-top: 44px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(196, 199, 204, 0.25);
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.footer-tagline {
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-legacy {
  font-size: 0.88rem;
  color: var(--silver);
}

.footer-contact {
  text-align: right;
}

.footer-contact a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
}

.footer-email {
  margin-top: 4px;
}

.footer-domain {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--silver);
}

.footer-bottom {
  background: var(--navy-dark);
  padding: 14px 0;
  font-size: 0.82rem;
  color: var(--silver);
  text-align: center;
}

/* ICICI UPI QR Payment Modal */
.pay-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 51, 87, 0.72);
  backdrop-filter: blur(3px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pay-modal-backdrop.open {
  display: flex;
}

.pay-modal {
  background: var(--bg-white);
  border: 1px solid var(--silver);
  border-top: 5px solid var(--orange);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  padding: 24px 22px 22px;
  position: relative;
  box-shadow: 0 24px 60px rgba(7, 51, 87, 0.35);
  text-align: center;
  animation: modalPopIn 0.18s ease-out;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pay-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--silver);
  background: var(--bg-mist);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.pay-modal-close:hover {
  background: var(--navy);
  color: #FFFFFF;
}

.pay-badge {
  display: inline-block;
  background: var(--sky-soft);
  color: var(--navy);
  border: 1px solid var(--sky);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.pay-modal-header h3 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.pay-modal-header p {
  font-size: 0.84rem;
  color: var(--text-body);
  margin-bottom: 14px;
}

.pay-qr-frame {
  background: var(--bg-mist);
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 14px;
}

.pay-qr-img {
  width: 100%;
  max-height: 54vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.pay-note {
  font-size: 0.8rem;
  color: var(--text-body);
  margin-bottom: 12px;
}

/* Floating Pay, Call & WhatsApp Action Dock (Stacked Vertically) */
.floating-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.dock-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.dock-btn {
  border: none;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF;
  cursor: pointer;
  transition: transform 0.15s ease;
  text-align: center;
}

.dock-btn:hover {
  transform: translateY(-2px);
}

.btn-pay-float {
  background: var(--orange);
  box-shadow: 0 8px 22px rgba(242, 121, 48, 0.36);
}

.btn-call-float {
  background: var(--navy);
  border: 1.5px solid var(--sky);
  box-shadow: 0 8px 22px rgba(11, 74, 125, 0.32);
}

.btn-wa-float {
  background: var(--emerald);
  box-shadow: 0 8px 24px rgba(36, 156, 73, 0.35);
}

.dock-popup {
  display: none;
  width: 285px;
  background: var(--bg-white);
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  overflow: hidden;
}

.dock-popup.open {
  display: block;
}

.dock-popup-header {
  color: #FFFFFF;
  padding: 12px 16px;
}

.header-navy {
  background: var(--navy);
}

.header-emerald {
  background: var(--emerald);
}

.dock-popup-header strong {
  display: block;
  font-size: 0.95rem;
}

.dock-popup-header span {
  font-size: 0.78rem;
  opacity: 0.9;
}

.dock-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--silver-light);
}

.dock-option:hover {
  background: var(--sky-soft);
}

.dock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-navy { background: var(--navy); }
.dot-sky { background: var(--sky); }
.dot-emerald { background: var(--emerald); }

.dock-option strong {
  display: block;
  font-size: 0.88rem;
}

.dock-option small {
  color: var(--text-body);
  font-size: 0.76rem;
}


/* Multi-Page Active Nav, Centered Hero & Subpage Banners */
.main-nav a.active {
  color: var(--sky);
  border-bottom: 2px solid var(--sky);
  padding-bottom: 4px;
}

.hero-centered {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-centered .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}

.hero-centered .hero-actions,
.hero-centered .hero-trust-strip {
  justify-content: center;
}

.enquiry-page-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.page-banner {
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--bg-white) 100%);
  padding: 46px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--silver-light);
}

.page-banner h1 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  margin-bottom: 12px;
}

.page-banner p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.04rem;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-detail-item {
  background: var(--bg-mist);
  border: 1px solid var(--silver);
  border-left: 4px solid var(--navy);
  border-radius: 10px;
  padding: 14px 18px;
}

.contact-detail-item strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text-body);
  margin-bottom: 3px;
}

.contact-detail-item a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.contact-detail-item a:hover {
  color: var(--sky);
}

.footer-nav-list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav-list a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav-list a:hover {
  color: #FFFFFF;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .offices-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 780px) {
  .generations-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand-logo {
    height: 82px;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--silver);
    gap: 14px;
    text-align: center;
  }

  .main-nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-block;
  }

  .services-grid,
  .why-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .heritage-box {
    flex-direction: column;
    text-align: center;
  }
}


/* =========================================================
   Smooth Cross-Document & Interactive Page Transitions
   ========================================================= */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 260ms cubic-bezier(0.4, 0, 0.2, 1) both pageSlideOut;
}

::view-transition-new(root) {
  animation: 320ms cubic-bezier(0.22, 1, 0.36, 1) both pageSlideIn;
}

@keyframes pageSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.99);
  }
}

@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Top Brand Transition Progress Bar */
.nav-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--sky), var(--emerald), var(--orange));
  z-index: 3000;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  pointer-events: none;
}

/* Smooth entrance & exit fallback for browsers without cross-document View Transitions */
body {
  opacity: 1;
  transition: opacity 0.24s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.page-banner,
.heritage-section,
.services-section,
.why-section,
.offices-section {
  animation: contentReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.heritage-section { animation-delay: 0.06s; }
.why-section { animation-delay: 0.08s; }

/* Animated Navigation Underline */
.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a:not(.nav-pay-trigger)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:not(.nav-pay-trigger):hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav a.active {
  border-bottom: none;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root),
  .hero,
  .page-banner,
  .heritage-section,
  .services-section,
  .why-section,
  .offices-section {
    animation: none !important;
  }
  body {
    transition: none !important;
  }
}


/* =========================================================
   Mobile Horizontal Page Scroll Wheel & Single-Page Layout
   ========================================================= */
.mobile-wheel-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-btn,
  .main-nav {
    display: none !important;
  }

  .header-nav-bar {
    padding-top: 8px;
    padding-bottom: 4px;
    overflow: hidden;
  }

  .mobile-wheel-bar {
    display: block;
    width: 100%;
    position: relative;
  }

  /* Subtle edge fade masks on mobile wheel */
  .mobile-wheel-bar::before,
  .mobile-wheel-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34px;
    z-index: 2;
    pointer-events: none;
  }

  .mobile-wheel-bar::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-white) 15%, rgba(255,255,255,0) 100%);
  }

  .mobile-wheel-bar::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-white) 15%, rgba(255,255,255,0) 100%);
  }

  .mobile-wheel-track {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px calc(50% - 68px);
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .mobile-wheel-track::-webkit-scrollbar {
    display: none;
  }

  .wheel-item {
    scroll-snap-align: center;
    flex: 0 0 auto;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    background: var(--bg-mist);
    border: 1px solid var(--silver-light);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transform: scale(0.92);
    opacity: 0.72;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.25s ease,
                background-color 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
  }

  .wheel-item.active {
    transform: scale(1.06);
    opacity: 1;
    background: var(--navy);
    color: #FFFFFF;
    border-color: var(--navy);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(11, 74, 125, 0.22);
  }

  .wheel-item.wheel-pay {
    color: var(--orange);
    border-color: rgba(242, 121, 48, 0.45);
    background: #FFF7F2;
  }

  .wheel-item.wheel-pay.active {
    background: var(--orange);
    color: #FFFFFF;
    border-color: var(--orange);
  }

  /* Directional Slide Transitions between Mobile Single-Page Views */
  .mobile-single-view {
    display: none;
  }

  .mobile-single-view.active-view {
    display: block;
  }

  .mobile-single-view.slide-in-right {
    animation: mobileDirSlideFromRight 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .mobile-single-view.slide-in-left {
    animation: mobileDirSlideFromLeft 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes mobileDirSlideFromRight {
    from {
      opacity: 0;
      transform: translateX(48px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes mobileDirSlideFromLeft {
    from {
      opacity: 0;
      transform: translateX(-48px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* Desktop keeps separate pages; hide mobile-only combined sections on desktop */
@media (min-width: 769px) {
  .mobile-only-section {
    display: none !important;
  }
}
