/* ==========================================================================
   Migsun Lucknow Central — shared components (light theme)
   Palette follows the Migsun Lucknow Central microsite: deep teal + soft
   blue-grey, with the logo's amber as the accent.
   ========================================================================== */
:root {
  --teal-950: #061d1f;
  --teal-900: #0a2a2c;
  --teal: #0e3638;
  --teal-700: #164b4e;
  --teal-500: #2a6b6e;
  --teal-100: #e3eeee;
  --amber: #e39b2d;
  --amber-600: #c67f17;
  --amber-700: #a5660c;
  --amber-100: #fcefd9;
  --amber-grad: linear-gradient(135deg, #f7c763 0%, #e8a034 48%, #d4781f 100%);

  --bg: #dbe4e9;
  --bg-soft: #eef3f5;
  --white: #ffffff;
  --heading: #0e3638;
  --text: #43515a;
  --muted: #74838b;
  --line: rgba(14, 54, 56, .1);

  --field-bg: #fff;
  --field-border: rgba(14, 54, 56, .16);
  --field-text: #0e3638;
  --field-placeholder: #8c989f;

  --radius: 22px;
  --shadow-sm: 0 12px 30px -20px rgba(14, 54, 56, .35);
  --shadow-lg: 0 40px 80px -40px rgba(14, 54, 56, .45);
  --font-head: 'Stack Sans Headline', 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: #fff; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--heading); letter-spacing: -.02em; }
h1 em, h2 em, h3 em, h4 em, h5 em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.img-wrap { position: relative; overflow: hidden; background: linear-gradient(135deg, #c9d6dc, #a9bcc4); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.text-amber { color: var(--amber-600) !important; }
.amber-text { background: var(--amber-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gsap-busy { transition: none !important; }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; }
.split-line > span { display: inline-block; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 2000; background: var(--amber-grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 3000; background: #fff; display: grid; place-items: center; }
.preloader__inner { text-align: center; }
.preloader__inner img { width: 190px; margin: 0 auto; }
.preloader__sub { letter-spacing: .42em; font-size: .7rem; color: var(--teal); margin-top: 1rem; padding-left: .42em; font-weight: 600; }
.preloader__bar { width: 190px; height: 2px; margin: 1.2rem auto 0; background: var(--line); overflow: hidden; border-radius: 2px; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--amber-grad); transform-origin: 0 50%; animation: preload 1.6s var(--ease) forwards; }
@keyframes preload { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Buttons ---------- */
.btn-amber, .btn-teal, .btn-line, .btn-glass {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 100px; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .94rem; letter-spacing: .01em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn-amber { background: var(--amber-grad); background-size: 200% 200%; color: #fff; box-shadow: 0 14px 28px -12px rgba(212, 120, 31, .65); animation: gradShift 6s ease infinite; text-shadow: 0 1px 1px rgba(120, 60, 0, .25); }
.btn-amber::after, .btn-teal::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-amber:hover::after, .btn-teal:hover::after { transform: translateX(120%); }
.btn-amber:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(212, 120, 31, .8); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 14px 28px -14px rgba(14, 54, 56, .7); }
.btn-teal:hover { background: var(--teal-700); color: #fff; transform: translateY(-2px); }
.btn-line { background: #fff; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-line:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-glass:hover { background: #fff; color: var(--teal); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .82rem; }
.btn-xs { padding: .42rem .9rem; font-size: .76rem; }
[class^="btn-"] i { transition: transform .4s var(--ease); }
[class^="btn-"]:hover i.bi-arrow-right { transform: translateX(4px); }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* looping "ringing" motion on every call icon (animates the glyph, so circular icon backgrounds stay still) */
.bi-telephone::before, .bi-telephone-fill::before, .bi-telephone-inbound::before { transform-origin: 50% 50%; animation: phoneRing 2.2s ease-in-out infinite; }
@keyframes phoneRing {
  0%, 40%, 100% { transform: rotate(0); }
  4% { transform: rotate(-18deg); }
  8% { transform: rotate(16deg); }
  12% { transform: rotate(-14deg); }
  16% { transform: rotate(12deg); }
  20% { transform: rotate(-8deg); }
  24% { transform: rotate(5deg); }
  28% { transform: rotate(0); }
}
/* looping "downloading" icon: arrow drops into a tray */
.dl-icon { position: relative; display: inline-block; width: 1.05em; height: 1.05em; overflow: hidden; vertical-align: -.16em; flex-shrink: 0; }
.dl-icon::after { content: ''; position: absolute; left: .1em; right: .1em; bottom: .08em; height: .34em; border: .11em solid currentColor; border-top: 0; border-radius: 0 0 .14em .14em; }
.dl-icon > i.bi { position: absolute; left: 50%; top: -.06em; font-size: .82em; line-height: 1; -webkit-text-stroke: .045em currentColor; transform: translate(-50%, 0); animation: dlArrow 1.8s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes dlArrow {
  0% { transform: translate(-50%, -110%); opacity: 0; }
  12% { opacity: 1; }
  38%, 74% { transform: translate(-50%, 0); opacity: 1; }
  86% { transform: translate(-50%, 30%); opacity: 0; }
  100% { transform: translate(-50%, -110%); opacity: 0; }
}
.pulse { animation: pulseRing 2.2s var(--ease) infinite, gradShift 6s ease infinite; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(227, 155, 45, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(227, 155, 45, 0); } }

/* ---------- Lead forms ---------- */
.lead-form { display: grid; gap: .75rem; }
.lf-field { position: relative; }
.lf-field > i, .lf-prefix { position: absolute; left: .95rem; top: 1.4rem; transform: translateY(-50%); color: var(--teal-500); font-size: .98rem; pointer-events: none; }
.lf-prefix { font-size: .86rem; font-weight: 700; padding-right: .55rem; border-right: 1px solid var(--field-border); line-height: 1.1; color: var(--teal); }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=email], .lead-form select {
  width: 100%; height: 2.8rem; padding: 0 .95rem 0 2.65rem;
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 12px;
  color: var(--field-text); font: 500 .93rem var(--font-body);
  transition: border-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.lead-form select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230e3638' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .95rem center; }
.lead-form input[type=tel] { padding-left: 3.9rem; }
.lead-form input::placeholder { color: var(--field-placeholder); }
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(227, 155, 45, .18); }
.lf-error { display: none; font-size: .74rem; color: #c0392b; margin: .3rem 0 0 .3rem; }
.lf-field.is-invalid input, .lf-field.is-invalid select { border-color: #e05a4f; }
.lf-field.is-invalid .lf-error { display: block; }
.lf-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .68rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.lf-consent input { accent-color: var(--teal); margin-top: .12rem; flex-shrink: 0; }
.lf-consent.is-invalid { color: #c0392b; }
.lead-form button[type=submit].is-loading { pointer-events: none; opacity: .85; }
.lead-form button[type=submit].is-loading span::after { content: '…'; }
.lf-success { text-align: center; padding: 1.2rem .4rem; }
.lf-success__icon { width: 60px; height: 60px; margin: 0 auto .9rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: var(--teal); color: #fff; }
.lf-success h4 { font-size: 1.4rem; font-weight: 600; margin-bottom: .35rem; }
.lf-success p { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }

/* ---------- Enquiry popup ---------- */
.modal-backdrop.show { opacity: .6; }
.enq-modal .modal-dialog { max-width: 640px; }
.enq-modal .modal-content { background: #fff; border: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(6,29,31,.6); }
.enq-modal .modal-dialog { transform: translateY(30px) scale(.97); transition: transform .5s var(--ease) !important; }
.enq-modal.show .modal-dialog { transform: none; }
.enq-head { background: var(--teal); color: #fff; text-align: center; padding: 1.05rem 3.4rem; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; border-bottom: 1px solid rgba(255,255,255,.12); }
.enq-promise { background: var(--teal-900); color: #fff; height: 100%; padding: 1.8rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
.enq-promise h6 { color: #fff; font-size: 1.15rem; margin: 0; }
.enq-promise h6 em { color: var(--amber); }
.enq-promise__item { display: grid; justify-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; line-height: 1.25; }
.enq-promise__item i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: var(--amber); }
.enq-body { padding: 2rem 1.8rem 1.6rem; }
.enq-body__logo { width: 140px; margin: 0 auto .9rem; }
.enq-body__title { text-align: center; font-size: 1.35rem; font-weight: 600; margin-bottom: .2rem; }
.enq-body__title span { color: #d0451b; }
.enq-body__sub { text-align: center; color: var(--muted); font-size: .84rem; margin-bottom: 1.2rem; }
.enq-strip { display: flex; align-items: center; justify-content: center; gap: .5rem; background: var(--teal-900); color: #fff; font-weight: 600; padding: .8rem; font-size: .95rem; }
.enq-strip:hover { color: var(--amber); }
.enq-modal .btn-close-x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14); border: 0; color: #fff; display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.enq-modal .btn-close-x:hover { transform: rotate(90deg); background: var(--amber); color: #fff; }

/* ---------- Floating & mobile ---------- */
.float-actions { position: fixed; right: calc(var(--sidebar-w, 0px) + 20px); bottom: 24px; z-index: 1040; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; box-shadow: 0 14px 30px -10px rgba(6,29,31,.5); transition: transform .4s var(--ease), opacity .4s, visibility .4s; }
.float-btn:hover { transform: translateY(-4px) scale(1.05); }
.float-btn--wa { background: #25d366; color: #fff; }
.float-btn--top { background: #fff; color: var(--teal); width: 44px; height: 44px; font-size: 1.05rem; margin: 0 auto; opacity: 0; visibility: hidden; }
.float-btn--top.is-visible { opacity: 1; visibility: visible; }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045; display: none; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: .35rem; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -20px rgba(6,29,31,.5); padding: .45rem .45rem calc(.45rem + env(safe-area-inset-bottom)); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; font-size: .7rem; font-weight: 600; color: var(--teal); padding: .4rem .2rem; border-radius: 12px; }
.mobile-bar a i { font-size: 1.1rem; color: var(--teal-500); }
.mobile-bar a.mb-cta { background: var(--amber-grad); color: #fff; flex-direction: row; gap: .35rem; font-size: .84rem; }
.mobile-bar a.mb-cta i { color: #fff; }

/* cursor (desktop only) */
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 4000; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; border: 1.5px solid var(--amber); pointer-events: none; opacity: 0; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, opacity .3s; }
.cursor-glow { display: none; }
body.has-cursor .cursor-dot { opacity: 1; }
.cursor-dot.is-hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(227,155,45,.14); }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

@media (max-width: 1199.98px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: 66px; }
  .float-actions { bottom: 84px; left: auto; right: 14px; }
  .float-btn { width: 48px; height: 48px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .dl-icon > i.bi { animation: none !important; transform: translate(-50%, 0); opacity: 1; }
  .bi-telephone::before, .bi-telephone-fill::before, .bi-telephone-inbound::before { animation: none !important; }
}
