/* =========================================================
   FET Mobile App UI — compact, dense, application-like
   Active below 768px (phones & small tablets)
   ========================================================= */

/* Bottom tab bar — hidden on desktop */
.app-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --app-pad: 12px;
    --app-gap: 8px;
    --app-radius: 0;
    --app-nav-h: 58px;
  }

  html {
    -webkit-text-size-adjust: 100%;
    font-size: 14px;
  }

  body {
    line-height: 1.45 !important;
    padding-bottom: calc(var(--app-nav-h) + env(safe-area-inset-bottom, 0px) + 8px) !important;
    overscroll-behavior-y: contain;
  }

  /* ---- Fixed bottom app menu ---- */
  .app-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    height: calc(var(--app-nav-h) + env(safe-area-inset-bottom, 0px));
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    background: #09254C;
    border-top: 1px solid rgba(183, 128, 27, 0.45);
    box-shadow: 0 -4px 18px rgba(9, 37, 76, 0.28);
    justify-content: space-around;
    align-items: stretch;
  }
  .app-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.62) !important;
    padding: 4px 2px;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .app-tab:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.06);
  }
  .app-tab-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
  }
  .app-tab-ico svg {
    display: block;
  }
  .app-tab-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1.1;
    white-space: nowrap;
  }
  .app-tab.is-active {
    color: #E8C56A !important;
  }
  .app-tab.is-active .app-tab-ico {
    position: relative;
  }
  .app-tab.is-active .app-tab-ico::after {
    content: '';
    position: absolute;
    top: -3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #E8C56A;
  }
  .app-tab-join.is-active,
  .app-tab-join:hover {
    color: #E8C56A !important;
  }

  .footer {
    margin-bottom: 0;
  }

  /* ---- Compact shell ---- */
  .container,
  .container {
    padding-left: var(--app-pad) !important;
    padding-right: var(--app-pad) !important;
  }

  section[id] { scroll-margin-top: 58px; }

  /* ---- Top bar: thin app status strip ---- */
  .topbar {
    font-size: 10px !important;
    font-weight: 600;
  }
  .topbar .container {
    min-height: 26px !important;
    gap: 8px !important;
    padding-top: 2px;
    padding-bottom: 2px;
  }
  .topbar .container > span {
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9.5px;
    letter-spacing: .2px;
  }
  .topbar .contact {
    gap: 8px !important;
    font-size: 10px;
  }
  .topbar .contact a {
    gap: 4px !important;
  }
  .topbar .contact .mail,
  .topbar .contact .sep,
  .topbar .contact a[aria-label="Facebook"],
  .topbar .contact a[aria-label="X"] {
    display: none !important;
  }
  .topbar .ico-img {
    width: 11px !important;
    height: 11px !important;
  }

  /* ---- Header: app toolbar ---- */
  .header .container {
    min-height: 52px !important;
    gap: 8px !important;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .brand { gap: 8px !important; min-width: 0; flex: 1; }
  .brand-mark {
    width: 34px !important;
    height: 34px !important;
  }
  .brand-text strong {
    font-size: 10.5px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    max-width: 170px;
  }
  .brand-text span {
    display: none !important;
  }
  .menu-toggle {
    width: 36px !important;
    height: 36px !important;
    flex: none;
  }
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    width: 16px;
  }

  /* Drawer menu — denser */
  .header .nav.open,
  #nav.nav.open {
    padding: 4px 12px 12px !important;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .header .nav.open a,
  #nav.nav.open a {
    padding: 10px 0 !important;
    font-size: 12.5px !important;
  }
  .header .nav.open .btn,
  #nav.nav.open .btn {
    margin-top: 8px !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    width: 100% !important;
    justify-content: center;
  }

  /* ---- Sections: tight like app screens ---- */
  .section,
  .section.soft,
  .section.mist,
  .section.navy {
    padding: 28px 0 !important;
  }
  .section-head {
    margin-bottom: 14px !important;
    max-width: none !important;
  }
  .section-head.center { margin-bottom: 16px !important; }
  .section-head .eyebrow,
  .eyebrow {
    font-size: 9.5px !important;
    letter-spacing: .6px !important;
    margin-bottom: 4px !important;
  }
  .section-head h2,
  h2.h2,
  .h2 {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }
  .section-head p,
  .lead {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 0 !important;
  }
  .section-cta {
    margin-top: 14px !important;
  }
  .section-cta.center { margin-top: 12px !important; }

  /* ---- Hero: fixed app banner height ---- */
  .hero,
  .hero[style] {
    height: 200px !important;
    max-height: 200px !important;
  }
  .hero .item img {
    width: 100%;
    height: 200px !important;
    object-fit: cover !important;
  }
  .hero .owl-nav button.owl-prev,
  .hero .owl-nav button.owl-next {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }
  .hero .owl-dots {
    bottom: 6px !important;
  }
  .hero .owl-dots .owl-dot span {
    width: 14px !important;
    height: 3px !important;
  }

  /* ---- Cards: compact tiles ---- */
  .card {
    padding: 10px 10px 12px !important;
    border-top-width: 2px !important;
  }
  .card.photo-card,
  .media-card.photo-card {
    padding: 0 0 10px !important;
  }
  .card-photo {
    margin-bottom: 8px !important;
  }
  .card-photo img {
    height: 100px !important;
  }
  .card.photo-card h3,
  .card.photo-card p,
  .card.photo-card .explore,
  .media-card.photo-card h3,
  .media-card.photo-card p,
  .media-card.photo-card .tag {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .card h3 {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }
  .card p {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
  }
  .explore {
    font-size: 11px !important;
    gap: 4px !important;
    margin-top: 4px !important;
  }
  .explore .ico-img {
    width: 11px !important;
    height: 11px !important;
  }

  /* Bootstrap gutters tighter */
  .row.g-4,
  .row.g-lg-5 {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.65rem;
  }
  .row.g-3 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }

  /* Two-column tiles stay dense on phone */
  .col-6 .card-photo img {
    height: 88px !important;
  }
  .col-6 .card h3 {
    font-size: 11.5px !important;
  }

  /* ---- Buttons: chip-sized ---- */
  .btn {
    padding: 9px 14px !important;
    font-size: 12px !important;
    gap: 6px !important;
  }
  .btn .ico-img {
    width: 12px !important;
    height: 12px !important;
  }
  .btn.sm {
    padding: 7px 11px !important;
    font-size: 11px !important;
  }

  /* ---- Photos / splits ---- */
  .section-photo img,
  .split-img img {
    min-height: 160px !important;
    max-height: 200px !important;
    object-fit: cover;
  }
  .section-photo .vision-overlay {
    padding: 12px 12px !important;
  }
  .section-photo .vision-overlay h3 {
    font-size: 15px !important;
    margin: 4px 0 4px !important;
  }
  .section-photo .vision-overlay p {
    font-size: 11px !important;
  }

  /* ---- Lists / checks ---- */
  .checks {
    gap: 6px 10px !important;
    margin-top: 10px !important;
  }
  .checks li {
    font-size: 12px !important;
    gap: 6px !important;
  }
  .checks .ico-img {
    width: 12px !important;
    height: 12px !important;
  }
  .why-grid {
    gap: 0 10px !important;
  }
  .why-grid li {
    font-size: 11.5px !important;
    padding: 8px 0 !important;
  }

  /* ---- Membership / CTA ---- */
  .cta {
    padding: 28px 0 !important;
  }
  .cta h2 {
    font-size: 1.2rem !important;
  }
  .cta p {
    font-size: 12.5px !important;
  }
  .cta .container {
    gap: 14px !important;
    flex-direction: column;
    align-items: flex-start !important;
  }
  .membership-banner img {
    min-height: 140px !important;
    max-height: 160px !important;
  }

  /* ---- Forms: app fields ---- */
  .form,
  .enquiry .form,
  .apply {
    padding: 14px 12px 16px !important;
  }
  .form-label,
  .field label {
    font-size: 11.5px !important;
    margin-bottom: 3px !important;
  }
  .form-control,
  .form-select,
  .field input,
  .field select,
  .field textarea {
    height: 40px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
  }
  .field textarea,
  textarea.form-control {
    height: auto !important;
    min-height: 88px !important;
  }
  .field {
    margin-bottom: 10px !important;
  }
  .f-row {
    gap: 10px !important;
  }
  .form-note {
    font-size: 11.5px !important;
    margin-top: 8px !important;
  }

  /* ---- Testimonials ---- */
  .testimonials .owl-item {
    padding: 0 2px;
  }
  .testimonial-card,
  .t-card {
    padding: 12px !important;
  }
  .t-card p,
  .testimonial-card p {
    font-size: 12px !important;
  }

  /* ---- Footer: compact ---- */
  .footer {
    padding-top: 28px !important;
  }
  .foot-grid {
    gap: 18px !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .footer .brand-mark {
    width: 36px !important;
    height: 36px !important;
  }
  .footer .brand-text strong {
    font-size: 11px !important;
  }
  .footer .brand-text span {
    font-size: 10px !important;
  }
  .foot-tag {
    font-size: 11.5px !important;
    margin-top: 8px !important;
  }
  .footer h4 {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }
  .footer li,
  .footer li a {
    font-size: 11.5px !important;
    margin-bottom: 5px !important;
  }
  .foot-bar {
    margin-top: 18px !important;
    padding: 12px 0 !important;
    font-size: 10.5px !important;
  }
  .foot-bar .container {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

/* Extra-small phones — even denser */
@media (max-width: 400px) {
  html { font-size: 13.5px; }

  .hero,
  .hero[style] {
    height: 170px !important;
    max-height: 170px !important;
  }
  .hero .item img {
    height: 170px !important;
  }

  .brand-text strong {
    font-size: 9.5px !important;
    max-width: 140px;
  }

  .section { padding: 22px 0 !important; }

  .card-photo img { height: 84px !important; }
  .col-6 .card-photo img { height: 72px !important; }
  .card h3 { font-size: 11px !important; }

  .section-head h2,
  h2.h2 { font-size: 1.1rem !important; }

  .btn {
    padding: 8px 12px !important;
    font-size: 11.5px !important;
  }
}

/* Inner pages app density */
@media (max-width: 768px) {
  .page-hero .container {
    padding-top: 22px !important;
    padding-bottom: 26px !important;
  }
  .page-hero h1 {
    font-size: 1.45rem !important;
    margin-bottom: 6px !important;
  }
  .page-hero p {
    font-size: 12.5px !important;
  }
  .crumbs {
    font-size: 9px !important;
    gap: 5px !important;
    margin-bottom: 8px !important;
  }
  .crumbs .ico-img {
    width: 9px !important;
    height: 9px !important;
  }

  .info-item {
    padding: 2px 0 2px 12px !important;
  }
  .info-item h3 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }
  .info-item p {
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  .check-box {
    padding: 9px 10px !important;
    font-size: 11px !important;
    gap: 8px !important;
  }
  .plan {
    padding: 14px 14px 16px !important;
  }
  .plan.photo-plan .card-photo img {
    height: 110px !important;
  }
  .plan h3 {
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }
  .plan li {
    font-size: 11.5px !important;
    margin-bottom: 6px !important;
  }
  .terms {
    margin-top: 16px !important;
    padding: 14px 14px !important;
  }
  .terms h3 { font-size: 14px !important; }
  .terms p { font-size: 12px !important; }

  .fs-title {
    font-size: 14px !important;
    margin: 22px 0 10px !important;
    gap: 10px !important;
  }
  .radios {
    gap: 8px !important;
  }
  .radio {
    padding: 9px 10px !important;
    font-size: 11px !important;
  }

  .service-lux-body {
    padding: 14px !important;
  }
  .service-lux-body h3 {
    font-size: 15px !important;
  }
  .service-lux-body p {
    font-size: 12px !important;
  }
  .service-lux-media img {
    min-height: 120px !important;
    max-height: 140px !important;
  }

  .contact-panel {
    padding: 14px 12px !important;
  }
  .contact-list li {
    margin-bottom: 12px !important;
    gap: 10px !important;
  }
  .contact-icon {
    width: 34px !important;
    height: 34px !important;
  }
  .info-label { font-size: 9px !important; }
  .info-value { font-size: 12.5px !important; }
  .map-frame { height: 160px !important; }
  .contact-form-title {
    font-size: 1.15rem !important;
    margin: 4px 0 12px !important;
  }
  .contact-actions {
    gap: 6px !important;
  }
  .contact-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .lux-chip {
    font-size: 10.5px !important;
    padding: 6px 10px !important;
  }
  .lux-objective {
    padding: 10px 12px !important;
    font-size: 12px !important;
    gap: 8px !important;
  }
  .empty-lux {
    padding: 24px 14px !important;
  }
  .empty-lux h3 { font-size: 16px !important; }
  .empty-lux p { font-size: 12.5px !important; }
  .schedule-lux {
    padding: 16px 14px !important;
  }
  .schedule-lux h3 { font-size: 15px !important; }
  .social-lux-item {
    padding: 10px 12px !important;
    font-size: 11.5px !important;
    min-width: 0;
    flex: 1 1 40%;
  }
  .lux-bullets li {
    font-size: 12.5px !important;
    padding: 8px 0 8px 18px !important;
  }
}
