/* ==========================================================================
   SRRIKARI — Premium Teaser Landing Page
   Brand Option 01 · Maroon & Gold · "Engineering True Value"
   Palette from brand deck: #3f181f maroon · #f6e3d8 cream · #b55342 brick
   gold gradient #dfbd77 → #fde39b
   ========================================================================== */

:root {
  --maroon: #3f181f;
  --maroon-deep: #2b0f15;
  --maroon-soft: #4d222b;
  --brick: #b55342;
  --gold: #dfbd77;
  --gold-2: #fde39b;
  --gold-deep: #b6924e;
  --cream: #f6e3d8;
  --cream-paper: #fbf1ea;
  --ink-on-cream: #3a1d24;
  --muted-on-cream: rgba(58, 29, 36, 0.68);
  --muted-on-maroon: rgba(246, 227, 216, 0.72);
  --line-gold: rgba(223, 189, 119, 0.28);
  --line-maroon: rgba(63, 24, 31, 0.14);
  --font-display: "Playfair Display", Georgia, serif;
  --font-brand: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --nav-h: 84px;
}

html {
  scroll-behavior: auto; /* Lenis handles smoothing */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--maroon);
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: var(--maroon);
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--maroon-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold), var(--gold-deep));
  border-radius: 8px;
}

img {
  max-width: 100%;
}

/* Visible keyboard focus on all custom controls (Bootstrap's ring vars don't cover them) */
.btn-gold:focus-visible,
.btn-ghost:focus-visible,
.enquire-tab:focus-visible,
.back-top:focus-visible,
.modal-x:focus-visible,
.nav-toggle:focus-visible,
.footer-social a:focus-visible,
.contact-card:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}
.section-light .contact-card:focus-visible {
  outline-color: var(--gold-deep);
}

/* Programmatic focus targets (sections focused after smooth scroll) — no ring */
[tabindex="-1"]:focus {
  outline: 0 !important;
}

/* Skip link — hidden until keyboard-focused */
.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1200;
  padding: 0.7rem 1.2rem;
  background: var(--gold);
  color: var(--maroon-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.25s ease;
}
.skip-link:focus-visible {
  transform: none;
  color: var(--maroon-deep);
  outline: 2px solid var(--maroon);
  outline-offset: -5px;
}

