/* ============================================================================
   mobile.css — Mobile-only overrides for Imperator Capital
   ----------------------------------------------------------------------------
   Every rule in this file lives inside `@media (max-width: 767px)` or
   `@media (max-width: 480px)`. Loaded LAST in <head> so it wins the cascade.
   At >=768px this file is a no-op: desktop renders byte-identically.
   ============================================================================ */

@media (max-width: 767px) {

  /* ---------------------------------------------------------------------- *
   * 0. Global safety
   * ---------------------------------------------------------------------- */
  body { overflow-x: hidden; }
  img { max-width: 100%; height: auto; }
  .container, .container-fluid { padding-left: 20px; padding-right: 20px; }

  /* ---------------------------------------------------------------------- *
   * 1. Header & navigation — mobile bar
   *    Layout: [logo left] ........... [Join Imperator pill] [3-line burger]
   *    Menu:   full-screen dark overlay sliding in from the right
   * ---------------------------------------------------------------------- */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1010 !important;        /* above the menu overlay */
  }
  .header__bottom {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    padding: 10px 0 !important;
  }
  .header nav.navbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0 14px !important;
    gap: 6px !important;
    position: relative !important;
    min-height: 56px !important;
  }
  /* Logo anchored to the left */
  .header .site-logo {
    position: static !important;
    transform: none !important;
    z-index: auto !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    display: block !important;
  }
  .header .site-logo img {
    max-width: 180px !important;
    max-height: 48px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
  }

  /* "Join Imperator" pill — repurposed `.account-menu.mobile-acc-menu` */
  .header .account-menu.mobile-acc-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 0 0 auto !important; /* push to the right */
    padding: 0 !important;
    flex: 0 0 auto !important;
    z-index: 1015 !important;       /* stays above the menu overlay */
  }
  .header .account-menu.mobile-acc-menu li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .header .mobile-join-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #15110b !important;
    color: #FDFBF6 !important;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.005em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    min-height: 36px !important;
    border: none !important;
    box-shadow: none !important;
  }
  .header .mobile-join-cta:hover,
  .header .mobile-join-cta:focus {
    background: #b8941f !important;
    color: #FDFBF6 !important;
    transform: translateY(-1px);
  }
  .header .mobile-join-cta:active { transform: translateY(0); }

  /* Hamburger button — to the right of the pill.
     Higher-specificity selector to beat the page-level <style> blocks that
     paint every header descendant white. */
  .header .navbar-toggler,
  .header nav.navbar .navbar-toggler,
  .header .navbar .navbar-toggler {
    position: relative !important;
    margin: 0 0 0 4px !important;
    z-index: 1020 !important;       /* above everything so it's always clickable */
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    flex: 0 0 auto !important;
    box-shadow: none !important;
  }
  /* 3-line hamburger icon */
  .menu-toggle {
    color: #15110b !important;
    width: 24px !important;
    height: 16px !important;
    margin: 0 !important;
    border-color: #15110b !important;
    position: relative !important;
    display: block !important;
    transition: border-color 0.3s ease !important;
  }
  .menu-toggle:before,
  .menu-toggle:after {
    background-color: #15110b !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  /* When menu is open, hamburger morphs into an X.
     Bootstrap toggles aria-expanded="true" on the button. The X also
     switches to white so it stays visible against the dark menu overlay. */
  .navbar-toggler[aria-expanded="true"] .menu-toggle {
    border-color: transparent !important;
  }
  .navbar-toggler[aria-expanded="true"] .menu-toggle:before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
    background-color: #FDFBF6 !important;
  }
  .navbar-toggler[aria-expanded="true"] .menu-toggle:after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
    background-color: #FDFBF6 !important;
  }
  /* Header bar fades to transparent when the menu is open so the dark overlay
     reads as a single continuous surface (Join pill + X visible on top).
     Logo is hidden — its dark engraving wouldn't read on the dark overlay,
     and "Join Imperator" + the X are sufficient context. */
  body:has(.navbar-collapse.show) .header__bottom {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body:has(.navbar-collapse.show) .header .site-logo {
    visibility: hidden !important;
  }
  body:has(.navbar-collapse.show) .header .mobile-join-cta {
    background: #FDFBF6 !important;
    color: #15110b !important;
  }

  /* === Full-screen overlay menu (slides in from the right) ============== */
  .header nav.navbar > .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;       /* dynamic vh on iOS Safari */
    background: #15110b !important;
    margin: 0 !important;
    padding: 92px 28px 40px !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 1000 !important;        /* below header/burger/pill */
    flex-basis: auto !important;
    flex-direction: column !important;
    transform: translateX(100%) !important;
    visibility: hidden !important;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.45s !important;
    display: flex !important;        /* always flex; visibility/transform hides it */
  }
  .header nav.navbar > .navbar-collapse.show,
  .header nav.navbar > .navbar-collapse.collapsing {
    transform: translateX(0) !important;
    visibility: visible !important;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s !important;
    display: flex !important;
  }
  /* Bootstrap collapse JS sets inline `style="height:0"` during animation —
     override so the overlay stays full-height. */
  .header nav.navbar > .navbar-collapse.collapsing { height: 100vh !important; }

  /* Menu items: large editorial typography. Transparent background overrides
     the page-level <style> blocks (and main.css line 2655) that force a white
     background on every header descendant on mobile. */
  .header .navbar-collapse,
  .header nav.navbar .navbar-collapse,
  .header nav.navbar > .navbar-collapse,
  .header nav.navbar .navbar-nav,
  .header nav.navbar .navbar-nav.main-menu,
  .header .navbar .navbar-nav,
  .navbar .navbar-nav,
  .navbar-nav.main-menu {
    background-color: transparent !important;
    background: transparent !important;
  }
  /* …but the overlay container itself stays dark. */
  .header nav.navbar > .navbar-collapse {
    background: #15110b !important;
    background-color: #15110b !important;
  }
  .navbar-nav.main-menu {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .navbar-nav.main-menu li {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(253, 251, 246, 0.12) !important;
    background: transparent !important;
    list-style: none !important;
  }
  .navbar-nav.main-menu li:first-child {
    border-top: 1px solid rgba(253, 251, 246, 0.12) !important;
  }
  .navbar-nav.main-menu li a {
    color: #FDFBF6 !important;
    background: transparent !important;
    padding: 22px 0 !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    letter-spacing: -0.018em !important;
    line-height: 1.1 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    text-decoration: none !important;
    border: none !important;
    font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif !important;
    transition: color 0.25s ease, transform 0.25s ease, padding 0.25s ease !important;
    min-height: auto !important;
  }
  .navbar-nav.main-menu li a:hover,
  .navbar-nav.main-menu li a:focus {
    color: #D4af37 !important;
    background: transparent !important;
    padding-left: 6px !important;
    transform: none !important;
  }
  /* Contact becomes the sole CTA in the mobile overlay. */
  .navbar-nav.main-menu li.d-lg-none:last-child {
    border-bottom: none !important;
    margin-top: 28px !important;
  }
  .navbar-nav.main-menu li.d-lg-none:last-child a {
    background: #FDFBF6 !important;
    color: #15110b !important;
    text-align: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    min-height: 52px !important;
    padding: 14px 28px !important;
    width: auto !important;
  }
  .navbar-nav.main-menu li.d-lg-none:last-child a:hover,
  .navbar-nav.main-menu li.d-lg-none:last-child a:focus {
    background: #ffffff !important;
    color: #15110b !important;
    padding-left: 28px !important;
  }

  /* Hide desktop nav-right (gold "Contact" button) inside the overlay */
  .header .navbar-collapse .nav-right { display: none !important; }

  /* Keep the opening motion to one clean slide; no delayed item fade. */
  .header nav.navbar > .navbar-collapse.show .navbar-nav.main-menu li {
    opacity: 1 !important;
    animation: none !important;
  }

  /* Lock body scroll when the overlay is open (modern browsers) */
  body:has(.navbar-collapse.show) { overflow: hidden !important; }

  /* ---------------------------------------------------------------------- *
   * 2. Index hero (.hm-hero)
   *    JS sets padding-top:0 inline at <=767px which hides the title behind
   *    the fixed header — !important here defeats that.
   * ---------------------------------------------------------------------- */
  .hm-hero {
    min-height: auto !important;
    padding-top: 80px !important;
    padding-bottom: 0 !important;
  }
  .hm-hero::before, .hm-hero::after { display: none !important; }
  .hm-hero-container { padding: 0 20px !important; }
  .hm-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 24px 0 40px !important;
  }
  .hm-hero-divider { display: none !important; }
  .hm-hero-left, .hm-hero-right { padding: 0 !important; }
  .hm-hero-eyebrow { font-size: 0.66rem !important; margin-bottom: 0.9rem !important; }
  .hm-hero-title {
    font-size: 2.1rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.028em !important;
    margin: 0 0 1rem !important;
  }
  .hm-hero-sub {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 1.5rem !important;
    max-width: none !important;
  }
  .hm-hero-cta {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .hm-hero-cta .hm-btn,
  .hm-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 22px !important;
    min-height: 48px !important;
    font-size: 0.74rem !important;
  }
  .hm-hero-image { max-width: 280px !important; margin: 0 auto !important; }

  /* Strip → vertical stack with horizontal hairlines */
  .hm-hero-strip { grid-template-columns: 1fr !important; }
  .hm-strip-item { padding: 18px 20px !important; text-align: left !important; }
  .hm-strip-item:not(:last-child)::after {
    top: auto !important;
    bottom: 0 !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    height: 1px !important;
  }
  .hm-strip-label { font-size: 0.66rem !important; }
  .hm-strip-val { font-size: 0.92rem !important; }

  /* "Get started today" card */
  .hm-getstarted-grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .hm-getstarted-divider { display: none !important; }
  .hm-getstarted-text {
    padding: 32px 24px 16px !important;
    align-items: center !important;
    text-align: center !important;
  }
  .hm-getstarted-title {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    max-width: none !important;
  }
  .hm-getstarted-text p { font-size: 0.95rem !important; max-width: none !important; }
  .hm-getstarted-cta {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 22px !important;
    min-height: 48px !important;
  }
  .hm-getstarted-image { padding: 0 24px 28px !important; }
  .hm-getstarted-image img { max-width: 180px !important; }

  /* Subscribe band */
  .hm-subscribe { border-radius: 4px !important; }
  .hm-subscribe-content {
    padding: 32px 20px !important;
    min-height: auto !important;
    gap: 14px !important;
  }
  .hm-subscribe-title { font-size: 1.4rem !important; }
  .hm-subscribe-form {
    flex-direction: column !important;
    border: none !important;
    background: transparent !important;
    gap: 10px !important;
    max-width: none !important;
  }
  .hm-subscribe-form input {
    font-size: 16px !important;
    padding: 14px 16px !important;
    background: #FDFBF6 !important;
    border: 1px solid #e6dfd0 !important;
    border-radius: 4px !important;
    width: 100% !important;
    min-height: 48px !important;
  }
  .hm-subscribe-form button {
    padding: 14px 22px !important;
    border-radius: 4px !important;
    width: 100% !important;
    min-height: 48px !important;
  }

  /* ---------------------------------------------------------------------- *
   * 3. Index — generic Bootstrap section padding & cards
   * ---------------------------------------------------------------------- */
  .pt-120 { padding-top: 56px !important; }
  .pb-120 { padding-bottom: 56px !important; }

  /* Vision band (.about-section.bg_img)
     Reproduce the desktop layout on mobile: bust on the left, text on the right.
     We use the section's own bg-image (set inline by JS) and position it so the
     bust ends up on the left half of the section. The text card sits over the
     right portion with a near-opaque paper backdrop for legibility. No pseudo
     element, no seam, no flex centering — natural Bootstrap row flow.
     The main.css `::before` 60% white overlay (active <992px) is hidden so the
     bust reads clearly. */
  .about-section {
    position: relative !important;
    background-position: right center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-color: #f4ede0 !important;
    min-height: 380px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    display: flex !important;
    align-items: center !important;
  }
  .about-section::before { display: none !important; }
  .about-section .col-lg-6.offset-lg-6 {
    margin-left: 40% !important;
    flex: 0 0 60% !important;
    max-width: 60% !important;
  }
  .about-section .about-content {
    background: rgba(253, 251, 246, 0.93) !important;
    padding: 16px 14px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  }
  .about-section .about-content .section-title {
    font-size: 1.45rem !important;
    line-height: 1.15 !important;
    margin-bottom: 0.5rem !important;
  }
  .about-section .about-content p {
    font-size: 0.93rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
  }
  .about-section .about-content p:last-child { margin-bottom: 0 !important; }
  .section-title { font-size: 1.6rem !important; line-height: 1.2 !important; }
  .section-header p,
  .about-content p { font-size: 16px !important; line-height: 1.6 !important; }

  /* Strategy cards */
  .choose-us-section { padding: 56px 0 !important; }
  .choose-card { padding: 28px 22px !important; }
  .choose-card__title { font-size: 1.15rem !important; line-height: 1.25 !important; }
  .choose-card p { font-size: 0.95rem !important; line-height: 1.55 !important; }

  /* FAQ accordion */
  .accordion .card-header .btn-link {
    font-size: 1rem !important;
    padding: 14px 16px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }
  .accordion .card-body { padding: 16px !important; font-size: 0.95rem !important; }

  /* Logo carousel */
  .logo-slider-container .logo-slide { padding: 0 18px !important; }
  .logo-slide img { max-height: 36px !important; width: auto !important; }

  /* ---------------------------------------------------------------------- *
   * 4. About page (.ab-)
   * ---------------------------------------------------------------------- */
  .ab-hero { padding: 56px 0 48px !important; }
  .ab-hero .container > .row { flex-direction: column-reverse !important; }
  .ab-hero-title {
    font-size: 2.1rem !important;
    line-height: 1.1 !important;
    margin: 0 0 18px !important;
  }
  .ab-hero-sub { font-size: 16px !important; line-height: 1.6 !important; }
  .ab-hero-cta {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 22px !important;
    min-height: 48px !important;
  }
  .ab-hero-visual { max-width: 360px !important; margin: 0 auto 24px !important; }

  .ab-section-title { font-size: 1.5rem !important; line-height: 1.2 !important; margin-bottom: 20px !important; }
  .ab-section-title.is-large { font-size: 1.7rem !important; }

  .ab-mission, .ab-firm, .ab-principles, .ab-team, .ab-cta { padding: 48px 0 !important; }
  .ab-mission-inner { padding: 0 4px !important; }
  .ab-mission-title,
  .ab-mission-title-soft { font-size: 1.25rem !important; line-height: 1.35 !important; }

  .ab-team-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .ab-team-card { padding: 24px 20px !important; }
  .ab-team-title { font-size: 1.05rem !important; }
  .ab-team-intro { margin: 0 0 28px !important; }

  .ab-prin-item { gap: 14px !important; }
  .ab-prin-text { font-size: 0.96rem !important; line-height: 1.55 !important; }

  .ab-cta-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 22px !important;
    min-height: 48px !important;
  }

  /* ---------------------------------------------------------------------- *
   * 5. OTC page (.otc-, generic .hero-, .features-, .client-type-)
   * ---------------------------------------------------------------------- */
  .otc-hero { padding: 56px 0 48px !important; text-align: center !important; }
  .otc-hero .row { flex-direction: column !important; }
  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.028em !important;
  }
  .hero-subtitle, .hero-sub {
    font-size: 16px !important;
    line-height: 1.6 !important;
    max-width: none !important;
  }
  .hero-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  /* Restyle the gold pill .cmn-btn into the minimalist black-rectangle style
     used by the home/about CTAs so OTC hero feels consistent on mobile. */
  .hero-buttons .cmn-btn {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 22px !important;
    min-height: 48px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace !important;
    border-radius: 4px !important;
    background: #15110b !important;
    color: #FDFBF6 !important;
    border: 1px solid #15110b !important;
    box-shadow: none !important;
  }
  .hero-buttons .cmn-btn.style--three {
    background: transparent !important;
    color: #15110b !important;
    border-color: #e6dfd0 !important;
  }
  .cta-section .cmn-btn {
    width: 100% !important;
    max-width: 320px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 22px !important;
    min-height: 48px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace !important;
    border-radius: 4px !important;
    background: #15110b !important;
    color: #FDFBF6 !important;
    box-shadow: none !important;
  }
  .hero-meta { justify-content: center !important; flex-wrap: wrap; gap: 8px 14px; }
  .hero-visual { max-width: 320px !important; margin: 24px auto 0 !important; }

  .traded-by-section,
  .features-section,
  .cta-section { padding: 48px 0 !important; }

  .features-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .feature-card { padding: 24px 20px !important; min-height: auto !important; }
  .feature-num { font-size: 0.7rem !important; }

  .client-types-list { padding: 0 4px !important; }
  .client-type-header { gap: 14px !important; padding: 18px 0 !important; }
  .client-type-num { min-width: 22px !important; font-size: 0.7rem !important; }
  .client-type-title { font-size: 1rem !important; line-height: 1.3 !important; }
  .client-type-desc {
    padding: 0 0 18px calc(22px + 14px) !important;
    font-size: 0.93rem !important;
    line-height: 1.55 !important;
  }

  /* ---------------------------------------------------------------------- *
   * 6. Research page (.res-, .feat-)
   * ---------------------------------------------------------------------- */
  .res-hero { padding: 56px 0 40px !important; }
  .res-hero-title {
    font-size: 2.1rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.028em !important;
  }
  .res-hero-sub { font-size: 16px !important; line-height: 1.6 !important; }
  .res-section { padding: 48px 0 !important; }

  .feat-grid, .feat-list-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .feat-card { padding: 24px 20px !important; }
  .feat-card-title { font-size: 1.05rem !important; line-height: 1.3 !important; }
  .feat-meta, .feat-card-meta { font-size: 0.72rem !important; }

  /* ---------------------------------------------------------------------- *
   * 7. Contact form (contact.html)
   * ---------------------------------------------------------------------- */
  .contact-form .form-control,
  .contact-form input,
  .contact-form textarea,
  input.form-control,
  textarea.form-control,
  select.form-control {
    font-size: 16px !important;        /* prevents iOS zoom-on-focus */
    padding: 12px 14px !important;
    border-radius: 4px !important;
  }
  input.form-control,
  select.form-control,
  .contact-form input { height: 48px !important; }
  textarea.form-control,
  .contact-form textarea {
    min-height: 140px !important;
    height: auto !important;
  }
  .contact-form button[type="submit"],
  .contact-form .btn-warning,
  .btn.btn-warning.btn-lg {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 1rem !important;
    padding: 14px 22px !important;
  }
  .g-recaptcha {
    transform: scale(0.88);
    transform-origin: 0 0;
    width: 100%;
    overflow: hidden;
  }
  .form-group { margin-bottom: 1rem !important; }

  /* Contact info card */
  section.py-5 { padding-top: 24px !important; padding-bottom: 24px !important; }
  section.py-5 .display-4 { font-size: 2rem !important; line-height: 1.15 !important; }
  section.py-5 .lead { font-size: 1rem !important; }
  section.py-5 .bg-white.p-4 { padding: 22px !important; }

  /* ---------------------------------------------------------------------- *
   * 8. Privacy page (#privacy_date)
   *    Page has no fixed-header spacer — push the card below the header.
   * ---------------------------------------------------------------------- */
  #privacy_date { margin-top: 80px !important; padding: 0 !important; }
  #privacy_date .card { border-radius: 8px !important; }
  #privacy_date .card-header { padding: 28px 16px !important; }
  #privacy_date .card-header h2 { font-size: 1.5rem !important; line-height: 1.2 !important; }
  #privacy_date .card-body { padding: 20px !important; }
  #privacy_date h4 { font-size: 1.05rem !important; line-height: 1.35 !important; }
  #privacy_date p,
  #privacy_date li { font-size: 0.95rem !important; line-height: 1.6 !important; }
  #privacy_date .alert { padding: 14px 16px !important; font-size: 0.85rem !important; line-height: 1.55 !important; }

  /* ---------------------------------------------------------------------- *
   * 9. 404 page (.nf-)
   * ---------------------------------------------------------------------- */
  .nf-section { padding: 56px 20px !important; min-height: calc(100vh - 88px) !important; }
  .nf-image { max-width: 240px !important; margin-bottom: 22px !important; }
  .nf-title { font-size: 1.6rem !important; line-height: 1.2 !important; }
  .nf-body { font-size: 16px !important; line-height: 1.6 !important; }
  .nf-btn { padding: 14px 22px !important; min-height: 48px !important; }

  /* ---------------------------------------------------------------------- *
   * 10. Thank-you page
   * ---------------------------------------------------------------------- */
  .thankyou-wrapper { padding: 96px 0 56px !important; }
  .thankyou-card { padding: 24px 20px !important; }
  .thankyou-title { font-size: 1.5rem !important; line-height: 1.25 !important; }
  .thankyou-sub { font-size: 0.95rem !important; }
  .summary-table th { width: auto !important; min-width: 90px; font-size: 0.9rem; }
  .summary-table td { font-size: 0.9rem; word-break: break-word; }

  /* ---------------------------------------------------------------------- *
   * 11. Sliders
   * ---------------------------------------------------------------------- */
  .testimonial-slider .slick-dots,
  .payment-slider .slick-dots { margin-top: 16px !important; }
  .slick-dots li button:before { font-size: 8px !important; }
  .slick-prev, .slick-next,
  .slick-slider .prev, .slick-slider .next { display: none !important; }

  /* ---------------------------------------------------------------------- *
   * 12. Footer
   * ---------------------------------------------------------------------- */
  .footer__top { padding: 40px 0 16px !important; }
  .footer .row { margin-left: 0 !important; margin-right: 0 !important; }
  .footer .col-lg-6,
  .footer .col-lg-3 {
    padding-left: 12px !important;
    padding-right: 12px !important;
    text-align: center !important;
  }
  .footer #footY ul { padding-left: 0 !important; padding-right: 0 !important; }
  .footer #footY li.text-left,
  .footer #footY li {
    text-align: center !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }
  .footer-logo { display: block !important; text-align: center !important; }
  .footer-logo img { max-width: 140px !important; margin: 0 auto !important; }
  .footer h6.fw-bold {
    text-align: center !important;
    padding: 0 !important;
    margin-top: 18px !important;
  }
  .footer-quick-links { align-items: center !important; }
  .footer-short-menu {
    padding: 0 !important;
    text-align: center !important;
    list-style: none !important;
  }
  .footer-short-menu li a {
    font-size: 0.95rem !important;
    padding: 6px 0 !important;
    display: inline-block !important;
  }
  .social-link-list {
    justify-content: center !important;
    gap: 18px !important;
    padding: 8px 0 0 !important;
  }
  .social-link-list li a {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer__bottom { padding: 12px 0 24px !important; }
  .footer__bottom p {
    font-size: 0.85rem !important;
    margin: 0 !important;
    text-align: center !important;
  }
  .footer__bottom .col-md-6 { text-align: center !important; }

  /* ---------------------------------------------------------------------- *
   * 13. Universal touch targets
   * ---------------------------------------------------------------------- */
  a.btn, button.btn,
  .cmn-btn, .hm-btn,
  .ab-cta-btn, .ab-hero-cta,
  .nf-btn { min-height: 44px !important; }
  .scroll-to-top { right: 16px !important; bottom: 16px !important; }
  .scroll-to-top .scroll-icon { width: 44px !important; height: 44px !important; }
}

