/* Specialty and service pages in the Home page style.
   Loaded after theme.css and inner-pages.css on pages with body.theme-calm, in place of home.css and service.css.
   Mobile first. */

html {
	scroll-behavior: smooth;
}

.sv [id] {
	scroll-margin-top: 90px;
}

.sv h4 {
	margin: 0;
}

/* ============ Banner: dark panel, text on the left, booking form on the right ============ */
.theme-calm .sv-hero {
	padding: 56px 0 64px;
}

.theme-calm .sv-hero .auto-container {
	position: relative;
	z-index: 1;
}

.theme-calm .sv-hero #surgeriesbreadcrumbs {
	align-items: center;
	justify-content: space-between;
	row-gap: 34px;
}

.theme-calm .sv-hero #surgeriesbreadcrumbs h1.hx-title {
	margin: 0 0 16px;
	color: #fff;
	font-family: var(--heading);
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -.01em;
}

.theme-calm .sv-hero #surgeriesbreadcrumbs p {
	max-width: 620px;
	color: rgba(255, 255, 255, .86);
	font-size: 16.5px;
	line-height: 1.75;
}

.theme-calm .sv-hero #surgeriesbreadcrumbs .side-inner-content {
	margin-top: 22px;
}

.theme-calm .sv-hero #surgeriesbreadcrumbs .side-inner-content .side-inner-box {
	display: block;
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
}

/* Points as small glass rows with a tick */
.theme-calm .sv-hero .check-img {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.theme-calm .sv-hero .check-img li {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 10px 16px 10px 48px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 14px;
	background: rgba(255, 255, 255, .07);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

.theme-calm .sv-hero .check-img li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 12px;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	border-radius: 50%;
	background: #fff;
}

.theme-calm .sv-hero .check-img li::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 21px;
	width: 6px;
	height: 10px;
	margin-top: -7px;
	border: solid var(--teal);
	border-width: 0 2px 2px 0;
	transform: rotate(40deg);
}

.theme-calm .sv-hero #surgeriesbreadcrumbs .side-inner-content .side-inner-button {
	position: static;
	display: block;
	margin-top: 22px;
	text-align: left;
	transform: none;
	box-shadow: none;
}

.theme-calm .sv-hero .side-inner-button .theme-btn,
.theme-calm .sv-hero .side-inner-button .theme-btn:hover,
.theme-calm .sv-hero .side-inner-button .theme-btn:focus {
	width: auto;
	background: #fff;
	color: var(--teal-dark);
}

.theme-calm .sv-hero .side-inner-button .theme-btn::before {
	background: #cfe4ec;
}

.theme-calm .sv-hero .side-inner-button .text-one {
	color: var(--teal-dark);
}

/* Booking form card */
.theme-calm .sv-hero .appointment-form {
	padding: 26px 22px;
	border-radius: 22px;
	background: #fff;
	text-align: left;
	box-shadow: 0 24px 60px rgba(0, 20, 30, .35);
}

.theme-calm .sv-hero .appointment-form h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--navy);
	font-family: var(--heading);
	font-size: 22px;
	font-weight: 600;
}

.theme-calm .sv-hero .appointment-form h3::before {
	content: "";
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M9 16l2 2 4-4'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.theme-calm .sv-hero .appointment-form form {
	margin-top: 18px !important;
}

.theme-calm .sv-hero .appointment-form input[type="text"],
.theme-calm .sv-hero .appointment-form input[type="tel"] {
	width: 100%;
	height: 50px;
	margin: 0 0 12px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #f7fbfc;
	color: var(--text);
	font-size: 15px;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.theme-calm .sv-hero .appointment-form input[type="text"]:focus,
.theme-calm .sv-hero .appointment-form input[type="tel"]:focus {
	border-color: var(--teal);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(0, 91, 120, .12);
	outline: 0;
}

/* The treatment name is filled in by the page and cannot be changed */
.theme-calm .sv-hero .appointment-form #surgery {
	border-color: transparent;
	background: var(--mint);
	color: var(--teal-dark);
	font-weight: 700;
	pointer-events: none;
}

.theme-calm .sv-hero .form-consent {
	margin: 4px 0 16px;
	color: var(--muted);
	font-size: 13px;
	text-align: left;
}

.theme-calm .sv-hero .appointment-form .cus-button {
	width: 100%;
	background: var(--teal);
	color: #fff;
}

