/* Absolute PTF – mobile app navigation, drawer, section nav, bottom tab bar, dark mode */
:root{--aptf-header-h:70px;--aptf-tabbar-h:64px}
.aptf-mobile-only{display:none!important}
html.aptf-lock,html.aptf-lock body{overflow:hidden}

/* ---------------- Mobile header ---------------- */
.aptf-iconbtn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;border:1px solid var(--aptf-line,#E6EDF3);background:#fff;color:var(--aptf-navy,#0C4369);cursor:pointer;padding:0;transition:background .2s,border-color .2s,color .2s}
.aptf-iconbtn:hover{background:var(--aptf-soft,#F3F8FC)}
.aptf-iconbtn svg{width:22px;height:22px}
.aptf-theme-btn .aptf-ico-sun{display:none}
html.aptf-dark .aptf-theme-btn .aptf-ico-sun{display:block}
html.aptf-dark .aptf-theme-btn .aptf-ico-moon{display:none}
.aptf-mhead-actions{display:flex;align-items:center;gap:8px}
.aptf-lang--light .aptf-lang__btn{background:#fff;border:1px solid var(--aptf-line,#E6EDF3);color:var(--aptf-navy,#0C4369);height:44px;padding:0 10px;border-radius:12px;gap:5px}
.aptf-lang--light .aptf-lang__btn:hover,.aptf-lang--light.is-open .aptf-lang__btn{background:var(--aptf-soft,#F3F8FC);border-color:var(--aptf-line,#E6EDF3)}
.aptf-lang--light .aptf-lang__cur{font-weight:700;text-transform:uppercase;font-size:12px;letter-spacing:.04em}

@media (max-width:767px){
  .aptf-mobile-only{display:flex!important}
  .absptf-el .aptf-topbar{display:none!important}
  .absptf-el .aptf-mainbar{padding-left:12px!important;padding-right:12px!important;gap:8px!important;min-height:64px!important}
  .absptf-el .aptf-mainbar>.elementor-widget-image.aptf-logo{flex:1 1 auto;display:flex;justify-content:center}
  .absptf-el .aptf-mainbar .aptf-logo img{max-height:40px!important}
  .absptf-el .aptf-mainbar .aptf-nav{display:none!important}
  body.absptf-el{padding-bottom:calc(var(--aptf-tabbar-h) + env(safe-area-inset-bottom))}
}

/* ---------------- Drawer ---------------- */
.aptf-drawer{position:fixed;inset:0;z-index:100010}
.aptf-drawer[hidden]{display:none}
.aptf-drawer__overlay{position:absolute;inset:0;background:rgba(7,19,48,.55);opacity:0;transition:opacity .28s}
.aptf-drawer__panel{position:absolute;top:0;left:0;bottom:0;width:min(86vw,360px);background:#fff;box-shadow:20px 0 50px -20px rgba(0,0,0,.45);transform:translateX(-102%);transition:transform .28s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;outline:none}
.aptf-drawer.is-open .aptf-drawer__overlay{opacity:1}
.aptf-drawer.is-open .aptf-drawer__panel{transform:none}
.aptf-drawer__head{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 14px 18px;border-bottom:1px solid #E6EDF3}
.aptf-drawer__head img{max-height:38px;width:auto}
.aptf-drawer__nav{flex:1;overflow-y:auto;padding:8px 10px 16px;-webkit-overflow-scrolling:touch}
.aptf-drawer__menu,.aptf-drawer__menu .sub-menu{list-style:none;margin:0;padding:0}
.aptf-drawer__menu>li{border-bottom:1px solid #EEF2F6}
.aptf-drawer__menu li{position:relative}
.aptf-drawer__menu a{display:block;padding:14px 48px 14px 10px;color:#1F2937;font-size:16px;font-weight:600;text-decoration:none;border-radius:10px}
.aptf-drawer__menu a:hover,.aptf-drawer__menu .current-menu-item>a{color:#0A568A;background:#F3F8FC}
.aptf-drawer__menu .sub-menu{display:none;padding:0 0 8px 10px}
.aptf-drawer__menu .sub-menu a{font-size:15px;font-weight:500;padding:10px 44px 10px 12px;color:#334155}
.aptf-drawer__menu li.is-open>.sub-menu{display:block}
.aptf-drawer__toggle{position:absolute;right:4px;top:6px;width:40px;height:40px;border:0;background:transparent;border-radius:10px;color:#0A568A;cursor:pointer;display:flex;align-items:center;justify-content:center}
.aptf-drawer__menu .sub-menu .aptf-drawer__toggle{top:2px}
.aptf-drawer__toggle svg{transition:transform .2s}
.aptf-drawer__menu li.is-open>.aptf-drawer__toggle svg{transform:rotate(180deg)}
.aptf-drawer__menu li:last-child>a[href*="appointment"]{display:none}
.aptf-drawer__foot{padding:14px 16px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #E6EDF3;display:grid;gap:10px}
.aptf-drawer__cta{display:flex;align-items:center;justify-content:center;gap:8px;height:50px;border-radius:12px;font-weight:700;font-size:16px;text-decoration:none}
.aptf-drawer__cta--book{background:#0A568A;color:#fff!important;box-shadow:0 12px 24px -12px rgba(10,86,138,.8)}
.aptf-drawer__cta--call{border:2px solid #0A568A;color:#0A568A!important;background:#fff}
.aptf-drawer__meta{font-size:13px;color:#64748B;line-height:1.5;text-align:center}

/* ---------------- Section nav (scrollspy) ---------------- */
.aptf-secnav{display:none}
@media (max-width:767px){
  .aptf-secnav{display:block;position:sticky;top:var(--aptf-header-h);z-index:9990;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(8px);-webkit-backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid #E6EDF3;box-shadow:0 8px 18px -16px rgba(15,23,42,.6)}
  .aptf-secnav ul{display:flex;gap:4px;margin:0;padding:0 10px;list-style:none;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
  .aptf-secnav ul::-webkit-scrollbar{display:none}
  .aptf-secnav li{flex:0 0 auto;scroll-snap-align:center}
  .aptf-secnav a{position:relative;display:block;padding:13px 12px 12px;font-size:14px;font-weight:600;color:#475569;white-space:nowrap;text-decoration:none}
  .aptf-secnav a::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:#0A568A;transform:scaleX(0);transition:transform .25s}
  .aptf-secnav a.is-active{color:#0A568A}
  .aptf-secnav a.is-active::after{transform:scaleX(1)}
}

/* ---------------- Bottom tab bar ---------------- */
.aptf-tabbar{display:none}
@media (max-width:767px){
  .aptf-tabbar{display:grid;grid-template-columns:repeat(5,1fr);align-items:end;position:fixed;left:0;right:0;bottom:0;z-index:100005;height:calc(var(--aptf-tabbar-h) + env(safe-area-inset-bottom));padding:0 4px env(safe-area-inset-bottom);background:rgba(255,255,255,.97);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid #E6EDF3;box-shadow:0 -10px 24px -18px rgba(15,23,42,.5)}
  .aptf-tabbar a,.aptf-tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:var(--aptf-tabbar-h);border:0;background:none;padding:0;color:#64748B;font:inherit;font-size:11px;font-weight:600;letter-spacing:.01em;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .aptf-tabbar svg{width:23px;height:23px}
  .aptf-tabbar a.is-active,.aptf-tabbar a:hover,.aptf-tabbar button:hover{color:#0A568A}
  .aptf-tabbar .aptf-tab--cta{position:relative;color:#0A568A}
  .aptf-tabbar .aptf-tab--cta .aptf-tab__bubble{display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin-top:-22px;border-radius:50%;background:linear-gradient(135deg,#0A568A,#0C4369);color:#fff;box-shadow:0 10px 22px -8px rgba(10,86,138,.75),0 0 0 5px #fff}
  .aptf-tabbar .aptf-tab--cta svg{width:24px;height:24px}
  /* keep floating widgets clear of the tab bar */
  .elementor-sticky--active[style*="bottom"],.cspopup-trigger,.fixed-bottom{bottom:calc(var(--aptf-tabbar-h) + 10px)!important}
}

/* ---------------- Dark mode ---------------- */
html.aptf-dark body.absptf-el{background:#0B1220;color:#CBD5E1}
html.aptf-dark .aptf-surface-light{background-color:#0F1A2E!important;background-image:none!important}
html.aptf-dark .aptf-surface-light .elementor-heading-title,
html.aptf-dark .aptf-surface-light h1,html.aptf-dark .aptf-surface-light h2,html.aptf-dark .aptf-surface-light h3,
html.aptf-dark .aptf-surface-light h4,html.aptf-dark .aptf-surface-light h5,html.aptf-dark .aptf-surface-light h6,
html.aptf-dark .aptf-surface-light .elementor-image-box-title,html.aptf-dark .aptf-surface-light .elementor-icon-box-title{color:#F1F5F9!important}
html.aptf-dark .aptf-surface-light .elementor-widget-text-editor,html.aptf-dark .aptf-surface-light p,html.aptf-dark .aptf-surface-light li,
html.aptf-dark .aptf-surface-light .elementor-icon-list-text,html.aptf-dark .aptf-surface-light .elementor-image-box-description,
html.aptf-dark .aptf-surface-light .elementor-icon-box-description,html.aptf-dark .aptf-surface-light .elementor-tab-content{color:#CBD5E1!important}
html.aptf-dark .aptf-surface-light a:not(.elementor-button):not(.aptf-drawer__cta){color:#7CC4F5}
html.aptf-dark .aptf-surface-light .elementor-tab-title{background:#14233D!important;border-color:#22324D!important}
html.aptf-dark .aptf-surface-light .elementor-tab-title a{color:#F1F5F9!important}
html.aptf-dark .aptf-surface-light .elementor-accordion-item,html.aptf-dark .aptf-surface-light .elementor-tab-content{border-color:#22324D!important;background:#0F1A2E!important}
html.aptf-dark .aptf-cond-card,html.aptf-dark .aptf-ins-card,html.aptf-dark .aptf-h-reviews .aptf-review,html.aptf-dark .aptf-form-card{background:#14233D!important;border-color:#22324D!important}
html.aptf-dark .aptf-cond-card ul.custom-list li{border-color:#22324D}
html.aptf-dark .aptf-cond-card ul.custom-list li a{color:#E2E8F0!important}
html.aptf-dark .aptf-h-cta{background-image:none}
html.aptf-dark .aptf-mainbar{background-color:#0F1A2E!important;border-color:#1E2B44!important}
html.aptf-dark .aptf-logo img,html.aptf-dark .aptf-drawer__head img{filter:brightness(0) invert(1)}
html.aptf-dark .aptf-iconbtn,html.aptf-dark .aptf-lang--light .aptf-lang__btn{background:#14233D;border-color:#22324D;color:#E2E8F0}
html.aptf-dark #mega-menu-wrap-primary-menu #mega-menu-primary-menu>li.mega-menu-item:not(:last-child)>a.mega-menu-link{color:#E2E8F0}
html.aptf-dark .aptf-secnav{background:rgba(15,26,46,.96);border-color:#1E2B44}
html.aptf-dark .aptf-secnav a{color:#94A3B8}
html.aptf-dark .aptf-secnav a.is-active{color:#7CC4F5}
html.aptf-dark .aptf-secnav a::after{background:#7CC4F5}
html.aptf-dark .aptf-tabbar{background:rgba(15,26,46,.97);border-color:#1E2B44}
html.aptf-dark .aptf-tabbar .aptf-tab--cta .aptf-tab__bubble{box-shadow:0 10px 22px -8px rgba(0,0,0,.7),0 0 0 5px #0F1A2E}
html.aptf-dark .aptf-tabbar a.is-active,html.aptf-dark .aptf-tabbar .aptf-tab--cta{color:#7CC4F5}
html.aptf-dark .aptf-drawer__panel{background:#0F1A2E}
html.aptf-dark .aptf-drawer__head,html.aptf-dark .aptf-drawer__foot,html.aptf-dark .aptf-drawer__menu>li{border-color:#1E2B44}
html.aptf-dark .aptf-drawer__menu a{color:#E2E8F0}
html.aptf-dark .aptf-drawer__menu .sub-menu a{color:#CBD5E1}
html.aptf-dark .aptf-drawer__menu a:hover,html.aptf-dark .aptf-drawer__menu .current-menu-item>a{background:#14233D;color:#7CC4F5}
html.aptf-dark .aptf-drawer__cta--call{background:transparent;color:#7CC4F5!important;border-color:#7CC4F5}
html.aptf-dark .fluentform .ff-el-form-control{background:#0B1220!important;color:#E2E8F0!important;border-color:#2A3A57!important}
html.aptf-dark .fluentform label{color:#E2E8F0!important}
html.aptf-dark .elementor-popup-modal .dialog-widget-content{background:#0F1A2E!important}
html.aptf-dark .aptf-appt-popup .elementor-heading-title{color:#F1F5F9!important}
html.aptf-dark .aptf-appt-popup p{color:#CBD5E1!important}
@media (prefers-reduced-motion:reduce){.aptf-drawer__panel,.aptf-drawer__overlay,.aptf-secnav a::after{transition:none}}

/* v2 mobile fixes */
html,body{overflow-x:clip}
.absptf-el .aptf-row{margin-left:auto;margin-right:auto}
@media (max-width:767px){
  #centralsync,.centralsyncItems{display:none!important}
  .absptf-el .aptf-mainbar{flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important}
  .absptf-el .aptf-mainbar>.elementor-element{margin:0!important}
  .absptf-el .aptf-mainbar .aptf-logo{flex:1 1 auto!important;min-width:0;width:auto!important;max-width:none!important;text-align:center}
  .absptf-el .aptf-mainbar .aptf-logo img{height:38px!important;max-height:38px!important;width:auto!important;max-width:100%!important;object-fit:contain}
  .absptf-el .aptf-mainbar .aptf-mobile-hamburger,.absptf-el .aptf-mainbar .aptf-mobile-actions{flex:0 0 auto!important}
  .absptf-el .aptf-mhead-actions{gap:6px}
  .absptf-el .aptf-mhead-actions .aptf-iconbtn,.absptf-el .aptf-lang--light .aptf-lang__btn{width:40px;height:40px;padding:0;justify-content:center}
  .absptf-el .aptf-lang--light .aptf-lang__caret{display:none}
  .absptf-el .aptf-lang--light .aptf-lang__menu{right:0;left:auto}
  .absptf-el .aptf-row{width:min(90%,1440px)!important}
  .absptf-el .aptf-h-hero h1,.absptf-el .aptf-h-hero .elementor-heading-title{font-size:clamp(30px,8.5vw,40px)!important;line-height:1.15!important}
  .absptf-el .aptf-secnav a{font-size:13px;padding:12px 10px 11px}
}

/* v3 mobile header: logo row + controls row */
@media (max-width:767px){
  .absptf-el .aptf-mainbar{flex-wrap:wrap!important;row-gap:0!important;column-gap:0!important;padding:10px 14px 0!important;min-height:0!important}
  .absptf-el .aptf-mainbar .aptf-logo{order:-1;flex:0 0 100%!important;width:100%!important;display:flex!important;justify-content:center;padding:4px 0 10px}
  .absptf-el .aptf-mainbar .aptf-logo a{display:block;width:100%;text-align:center}
  .absptf-el .aptf-mainbar .aptf-logo img{height:auto!important;max-height:none!important;width:92%!important;max-width:420px!important;margin:0 auto}
  .absptf-el .aptf-mainbar .aptf-mobile-hamburger{order:1}
  .absptf-el .aptf-mainbar .aptf-mobile-actions{order:2;margin-left:auto!important}
  .absptf-el .aptf-mainbar .aptf-mobile-hamburger,.absptf-el .aptf-mainbar .aptf-mobile-actions{padding:8px 0 10px}
  .absptf-el .aptf-mainbar::after{content:'';order:0;flex:0 0 100%;height:1px;background:#E6EDF3;margin:0 -14px}
  .absptf-el .aptf-lang--light .aptf-lang__btn{width:auto;padding:0 12px;gap:6px}
  .absptf-el .aptf-lang--light .aptf-lang__btn::after{content:var(--aptf-lang-label,'Language');font-size:13px;font-weight:600}
  .absptf-el .aptf-mobile-hamburger .aptf-iconbtn{width:auto;padding:0 14px;gap:8px}
  .absptf-el .aptf-mobile-hamburger .aptf-iconbtn::after{content:var(--aptf-menu-label,'Menu');font-size:14px;font-weight:700}
  html.aptf-dark .absptf-el .aptf-mainbar::after{background:#1E2B44}
}

/* v4 */
@media (max-width:767px){
  .absptf-el .aptf-mainbar,.absptf-el .aptf-mainbar.elementor-sticky--active{z-index:10001!important}
  .absptf-el .aptf-mainbar::after{flex:0 0 calc(100% + 28px)!important;margin:0 -14px!important}
  .absptf-el .aptf-mobile-actions .aptf-lang__menu{position:absolute;top:calc(100% + 6px)!important;right:0!important;left:auto!important;z-index:10002;max-height:70vh;overflow:auto}
  .absptf-el .aptf-h-hero .elementor-widget-button,.absptf-el .aptf-h-hero .elementor-button-wrapper{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
  .absptf-el .aptf-h-hero .elementor-button{width:100%!important}
}
.aptf-tabbar,.aptf-tabbar *{}

/* v5 section nav pinned to top on mobile (header scrolls away) */
@media (max-width:767px){
  .aptf-secnav{top:0!important;z-index:10000!important}
  .absptf-el .aptf-mainbar,.absptf-el .aptf-mainbar.elementor-sticky--active{position:relative!important;top:auto!important}
  .absptf-el .aptf-mainbar + .elementor-sticky__spacer{display:none!important}
  .aptf-secnav li:first-child a{padding-left:4px}
}