/* If AOS fails to load (CDN blocked), reveal everything its stylesheet hid */
html.no-aos [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- Scroll progress ---------- */
/* Above the fixed navbar (1030), below offcanvas backdrop (1040) and modal (1050) */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 1035;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

/* ---------- Kickers, titles, shared ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.kicker-center {
  justify-content: center;
}
.kicker-line {
  display: inline-block;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
  flex: none;
}
.kicker-center .kicker-line:last-child {
  background: linear-gradient(90deg, var(--gold-deep), transparent);
}
.kicker-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border: 1px solid currentColor;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.section {
  padding: clamp(4.5rem, 9vw, 5rem) 0;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 1.4rem;
  color: var(--cream);
}
.section-title em {
  font-style: italic;
  background: linear-gradient(
    100deg,
    var(--gold) 10%,
    var(--gold-2) 55%,
    var(--gold) 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-copy {
  color: var(--muted-on-maroon);
  font-size: 1.02rem;
  font-weight: 300;
  max-width: 60ch;
}

.sub-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-2);
  margin: 2.2rem 0 1.4rem;
}

/* Light (cream) section variants */
.section-light {
  background: var(--cream);
  color: var(--ink-on-cream);
}
.section-light .section-title {
  color: var(--maroon);
}
.section-light .section-title em {
  background: linear-gradient(
    100deg,
    var(--brick) 15%,
    #8f3d30 60%,
    var(--brick)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section-light .section-copy {
  color: var(--muted-on-cream);
}
.section-light .sub-title {
  color: var(--brick);
}
.section-light .kicker {
  color: var(--gold-deep);
}

/* ---------- Buttons ---------- */
.btn-gold,
.btn-ghost {
  --bs-btn-border-radius: 0;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border-radius: 0;
  transition:
    color 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease,
    background-position 0.5s ease;
}
.btn-gold {
  background: linear-gradient(
    120deg,
    var(--gold),
    var(--gold-2) 60%,
    var(--gold)
  );
  background-size: 200% 100%;
  color: var(--maroon);
  border: 1px solid transparent;
}
.btn-gold:hover,
.btn-gold:focus-visible {
  background-position: 100% 0;
  color: var(--maroon-deep);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(246, 227, 216, 0.4);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-2px);
}
.btn-sm-cta {
  padding: 0.65rem 1.4rem;
  font-size: 0.72rem;
}

/* ---------- Fixed side enquire tab ---------- */
.enquire-tab {
  position: fixed;
  right: 0;
  top: 55%;
  z-index: 1030;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  padding: 1.2rem 0.8rem;
  background: linear-gradient(0deg, var(--gold), var(--gold-2));
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  box-shadow: -8px 8px 30px rgba(43, 15, 21, 0.35);
  transition:
    padding 0.3s ease,
    filter 0.3s ease;
}
.enquire-tab i {
  transform: rotate(90deg);
  font-size: 0.95rem;
}
.enquire-tab:hover {
  padding-right: 1.15rem;
  filter: brightness(1.05);
}

/* ---------- Navbar ---------- */
.site-nav {
  padding: 1rem 0;
  transition:
    background-color 0.4s ease,
    padding 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  padding: 0.5rem 0;
  background: rgba(43, 15, 21, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-gold);
  box-shadow: 0 12px 40px rgba(20, 6, 9, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.brand-mark {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(20, 6, 9, 0.4));
}
.brand-word {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(20, 6, 9, 0.4));
}
.mobile-nav .brand-word {
  height: 40px;
}

.site-nav .nav-link {
  color: rgba(246, 227, 216, 0.82);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  position: relative;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 100%;
  bottom: 0.25rem;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  color: var(--gold-2);
}
.site-nav .nav-link:hover::after {
  right: 0.9rem;
}

/* Hamburger */
.nav-toggle {
  border: 1px solid var(--line-gold);
  border-radius: 0;
  width: 46px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: none !important;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--gold-2);
  transition: transform 0.3s ease;
}

/* Offcanvas — full-screen menu */
.mobile-nav {
  --bs-offcanvas-width: 100%;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(160deg, var(--maroon-soft), var(--maroon-deep));
  color: var(--cream);
  border-left: 0;
}
.mobile-nav .offcanvas-header {
  border-bottom: 1px solid var(--line-gold);
  padding: 1.4rem 1.6rem;
}
.mobile-nav .offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.6rem 2rem;
}
.mobile-links {
  margin: 1rem 0 0;
}
.mobile-links li + li {
  border-top: 1px solid rgba(223, 189, 119, 0.1);
}
.mobile-links a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.1rem 0.4rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  transition:
    color 0.3s ease,
    padding-left 0.3s ease;
}
.mobile-links a span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.mobile-links a:hover {
  color: var(--gold-2);
  padding-left: 0.9rem;
}
.mobile-nav-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-gold);
  display: grid;
  gap: 0.7rem;
}
.mobile-nav-foot a {
  color: var(--muted-on-maroon);
  text-decoration: none;
  font-size: 0.9rem;
}
.mobile-nav-foot a:hover {
  color: var(--gold-2);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2.5rem) 0 6rem;
}
.hero-bg {
  position: absolute;
  inset: -5%;
  background:
    linear-gradient(
      180deg,
      rgba(43, 15, 21, 0.82) 0%,
      rgba(63, 24, 31, 0.62) 45%,
      rgba(43, 15, 21, 0.96) 100%
    ),
    linear-gradient(180deg, rgba(63, 24, 31, 0.45), rgba(63, 24, 31, 0.45)),
    radial-gradient(
      80% 60% at 50% 10%,
      rgba(223, 189, 119, 0.16),
      transparent 60%
    ),
    url("../img/hero-skyline.jpg") center 40% / cover no-repeat;
  animation: heroZoom 26s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.85'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='200'%20height='200'%20filter='url(%23n)'%20opacity='0.32'/%3E%3C/svg%3E");
}

.hero-mark {
  height: clamp(72px, 10vw, 108px);
  width: auto;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 6px 24px rgba(20, 6, 9, 0.5));
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.14;
  margin: 0 0 1.6rem;
  color: var(--cream);
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(
    100deg,
    var(--gold) 5%,
    var(--gold-2) 50%,
    var(--gold) 95%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  color: var(--muted-on-maroon);
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  max-width: 46rem;
  margin-bottom: 2.6rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.scroll-hint-text {
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted-on-maroon);
}
.scroll-hint-line {
  width: 1px;
  height: 54px;
  background: rgba(246, 227, 216, 0.25);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--gold-2);
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% {
    top: -50%;
  }
  60%,
  100% {
    top: 110%;
  }
}