/* ============ Links to the sections below ============ */
.theme-calm .sv-nav {
	position: relative;
	z-index: 2;
	border-bottom: 1px solid var(--line);
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 71, 94, .05);
}

.theme-calm .sv .sv-nav ul {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 14px 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.theme-calm .sv .sv-nav ul::-webkit-scrollbar {
	display: none;
}

.theme-calm .sv-nav a {
	display: block;
	padding: 8px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--sand);
	color: var(--teal-dark);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.theme-calm .sv-nav a:hover,
.theme-calm .sv-nav a:focus-visible {
	border-color: var(--teal);
	background: var(--teal);
	color: #fff;
}

/* ============ Shared parts ============ */
.sv .hv-title {
	margin-bottom: 14px;
}

.sv h3.hv-title {
	font-size: clamp(24px, 2.6vw, 32px);
}

.sv-tint {
	background: var(--sand);
}

.sv .sv-lead {
	margin: 0;
	color: var(--muted);
	font-size: 16.5px;
	line-height: 1.75;
}

.sv .sv-lead + .sv-lead {
	margin-top: 12px;
}

.sv-head {
	max-width: 860px;
	margin-bottom: 34px;
}

.sv-split {
	display: grid;
	gap: 36px;
	align-items: center;
}

/* Photo in a rounded frame with a soft offset block, as on the About page */
.sv-photo {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 0 0 16px 16px;
}

.sv-photo::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 72%;
	height: 72%;
	border-radius: 22px;
	background: linear-gradient(135deg, var(--teal), var(--light-color));
}

.sv-photo img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: var(--shadow-deep);
}

/* A small source image is kept small so it stays sharp */
.sv-photo-small {
	max-width: 420px;
}

/* ============ Symptoms ============ */
.sv .sv-symptoms {
	display: grid;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.sv-symptoms li {
	position: relative;
	padding: 11px 14px 11px 46px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	color: var(--navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	transition: border-color .25s ease, translate .3s var(--ease);
}

.sv-symptoms li:hover {
	border-color: var(--teal);
	translate: 4px 0;
}

.sv-symptoms li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 12px;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	border-radius: 50%;
	background: var(--teal);
}

.sv-symptoms li::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 20px;
	width: 6px;
	height: 10px;
	margin-top: -7px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(40deg);
}

/* Information note with an "i" mark */
.sv .sv-note {
	position: relative;
	margin: 20px 0 0;
	padding: 14px 16px 14px 50px;
	border-radius: 14px;
	background: var(--mint);
	color: var(--teal-dark);
	font-size: 14.5px;
	line-height: 1.6;
}

.sv .sv-note::before {
	content: "i";
	position: absolute;
	top: 14px;
	left: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--teal);
	color: #fff;
	font-family: Georgia, serif;
	font-size: 13px;
	font-style: italic;
	font-weight: 700;
}

/* ============ Types: cards like the Home care cards ============ */
.sv-types {
	display: grid;
	gap: 18px;
	counter-reset: sv-type;
}

.sv-type {
	position: relative;
	z-index: 0;
	overflow: hidden;
	padding: 24px 22px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 71, 94, .06);
	counter-increment: sv-type;
	transition: border-color .3s ease, box-shadow .35s var(--ease), translate .35s var(--ease);
}

/* Soft circle in the corner grows to fill the card on hover */
.sv-type::before {
	content: "";
	position: absolute;
	top: -46px;
	right: -46px;
	z-index: -1;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: var(--mint);
	transition: transform .55s var(--ease), background-color .3s ease;
}

.sv-type::after {
	content: counter(sv-type, decimal-leading-zero);
	position: absolute;
	top: 16px;
	right: 20px;
	color: var(--teal);
	font-family: var(--heading);
	font-size: 15px;
	font-weight: 700;
	transition: color .3s ease;
}

.sv-type:hover {
	border-color: var(--teal);
	box-shadow: 0 22px 44px rgba(0, 71, 94, .2);
	translate: 0 -6px;
}

.sv-type:hover::before {
	background: var(--teal);
	transform: scale(9);
}

