/*
 * Davam — home top: a large photo slider (up to 5 slides) and two standalone cards beside it.
 * Desktop: the slider is exactly 16:9; each side card ≈16:9 (1280×720 photos).
 * Phone: slider 4:5 (1080×1350), side cards 4:5 side by side (800×1000).
 */

.bt { max-width: var(--max); margin-inline: auto; padding: 22px var(--gutter) 0; }
.bt .dv-sample { margin-bottom: 14px; }
.bt__grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "main s1" "main s2"; }
.bt.sides-1 .bt__grid { grid-template-areas: "main s1" "main s1"; }
.bt.sides-0 .bt__grid { grid-template-columns: 1fr; grid-template-areas: "main"; }

/* Shared photo layer */
.bt-photo, .bt-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bt-photo img { object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.bt-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bt-eyebrow { font-size: 12px; font-weight: 800; color: var(--brass); line-height: 1.6; }
.bt-eyebrow.latin { font-family: var(--latin); font-weight: 500; font-size: 11px; letter-spacing: .32em; }
.tone-dark .bt-eyebrow { color: #7a5e2e; }

/* ── Large slider ── */
.bt-main { grid-area: main; position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #1a2633; isolation: isolate; box-shadow: 0 18px 34px -28px rgba(31, 58, 95, .6); }
.bt.sides-0 .bt-main { aspect-ratio: 21 / 9; }
.bt-slide { position: absolute; inset: 0; color: #f6f1e7; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.bt-slide.tone-dark { color: var(--navy); }
.bt-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s var(--ease), visibility 0s; }
.bt-slide.is-leaving { visibility: visible; z-index: 0; }
.tone-light .bt-shade { background: linear-gradient(to left, rgba(8, 16, 26, calc(var(--shade, .45) + .25)), rgba(8, 16, 26, calc(var(--shade, .45) * .35)) 52%, transparent 78%); }
.tone-dark .bt-shade { background: linear-gradient(to left, rgba(246, 245, 241, calc(var(--shade, .45) + .3)), rgba(246, 245, 241, calc(var(--shade, .45) * .35)) 52%, transparent 78%); }
:root:not([dir="rtl"]) .bt-slide .bt-shade { transform: scaleX(-1); }
.bt-text { position: absolute; z-index: 2; inset-block: 0; inset-inline-start: 0; width: min(54%, 540px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 40px 48px 80px; }
.bt-title { margin: 0; font-size: clamp(32px, 3.6vw, 56px); font-weight: 900; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.bt-title > span { display: block; }
.bt-desc { margin: 0; font-size: 15.5px; line-height: 1.9; max-width: 36ch; opacity: .9; }
.bt-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.bt-btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 800; text-decoration: none; transition: filter .2s, border-color .2s, background-color .2s, gap .3s var(--ease); }
.bt-btn--pri { background: var(--brass); color: var(--navy); }
.bt-btn--pri:hover { filter: brightness(1.08); gap: 14px; }
.bt-btn--ghost { border: 1px solid rgba(246, 241, 231, .5); color: #f6f1e7; background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bt-btn--ghost:hover { border-color: #f6f1e7; }
.tone-dark .bt-btn--pri { background: var(--navy); color: #fff; }
.tone-dark .bt-btn--ghost { border-color: rgba(31, 58, 95, .35); color: var(--navy); background: rgba(255, 255, 255, .5); }

/* Controls: number, one bar per slide (the current one fills — it is the timer), arrows, pause. */
.bt__ui { position: absolute; z-index: 5; inset-inline: 48px; bottom: 20px; display: flex; align-items: center; gap: 12px; color: #f6f1e7; }
.bt-main.ui-dark .bt__ui { color: var(--navy); }
.bt__num { font-size: 12px; min-width: 2ch; opacity: .85; }
.bt__dots { display: flex; gap: 6px; }
.bt__dot { position: relative; width: 34px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; color: inherit; }
.bt__dot::before { content: ""; position: absolute; inset-inline: 0; top: 10px; height: 2px; border-radius: 2px; background: currentColor; opacity: .3; }
.bt__dot i { position: absolute; inset-inline: 0; top: 10px; height: 2px; border-radius: 2px; background: var(--brass); transform: scaleX(0); transform-origin: 100% 50%; }
:root:not([dir="rtl"]) .bt__dot i { transform-origin: 0 50%; }
.bt-main.ui-dark .bt__dot i { background: var(--navy); }
.bt__dot[aria-current="true"] { width: 64px; }
.bt__dot[aria-current="true"] i { transform: scaleX(1); }
.bt-main.is-playing .bt__dot[aria-current="true"] i { animation: bt-prog var(--bt-dur, 7s) linear both; }
.bt-main.is-paused .bt__dot[aria-current="true"] i { animation-play-state: paused; }
.bt__dot { transition: width .5s var(--ease); }
.bt__dot:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
@keyframes bt-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bt__ctrl { display: flex; gap: 6px; margin-inline-start: auto; }
.bt__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(246, 241, 231, .45); background: rgba(8, 16, 26, .18); color: #f6f1e7; display: grid; place-items: center; cursor: pointer; padding: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background-color .2s; }
.bt__btn:hover { border-color: var(--brass); background: rgba(8, 16, 26, .35); }
.bt-main.ui-dark .bt__btn { border-color: rgba(31, 58, 95, .3); background: rgba(255, 255, 255, .55); color: var(--navy); }
.bt__play .i-play { display: none; }
.bt-main.is-user-paused .bt__play .i-play { display: block; }
.bt-main.is-user-paused .bt__play .i-pause { display: none; }
.bt-main:not(.is-ready) .bt__ctrl, .bt-main:not(.is-ready) .bt__dots { visibility: hidden; }

/* ── Side cards ── */
.bt-side { position: relative; display: block; min-width: 0; min-height: 0; border-radius: 18px; overflow: hidden; isolation: isolate; color: #f6f1e7; background: #1a2633; text-decoration: none; box-shadow: 0 18px 34px -28px rgba(31, 58, 95, .6); transition: transform .35s var(--ease), box-shadow .3s; }
.bt-side.tone-dark { color: var(--navy); background: #e9e5dc; }
.bt-side--1 { grid-area: s1; }
.bt-side--2 { grid-area: s2; }
.bt-side .bt-photo img { transition: transform 1s var(--ease); }
a.bt-side:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -26px rgba(31, 58, 95, .55); }
a.bt-side:hover .bt-photo img { transform: scale(1.06); }
a.bt-side:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.bt-side.tone-light .bt-shade { background: linear-gradient(to top, rgba(8, 16, 26, .78), rgba(8, 16, 26, .08) 62%, transparent); }
.bt-side.tone-dark .bt-shade { background: linear-gradient(to top, rgba(246, 245, 241, .92), rgba(246, 245, 241, .12) 62%, transparent); }
.bt-side__text { position: absolute; z-index: 2; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 22px 18px; }
.bt-side__title { font-size: clamp(17px, 1.5vw, 22px); font-weight: 900; line-height: 1.5; }
.bt-side__cta { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.bt-side__cta .ic { transition: transform .3s var(--ease); }
a.bt-side:hover .bt-side__cta .ic { transform: translateX(-4px); }

/* ── Motion ── */
@media (prefers-reduced-motion: no-preference) {
	.bt-slide.is-active .bt-photo img { animation: bt-zoom 9s ease-out both; }
	.bt-slide.is-active.is-entering .bt-text > * { animation: bt-up .8s var(--ease) both; }
	.bt-slide.is-active.is-entering .bt-text > :nth-child(1) { animation-delay: .15s; }
	.bt-slide.is-active.is-entering .bt-text > :nth-child(2) { animation-delay: .22s; }
	.bt-slide.is-active.is-entering .bt-text > :nth-child(3) { animation-delay: .3s; }
	.bt-slide.is-active.is-entering .bt-text > :nth-child(4) { animation-delay: .38s; }
}
@keyframes bt-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes bt-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── Tablet ── */
@media (max-width: 1023px) {
	.bt-text { width: min(64%, 520px); padding: 28px 30px 76px; }
	.bt__ui { inset-inline: 30px; bottom: 16px; }
	.bt-desc { display: none; }
}
/* ── Phone: slider 4:5, side cards 4:5 side by side ── */
@media (max-width: 767px) {
	.bt { padding-top: 14px; }
	.bt__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "s1 s2"; gap: 10px; }
	.bt.sides-1 .bt__grid { grid-template-areas: "main main" "s1 s1"; }
	.bt.sides-0 .bt__grid { grid-template-columns: 1fr; grid-template-areas: "main"; }
	.bt-main, .bt.sides-0 .bt-main { aspect-ratio: 4 / 5; }
	.bt-side { aspect-ratio: 4 / 5; }
	.bt.sides-1 .bt-side { aspect-ratio: 16 / 9; }
	.bt-text { inset: auto 0 0 0; width: auto; justify-content: flex-end; gap: 10px; padding: 24px 20px 78px; }
	.tone-light .bt-shade { background: linear-gradient(to top, rgba(8, 16, 26, calc(var(--shade, .45) + .35)), rgba(8, 16, 26, calc(var(--shade, .45) * .3)) 55%, transparent 80%); transform: none !important; }
	.tone-dark .bt-shade { background: linear-gradient(to top, rgba(246, 245, 241, calc(var(--shade, .45) + .4)), rgba(246, 245, 241, calc(var(--shade, .45) * .3)) 55%, transparent 80%); transform: none !important; }
	.bt-title { font-size: clamp(28px, 8.5vw, 38px); }
	.bt-btn { height: 46px; padding: 0 20px; font-size: 14px; }
	.bt__ui { inset-inline: 20px; bottom: 16px; }
	.bt__dot { width: 22px; }
	.bt__dot[aria-current="true"] { width: 44px; }
	.bt__num { display: none; }
	.bt__btn { width: 38px; height: 38px; }
	.bt-side__text { padding: 12px 14px; }
	.bt-side__title { font-size: 15px; }
	.bt-side__cta { font-size: 12px; }
}
