/**
 * FWDP 1000 - P02 - Craig - Tourism Site
 * 🐻‍❄️ Explore Churchill
 */
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
# Base
	- Typography
	- Elements
	- Links
	- Forms
	- Tables
# Components
	- Skip Link
	- Header
	- Navigation
	- Hero
	- Sections
	- Cards
	- Tables
	- Forms
	- Footer
# Media Queries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	margin: 0;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #283040;
	background-color: #f2f2f2;
}

img,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

video {
	object-fit: cover;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	/* Hides the element from all users, including screen readers */
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

h1,
h2,
h3 {
	font-family: "Geom", "Montserrat", Arial, sans-serif;
	line-height: 1.1;
	color: #283040;
}

h1 {
	font-size: clamp(2.5rem, 8vw, 5rem);
	margin: 0 0 1rem;
}

h2 {
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0 0 1rem;
}

h3 {
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	margin: 0 0 0.75rem;
}

p {
	margin: 0 0 1.25rem;
}

ul,
ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}

a {
	color: #373b8c;
}

a:visited {
	color: #373b8c;
}

a:hover,
a:focus {
	color: #283040;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 3px solid #373b8c;
	outline-offset: 3px;
}

button,
input,
select,
textarea {
	font: inherit;
}

/*--------------------------------------------------------------
# Skip Link
--------------------------------------------------------------*/
/* Hides the skip link until it receives keyboard focus. */
.skip-link {
	position: absolute;
	top: 0;
	left: -9999px;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background-color: #f2f2f2;
	color: #283040;
	text-decoration: none;
	font-weight: 700;
}
/* Shows the skip link when it receives keyboard focus. */
.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/*--------------------------------------------------------------
# Header and Navigation
--------------------------------------------------------------*/

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.6rem clamp(1rem, 4vw, 4rem);
	color: #f2f2f2;
	background-color: rgba(40, 48, 64, 0.25);
}

.site-name {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	flex: 1;
}

.site-logo {
	width: clamp(3rem, 5vw, 4.25rem);
	height: clamp(3rem, 5vw, 4.25rem);
	display: block;
	flex: 0 0 auto;
	transform: scale(1.18);
	transform-origin: center;
}

.site-title {
	font-family: "Geom", "Montserrat", Arial, sans-serif;
	font-size: clamp(1rem, 3vw, 1.1rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
	color: #f2f2f2;
	text-decoration: none;
}

.site-title:visited,
.site-title:hover,
.site-title:focus {
	color: #f2f2f2;
}

.site-navigation {
	position: relative;
}

.menu-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border: 0;
	border-radius: 999px;
	padding: 0.65rem 0.9rem;
	color: #f2f2f2;
	background-color: rgba(40, 48, 64, 0.85);
	cursor: pointer;
	flex: 0 0 auto;
}

.menu-toggle svg {
	fill: currentColor;
}

.nav-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	display: none;
	min-width: 14rem;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	border-radius: 0.75rem;
	background-color: rgba(40, 48, 64, 0.96);
	box-shadow: 0 1rem 2rem rgba(40, 48, 64, 0.25);
}

.site-navigation.toggled .nav-menu {
	display: block;
}