.sv-type h4 {
	margin: 0 44px 10px 0;
	color: var(--navy);
	font-family: var(--heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	transition: color .3s ease;
}

.sv-type p,
.sv .sv-sub li {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.65;
	transition: color .3s ease;
}

.sv-type:hover h4,
.sv-type:hover p,
.sv-type:hover::after,
.sv-type:hover .sv-sub li,
.sv-type:hover .sv-sub strong {
	color: #fff;
}

/* Procedures inside a card */
.sv .sv-sub {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.sv .sv-sub li {
	margin-top: 10px;
}

.sv .sv-sub strong {
	color: var(--navy);
	font-weight: 600;
	transition: color .3s ease;
}

/* ============ Preparation: numbered cards ============ */
.sv .sv-steps {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: sv-step;
}

.sv-steps li {
	position: relative;
	padding: 20px 20px 20px 80px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
	counter-increment: sv-step;
	transition: border-color .3s ease, box-shadow .35s var(--ease), translate .35s var(--ease);
}

.sv-steps li::before {
	content: counter(sv-step, decimal-leading-zero);
	position: absolute;
	top: 20px;
	left: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--mint);
	color: var(--teal);
	font-family: var(--heading);
	font-size: 16px;
	font-weight: 700;
	transition: background-color .3s ease, color .3s ease, transform .35s var(--ease);
}

.sv-steps li:hover {
	border-color: var(--teal);
	box-shadow: 0 16px 34px rgba(0, 71, 94, .12);
	translate: 0 -3px;
}

.sv-steps li:hover::before {
	background: var(--teal);
	color: #fff;
	transform: rotate(-5deg);
}

.sv-steps h4 {
	margin: 0 0 6px;
	color: var(--navy);
	font-family: var(--heading);
	font-size: 17.5px;
	font-weight: 600;
	line-height: 1.35;
}

.sv-steps p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.7;
	text-align: justify;
}

