/* Homepage, part 1: hero slider + booking bar, brand story, service cards, doctor band. */

/* Hero */
.hero { padding: 0 0 40px; }
.hero__slider { position: relative; }
.hero__slide { width: 100%; }
.hero__slide img { width: 100%; aspect-ratio: 1920 / 700; object-fit: cover; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 10px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .65; box-shadow: 0 0 0 1px rgba(12, 56, 90, .25); }
.hero__dots button[aria-current="true"] { background: var(--brand-hi); opacity: 1; width: 26px; border-radius: 6px; }
.hero__dots button { transition: background-color .3s; }

.bookbar {
	position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0;
	max-width: 900px; margin: 40px auto 0; padding: 30px 40px;
	background: #fff; border-radius: 24px; box-shadow: 0 18px 60px rgba(12, 56, 90, .12);
}
.bookbar__title { font-size: 40px; line-height: 1.18; font-weight: 700; color: var(--navy); padding-right: 26px; margin-right: 14px; border-right: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; position: relative; }
.bookbar__title::before { content: ""; position: absolute; left: -22px; top: 8px; width: 46px; height: 56px; border-radius: 60% 40% 55% 45%; background: var(--tint); z-index: -1; }
.bookbar__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 14px 24px; }
.bookbar__fields .field:nth-child(1) { grid-column: 1; }
.bookbar__fields .field:nth-child(2) { grid-column: 2 / 4; }
.bookbar__fields .field--wide { grid-column: 1 / 3; }
.bookbar__fields .btn { min-height: 42px; padding-inline: 20px; }
.bookbar__fields .consent, .bookbar__fields .form-msg { grid-column: 1 / -1; padding-left: 14px; }

/* Brand story */
.story { padding-block: 70px 60px; position: relative; }
.story::after { content: ""; position: absolute; right: 80px; top: 6px; width: 100px; height: 108px; background-image: radial-gradient(var(--tint) 2px, transparent 2.500px); background-size: 12px 12px; z-index: -1; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.story__photos { position: relative; height: 470px; }
.story__a { position: absolute; left: 0; top: 0; width: 71%; height: 100%; object-fit: cover; border-radius: 0 110px 0 0; }
.story__b { position: absolute; right: 0; bottom: -18px; width: 54%; height: 56%; object-fit: cover; object-position: 50% 25%; border-radius: 28px; border: 12px solid #fff; }
.story__text p { margin-top: 18px; }
.story__text .btn { margin-top: 26px; }

/* Services */
.services { position: relative; }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }
.svc { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 18px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .25s, transform .25s; }
.svc:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc__img { display: block; width: 100%; overflow: hidden; border-radius: 18px; margin-bottom: 20px; }
.svc__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.svc:hover .svc__img img { transform: scale(1.05); }
.svc h3 { font-size: 26px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.svc__sub { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--teal-ink); }
.svc__desc { margin-top: 10px; font-size: 14px; line-height: 1.65; flex: 1; }
.svc .btn { margin-top: 20px; }
.services__more { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 48px; }

/* Doctor band: tinted block with a roof line */
.doctors { padding-block: 40px 56px; }
.doctors__shape { position: relative; margin-top: 70px; padding: 30px 0 64px; background: var(--tint); border-radius: 0 0 60px 60px; }
.doctors__shape::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 72px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath fill='%23e3f5f5' d='M0 72C0 56 8 49 24 46L700 2c13-1 27-1 40 0l676 44c16 3 24 10 24 26z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.doctors__row { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: center; max-width: 900px; margin-inline: auto; }
.doc { position: relative; height: 340px; background: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.doc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.doc figcaption { position: absolute; left: 30px; right: 30px; bottom: 30px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 110, 107, .86); color: #fff; text-align: center; line-height: 1.35; }
.doc figcaption span { display: block; font-size: 13px; }
.doc figcaption b { font-size: 16px; }
.doctors__role { font-size: 14px; font-weight: 600; color: var(--teal-ink); }
.doctors__info h3 { margin-top: 6px; font-size: 28px; line-height: 1.25; color: var(--navy); }
.doctors__info ul { margin-top: 18px; display: grid; gap: 10px; }
.doctors__info li { position: relative; padding-left: 22px; }
.doctors__info li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.doctors__more { text-align: center; margin-top: 44px; }

@media (max-width: 1023px) {
	.bookbar { grid-template-columns: minmax(0, 1fr); padding: 24px; max-width: 640px; }
	.bookbar__title { border-right: 0; padding: 0 0 14px; margin: 0; font-size: 30px; }
	.bookbar__title br { display: none; }
	.bookbar__title::before { left: -10px; top: -6px; }
	.services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.story__grid { grid-template-columns: minmax(0, 1fr); }
	.story__photos { max-width: 560px; }
}

@media (max-width: 767px) {
	.hero { padding-bottom: 24px; }
	.hero__slide img { aspect-ratio: 750 / 900; }
	.hero__dots { bottom: 12px; gap: 8px; }
	.hero__dots button { width: 8px; height: 8px; }
	.bookbar { margin-top: 20px; padding: 20px 16px; border-radius: 20px; }
	.bookbar__title { font-size: 26px; }
	.bookbar__fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.bookbar__fields .field:nth-child(n), .bookbar__fields .field--wide { grid-column: 1; }
	.bookbar__fields .consent, .bookbar__fields .form-msg { padding-left: 4px; }
	.bookbar__fields .btn { order: 5; min-height: 48px; }
	.bookbar__fields .form-msg { order: 6; }

	.story { padding-block: 36px 40px; }
	.story::after { display: none; }
	.story__photos { height: 320px; }
	.story__a { border-radius: 0 70px 0 0; }
	.story__b { border-width: 8px; border-radius: 20px; bottom: -10px; }
	.story__text p { margin-top: 14px; }

	.services__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.svc h3 { font-size: 22px; }
	.services__more { margin-top: 28px; gap: 12px; }
	.services__more .btn { width: 100%; }

	.doctors { padding-block: 24px 40px; }
	.doctors__shape { margin-top: 30px; padding: 20px 0 40px; border-radius: 0 0 32px 32px; }
	.doctors__shape::before { height: 30px; }
	.doctors__row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.doc { height: 360px; max-width: 340px; width: 100%; margin-inline: auto; }
	.doctors__info h3 { font-size: 24px; }
	.doctors__more { margin-top: 28px; }
}

/* Headings on the tinted band need the darker teal to stay readable */
.doctors__shape .sec-head h2, .space .sec-head h2 { color: var(--brand); }