/* ---------- Gold ribbon marquee ---------- */
.ribbon {
  background: linear-gradient(
    100deg,
    var(--gold-deep),
    var(--gold) 35%,
    var(--gold-2) 60%,
    var(--gold-deep)
  );
  color: var(--maroon-deep);
  overflow: hidden;
  padding: 0.85rem 0;
  border-block: 1px solid rgba(43, 15, 21, 0.25);
}
/* Spacing via margin-right (not flex gap) so the -50% loop period is exact and seamless */
.ribbon-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ribbonScroll 26s linear infinite;
}
.ribbon-track > * {
  margin-right: 2.6rem;
}
.ribbon-track span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ribbon-track i {
  font-size: 0.45rem;
}
@keyframes ribbonScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Why Hyderabad (light) ---------- */
.section-why {
  background:
    radial-gradient(
      60% 40% at 100% 0%,
      rgba(181, 83, 66, 0.08),
      transparent 60%
    ),
    var(--cream);
}

.img-stack {
  position: relative;
  padding: 0 2.4rem 2.4rem 0;
}
.img-main {
  margin: 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.img-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(63, 24, 31, 0.12), transparent 55%);
  pointer-events: none;
}
.img-main img {
  width: 100%;
  height: clamp(320px, 46vw, 560px);
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-main:hover img {
  transform: scale(1.05);
}
.img-frame {
  position: absolute;
  inset: 2.4rem 0 0 2.4rem;
  border: 1px solid rgba(182, 146, 78, 0.5);
  z-index: 1;
}
.img-float {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 42%;
  margin: 0;
  border: 6px solid var(--cream);
  box-shadow: 0 30px 60px rgba(63, 24, 31, 0.28);
  overflow: hidden;
}
.img-float img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-badge {
  position: absolute;
  z-index: 4;
  left: -0.6rem;
  bottom: 3.4rem;
  background: linear-gradient(140deg, var(--maroon), var(--maroon-soft));
  color: var(--cream);
  padding: 1rem 1.2rem;
  max-width: 220px;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  box-shadow: 0 24px 48px rgba(63, 24, 31, 0.35);
}
.img-badge strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold-2);
}
.img-badge span {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.perk-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.6rem;
  margin: 0;
}
.perk-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-maroon);
  background: var(--cream-paper);
  font-size: 0.92rem;
  color: var(--ink-on-cream);
  box-shadow: 0 10px 24px rgba(63, 24, 31, 0.05);
  transition:
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.perk-list li:hover {
  border-color: rgba(182, 146, 78, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(63, 24, 31, 0.1);
}
.perk-list i {
  color: var(--brick);
  font-size: 1.15rem;
  line-height: 1.4;
  flex: none;
}

/* ---------- Numbers (maroon) ---------- */
.section-numbers {
  overflow: hidden;
}
/* No background-attachment: fixed — iOS/iPadOS Safari renders it broken at any width */
.numbers-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(43, 15, 21, 0.95), rgba(63, 24, 31, 0.9)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?q=80&w=1800&auto=format&fit=crop")
      center / cover no-repeat;
}