.nav-menu a {
	display: block;
	padding: 0.85rem 1rem;
	border-radius: 0.5rem;
	color: #f2f2f2;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.nav-menu a:visited {
	color: #f2f2f2;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a[aria-current="page"] {
	background-color: #f2f2f2;
	color: #283040;
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/

.hero {
	position: relative;
	min-height: 100vh;
	/* 100dvh helps the hero account for mobile browser address bars. */
	min-height: 100dvh;
	display: grid;
	place-items: center;
	overflow: hidden;
	background-color: #283040;
	color: #f2f2f2;
	text-align: center;
}

.hero-image,
.hero-video {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.hero-content {
	position: relative;
	z-index: 2;
	width: min(100% - 2rem, 58rem);
	padding: 8rem 0 4rem;
}

.hero h1,
.hero p {
	color: #f2f2f2;
	text-shadow: 0 3px 16px rgba(40, 48, 64, 0.9);
}

.hero-intro {
	max-width: 48rem;
	margin-inline: auto;
	font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.page-hero {
	padding: 8rem 1rem 4rem;
	background: url("../images/aurora-hero-banner.webp") center / cover;
	color: #f2f2f2;
}

.page-hero h1,
.page-hero p {
	color: #f2f2f2;
	text-shadow: 0 2px 10px rgba(40, 48, 64, 0.9);
}

/* Enlarges only the page hero description, not the smaller section label above the heading. */
.page-hero p:not(.section-label) {
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	font-weight: 500;
}

.section-label {
	margin-bottom: 0.5rem;
	font-family: "Geom", "Montserrat", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #373b8c;
}

.hero .section-label,
.page-hero .section-label {
	color: #f2f2f2;
}

/*--------------------------------------------------------------
# Layout Sections
--------------------------------------------------------------*/

.section {
	padding: clamp(3rem, 8vw, 6rem) 1rem;
}

.text-wrap {
	width: min(100%, 48rem);
	margin-inline: auto;
}

.section-heading {
	width: min(100%, 52rem);
	margin: 0 auto 2rem;
	text-align: center;
}

.section-image {
	width: min(100%, 72rem);
	margin: 0 auto 2rem;
}

.section-image img {
	width: 100%;
	border-radius: 1rem;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.section-image figcaption {
	margin-top: 0.5rem;
	font-size: 1rem;
	color: #424c59;
}

.intro-section {
	background-color: #f2f2f2;
}

.split-section {
	display: grid;
	gap: 2rem;
	align-items: start;
}

.split-text,
.fact-panel,
.callout,
.contact-form {
	width: min(100%, 52rem);
	margin-inline: auto;
}

.fact-panel,
.callout {
	padding: 1.5rem;
	border-radius: 1rem;
	background-color: #f2f2f2;
	color: #283040;
	box-shadow: 0 0.5rem 1.5rem rgba(40, 48, 64, 0.08);
}

.callout-section {
	background-color: #424c59;
	color: #f2f2f2;
}

.callout-section .callout {
	text-align: center;
}

.callout-section h2,
.callout-section h3,
.callout-section p {
	color: #f2f2f2;
}

.callout h2,
.callout h3,
.callout p,
.fact-panel h2,
.fact-panel h3,
.fact-panel p {
	color: #283040;
}

.cta-section {
	background-color: #f2f2f2;
	text-align: center;
}

.quote-section {
	padding: clamp(4rem, 9vw, 7rem) 1rem;
	background-color: #283040;
	color: #f2f2f2;
	text-align: center;
}

.quote-section blockquote {
	width: min(100%, 58rem);
	margin: 0 auto;
}

.quote-section p {
	font-family: "Geom", "Montserrat", Arial, sans-serif;
	font-size: clamp(1.6rem, 4vw, 3rem);
	line-height: 1.2;
	color: #f2f2f2;
}

.quote-section cite {
	display: block;
	margin-top: 1.5rem;
	font-style: normal;
	color: #f2f2f2;
}

/*--------------------------------------------------------------
# Buttons and Links
--------------------------------------------------------------*/

.button-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}

.button-link,
.submit-button {
	display: inline-block;
	border: 0;
	border-radius: 999px;
	padding: 0.9rem 1.4rem;
	background-color: #373b8c;
	color: #f2f2f2;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.button-link:visited {
	color: #f2f2f2;
}

.button-link:hover,
.button-link:focus,
.submit-button:hover,
.submit-button:focus {
	background-color: #283040;
	color: #f2f2f2;
}

.button-link-secondary {
	background-color: #f2f2f2;
	color: #283040;
}

.button-link-secondary:visited {
	color: #283040;
}

.button-link-secondary:hover,
.button-link-secondary:focus {
	background-color: #424c59;
	color: #f2f2f2;
}

.text-link {
	font-weight: 700;
	text-underline-offset: 0.25em;
}

/*--------------------------------------------------------------
# Cards and Grids
--------------------------------------------------------------*/

.card-grid,
.info-grid {
	display: grid;
	gap: 1.25rem;
	width: min(100%, 72rem);
	margin-inline: auto;
}

/* Keeps card and section images consistently cropped without stretching them. */
.feature-card,
.info-card,
.mini-card {
	overflow: hidden;
	border-radius: 1rem;
	background-color: #f2f2f2;
	box-shadow: 0 0.5rem 1.5rem rgba(40, 48, 64, 0.08);
}

.feature-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.card-content,
.info-card,
.mini-card {
	padding: 1.25rem;
}

.season-label {
	margin-bottom: 0.4rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #373b8c;
}

.compact-grid {
	width: min(100%, 64rem);
}

/*--------------------------------------------------------------
# Seasons Page
--------------------------------------------------------------*/

.jump-nav {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.65rem 0.5rem;
	background-color: #f2f2f2;
	box-shadow: 0 0.25rem 1rem rgba(40, 48, 64, 0.1);
}

.jump-nav a {
	flex: 0 0 auto;
	border-radius: 999px;
	padding: 0.45rem 0.65rem;
	background-color: #424c59;
	color: #f2f2f2;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
}

.jump-nav a:visited {
	color: #f2f2f2;
}

.jump-nav a:hover,
.jump-nav a:focus {
	background-color: #373b8c;
	color: #f2f2f2;
}

.season-detail {
	display: grid;
	gap: 2rem;
	align-items: center;
	background-color: #f2f2f2;
}

.season-detail:nth-of-type(even) {
	background-color: #424c59;
	color: #f2f2f2;
}

.season-detail:nth-of-type(even) h2,
.season-detail:nth-of-type(even) h3,
.season-detail:nth-of-type(even) p,
.season-detail:nth-of-type(even) li {
	color: #f2f2f2;
}

.season-detail:nth-of-type(even) a {
	color: #f2f2f2;
}

.season-media img {
	width: 100%;
	border-radius: 1rem;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.season-copy {
	width: min(100%, 38rem);
}

/*--------------------------------------------------------------
# Tables
--------------------------------------------------------------*/

.table-section {
	background-color: #f2f2f2;
}

.table-scroll {
	overflow-x: auto;
	width: min(100%, 72rem);
	margin-inline: auto;
}

table {
	width: 100%;
	min-width: 42rem;
	border-collapse: collapse;
	background-color: #f2f2f2;
}

caption {
	padding: 1rem;
	font-weight: 700;
	text-align: left;
	color: #283040;
}

th,
td {
	padding: 1rem;
	border: 1px solid #424c59;
	text-align: left;
	vertical-align: top;
}

thead th {
	background-color: #283040;
	color: #f2f2f2;
}

tbody th {
	background-color: #424c59;
	color: #f2f2f2;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/

.contact-section {
	background-color: #f2f2f2;
}

.contact-form {
	display: grid;
	gap: 1rem;
	padding: 1.5rem;
	border-radius: 1rem;
	background-color: #424c59;
	color: #f2f2f2;
}

.form-field {
	display: grid;
	gap: 0.4rem;
}

label {
	font-weight: 700;
}

input,
select,
textarea {
	width: 100%;
	border: 2px solid #283040;
	border-radius: 0.5rem;
	padding: 0.8rem;
	background-color: #f2f2f2;
	color: #283040;
}

textarea {
	resize: vertical;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.site-footer {
	padding: 2rem 1rem;
	background-color: #283040;
	color: #f2f2f2;
}

.footer-inner {
	display: grid;
	gap: 1.5rem;
	width: min(100%, 72rem);
	margin-inline: auto;
}

.footer-title {
	margin-bottom: 0.5rem;
	font-family: "Geom", "Montserrat", Arial, sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
	color: #f2f2f2;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.footer-logo {
	width: clamp(3.5rem, 6vw, 5rem);
	height: clamp(3.5rem, 6vw, 5rem);
	display: block;
	flex: 0 0 auto;
	transform: scale(1.18);
	transform-origin: center;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: #f2f2f2;
}

.site-footer a:hover,
.site-footer a:focus {
	color: #f2f2f2;
	text-decoration-thickness: 0.2em;
}

.footer-note {
	margin: 0;
	color: #f2f2f2;
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/

@media (min-width: 42em) {
	.site-logo {
	transform: scale(1.3);
	}

	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.info-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.jump-nav {
		justify-content: center;
	}

	.split-section {
		grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
		width: min(100% - 2rem, 72rem);
		margin-inline: auto;
	}

	.split-text,
	.fact-panel,
	.callout {
		width: auto;
	}

	.footer-logo {
	transform: scale(1.3);
	}
}

@media (min-width: 50em) {
	.site-logo {
	transform: scale(1.45);
	}

	.site-header {
		position: absolute;
		padding: 0.75rem clamp(2rem, 5vw, 5rem);
	}

	.menu-toggle {
		display: none;
	}

	.nav-menu {
		position: static;
		display: flex;
		gap: 0.25rem;
		min-width: auto;
		padding: 0;
		background-color: transparent;
		box-shadow: none;
	}

	.nav-menu a {
		display: block;
		padding: 0.85rem 1rem;
		border-radius: 0.5rem;
		color: #f2f2f2;
		text-decoration: none;
		font-weight: 600;
		letter-spacing: 0.02em;
	}

	.nav-menu a:hover,
	.nav-menu a:focus,
	.nav-menu a[aria-current="page"] {
		background-color: #f2f2f2;
		color: #283040;
		text-shadow: none;
	}

	.season-detail {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		width: min(100% - 2rem, 72rem);
		margin-inline: auto;
		border-radius: 1rem;
	}

	.season-detail.reverse .season-media {
		order: 2;
	}

	.season-detail.reverse .season-copy {
		order: 1;
	}

	.season-copy {
		padding: 2rem;
	}

	.footer-inner {
		grid-template-columns: 1fr auto;
		align-items: start;
	}

	.footer-note {
		grid-column: 1 / -1;
	}

	.footer-logo {
	transform: scale(1.45);
	}	
}

@media (min-width: 72em) {
	.card-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.compact-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
/* 
	Accessibility: if a user prefers reduced motion, turn off smooth scrolling
	and hide the autoplay background video.
	Reference: MDN Web Docs, prefers-reduced-motion.
*/
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.hero-video {
		display: none;
	}
}