/* ==========================================================================
   Dr. Lokesh Yadav — Theme layer (Bootstrap 5)
   Modern medical design system. Loaded LAST so it owns the look.
   Sections: 1) Tokens 2) Base/Type 3) Layout 4) Buttons 5) Components
   6) Navbar 7) Footer 8) Legacy class restyle 9) BS3->BS5 compat shim
   10) Motion 11) Responsive
   ========================================================================== */

/* 1) DESIGN TOKENS --------------------------------------------------------- */
:root {
  /* Brand palette — unified (replaces the 6 inconsistent navies) */
  --ink:        #0a1f63;   /* primary brand navy            */
  --ink-2:      #112a46;   /* secondary deep navy           */
  --accent:     #b3264a;   /* CTA rose/maroon               */
  --accent-600: #8f1d3b;   /* CTA hover                     */
  --teal:       #007a87;   /* supporting accent             */
  --teal-soft:  #eef7f8;   /* tinted section bg             */
  --gold:       #d8b030;   /* editorial highlight           */

  /* Neutrals */
  --body:       #475063;   /* body text                     */
  --muted:      #6b7280;   /* secondary text                */
  --line:       #e6e8ef;   /* hairline borders              */
  --bg:         #ffffff;   /* page background               */
  --bg-soft:    #f6f8fb;   /* soft section background       */
  --surface:    #ffffff;   /* cards                         */

  /* Typography */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Shadows — soft, "expensive" (taste: soft skill) */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 6px 16px rgba(16,24,40,.05);
  --shadow:    0 12px 34px rgba(10,31,99,.08);
  --shadow-lg: 0 24px 60px rgba(10,31,99,.12);

  /* Rhythm */
  --section-y: clamp(56px, 8vw, 110px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* 2) BASE & TYPOGRAPHY ----------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-600); }

img { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: #fff; }

/* Pleasant scrollbar */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-thumb { background: #c7cdda; border-radius: 999px; border: 3px solid #fff; }
  ::-webkit-scrollbar-thumb:hover { background: var(--ink); }
}

/* 3) LAYOUT HELPERS -------------------------------------------------------- */
.container { max-width: 1200px; }

.section      { padding: var(--section-y) 0; }
.section-soft { background: var(--bg-soft); }
.section-teal { background: var(--teal-soft); }
.section-ink  { background: var(--ink); color: #cdd5ee; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }

/* Section heading block */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .85rem;
}
.section-head { max-width: 760px; }
.section-head.text-center { margin-inline: auto; }
.section-head h2 { margin-bottom: .5rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.lead-text { font-size: 1.075rem; color: var(--body); line-height: 1.85; }
.text-muted-2 { color: var(--muted) !important; }

/* 4) BUTTONS --------------------------------------------------------------- */
.btn {
  --bs-btn-font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--r-sm);
  padding: .85rem 1.6rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn-lg { padding: 1rem 2rem; font-size: 1.0rem; }

.btn-brand {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(179,38,74,.25);
}
.btn-brand:hover, .btn-brand:focus { background: var(--accent-600); color: #fff; transform: translateY(-2px); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: #fff; transform: translateY(-2px); }

.btn-outline-light-2 { border: 1.5px solid rgba(255,255,255,.5); color:#fff; }
.btn-outline-light-2:hover { background:#fff; color: var(--ink); }

/* 5) COMPONENTS ------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;          /* let the label wrap instead of forcing one wide line */
  max-width: 100%;          /* never exceed the column → no horizontal overflow on mobile */
  gap: .5rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* Generic surface card */
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

/* Feature / service card */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.feature-card p { color: var(--muted); font-size: .96rem; margin-bottom: 1.1rem; }
.feature-card .card-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.feature-card .card-link i { transition: transform .25s var(--ease); }
.feature-card:hover .card-link { color: var(--accent); }
.feature-card:hover .card-link i { transform: translateX(4px); }

/* Media thumb inside service cards */
.card-thumb {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  background: var(--teal-soft);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Stat tiles */
.stat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem 1rem;
  text-align: center;
  height: 100%;
}
.stat-tile .stat-num { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.35rem; line-height: 1.1; }
.stat-tile .stat-label { color: var(--muted); font-size: .85rem; margin: .35rem 0 0; }

/* Icon badge */
.icon-badge {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 1.5rem;
  flex: 0 0 auto;
}
.icon-badge.rose { background: #fdeef2; color: var(--accent); }
.icon-badge.gold { background: #fbf3da; color: #a9851a; }

/* Tick list */
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 2rem; margin-bottom: .9rem; color: var(--body); }
.tick-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  position: absolute; left: 0; top: .15rem;
  color: var(--teal);
}

/* Doctor & Hospital Association ------------------------------------------- */
.assoc-photo {
  width: 168px; height: 168px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.assoc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.assoc-panel {
  position: relative;
  background: var(--teal-soft);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.assoc-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.assoc-card h4 { color: var(--ink); font-size: 1.15rem; margin: 0 0 .5rem; }
.assoc-card p  { color: var(--body); font-size: .95rem; line-height: 1.7; margin: 0; }
.assoc-thumb {
  flex: 0 0 auto;
  width: 108px; height: 108px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #e9f0ff, var(--teal-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 1.9rem;
  overflow: hidden;
}
.assoc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.assoc-badge {
  align-self: center;
  margin: -2.5rem 0;          /* overlap into the gap between the two cards */
  z-index: 2;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700; font-size: .82rem; line-height: 1.2;
  color: var(--ink);
}
@media (max-width: 575.98px) {
  .assoc-card { flex-direction: column; gap: 1rem; }
  .assoc-thumb { width: 100%; height: 120px; }
  .assoc-badge { margin: -2.1rem 0; width: 84px; height: 84px; font-size: .76rem; }
}

/* Pill (organ tags etc.) */
.pill-tag {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: .8rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--ink-2);
  font-family: var(--font-head);
}

/* Accordion (FAQ) */
.faq .accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--r) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #fff;
}
.faq .accordion-button {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
  padding: 1.15rem 1.3rem;
  background: #fff;
}
.faq .accordion-button:not(.collapsed) { color: var(--accent); background: #fff; box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.faq .accordion-body { color: var(--body); padding: 0 1.3rem 1.25rem; }

/* Map / media frame */
.media-frame { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.media-frame iframe { display: block; width: 100%; border: 0; }

/* Hero portrait */
.hero-portrait {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

/* 6) NAVBAR + TOP BAR ------------------------------------------------------ */
.topbar {
  background: var(--ink);
  color: #c9d2ee;
  font-size: .85rem;
}
.topbar a { color: #c9d2ee; }
.topbar a:hover { color: #fff; }
.topbar .topbar-contact { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.topbar .topbar-contact i { color: #8fa0d8; margin-right: .35rem; }
.topbar .social a {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  margin-left: .35rem;
}
.topbar .social a:hover { background: var(--accent); color: #fff; }

.site-nav {
  background: #fff;
  box-shadow: 0 2px 18px rgba(10,31,99,.06);
  transition: padding .25s var(--ease), box-shadow .25s var(--ease);
}
.site-nav.is-stuck { box-shadow: 0 8px 30px rgba(10,31,99,.12); }
.site-nav .navbar-brand img { height: 56px; width: auto; transition: height .25s var(--ease); }
.site-nav.is-stuck .navbar-brand img { height: 46px; }

.site-nav .nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-2);
  padding: .65rem .9rem !important;
  position: relative;
  white-space: nowrap;            /* never break a label mid-word */
}
/* Desktop menu (xxl+): keep on one row and tighten so all items fit */
@media (min-width: 1400px) {
  .site-nav .navbar-nav { flex-wrap: nowrap; }
  .site-nav .nav-link { font-size: .9rem; padding: .6rem .62rem !important; }
  .site-nav .nav-link:not(.dropdown-toggle)::after { left: .62rem; right: .62rem; }
  .site-nav .nav-cta { margin-left: .65rem; }
  .site-nav .nav-cta .btn { white-space: nowrap; }
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--accent); }
.site-nav .nav-link:not(.dropdown-toggle)::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .35rem;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav .nav-link:not(.dropdown-toggle):hover::after,
.site-nav .nav-link:not(.dropdown-toggle).active::after { transform: scaleX(1); }

.site-nav .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: .6rem;
  margin-top: .5rem;
  z-index: 1050;
}
.site-nav .dropdown-item {
  font-size: .9rem;
  border-radius: 8px;
  padding: .55rem .8rem;
  color: var(--ink-2);
  white-space: normal;
}
.site-nav .dropdown-item:hover { background: var(--teal-soft); color: var(--accent); }

/* Services mega dropdown — two columns, positioned under navbar */
.site-nav .nav-item.dropdown { position: static; }
.mega-menu {
  width: 560px;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  top: 100%;
  padding: 1rem;
}
.mega-menu .row { display: flex; flex-wrap: wrap; }
.mega-menu .col-6 { flex: 0 0 50%; max-width: 50%; }
.mega-menu .dropdown-item { font-weight: 500; white-space: normal; }

.nav-cta { margin-left: .5rem; }

/* Offcanvas (mobile) */
.offcanvas .nav-link { color: var(--ink-2); font-family: var(--font-head); font-weight: 600; padding: .7rem .2rem !important; border-bottom: 1px solid var(--line); }
.offcanvas .dropdown-menu { box-shadow: none; border: none; padding-left: .6rem; }

/* 7) FOOTER ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #aeb9da; }
.site-footer .footer-top { padding: clamp(48px, 7vw, 84px) 0 2.5rem; }
.site-footer h2, .site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1.25rem; letter-spacing: .01em; }
.site-footer a { color: #aeb9da; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .6rem; }
.site-footer .footer-links a { display: inline-flex; gap: .5rem; align-items: baseline; font-size: .93rem; }
.site-footer .footer-links a::before { content: "\203A"; color: var(--accent); font-weight: 700; }
.site-footer .footer-contact li { display: flex; gap: .65rem; margin-bottom: .75rem; font-size: .93rem; }
.site-footer .footer-contact i { color: #8fa0d8; margin-top: .25rem; }
.site-footer .footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); margin-right: .5rem;
}
.site-footer .footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; font-size: .85rem; color: #8c98bf; }

/* Sticky contact buttons */
.sticky-contact-buttons { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: 10px; }
.sticky-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  min-width: 56px; padding: 13px 18px;
  border: none; border-radius: var(--r-pill);
  color: #fff; font-family: var(--font-head); font-size: .92rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), filter .25s var(--ease);
}
.sticky-btn:hover { transform: translateY(-3px); color: #fff; filter: brightness(1.05); }
.sticky-btn.whatsapp { background: #25d366; }
.sticky-btn.enquiry  { background: var(--accent); }
@media (max-width: 575px) {
  .sticky-btn .sticky-label { display: none; }
  .sticky-btn { padding: 14px; font-size: 1.15rem; }
}

/* Enquiry popup */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(10,18,40,.55);
  backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 1060; padding: 1rem;
}
.popup-overlay.open { display: flex; animation: fadeIn .25s var(--ease); }
.popup-container {
  background: #fff; border-radius: var(--r-lg); padding: 2rem 1.75rem;
  width: 100%; max-width: 400px; position: relative;
  box-shadow: var(--shadow-lg); animation: popIn .3s var(--ease);
}
.popup-container h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.popup-container .popup-sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.25rem; }
.popup-container .form-control { border-radius: var(--r-sm); padding: .7rem .9rem; border: 1px solid var(--line); }
.popup-container .form-control:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,31,99,.08); }
.popup-close {
  position: absolute; top: 12px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--bg-soft); color: var(--ink);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.popup-close:hover { background: var(--accent); color: #fff; }
.popup-error { color: var(--accent); font-size: .78rem; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn  { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* 8) LEGACY CLASS RESTYLE -------------------------------------------------- */
/* Service/inner pages use .about-area > .about-wrap for body content */
.about-area, .porftolio-area { padding: var(--section-y) 0; }
.ptb-140 { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.ptb-70  { padding-top: calc(var(--section-y) * .7); padding-bottom: calc(var(--section-y) * .7); }

.about-img1 img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; }

/* Override legacy responsive.css rule that clamps .about-wrap to 420px on
   tablets (768–991px) and clips the body content on every inner/service page. */
.about-area .about-wrap { height: auto !important; }

/* Balance the image column against the long content: stacked on mobile/tablet,
   sticky beside the text on desktop so there's no large empty gap. */
.about-area .about-img1 { margin-bottom: 1.5rem; }
@media (min-width: 992px) {
  .about-area .about-img1 { position: sticky; top: 100px; margin-bottom: 0; }
}

.about-wrap h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: .9rem; }
.about-wrap h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); color: var(--ink); margin: 1.6rem 0 .8rem; }
.about-wrap h3 { font-size: 1.25rem; color: var(--ink-2); margin: 1.5rem 0 .6rem; }
.about-wrap h4 { font-size: 1.08rem; color: var(--ink-2); margin: 1.2rem 0 .5rem; }
.about-wrap h5 { font-size: 1rem; color: var(--ink-2); line-height: 1.6; font-weight: 600; }
.about-wrap p { color: var(--body); line-height: 1.85; }
.about-wrap ul { padding-left: 0; list-style: none; margin: 0 0 1.2rem; }
.about-wrap ul li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; color: var(--body); line-height: 1.7; }
.about-wrap ul li::before {
  content: "\f105"; font-family: "Font Awesome 5 Free", "FontAwesome"; font-weight: 900;
  position: absolute; left: .35rem; top: .05rem; color: var(--accent);
}
.about-wrap a { font-weight: 600; }

/* Section title (contact etc.) */
.section-title h2 { position: relative; display: inline-block; padding-bottom: .8rem; }
.section-title h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 60px; height: 3px; background: var(--accent); border-radius: 3px;
}

/* Contact page cards + form */
.cont { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; margin-bottom: 2rem; }
.cont h2 { font-size: 1.3rem; }
.cont ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.cont ul li { margin-bottom: .5rem; }
.cont ul li i { color: var(--accent); margin-right: .5rem; }
.pricing-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; height: 100%; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.pricing-item.active { border-color: transparent; box-shadow: var(--shadow); }
.pricing-title { font-size: 1.15rem; margin-bottom: 1rem; }
.pricing-item iframe { border-radius: var(--r-sm); }
#addform ol { list-style: none; padding: 0; margin: 0; }
#addform li { margin-bottom: .9rem; }
#addform .text, #addform input[type="text"], #addform input[type="email"], #addform textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .95rem; font-family: var(--font-body);
}
#addform .text:focus, #addform textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,31,99,.08); }
#addform .cap { width: auto; display: inline-block; margin-left: .5rem; }
.send {
  background: var(--accent); color: #fff; border: none; border-radius: var(--r-sm);
  padding: .8rem 2rem; font-family: var(--font-head); font-weight: 600; cursor: pointer; transition: background .2s var(--ease);
}
.send:hover { background: var(--accent-600); }

/* 9) BOOTSTRAP 3 -> 5 COMPAT SHIM ----------------------------------------- */
/* BS5 doesn't ship .col-xs-*, BS3 offsets, hidden-*, pull-*, text-right.
   These restore the few legacy class names still present in page content.
   IMPORTANT: .col-xs-* is Bootstrap 3's extra-small (base) tier, which ended
   at 768px. It MUST be scoped to <768px — otherwise (loading after BS5) it
   overrides .col-md-4/.col-md-8 at every width, forcing columns to 100% and
   stacking them on desktop. BS5's .row > * already supplies the gutter padding
   at larger sizes, so nothing is lost above this breakpoint. */
@media (max-width: 767.98px) {
  [class*="col-xs-"] { position: relative; width: 100%; padding-right: calc(var(--bs-gutter-x) * .5); padding-left: calc(var(--bs-gutter-x) * .5); }
  .col-xs-1  { flex: 0 0 auto; width: 8.3333%; }
  .col-xs-2  { flex: 0 0 auto; width: 16.6667%; }
  .col-xs-3  { flex: 0 0 auto; width: 25%; }
  .col-xs-4  { flex: 0 0 auto; width: 33.3333%; }
  .col-xs-5  { flex: 0 0 auto; width: 41.6667%; }
  .col-xs-6  { flex: 0 0 auto; width: 50%; }
  .col-xs-7  { flex: 0 0 auto; width: 58.3333%; }
  .col-xs-8  { flex: 0 0 auto; width: 66.6667%; }
  .col-xs-9  { flex: 0 0 auto; width: 75%; }
  .col-xs-10 { flex: 0 0 auto; width: 83.3333%; }
  .col-xs-11 { flex: 0 0 auto; width: 91.6667%; }
  .col-xs-12 { flex: 0 0 auto; width: 100%; }
}

/* Columns authored without a mobile base (e.g. col-lg-7 with no col-12) have
   NO width below their breakpoint in BS5, so they size to content and overflow
   on phones. Default such columns to full-width below their breakpoint so they
   stack — but leave alone any column that also carries an explicit smaller
   class (col-6 / col-sm-* / col-md-*), so intentional 2-up mobile rows stay. */
@media (max-width: 991.98px) {
  .row > [class*="col-lg-"]:not([class*="col-md-"]):not([class*="col-sm-"]):not([class*="col-6"]):not([class*="col-xs-"]) {
    flex: 0 0 auto; width: 100%;
  }
}
@media (max-width: 767.98px) {
  .row > [class*="col-md-"]:not([class*="col-sm-"]):not([class*="col-6"]):not([class*="col-xs-"]) {
    flex: 0 0 auto; width: 100%;
  }
}
@media (max-width: 575.98px) {
  .row > [class*="col-sm-"]:not([class*="col-6"]):not([class*="col-xs-"]) {
    flex: 0 0 auto; width: 100%;
  }
  /* Large horizontal row gutters (g-4/g-5/gx-5) set negative side margins
     wider than the .container's 12px padding. Below 576px the container is
     full-width (no side margin to absorb it), so those rows spill past the
     viewport → horizontal scroll / zoom-out on phones. Cap the horizontal
     gutter to match the container padding so rows never overflow. */
  .row { --bs-gutter-x: 1.5rem; }
}

@media (min-width: 576px) { .col-sm-offset-1 { margin-left: 8.3333%; } }
@media (min-width: 768px) {
  .col-md-offset-1 { margin-left: 8.3333%; }
  .col-md-offset-2 { margin-left: 16.6667%; }
  .col-md-offset-3 { margin-left: 25%; }
}

.pull-right { float: right !important; }
.pull-left  { float: left !important; }
.text-right { text-align: right !important; }
.text-left  { text-align: left !important; }
.center-block { display: block; margin-left: auto; margin-right: auto; }
.img-responsive { display: block; max-width: 100%; height: auto; }

/* hidden-* (BS3) — visibility by breakpoint */
@media (max-width: 575.98px) { .hidden-xs { display: none !important; } }
@media (min-width: 576px) and (max-width: 767.98px) { .hidden-sm { display: none !important; } }
@media (min-width: 768px) and (max-width: 991.98px) { .hidden-md { display: none !important; } }
@media (min-width: 992px) { .hidden-lg { display: none !important; } }

/* 10) MOTION (taste: subtle, intent-driven) -------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal][data-reveal="right"] { transform: translateX(28px); }
[data-reveal].in[data-reveal] { transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }

/* On phones/small tablets the left/right reveal offsets (translateX ±28px)
   push not-yet-revealed elements outside the viewport, creating horizontal
   scroll (the page zooms out). Swap them for a vertical offset, which animates
   the same way but can never cause horizontal overflow. */
@media (max-width: 767.98px) {
  [data-reveal][data-reveal="left"],
  [data-reveal][data-reveal="right"] { transform: translateY(24px); }
  [data-reveal].in[data-reveal] { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* 11) RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 991.98px) {
  .mega-menu { min-width: auto; }
  .nav-cta { margin: .75rem 0 0; }
}
@media (max-width: 767.98px) {
  :root { --section-y: 52px; }
  .feature-card { padding: 1.6rem 1.4rem; }
  .topbar { display: none; }
}
