/* Tiba's shared identity and home composition. */
.tiba-booking-section { padding: 40px 0 70px; background: #f7f9f8; min-height: 75vh; }
.tiba-booking-title { text-align: start; margin-bottom: 28px; }
body:not(.admin-body) .tiba-booking-title h1 { font-size: 32px; line-height: 1.5; margin: 14px 0 6px; }
.tiba-booking-title p { color: #536565; margin: 0; }
.tiba-booking-steps { display: flex; list-style: none; gap: 32px; padding: 0 0 22px; margin: 0 0 30px; border-bottom: 1px solid #dce5e3; }
.tiba-booking-steps li { display: flex; align-items: center; gap: 10px; color: #62736e; font-weight: 700; }
.tiba-booking-steps li > span { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #e4ece8; color: #536565; }
.tiba-booking-steps [aria-current] { color: #205f59; }
.tiba-booking-steps [aria-current] > span, .tiba-booking-steps .is-complete > span { background: #28766f; color: #fff; }
.tiba-booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.tiba-booking-main { min-width: 0; padding: 0; }
.tiba-booking-main > section { padding: 0; background: transparent; overflow: visible; }
.tiba-booking [hidden] { display: none !important; }
body:not(.admin-body) .tiba-booking-main h2 { font-size: 23px; margin: 0 0 24px; line-height: 1.6; }
.tiba-booking-main h2 { scroll-margin-top: 110px; }
.tiba-booking-main h2:focus { outline: none; }
.tiba-booking .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.tiba-booking .form-field { display: grid; gap: 8px; min-width: 0; margin-bottom: 18px; }
.tiba-booking label { color: #263c39; font-size: 14px; font-weight: 700; }
.tiba-booking label > span { font-weight: 400; font-size: 12px; color: #62736e; }
.tiba-booking input:not([type=radio]), .tiba-booking select, .tiba-booking textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 52px; border: 1px solid #becfc8; border-radius: 6px; padding: 12px; background: #fff; color: #263c39; font: inherit; font-size: 16px; box-sizing: border-box; }
.tiba-booking input[type=tel], .tiba-booking input[type=email], .tiba-booking input[type=number] { direction: ltr; }
.tiba-booking textarea { resize: vertical; }
.tiba-booking :is(input,select,textarea,button):focus-visible { outline: 3px solid #b1d7ce; outline-offset: 2px; }
.tiba-booking input.is-invalid, .tiba-booking select.is-invalid { border-color: #b84141; }
.tiba-booking select:disabled { background: #eef2f0; color: #62736e; cursor: not-allowed; }
.tiba-booking button:disabled { background: #dce5e1; border-color: #dce5e1; color: #60726a; cursor: not-allowed; box-shadow: none; }
.tiba-booking .tiba-time-heading { font-size: 17px; margin: 12px 0; }
.tiba-booking .schedule-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tiba-availability-message { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 105px; text-align: center; border: 1px dashed #bdcfc8; border-radius: 6px; color: #536565; padding: 20px; margin: 0; }
.tiba-booking .schedule-option span { background: #fff; min-height: 80px; padding-inline-start: 38px; }
.tiba-booking .schedule-option input { opacity: 1; pointer-events: auto; width: 16px; height: 16px; inset-inline-start: 12px; top: 18px; accent-color: #28766f; }
.tiba-booking .schedule-option input:checked + span { background: #edf5f3; border-color: #28766f; }
.tiba-booking .schedule-option input:disabled + span { opacity: .6; cursor: not-allowed; }
.tiba-booking .schedule-option input:focus-visible + span { outline: 3px solid #b1d7ce; outline-offset: 2px; }
.tiba-booking .field-help { font-size: 12px; color: #62736e; }
.tiba-booking #booking-availability { color: #7b5124; font-size: 14px; margin-bottom: 12px; }
.tiba-booking-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #dce5e3; padding-top: 22px; margin-top: 22px; }
.tiba-booking-notice { display: flex; gap: 8px; font-size: 13px; color: #536565; }
.tiba-booking-summary { background: #fff; border: 1px solid #dce5e3; border-top: 3px solid #28766f; border-radius: 6px; padding: 24px; position: sticky; top: 110px; min-width: 0; }
.tiba-summary-icon { font-size: 28px; color: #28766f; }
body:not(.admin-body) .tiba-booking-summary h2 { font-size: 20px; margin: 12px 0 18px; }
.tiba-booking-summary dl { margin: 0; }
.tiba-booking-summary dl > div { border-top: 1px solid #edf1ef; padding: 14px 0; }
.tiba-booking-summary dt { font-size: 12px; font-weight: 400; color: #62736e; }
.tiba-booking-summary dd { font-size: 14px; margin: 5px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.tiba-booking-summary #summary-time { unicode-bidi: plaintext; }
.tiba-booking-summary > p { margin: 16px 0 0; font-size: 12px; color: #62736e; }
.booking-page .mobile-sticky-actions { display: none !important; }
body.ltr .tiba-booking-navigation .bi-arrow-left, body.ltr .tiba-booking-navigation .bi-arrow-right, body.ltr .tiba-booking-title .bi-arrow-right { transform: rotate(180deg); }
@media(max-width: 900px) {
    .tiba-booking-layout { grid-template-columns: 1fr; gap: 30px; }
    .tiba-booking-summary { position: static; }
    .tiba-booking-summary dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
}
@media(max-width: 540px) {
    .tiba-booking-section { padding: 24px 0 36px; }
    body:not(.admin-body) .tiba-booking-title h1 { font-size: 28px; }
    body:not(.admin-body) .tiba-booking-main h2 { font-size: 20px; }
    .tiba-booking .form-grid { grid-template-columns: 1fr; gap: 0; }
    .tiba-booking-steps { gap: 20px; }
    .tiba-booking-steps li { font-size: 12px; gap: 7px; }
    .tiba-booking-navigation { align-items: stretch; flex-direction: column-reverse; }
    .tiba-booking-navigation > * { justify-content: center; text-align: center; }
    .tiba-booking-summary { padding: 18px; }
}
#preloader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: #fff;
    animation: tiba-loader-exit 0s 5s forwards;
}
#preloader::before, #preloader::after { display: none; }
#preloader img { width: min(300px, 75vw); height: auto; object-fit: contain; }
.tiba-loader-track { width: 140px; height: 3px; overflow: hidden; background: #e5eeee; border-radius: 2px; }
.tiba-loader-track::after { content: ''; display: block; width: 45%; height: 100%; background: #28766f; animation: tiba-loader-progress 1.2s ease-in-out infinite alternate; }
@keyframes tiba-loader-progress { from { transform: translateX(-100%); } to { transform: translateX(225%); } }
@keyframes tiba-loader-exit { to { visibility: hidden; pointer-events: none; } }
.tiba-home-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 420px; height: min(580px, calc(100svh - 210px)); background: #405552; }
.tiba-home-backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.tiba-home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(12, 30, 27, .38); }
.tiba-home-intro { padding-block: 44px; }
.tiba-hero-kicker { display: block; color: #fff; font-size: 16px; margin-bottom: 18px; }
body:not(.admin-body) .tiba-home-intro h1 { max-width: 620px; margin: 0 0 18px; color: #fff; font-size: 48px; line-height: 1.45; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.tiba-home-intro p { max-width: 560px; color: #fff; font-size: 17px; line-height: 1.9; margin: 0; }
.tiba-home-intro .ui-btn-primary { background: #fff; border-color: #fff; color: #205f59; box-shadow: none; }
.tiba-home-intro .ui-btn-primary:hover { background: #edf5f3; }
.tiba-hero-secondary { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(0,0,0,.12); }
.tiba-hero-secondary:hover { color: #fff; background: rgba(0,0,0,.3); }
.tiba-care-paths { background: #edf5f3; border-bottom: 1px solid #dce8e5; }
.tiba-care-paths > .container { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.tiba-care-paths a { display: flex; align-items: center; gap: 18px; padding: 25px 24px; color: #263c39; border-inline-end: 1px solid #d4e3df; }
.tiba-care-paths a:last-child { border: 0; }
.tiba-care-paths a > i:first-child { color: #28766f; font-size: 28px; }
.tiba-care-paths a > i:last-child { margin-inline-start: auto; font-size: 24px; }
.tiba-care-paths small { display: block; color: #536565; font-size: 12px; }
.tiba-care-paths strong { display: block; font-size: 18px; }
.tiba-care-paths a:hover { background: #e1eeea; }
.home-page .ui-contact-strip { background: #fff; }
.home-page .ui-section { padding-block: 64px; }
.home-page .reveal { opacity: 1; transform: none; }
.home-page .ui-section-title h2, .home-page .ui-story-copy h2 { font-size: 30px; line-height: 1.55; }
.home-page .ui-story-media { border-radius: 0; box-shadow: none; }
.home-page .ui-story-media img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.home-page .ui-feature-grid { gap: 0; }
.home-page .ui-feature-card { border: 0; border-inline-end: 1px solid #dce5e3; border-radius: 0; box-shadow: none; background: transparent; }
.home-page .ui-feature-card:last-child { border-inline-end: 0; }
.home-page .ui-service-card { box-shadow: none; border-color: #e0e8e5; }
.home-page .ui-service-card:hover { box-shadow: 0 8px 24px rgba(30,60,50,.06); }
.home-page .ui-card-media { aspect-ratio: 16 / 10; }
.home-page .ui-card-body h3 { font-size: 20px; }
body.ltr .tiba-care-paths a > i:last-child { transform: rotate(180deg); }
.home-page .tiba-department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tiba-department-grid .ui-service-card { display: grid; grid-template-columns: 38% minmax(0, 1fr); overflow: hidden; }
.home-page .tiba-department-grid .ui-card-media { height: 100%; min-height: 240px; aspect-ratio: auto; }
.tiba-department-grid .ui-card-media img { height: 100%; object-fit: cover; }
.home-page .ui-gallery-section { background: #f1f5f4; border-block: 1px solid #dce5e3; }
.home-page .ui-gallery-section h2 { color: #263c39; }
.home-page .ui-gallery-section .ui-eyebrow,
.home-page .ui-gallery-section .ui-text-link { color: #28766f; }
.home-page .ui-gallery-section .ui-section-title p { color: #536565; }
.home-page .ui-gallery-grid { grid-template-columns: 1.5fr 1fr 1fr; grid-auto-rows: 210px; gap: 12px; }
.home-page .ui-gallery-grid a { border-radius: 4px; }
.home-page .ui-cta-section { background: #edf5f3; border-top: 1px solid #dce5e3; }
.home-page .ui-cta-block { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.home-page .ui-cta-block h2 { color: #263c39; font-size: 28px; }
.home-page .ui-cta-block p { color: #536565; }
.home-page .ui-cta-icon { color: #28766f; background: #dcece7; }
.home-page .ui-cta-actions .ui-btn-light { color: #fff; background: #28766f; border-color: #28766f; }
.home-page .ui-cta-actions .ui-btn-outline-light { color: #205f59; border-color: #b7cec7; }
.home-page .ui-cta-actions .ui-btn:hover { background: #205f59; color: #fff; }
.home-page .ui-section-title h2 { max-width: 760px; margin-inline: auto; }
@media (max-width: 1024px) {
    .home-page .tiba-department-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .tiba-home-hero { min-height: 400px; height: auto; }
    .tiba-home-intro { padding-block: 42px; }
    body:not(.admin-body) .tiba-home-intro h1 { font-size: 32px; max-width: 380px; }
    .tiba-home-intro p { font-size: 14px; line-height: 1.85; }
    .tiba-home-intro .ui-hero-actions { gap: 8px; margin-top: 22px; }
    .tiba-home-intro .ui-btn { padding: 10px 14px; font-size: 13px; min-height: 46px; }
    .tiba-care-paths > .container { width: 100%; }
    .tiba-care-paths a { flex-direction: column; gap: 8px; padding: 16px 6px; text-align: center; }
    .tiba-care-paths a > i:first-child { font-size: 24px; }
    .tiba-care-paths a > i:last-child, .tiba-care-paths small { display: none; }
    .tiba-care-paths strong { font-size: 12px; }
    .home-page .ui-section { padding-block: 42px; }
    .home-page .ui-section-title h2, .home-page .ui-story-copy h2 { font-size: 24px; }
    .home-page .ui-feature-card { border: 0; border-bottom: 1px solid #dce5e3; }
    .site-header .logo img { width: 162px !important; max-height: 54px !important; }
    .home-page .tiba-department-grid .ui-card-media { min-height: 190px; }
    .tiba-department-grid .ui-card-body { padding: 16px 12px; }
    .home-page .tiba-department-grid .ui-card-body h3 { font-size: 17px; }
    .home-page .ui-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 135px; }
    .home-page .ui-gallery-grid a:first-child { grid-column: 1 / -1; grid-row: span 2; }
    .home-page .ui-cta-block h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .tiba-loader-track::after { animation: none; width: 100%; }
}