.stat-row {
  margin-top: clamp(2rem, 5vw, 4rem);
}
.stat {
  padding: 2.2rem 1rem;
  position: relative;
}
.stat::before {
  content: "";
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--line-gold),
    transparent
  );
}
.stat-row > div:first-child .stat::before {
  display: none;
}
@media (max-width: 767.98px) {
  .stat::before {
    display: none;
  }
  .stat {
    padding: 1.4rem 1rem;
  }
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}
.stat-value sup {
  color: var(--gold);
  font-size: 55%;
  top: -0.55em;
}
.stat-label {
  margin: 0.9rem 0 0;
  color: var(--muted-on-maroon);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* ---------- About / pillars (light) ---------- */
.section-about {
  background:
    radial-gradient(
      50% 40% at 0% 100%,
      rgba(182, 146, 78, 0.1),
      transparent 60%
    ),
    var(--cream);
}
.pillar {
  position: relative;
  padding: 2.6rem 2.2rem;
  border: 1px solid var(--line-maroon);
  background: var(--cream-paper);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(63, 24, 31, 0.06);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar:hover {
  transform: translateY(-8px);
  border-color: rgba(182, 146, 78, 0.55);
  box-shadow: 0 30px 60px rgba(63, 24, 31, 0.14);
}
.pillar:hover::before {
  transform: scaleX(1);
}

.pillar-index {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: rgba(63, 24, 31, 0.1);
  line-height: 1;
}
.pillar-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(182, 146, 78, 0.4);
  color: var(--brick);
  font-size: 1.5rem;
  margin-bottom: 1.6rem;
  background: rgba(223, 189, 119, 0.12);
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    background 0.4s ease;
}
.pillar:hover .pillar-icon {
  background: linear-gradient(140deg, var(--gold), var(--gold-2));
  color: var(--maroon);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  color: var(--maroon);
}
.pillar p {
  color: var(--muted-on-cream);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Register (maroon shell on cream) ---------- */
.section-register {
  background: var(--cream-paper);
}
.register-shell {
  border: 1px solid var(--line-gold);
  background: linear-gradient(
    165deg,
    var(--maroon-soft),
    var(--maroon) 45%,
    var(--maroon-deep)
  );
  box-shadow: 0 40px 90px rgba(63, 24, 31, 0.35);
}
.register-side {
  padding: clamp(2.2rem, 4vw, 3.4rem);
  background:
    linear-gradient(200deg, rgba(43, 15, 21, 0.9) 20%, rgba(43, 15, 21, 0.97)),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=1200&auto=format&fit=crop")
      center / cover no-repeat;
  border-right: 1px solid var(--line-gold);
}
@media (max-width: 991.98px) {
  .register-side {
    border-right: 0;
    border-bottom: 1px solid var(--line-gold);
  }
}
/* The shell is a dark maroon panel inside a light section — restore dark-surface text */
.register-shell .section-title {
  color: var(--cream);
}
.register-shell .section-title em {
  background: linear-gradient(
    100deg,
    var(--gold) 10%,
    var(--gold-2) 55%,
    var(--gold) 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.register-shell .section-copy {
  color: var(--muted-on-maroon);
}
.kicker-light {
  color: var(--gold-2);
}
.side-points {
  margin: 2.4rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.side-points li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(246, 227, 216, 0.88);
  font-size: 0.95rem;
}
.side-points i {
  color: var(--gold);
  font-size: 1.1rem;
}

.register-form-wrap {
  padding: clamp(2.2rem, 4vw, 3.4rem);
  position: relative;
}

/* ---------- Form fields (shared: register shell + modal, dark surfaces) ---------- */
/* Tracking kept moderate so "Preferred Configuration" stays on one line at lg/xl */
.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 227, 216, 0.85);
  margin-bottom: 0.6rem;
}
.form-label span {
  color: var(--gold);
}
.form-label .optional {
  color: var(--muted-on-maroon);
  text-transform: none;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.form-control,
.form-select {
  background: rgba(246, 227, 216, 0.05);
  border: 1px solid rgba(223, 189, 119, 0.24);
  border-radius: 0;
  color: var(--cream);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 400;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}
.form-select {
  padding-right: 2.4rem;
}
.form-control::placeholder {
  color: rgba(246, 227, 216, 0.38);
}
.form-control:focus,
.form-select:focus {
  background: rgba(246, 227, 216, 0.08);
  border-color: var(--gold);
  color: var(--cream);
  box-shadow: 0 0 0 0.25rem rgba(223, 189, 119, 0.14);
}
.form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23dfbd77' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}
.form-select option {
  background: var(--maroon-deep);
  color: var(--cream);
}

.phone-group .input-group-text {
  background: rgba(223, 189, 119, 0.12);
  border: 1px solid rgba(223, 189, 119, 0.24);
  border-right: 0;
  border-radius: 0;
  color: var(--gold-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: #e07a6c;
  background-image: none;
  padding-right: 1rem;
}
/* Clear only Bootstrap's validation icon layer — keep the gold chevron */
.form-select.is-invalid,
.was-validated .form-select:invalid {
  border-color: #e07a6c;
  --bs-form-select-bg-icon: none;
  padding-right: 2.4rem;
}
.invalid-feedback {
  color: #f0988c;
  font-size: 0.8rem;
}

.form-note {
  color: var(--muted-on-maroon);
  font-size: 0.78rem;
  max-width: 30ch;
  line-height: 1.5;
}

.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed rgba(223, 189, 119, 0.45);
  background: rgba(223, 189, 119, 0.06);
  animation: successIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes successIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.form-success img {
  height: 74px;
  width: auto;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 1.2rem 0 0.6rem;
  color: var(--cream);
}
.form-success p {
  color: var(--muted-on-maroon);
  margin: 0 auto;
  max-width: 40ch;
}

/* ---------- Contact (light) ---------- */
.section-contact {
  background:
    radial-gradient(
      55% 45% at 50% 0%,
      rgba(181, 83, 66, 0.07),
      transparent 65%
    ),
    var(--cream);
}
.contact-card {
  display: block;
  text-decoration: none;
  color: var(--ink-on-cream);
  text-align: center;
  padding: 2.8rem 2rem;
  border: 1px solid var(--line-maroon);
  background: var(--cream-paper);
  box-shadow: 0 14px 34px rgba(63, 24, 31, 0.06);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}
.contact-card:hover {
  color: var(--ink-on-cream);
  transform: translateY(-8px);
  border-color: rgba(182, 146, 78, 0.55);
  box-shadow: 0 30px 60px rgba(63, 24, 31, 0.14);
}
.contact-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(182, 146, 78, 0.4);
  color: var(--brick);
  font-size: 1.35rem;
  background: rgba(223, 189, 119, 0.12);
  transition:
    background 0.4s ease,
    color 0.4s ease;
}
.contact-card:hover .contact-icon {
  background: linear-gradient(140deg, var(--gold), var(--gold-2));
  color: var(--maroon);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--maroon);
}
.contact-card p {
  color: var(--muted-on-cream);
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
}
.contact-cta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brick);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-deep);
  border-top: 1px solid var(--line-gold);
  padding: 3.2rem 0 2rem;
}
.footer-brand img {
  filter: drop-shadow(0 4px 18px rgba(20, 6, 9, 0.5));
}
.footer-links {
  gap: 1.8rem;
}
.footer-links a {
  color: var(--muted-on-maroon);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--gold-2);
}
.footer-social {
  display: inline-flex;
  gap: 0.8rem;
}
.footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-gold);
  color: var(--muted-on-maroon);
  text-decoration: none;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}
