/* Home page (front-page.php). Loaded on the front page only, after content.css. */

/* ---------- hero ---------- */

.ttt-home-hero {
	min-height: min(76vh, 700px);
}

.ttt-home-hero .ttt-hero__media::after {
	background: linear-gradient(to top, rgb(14 46 74 / 88%) 0%, rgb(14 46 74 / 45%) 50%, rgb(14 46 74 / 10%) 85%);
}

.ttt-home-hero .ttt-hero__content {
	padding-block: 3rem clamp(2.5rem, 6vw, 4.5rem);
}

.ttt-home-hero .ttt-hero__title {
	max-width: 18ch;
	font-size: clamp(2.25rem, 5.2vw, 3.75rem);
	line-height: 1.08;
}

.ttt-home-hero__text {
	max-width: 52ch;
	margin: 0.75rem 0 0;
	font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
	color: rgb(255 255 255 / 92%);
}

.ttt-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.75rem 0 0;
}

.ttt-home-hero__actions .ttt-button {
	min-height: 52px;
	padding-inline: 1.5rem;
	font-size: 1.0625rem;
}

.ttt-home-hero__second,
.ttt-home-hero__second:visited {
	border: 1px solid rgb(255 255 255 / 75%);
	color: #fff;
	background: rgb(14 46 74 / 35%);
}

.ttt-home-hero__second:hover,
.ttt-home-hero__second:focus-visible {
	border-color: #fff;
	color: var(--ink);
	background: #fff;
}

.ttt-hero--plain .ttt-home-hero__text {
	color: var(--contrast-2);
}

.ttt-hero--plain .ttt-home-hero__second,
.ttt-hero--plain .ttt-home-hero__second:visited {
	border-color: var(--accent);
	color: var(--accent);
	background: transparent;
}

/* ---------- shared section parts ---------- */

.ttt-home__trust {
	margin-top: clamp(1.25rem, 3vw, 2rem);
}

.ttt-home__section {
	margin-block: clamp(3rem, 7vw, 5rem);
}

.ttt-home__head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.ttt-home__head h2 {
	margin: 0;
	font-size: clamp(1.625rem, 3.4vw, 2.25rem);
	line-height: 1.15;
}

.ttt-home__lead {
	max-width: 60ch;
	margin: 0.5rem 0 0;
	font-size: 1.0625rem;
	color: var(--contrast-2);
}

.ttt-home__all {
	display: inline-flex;
	flex: none;
	gap: 0.375rem;
	align-items: center;
	font-weight: 700;
	text-decoration: none;
}

.ttt-home__all:hover,
.ttt-home__all:focus-visible {
	text-decoration: underline;
}

.ttt-home__all svg {
	width: 18px;
	height: 18px;
}

/* The cards part prints its own section; inside a home section it needs no extra margin. */
.ttt-home__section > .ttt-section {
	margin: 0;
}

.ttt-nowrap {
	white-space: nowrap;
}

/* Nine regions: three by three. */
.ttt-home__regions .ttt-cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ttt-home__places .ttt-cards {
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.ttt-home__regions .ttt-card__title {
	font-size: 1.25rem;
}

/* ---------- plan your trip ---------- */

.ttt-home__plan {
	padding-block: clamp(3rem, 7vw, 5rem);
	background: var(--base-2);
}

.ttt-home__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 3vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ttt-step;
}

.ttt-home__steps li {
	position: relative;
	padding: 1.5rem 1.25rem 1.25rem;
	border: 1px solid var(--base);
	border-radius: 14px;
	background: var(--base-3);
	counter-increment: ttt-step;
}

.ttt-home__steps li::before {
	content: counter(ttt-step);
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.875rem;
	border-radius: 50%;
	font-family: var(--ttt-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	color: #fff;
	background: var(--accent);
}

.ttt-home__steps h3 {
	margin: 0 0 0.375rem;
	font-size: 1.1875rem;
}

.ttt-home__steps p {
	margin: 0;
	color: var(--contrast-2);
}

.ttt-home__plan-cta {
	margin: 1.75rem 0 0;
}

.ttt-home__subhead {
	margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem;
	font-size: 1.375rem;
}

.ttt-home__routes {
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttt-card--route .ttt-card__title {
	margin: 0;
	font-size: 1.125rem;
}

/* ---------- services ---------- */

.ttt-home__services-wrap {
	padding-block: clamp(3rem, 7vw, 5rem);
	margin-block: 0;
	background: var(--base);
}

.ttt-home__services {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttt-home__service {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.25rem 1rem;
	align-items: start;
	padding: 1.25rem;
	border-radius: 14px;
	background: var(--base-3);
	transition: box-shadow 0.15s, transform 0.15s;
}

.ttt-home__service:hover,
.ttt-home__service:focus-within {
	box-shadow: 0 8px 24px rgb(14 46 74 / 12%);
	transform: translateY(-2px);
}

.ttt-home__service-icon {
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 12px;
	color: var(--accent);
	background: color-mix(in srgb, var(--turquoise-light) 18%, var(--base-3));
}

.ttt-home__service-icon svg {
	width: 24px;
	height: 24px;
}

.ttt-home__service h3 {
	margin: 0;
	font-size: 1.125rem;
}

.ttt-home__service h3 a {
	color: var(--contrast);
	text-decoration: none;
}

/* The whole card is the link's target area. */
.ttt-home__service h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 14px;
}

.ttt-home__service h3 a:focus-visible {
	outline: none;
}

.ttt-home__service:has(a:focus-visible) {
	outline: var(--ttt-focus);
	outline-offset: 2px;
}

.ttt-home__service p {
	grid-column: 2;
	margin: 0;
	font-size: 0.9375rem;
	color: var(--contrast-2);
}

/* ---------- why us ---------- */

.ttt-home__why {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttt-home__why-icon {
	display: inline-grid;
	color: var(--accent);
}

.ttt-home__why-icon svg {
	width: 28px;
	height: 28px;
}

.ttt-home__why h3 {
	margin: 0.5rem 0 0.375rem;
	font-size: 1.1875rem;
}

.ttt-home__why p {
	margin: 0;
	color: var(--contrast-2);
}

.ttt-home__faq {
	margin-bottom: clamp(3rem, 7vw, 5rem);
}

.ttt-home__faq .ttt-faq {
	max-width: 860px;
}

@media (prefers-reduced-motion: reduce) {
	.ttt-home__service {
		transition: none;
	}

	.ttt-home__service:hover,
	.ttt-home__service:focus-within {
		transform: none;
	}
}

@media (max-width: 1024px) {
	.ttt-home__steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	/* Google renders with a very tall viewport: keep the height capped. */
	.ttt-home-hero {
		min-height: min(78svh, 620px);
	}

	.ttt-home-hero__actions .ttt-button {
		flex: 1 1 100%;
	}

	.ttt-home__regions .ttt-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.ttt-home__regions .ttt-card__title {
		font-size: 1.0625rem;
	}

	.ttt-home__regions .ttt-card__body {
		padding: 0.75rem;
	}
}
