/* Trial palette: navy + yellow accent, hero banner + header buttons only. To revert, remove this file's <link> in index.html. */
:root {
  --artha-accent: #FFB800; /* warm yellow accent on navy + white */
}
.ul-2-banner-content::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--ul-2-primary) 95%, transparent) 15%, transparent 65.12%);
}
.ul-2-banner-sub-title .bg {
  background-color: var(--artha-accent);
  color: #0B2545;
}
.ul-2-banner-slider-pagination .swiper-pagination-bullet-active::before {
  background-color: var(--artha-accent);
}
.ul-2-banner-slider-pagination .swiper-pagination-bullet-active {
  border-color: var(--artha-accent);
}
.ul-2-banner-btns a:hover {
  background-color: var(--artha-accent);
  border-color: var(--artha-accent);
  color: #0B2545;
}

/* hero photos are set per slide in src/sections/Banner.jsx */

/* Buttons: no black. Navy buttons turn yellow on hover; the header Login button is yellow. */
.ul-btn:hover,
.ul-2-header-bottom-btns > *:last-child:hover,
.ul-2-header-bottom .ul-header-sidebar-opener:hover {
  background-color: var(--artha-accent) !important;
  border-color: var(--artha-accent) !important;
  color: #0B2545 !important;
}
.ul-2-header-bottom-btns > *:first-child {
  background-color: var(--artha-accent) !important;
  border-color: var(--artha-accent) !important;
  color: #0B2545 !important;
}
.ul-2-header-bottom-btns > *:first-child:hover {
  background-color: var(--ul-2-primary) !important;
  border-color: var(--ul-2-primary) !important;
  color: #fff !important;
}

/* Every page banner (breadcrumb), calculators included: client photo, couple kept to the right of the navy fade */
.ul-breadcrumb,
.ac-page .ul-breadcrumb {
  background-image: url("../img/breadcrumb-bg.webp");
  background-position: right 22%; /* keeps their faces in frame in the short banner */
}

/* Home FAQ: client photo across the whole section, person on the right, soft light fade behind the questions on the left */
.ul-2-faq .ul-2-faq-bg {
  left: 0;
  width: 100%;
  object-fit: cover;
  object-position: right center;
}
.ul-2-faq::before {
  background: linear-gradient(90deg, rgba(246, 248, 251, 0.94) 0%, rgba(246, 248, 251, 0.82) 40%, rgba(246, 248, 251, 0) 70%);
}
@media (max-width: 991px) {
  /* text spans the full width on tablets and phones, so lighten the whole photo */
  .ul-2-faq::before {
    background: rgba(246, 248, 251, 0.86);
  }
}

/* Hero: the navy fade is always in place (theme slid it in after each slide change) */
.ul-2-banner-content::before,
.ul-2-banner-slider .swiper-slide-active .ul-2-banner-content::before {
  transform: none;
  transition: none;
}

/* Hero box fits the screen: on desktop it fills the space under the header (never taller than the screen),
   text centred vertically, photo covers the box without stretching */
@media (min-width: 992px) {
  .ul-2-banner-content {
    display: flex;
    align-items: center;
    height: clamp(440px, calc(100svh - clamp(140px, 8.8vw, 170px) - 24px), 860px);
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .ul-2-banner-content > .row {
    flex: 1;
  }
}
@media (max-width: 991px) {
  .ul-2-banner-content {
    min-height: clamp(440px, 70svh, 620px);
    display: flex;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .ul-2-banner-content > .row {
    flex: 1;
  }
  .ul-2-banner-descr {
    max-width: 100%;
  }
}
@media (max-width: 767px) {
  /* text spans the full width on phones: navy fade covers the whole box, slider dots move below the buttons */
  .ul-2-banner-content::before {
    background: linear-gradient(180deg, color-mix(in srgb, var(--ul-2-primary) 70%, transparent) 0%, color-mix(in srgb, var(--ul-2-primary) 92%, transparent) 100%);
  }
  .ul-2-banner-content {
    padding-bottom: 72px;
  }
  .ul-2-banner-slider-pagination {
    flex-direction: row;
    top: auto !important;
    bottom: 16px !important;
    right: 0 !important;
    left: 0 !important;
    transform: none;
    width: 100% !important;
  }
}

/* Breadcrumb photo zoomed out: a taller banner on desktop shows the whole couple and the table */
@media (min-width: 768px) {
  .ul-breadcrumb,
  .ac-page .ul-breadcrumb {
    display: flex;
    align-items: center;
    min-height: clamp(300px, 30vw, 560px);
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    background-size: cover;
    background-position: right 35%;
  }
  .ul-breadcrumb > .ul-container {
    width: 100%;
  }
}
/* Phones: the title sits on navy at the top and the full photo shows underneath, nothing cropped */
@media (max-width: 767px) {
  .ul-breadcrumb,
  .ac-page .ul-breadcrumb {
    background-color: var(--ul-2-primary);
    background-size: 100% auto;
    background-position: center bottom;
    padding-top: 40px !important;
    padding-bottom: calc(43vw + 16px) !important;
  }
  .ul-breadcrumb::before {
    transform: none;
    background: linear-gradient(180deg, var(--ul-2-primary) 0%, var(--ul-2-primary) calc(100% - 43vw - 16px), rgba(11, 37, 69, 0) 100%);
  }
}

/* Breadcrumb trail (all page banners): smaller, refined text in a soft glass pill under the title */
.ul-breadcrumb-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 7px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  font-size: clamp(12.5px, 0.78vw, 14px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.ul-breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}
.ul-breadcrumb-nav a:hover {
  color: var(--artha-accent);
}
.ul-breadcrumb-nav .separator {
  font-size: 8px;
  color: var(--artha-accent);
}
.ul-breadcrumb-nav .current {
  color: #fff;
  font-weight: 600;
}
@media (max-width: 575px) {
  .ul-breadcrumb-nav {
    padding: 6px 12px;
    font-size: 12.5px;
  }
}

/* slides 2 and 3 use an h2 with the same look as the h1 */
.ul-2-banner h2.ul-2-banner-title {
  color: inherit;
}

/* Breadcrumb banners: even breathing room on every side (gap under the header, side margins, rounded card) */
.ul-breadcrumb,
.ac-page .ul-breadcrumb {
  /* centred and as wide as the header's content on big screens; even side gaps on small ones */
  width: calc(100% - 2 * clamp(12px, 1.6vw, 30px));
  max-width: clamp(1180px, 88.28vw, 1680px);
  margin: clamp(12px, 1.25vw, 24px) auto 0 !important;
  border-radius: clamp(16px, 1.6vw, 26px);
}
/* Phones: the photo fills the whole banner (no empty navy band); a navy fade behind the title keeps it readable */
@media (max-width: 767px) {
  .ul-breadcrumb,
  .ac-page .ul-breadcrumb {
    background-color: var(--ul-2-primary);
    background-size: cover;
    background-position: 62% center;
    padding-top: 40px !important;
    padding-bottom: 150px !important;
  }
  .ul-breadcrumb::before {
    transform: none;
    background: linear-gradient(180deg, rgba(11, 37, 69, 0.92) 0%, rgba(11, 37, 69, 0.7) 40%, rgba(11, 37, 69, 0.15) 75%, rgba(11, 37, 69, 0) 100%);
  }
}