.footer-social a:hover {
  color: var(--gold-2);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(223, 189, 119, 0.1);
  color: var(--muted-on-maroon);
  font-size: 0.85rem;
}
.footer-bottom .disclaimer {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 1030;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  background: rgba(43, 15, 21, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gold-2);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s,
    background-color 0.35s ease,
    color 0.35s ease;
}
.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-top:hover {
  background: var(--gold);
  color: var(--maroon-deep);
}

/* ---------- Premium enquiry modal ---------- */
.enquiry-modal {
  --bs-modal-bg: transparent;
  --bs-modal-border-color: transparent;
}
.enquiry-modal .modal-content {
  background: linear-gradient(
    170deg,
    var(--maroon-soft),
    var(--maroon) 40%,
    var(--maroon-deep)
  );
  border: 1px solid var(--line-gold);
  border-radius: 0;
  box-shadow: 0 60px 140px rgba(20, 6, 9, 0.6);
  position: relative;
  overflow: hidden;
}
.enquiry-modal .modal-content::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gold-deep),
    var(--gold-2),
    var(--gold-deep)
  );
}
.enquiry-modal .modal-body {
  padding: clamp(2rem, 4vw, 3.2rem);
}

.modal-head {
  margin-bottom: 2rem;
}
.modal-mark {
  height: 64px;
  width: auto;
  margin-bottom: 1.1rem;
}
.enquiry-modal .modal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--cream);
}
.enquiry-modal .modal-title em {
  font-style: italic;
  background: linear-gradient(
    100deg,
    var(--gold) 10%,
    var(--gold-2) 55%,
    var(--gold) 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.modal-sub {
  color: var(--muted-on-maroon);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 44ch;
  margin: 0.6rem auto 0;
}
.modal-x {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-gold);
  color: var(--cream);
  font-size: 1rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}
.modal-x:hover {
  background: var(--gold);
  color: var(--maroon-deep);
  transform: rotate(90deg);
}

/* Smooth premium open/close animation */
.enquiry-modal.fade {
  transition: opacity 0.45s ease;
}
.enquiry-modal.fade .modal-dialog {
  transform: translateY(34px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease;
}
.enquiry-modal.show .modal-dialog {
  transform: none;
  opacity: 1;
}
.modal-backdrop {
  --bs-backdrop-bg: rgba(20, 6, 9, 0.55);
  --bs-backdrop-opacity: 1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.modal-backdrop.fade {
  transition: opacity 0.45s ease;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .hero {
    padding-top: calc(var(--nav-h) + 1.5rem);
  }
  .brand-mark {
    height: 46px;
  }
  .brand-word {
    height: 30px;
  }
}
@media (max-width: 767.98px) {
  .perk-list {
    grid-template-columns: 1fr;
  }
  .img-stack {
    padding: 0 1.2rem 1.2rem 0;
  }
  .img-frame {
    inset: 1.2rem 0 0 1.2rem;
  }
  .img-badge {
    left: 0;
    bottom: 1rem;
    max-width: 200px;
    padding: 0.8rem 1rem;
  }
  .scroll-hint {
    display: none;
  }
  .hero-mark {
    height: 64px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }
  .ribbon-track {
    animation: none;
  }
  .scroll-hint-line::after {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