/* ============================================================================
   Extra-small phones (≤480px)
   ============================================================================ */
@media (max-width: 480px) {
  .hm-hero-title,
  .ab-hero-title,
  .hero-title,
  .res-hero-title { font-size: 1.85rem !important; line-height: 1.12 !important; }
  .hm-hero-eyebrow,
  .ab-eyebrow,
  .hero-eyebrow,
  .res-eyebrow { font-size: 0.62rem !important; }
  .container, .container-fluid { padding-left: 16px !important; padding-right: 16px !important; }
  .header .site-logo img { max-width: 150px !important; max-height: 40px !important; }
  .nf-image { max-width: 200px !important; }
  .footer #footY li { font-size: 0.9rem !important; }
  .section-title { font-size: 1.4rem !important; }
  .hm-getstarted-title,
  .ab-section-title.is-large { font-size: 1.35rem !important; }

  /* Vision: tighten card and give text a bit more room at iPhone SE / small widths */
  .about-section .col-lg-6.offset-lg-6 {
    flex: 0 0 64% !important;
    max-width: 64% !important;
    margin-left: 36% !important;
  }
  .about-section .about-content .section-title { font-size: 1.3rem !important; }
  .about-section .about-content p { font-size: 0.88rem !important; }
}

/* ============================================================================
   Desktop preservation
   ----------------------------------------------------------------------------
   The HTML used to carry an inline `style="padding-left: 50px !important;"`
   on the navbar to push the desktop logo inward. We removed that inline so it
   wouldn't leak into the mobile layout (inline `!important` outranks even
   `!important` stylesheet rules). Re-add the same offset only at the desktop
   breakpoint where the full nav lays out (`navbar-expand-xl` activates ≥1200px).
   ============================================================================ */
@media (min-width: 1200px) {
  .header nav.navbar {
    padding-left: 50px !important;
  }
}

/* ============================================================================
   Site-wide: hide the gold scroll progress bar
   ----------------------------------------------------------------------------
   `#scrollIndicator` is a fixed gold strip at top:0 driven by inline JS on
   every page. Remove it from the entire site (mobile + desktop) per design
   request. CSS-only suppression so the dead JS that still updates `.style.width`
   is harmless (no visible side effects).
   ============================================================================ */
#scrollIndicator {
  display: none !important;
}