.sv .sv-callout {
	position: relative;
	margin: 30px 0 0;
	padding: 18px 20px 18px 62px;
	border-radius: 16px;
	background: linear-gradient(135deg, #00384b, var(--teal));
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.7;
}

.sv .sv-callout::before {
	content: "";
	position: absolute;
	top: 18px;
	left: 20px;
	width: 26px;
	height: 26px;
	background: #bfe3ee;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 5.6a5.5 5.5 0 0 0-7.8 0L12 6.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 22l8.8-8.6a5.5 5.5 0 0 0 0-7.8z'/%3E%3Cpath d='M3.5 12H8l2-3 3 6 2-3h5.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 5.6a5.5 5.5 0 0 0-7.8 0L12 6.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 22l8.8-8.6a5.5 5.5 0 0 0 0-7.8z'/%3E%3Cpath d='M3.5 12H8l2-3 3 6 2-3h5.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============ Doctor: the name sits one level below the section title ============ */
.sv .hv-doctor h4 {
	margin-top: 4px;
	color: var(--navy);
	font-family: var(--heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
}

.sv .hv-doctor h4 span {
	color: var(--muted);
	font-family: var(--body);
	font-size: 17px;
	font-weight: 400;
}

/* ============ Closing strip ============ */
.sv-cta {
	padding: 0 0 64px;
}

.sv-tint + .sv-cta {
	padding-top: 0;
	background: linear-gradient(var(--sand) 50%, #fff 50%);
}

.sv-cta-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	padding: 28px 22px;
}

.sv-cta-box h3 {
	margin: 0 0 6px;
	color: #fff;
	font-family: var(--heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.sv-cta-box p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
}

.sv-cta-box .hv-actions {
	margin-top: 0;
}

/* ============ 576px and up ============ */
@media (min-width: 576px) {
	.theme-calm .sv-hero .check-img {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.theme-calm .sv-hero .check-img li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.theme-calm .sv-hero .appointment-form {
		padding: 30px 28px;
	}

	.sv .sv-symptoms,
	.sv .sv-symptoms-wide,
	.sv-types {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sv-photo {
		padding: 0 0 22px 22px;
	}

	.sv-cta-box {
		padding: 30px 32px;
	}
}

/* ============ 768px and up ============ */
@media (min-width: 768px) {
	.sv .sv-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

/* ============ 992px and up ============ */
@media (min-width: 992px) {
	.theme-calm .sv-hero {
		padding: 80px 0 90px;
	}

	.sv-split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 60px;
	}

	.sv-split-flip {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}

	.sv-split-flip .sv-photo {
		order: 0;
	}

	.sv-types-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sv .sv-symptoms-wide {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sv .sv-steps-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sv-cta-box {
		padding: 34px 40px;
	}

	.sv-cta-box h3 {
		font-size: 24px;
	}
}

/* ============ 1200px and up ============ */
@media (min-width: 1200px) {
	.sv-types {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
	}

	.sv-types-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sv-types-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sv .sv-symptoms-wide {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Below 992px the photo comes first in every split */
@media (max-width: 991px) {
	.sv-split-flip .sv-photo {
		order: -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.sv-type:hover,
	.sv-steps li:hover,
	.sv-symptoms li:hover {
		translate: none;
	}

	.sv-type::before {
		transition: none;
	}
}

/* ============ Uneven card counts: the last row is filled, so no gap is left ============ */
@media (min-width: 576px) and (max-width: 1199px) {
	.sv-types:not(.sv-types-3) > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 576px) and (max-width: 991px) {
	.sv-types-3 > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1200px) {
	.sv-types-2 > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 768px) {
	.sv .sv-steps:not(.sv-steps-3) > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.sv .sv-steps-3 > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

/* Three columns on a six-column grid: two cards left over share the row, one fills it */
@media (min-width: 992px) {
	.sv-types-3,
	.sv .sv-steps-3 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.sv-types-3 > *,
	.sv .sv-steps-3 > * {
		grid-column: span 2;
	}

	.sv-types-3 > :nth-last-child(2):nth-child(3n+1),
	.sv-types-3 > :last-child:nth-child(3n+2),
	.sv .sv-steps-3 > :nth-last-child(2):nth-child(3n+1),
	.sv .sv-steps-3 > :last-child:nth-child(3n+2) {
		grid-column: span 3;
	}

	.sv-types-3 > :last-child:nth-child(3n+1),
	.sv .sv-steps-3 > :last-child:nth-child(3n+1) {
		grid-column: 1 / -1;
	}
}

/* Left-aligned text: justified lines leave wide gaps in narrow cards */
.sv p,
.sv li {
	text-align: left;
}

/* Phones: the step number sits above the text, so the text gets the full width */
@media (max-width: 575px) {
	.sv-steps li {
		padding: 18px;
	}

	.sv-steps li::before {
		position: static;
		margin-bottom: 12px;
	}
}

/* Banner heading: three lines at most on laptops and desktops.
   The text column is wider, and very long titles (70 characters or more) use a smaller size. */
.theme-calm .sv-hero #surgeriesbreadcrumbs h1.hx-title {
	font-size: clamp(28px, 3vw, 40px);
	text-wrap: balance;
}

.theme-calm .sv-hero #surgeriesbreadcrumbs h1.sv-h1-long {
	font-size: clamp(25px, 2.5vw, 34px);
}

@media (min-width: 992px) {
	.theme-calm .sv-hero #surgeriesbreadcrumbs > .col-lg-6 {
		flex: 0 0 58.333%;
		max-width: 58.333%;
	}

	.theme-calm .sv-hero #surgeriesbreadcrumbs > .col-lg-5 {
		flex: 0 0 41.667%;
		max-width: 41.667%;
	}
}

@media (min-width: 1200px) {
	.theme-calm .sv-hero #surgeriesbreadcrumbs > .col-lg-5 {
		flex: 0 0 37%;
		max-width: 37%;
	}
}

/* Heading sizes stay in order at every width: h1 larger than h2, h2 larger than h3 */
.sv h2.hv-title {
	font-size: clamp(23px, 2.3vw, 32px);
}

.sv h3.hv-title {
	font-size: clamp(21px, 2vw, 28px);
}

/* Banner points: one column where the text column is narrow, so no point runs past three lines */
@media (min-width: 992px) and (max-width: 1199px) {
	.theme-calm .sv-hero .check-img {
		grid-template-columns: minmax(0, 1fr);
	}

	.theme-calm .sv-hero .check-img li:last-child:nth-child(odd) {
		grid-column: auto;
	}
}

/* Phones: smaller headings keep long titles to about three lines, still h1 > h2 > h3 */
@media (max-width: 575px) {
	.theme-calm .sv-hero #surgeriesbreadcrumbs h1.hx-title {
		font-size: 26px;
	}

	.theme-calm .sv-hero #surgeriesbreadcrumbs h1.sv-h1-long {
		font-size: 22px;
	}

	.sv h2.hv-title {
		font-size: 21px;
	}

	.sv h3.hv-title {
		font-size: 19.5px;
	}

	.sv-cta-box h3 {
		font-size: 19px;
	}

	.theme-calm .sv-hero .check-img li {
		padding: 9px 12px 9px 44px;
		font-size: 14px;
	}

	.theme-calm .sv-hero .check-img li::before {
		left: 10px;
	}

	.theme-calm .sv-hero .check-img li::after {
		left: 19px;
	}
}
