/* UPP.AZ v11.1 global typography + contrast repair
   Azerbaijani-safe font stack, light UI text contrast, footer/link hover fixes. */
:root{
  --upp-text-main:#111827;
  --upp-text-soft:#475467;
  --upp-text-muted:#667085;
  --upp-brand:#ff5500;
  --upp-brand-hover:#e64b0c;
}
html{color-scheme:light!important;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body,
.upp-footer,.kabin-container.upp-account-shell,.upp-provider-shell,.idx,.blogx,.ctx,.shp,.dtx,
input,select,textarea,button,option,optgroup,
table,th,td{
  font-family:'Inter','Noto Sans','Segoe UI',Arial,sans-serif!important;
  font-variant-ligatures:normal;
}
h1,h2,h3,h4,h5,h6,
.stitle,.d-ext,.ds-title,.pkg-amt,.bc-t,.bc-num,.blog-title,.rev-av,.cta-title,
.imd,.imd-head h3,.cat-h1,.faq-cta h2,.faq-head h3,.faq-n,
.upp-provider-title,.upp-blog-card h2,.upp-side-card h3,.upp-rental-title,
.tud-info strong,.tud-stat-val,.h-logo-text,.mob-head-logo,
.upp-footer .uf-logo-text,.upp-footer .uf-col-title,
.upp-account-shell .dash-title,.upp-account-shell .page-title,.upp-account-shell .dash-title-custom{
  font-family:'Inter','Noto Sans','Segoe UI',Arial,sans-serif!important;
}
/* Never allow legacy styles to turn ordinary links black on hover. */
a{transition:color .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
a:hover{color:var(--upp-brand-hover)!important}

body a[href]:not(.upp-btn-primary):not(.pkg-btn):not(.ds-go):not(.ct-submit):not(.btn-save):not(.btn-submit):not(.btn-coupon):not(.tb-btn-reg):hover{color:var(--upp-brand-hover)!important}
/* Keep CTA/button text white on hover. */
.upp-btn-primary,.upp-btn-primary:hover,
.pkg-btn,.pkg-btn:hover,.ds-go,.ds-go:hover,.ct-submit,.ct-submit:hover,
.btn-save,.btn-save:hover,.btn-submit,.btn-submit:hover,.btn-coupon,.btn-coupon:hover,
.tb-btn-reg,.tb-btn-reg:hover,.upp-pagination .active,.bx-pag a.active,
.cat-tab.active,.mobile-bottom-nav a.active,
.upp-account-shell .btn-new-ticket,.upp-account-shell .btn-new-ticket:hover{
  color:#fff!important;
}
/* Global light surfaces: establish correct inherited foreground. */
.upp-surface,.upp-rental-card,.upp-blog-card,.upp-side-card,
.pkg-card,.df-card,.bx-card,.ct-card,.ct-form-side,.coupon-box,.bank-info-box,
.main-header,.top-bar,.tb-user-dropdown,.mobile-sidebar,.mobile-bottom-nav-inner,
.upp-account-sidebar,.upp-account-shell .dash-card-new,.upp-account-shell .dash-card,
.upp-account-shell .orders-wrapper,.upp-account-shell .pay-wrapper,.upp-account-shell .ticket-wrapper,
.upp-account-shell .inner-payment-wrapper{
  color:var(--upp-text-main)!important;
}
/* Auto contrast class is added only when JS detects a light foreground on a light background. */
.upp-auto-dark-text{color:var(--upp-text-main)!important;text-shadow:none!important}
/* Common content text inside white cards. */
.upp-surface h1,.upp-surface h2,.upp-surface h3,.upp-surface h4,.upp-surface h5,.upp-surface h6,
.upp-blog-card h1,.upp-blog-card h2,.upp-blog-card h3,
.upp-side-card h1,.upp-side-card h2,.upp-side-card h3,
.upp-rental-card h1,.upp-rental-card h2,.upp-rental-card h3,
.pkg-card .pkg-name,.df-card strong,.ct-card strong,
.upp-account-shell .dash-title,.upp-account-shell .page-title{
  color:var(--upp-text-main)!important;
}
/* Forms: legible Azerbaijani text and dropdowns on every page. */
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,.form-control,.imd-inp,.ct-inp{
  color:#172033!important;background:#fff!important;caret-color:#172033!important;
  font-family:'Inter','Noto Sans','Segoe UI',Arial,sans-serif!important;
}
select option,select optgroup{color:#172033!important;background:#fff!important;font-family:'Inter','Noto Sans','Segoe UI',Arial,sans-serif!important}
::placeholder{color:#98a2b3!important}
/* Footer is LIGHT in the current theme. Old dark-footer white text rules must not leak through. */
.upp-footer,footer.upp-footer{background:#fff!important;color:var(--upp-text-soft)!important}
.upp-footer .uf-col-title,.upp-footer .uf-logo-text{color:var(--upp-text-main)!important}
.upp-footer .uf-desc,
.upp-footer .uf-links a,
.upp-footer .uf-contact li,
.upp-footer .uf-contact li span,
.upp-footer .uf-contact li a,
.upp-footer .uf-pay-lbl,
.upp-footer .uf-copy,
.upp-footer .uf-made,
.upp-footer .uf-made b,
.upp-footer .uf-bottom-links a{
  color:#667085!important;
}
.upp-footer .uf-links a:hover,
.upp-footer .uf-contact li a:hover,
.upp-footer .uf-bottom-links a:hover,
.upp-footer .uf-copy a:hover{
  color:var(--upp-brand-hover)!important;background:transparent!important;
}
.upp-footer .uf-copy a{color:var(--upp-brand)!important}
.upp-footer .uf-soc{color:#475467!important;background:#f7f8fb!important;border-color:#e7eaf0!important}
.upp-footer .uf-soc:hover{color:#fff!important;background:linear-gradient(135deg,#ff7a00,#ff2d00)!important;border-color:transparent!important}
.upp-footer .uf-ns-item{color:#667085!important;background:#f8f9fb!important;border-color:#e7eaf0!important}
.upp-footer .uf-ns-item .copy{color:#667085!important}
.upp-footer .uf-ns-item .copy:hover{color:var(--upp-brand)!important}
.upp-footer .uf-pay-ic{background:#fff!important;color:#475467!important;border-color:#e7eaf0!important}
.upp-footer .uf-pay-badge{background:#f8f9fb!important;color:#667085!important;border-color:#e7eaf0!important}
/* Light account/dashboard surfaces. */
.upp-account-shell .kabin-content,
.upp-account-shell .order-row,.upp-account-shell .pay-row,.upp-account-shell .ticket-row{color:#344054!important}
.upp-account-shell a:not(.upp-btn-primary):not(.btn-save):not(.btn-new-ticket):hover{color:var(--upp-brand-hover)!important}
/* Blog/article text */
.upp-article-content,.upp-article-content p,.upp-article-content li{color:#344054!important}
.upp-article-content h1,.upp-article-content h2,.upp-article-content h3,.upp-article-content h4{color:var(--upp-text-main)!important}
.upp-article-content a{color:var(--upp-brand)!important}.upp-article-content a:hover{color:var(--upp-brand-hover)!important}

/* Prevent accidental invisible white text on generic Bootstrap/light helpers. */
.bg-white,.card,.modal-content,.dropdown-menu,.list-group-item{color:var(--upp-text-main)}
.bg-white a:not(.btn):hover,.card a:not(.btn):hover,.modal-content a:not(.btn):hover,.dropdown-menu a:hover{color:var(--upp-brand-hover)!important}

/* Keep dark/gradient sections intentionally light. */
.upp-contact-help,.idx .bc.dark,.idx .bc.orange,.imd-head,
[class*="gradient"] .text-white,.bg-dark,.bg-dark a{color:#fff}
@media(max-width:768px){
  body{font-size:13px}
  .upp-footer .uf-col-title{font-size:12px!important}
}
