/* Tanzania Cultural Tours — site styles
   Last updated: August 10, 2026

   Loads AFTER colors_and_type.css and must never redefine what that file owns:
   --tnz-*, --font-*, --fw-*, --type-*, --lh-*, --sp-*, --radius-*, --ease-*, --dur-*.
   This file loads second and would silently win.

   Order below: fonts, reset, base, layout, header, hero, sections, cards,
   testimonials, footer, utilities, motion. */

/* ==========================================================================
   1. Fonts
   ========================================================================== */

@font-face {
	font-family: "Rufina";
	src: url("assets/fonts/rufina-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Poppins";
	src: url("assets/fonts/poppins-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Poppins";
	src: url("assets/fonts/poppins-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
h1, h2, h3, h4,
p, figure, blockquote, ul, ol {
	margin: 0;
	padding: 0;
}

ul, ol {
	list-style: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

/* ==========================================================================
   3. Base
   ========================================================================== */

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--tnz-white);
	color: var(--tnz-ink);
	font-family: var(--font-body);
	font-size: var(--type-sm);
	font-weight: var(--fw-normal);
	line-height: var(--lh-body);
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: var(--fw-bold);
	line-height: var(--lh-tight);
	color: var(--tnz-primary);
	text-wrap: balance;
}

p {
	max-width: var(--tnz-measure);
}

:focus-visible {
	outline: 3px solid var(--tnz-accent);
	outline-offset: 3px;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.tnz-main > * + * {
	margin-block-start: var(--sp-24);
}

.tnz-section {
	max-width: var(--tnz-container);
	margin-inline: auto;
	padding-inline: var(--sp-6);
}

.tnz-section__heading {
	font-size: var(--type-2xl);
	margin-block-end: var(--sp-4);
}

.tnz-section__intro {
	margin-block-end: var(--sp-8);
}

/* Two-column split, image beside text. */
.tnz-section--split {
	display: grid;
	gap: var(--sp-8);
	align-items: center;
}

.tnz-section--split img {
	border-radius: var(--radius-md);
	width: 100%;
	object-fit: cover;
}

@media (min-width: 48rem) {
	.tnz-section--split {
		grid-template-columns: 1fr 1fr;
		gap: var(--sp-12);
	}

	/* Image on the right instead of the left. */
	.tnz-section--reverse .tnz-section__media {
		order: 2;
	}
}

/* ==========================================================================
   5. Header
   ========================================================================== */

.tnz-header {
	border-block-end: 1px solid var(--tnz-line);
	background: var(--tnz-white);
}

.tnz-header__inner {
	max-width: var(--tnz-container);
	margin-inline: auto;
	padding: var(--sp-4) var(--sp-6);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
}

.tnz-header__logo img {
	max-height: 90px;
	width: auto;
}

.tnz-header__contact {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	color: var(--tnz-primary);
}

.tnz-header__icon {
	flex: none;
	color: var(--tnz-surface-2);
}

.tnz-header__contact-text {
	display: flex;
	flex-direction: column;
	line-height: var(--lh-tight);
}

.tnz-header__phone {
	font-weight: var(--fw-medium);
	font-size: var(--type-md);
	color: var(--tnz-primary);
}

.tnz-header__phone:hover {
	color: var(--tnz-primary-dark);
}

.tnz-header__contact-name {
	color: var(--tnz-ink-muted);
	font-size: var(--type-xs);
}

/* Below the logo breakpoint the contact block wraps; keep it readable. */
@media (max-width: 47.999rem) {
	.tnz-header__inner {
		justify-content: center;
		text-align: center;
	}
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.tnz-btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: var(--fw-medium);
	font-size: var(--type-sm);
	line-height: var(--lh-tight);
	padding: var(--sp-3) var(--sp-6);
	border-radius: var(--radius-md);
	border: 2px solid var(--tnz-primary);
	transition: background-color var(--dur-std) var(--ease-std),
				color var(--dur-std) var(--ease-std);
}

.tnz-btn--outline {
	color: var(--tnz-primary);
	background: transparent;
}

.tnz-btn--outline:hover {
	background: var(--tnz-primary);
	color: var(--tnz-white);
}

.tnz-btn--solid {
	background: var(--tnz-primary);
	color: var(--tnz-white);
}

.tnz-btn--solid:hover {
	background: var(--tnz-primary-dark);
	border-color: var(--tnz-primary-dark);
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.tnz-hero {
	position: relative;
	margin-block-start: 0;
}

.tnz-hero__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.tnz-hero__track::-webkit-scrollbar {
	display: none;
}

.tnz-hero__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: center;
	min-height: 60vh;
	max-height: 40rem;
}

.tnz-hero__img {
	width: 100%;
	height: 100%;
	min-height: 60vh;
	max-height: 40rem;
	object-fit: cover;
}

/* Gradient so the caption stays legible over any photograph. */
.tnz-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgb(0 0 0 / 65%) 0%,
		rgb(0 0 0 / 25%) 45%,
		rgb(0 0 0 / 5%) 100%
	);
}

.tnz-hero__caption {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 1;
	max-width: var(--tnz-container);
	margin-inline: auto;
	padding: var(--sp-8) var(--sp-6) var(--sp-16);
	color: var(--tnz-white);
}

.tnz-hero__heading {
	color: var(--tnz-white);
	font-size: var(--type-2xl);
	margin-block-end: var(--sp-2);
}

.tnz-hero__text {
	font-size: var(--type-md);
	max-width: 46ch;
}

.tnz-hero__dots {
	position: absolute;
	inset-block-end: var(--sp-4);
	inset-inline: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: var(--sp-2);
}

.tnz-hero__dots a {
	display: block;
	inline-size: 12px;
	block-size: 12px;
	border-radius: 50%;
	background: rgb(255 255 255 / 55%);
	border: 1px solid rgb(255 255 255 / 85%);
	transition: background-color var(--dur-fast) var(--ease-std);
}

.tnz-hero__dots a:hover {
	background: var(--tnz-white);
}

@media (min-width: 48rem) {
	.tnz-hero__heading {
		font-size: var(--type-3xl);
	}
}

/* ==========================================================================
   8. Cards
   ========================================================================== */

.tnz-cards {
	display: grid;
	gap: var(--sp-6);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.tnz-card {
	background: var(--tnz-surface);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: transform var(--dur-std) var(--ease-std),
				box-shadow var(--dur-std) var(--ease-std);
}

.tnz-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgb(8 123 159 / 15%);
}

.tnz-card__link {
	display: flex;
	flex-direction: column;
	block-size: 100%;
}

.tnz-card__media img {
	inline-size: 100%;
	block-size: 12rem;
	object-fit: cover;
}

.tnz-card__title {
	font-size: var(--type-md);
	padding: var(--sp-4) var(--sp-4) var(--sp-2);
}

.tnz-card__excerpt {
	padding: 0 var(--sp-4) var(--sp-4);
	color: var(--tnz-ink-muted);
	font-size: var(--type-xs);
}

.tnz-cards--compact .tnz-card__media img {
	block-size: 9rem;
}

.tnz-cards--compact .tnz-card__title {
	font-size: var(--type-sm);
	padding-block-end: var(--sp-4);
}

/* ==========================================================================
   9. Testimonials
   ========================================================================== */

.tnz-section--testimonials {
	background: var(--tnz-surface);
	max-width: none;
	padding-block: var(--sp-16);
}

.tnz-section--testimonials > .tnz-section__heading {
	max-width: var(--tnz-container);
	margin-inline: auto;
	padding-inline: var(--sp-6);
}

.tnz-quotes__track {
	display: flex;
	gap: var(--sp-6);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding: var(--sp-4) var(--sp-6) var(--sp-6);
	max-width: var(--tnz-container);
	margin-inline: auto;
}

.tnz-quote {
	flex: 0 0 min(100%, 26rem);
	scroll-snap-align: start;
	background: var(--tnz-white);
	border-radius: var(--radius-md);
	padding: var(--sp-6);
	border-block-start: 4px solid var(--tnz-accent);
}

.tnz-quote__text p {
	max-width: none;
	font-size: var(--type-sm);
}

.tnz-quote__text p::before {
	content: open-quote;
}

.tnz-quote__text p::after {
	content: close-quote;
}

.tnz-quote__cite {
	margin-block-start: var(--sp-4);
	display: flex;
	flex-direction: column;
}

.tnz-quote__name {
	font-weight: var(--fw-medium);
	color: var(--tnz-primary);
}

.tnz-quote__role {
	font-size: var(--type-xs);
	color: var(--tnz-ink-muted);
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.tnz-footer {
	margin-block-start: var(--sp-24);
	background: var(--tnz-primary);
	color: var(--tnz-white);
	padding-block-start: var(--sp-16);
}

.tnz-footer__inner {
	max-width: var(--tnz-container);
	margin-inline: auto;
	padding-inline: var(--sp-6);
	display: grid;
	gap: var(--sp-12);
}

@media (min-width: 48rem) {
	.tnz-footer__inner {
		grid-template-columns: 2fr 1fr;
	}
}

.tnz-footer__heading {
	color: var(--tnz-white);
	font-size: var(--type-lg);
	margin-block-end: var(--sp-4);
}

.tnz-footer__about {
	display: grid;
	gap: var(--sp-6);
}

@media (min-width: 30rem) {
	.tnz-footer__about {
		grid-template-columns: 12rem 1fr;
		align-items: start;
	}
}

.tnz-footer__portrait {
	border-radius: var(--radius-md);
	inline-size: 100%;
}

.tnz-footer__list {
	display: grid;
	gap: var(--sp-3);
	margin-block-end: var(--sp-6);
}

.tnz-footer__list-item {
	display: flex;
	flex-direction: column;
}

.tnz-footer__label {
	font-size: var(--type-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tnz-surface-2);
}

.tnz-footer__value {
	font-weight: var(--fw-medium);
}

.tnz-footer__value:hover {
	text-decoration: underline;
}

/* The solid button sits on teal here, so invert it. */
.tnz-footer .tnz-btn--solid {
	background: var(--tnz-white);
	color: var(--tnz-primary);
	border-color: var(--tnz-white);
}

.tnz-footer .tnz-btn--solid:hover {
	background: var(--tnz-surface);
	border-color: var(--tnz-surface);
	color: var(--tnz-primary-dark);
}

.tnz-footer__legal {
	margin-block-start: var(--sp-12);
	border-block-start: 1px solid rgb(255 255 255 / 20%);
	padding-block: var(--sp-4);
	text-align: center;
	font-size: var(--type-xs);
	color: var(--tnz-surface-2);
}

.tnz-footer__legal p {
	max-width: none;
}

/* ==========================================================================
   10b. Single, page, archive, 404
   ========================================================================== */

.tnz-single__hero img {
	inline-size: 100%;
	max-block-size: 28rem;
	object-fit: cover;
}

.tnz-single__body {
	max-width: var(--tnz-container);
	margin-inline: auto;
	padding: var(--sp-12) var(--sp-6) 0;
}

.tnz-single__cat a {
	display: inline-block;
	font-size: var(--type-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tnz-accent);
	font-weight: var(--fw-medium);
	margin-block-end: var(--sp-2);
}

.tnz-single__cat a:hover {
	text-decoration: underline;
}

.tnz-single__title {
	font-size: var(--type-2xl);
	margin-block-end: var(--sp-6);
}

.tnz-single__content > * + * {
	margin-block-start: var(--sp-4);
}

.tnz-single__content h2 {
	font-size: var(--type-xl);
	margin-block-start: var(--sp-8);
}

.tnz-single__content h3 {
	font-size: var(--type-lg);
	margin-block-start: var(--sp-6);
}

.tnz-single__content img {
	border-radius: var(--radius-md);
}

.tnz-single__content ul,
.tnz-single__content ol {
	list-style: revert;
	padding-inline-start: var(--sp-6);
	max-width: var(--tnz-measure);
}

.tnz-single__content a {
	color: var(--tnz-primary);
	text-decoration: underline;
}

.tnz-single__content blockquote {
	border-inline-start: 4px solid var(--tnz-surface-2);
	padding-inline-start: var(--sp-4);
	color: var(--tnz-ink-muted);
}

.tnz-single__back {
	margin-block: var(--sp-12);
}

.tnz-404 {
	padding-block: var(--sp-16);
	text-align: center;
}

.tnz-404 p {
	margin-inline: auto;
}

.tnz-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
	justify-content: center;
	margin-block: var(--sp-8);
}

.tnz-404 .tnz-cards {
	margin-block-start: var(--sp-12);
	text-align: start;
}

/* Pagination on archives. */
.pagination {
	margin-block-start: var(--sp-12);
	display: flex;
	justify-content: center;
}

.pagination .nav-links {
	display: flex;
	gap: var(--sp-2);
	flex-wrap: wrap;
}

.pagination .page-numbers {
	padding: var(--sp-2) var(--sp-3);
	border-radius: var(--radius-sm);
	border: 1px solid var(--tnz-line);
	color: var(--tnz-primary);
}

.pagination .page-numbers.current {
	background: var(--tnz-primary);
	border-color: var(--tnz-primary);
	color: var(--tnz-white);
}

/* ==========================================================================
   11. Utilities
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.tnz-skip {
	position: absolute;
	inset-inline-start: var(--sp-2);
	inset-block-start: -4rem;
	z-index: 100;
	background: var(--tnz-primary);
	color: var(--tnz-white);
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--radius-sm);
	transition: inset-block-start var(--dur-fast) var(--ease-std);
}

.tnz-skip:focus {
	inset-block-start: var(--sp-2);
}

/* ==========================================================================
   12. Motion
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.tnz-card:hover {
		transform: none;
	}
}
