/*
 * TAMUS home page sections (Figma TAMUS-003, frame 731:10016
 * "TAMUS.edu_Option 1_r3"). All rules scoped under .tamus-home; the page
 * content itself is a Gutenberg HTML block using these classes.
 */

.tamus-home {
	font-family: "Open Sans", Arial, sans-serif;
}

/* The front page uses AUX's native "Landing" (hero) page header and AUX
   blocks; no page-chrome suppression needed. */

/* Neutralize theme/plugin section margins without outranking the
   per-section rules below (:where() keeps specificity at zero). */
:where(.tamus-home section) {
	margin: 0;
}

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

.tamus-hero {
	position: relative;
}

.tamus-hero__media img {
	width: 100%;
	height: 560px;
	object-fit: cover;
	display: block;
}

.tamus-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.tamus-hero__title {
	position: absolute;
	top: 200px;
	left: 50%;
	transform: translateX(-50%);
	width: min(1200px, 100%);
	padding: 0 1.5rem;
	color: #ffffff;
	font-family: "Work Sans", Arial, sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 4.5rem;
	line-height: 0.95;
	margin: 0;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.tamus-hero__kicker {
	display: block;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 0.5rem;
}

.tamus-hero__card {
	position: relative;
	margin: -80px auto 0;
	max-width: 640px;
	background: #ffffff;
	border-top: 4px solid #500000;
	padding: 2rem 2.5rem;
	text-align: center;
	line-height: 1.5;
}

.tamus-hero__ctas {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 290px));
	gap: 1rem;
	justify-content: center;
	margin: 1.5rem 0 3rem;
}

.tamus-home .btn.btn--primary {
	background: #500000;
	color: #ffffff;
	font-family: "Work Sans", Arial, sans-serif;
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-align: center;
	padding: 0.9rem 1.25rem;
	display: inline-block;
	transition: background 0.2s ease;
}

.tamus-home .btn.btn--primary:hover,
.tamus-home .btn.btn--primary:focus {
	background: #732f2f;
}

/* -------------------------------------------------- media feature (image) */

.tamus-media-feature {
	display: flex;
	align-items: center;
	margin: 2rem auto;
	max-width: 1600px;
}

.tamus-media-feature__media {
	flex: 1 1 55%;
	min-width: 0;
}

.tamus-media-feature__media img {
	width: 100%;
	display: block;
}

.tamus-media-feature__panel {
	flex: 1 1 45%;
	background: #500000;
	color: #ffffff;
	padding: 3rem;
	margin-left: -6rem;
	position: relative;
	z-index: 1;
}

.tamus-media-feature__panel h2 {
	color: #ffffff;
	font-family: "Work Sans", Arial, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.5rem;
	line-height: 1.3;
	margin: 0 0 1rem;
}

.tamus-media-feature__panel p {
	line-height: 1.6;
	margin: 0 0 1.5rem;
}

.tamus-btn-outline {
	display: inline-block;
	border: 1px solid #ffffff;
	color: #ffffff;
	font-family: "Work Sans", Arial, sans-serif;
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
	padding: 0.75rem 1.5rem;
	transition: 0.2s ease;
}

.tamus-btn-outline:hover,
.tamus-btn-outline:focus {
	background: #ffffff;
	color: #500000;
}

/* ------------------------------------------------------------------ stats */

.tamus-stats {
	background: #f6f6f6;
	padding: 3rem 1.5rem;
}

.tamus-stats__row {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: 3rem;
	justify-content: flex-start;
}

.tamus-stats__item {
	flex: 0 1 300px;
	display: flex;
	flex-direction: column;
}

.tamus-stats__value {
	font-family: "Work Sans", Arial, sans-serif;
	font-weight: 700;
	font-size: 1.75rem;
	color: #000000;
}

.tamus-stats__label {
	font-weight: 700;
	font-size: 0.9rem;
	color: #000000;
}

/* ------------------------------------------------------------------- news */

.tamus-news {
	max-width: 1200px;
	margin: 4rem auto;
	padding: 0 1.5rem;
}

.tamus-news__intro {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.tamus-news__intro h2 {
	font-family: "Work Sans", Arial, sans-serif;
	text-transform: uppercase;
	font-weight: 700;
	color: #500000;
	font-size: 1.75rem;
	margin: 0;
}

.tamus-news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.tamus-news__card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	margin-bottom: 1rem;
}

.tamus-news__tag {
	display: inline-block;
	border: 1px solid #500000;
	border-radius: 999px;
	color: #500000;
	font-family: "Work Sans", Arial, sans-serif;
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.25rem 0.75rem;
	margin-bottom: 0.75rem;
}

.tamus-news__card h3 {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 1.15rem;
	line-height: 1.4;
	margin: 0 0 0.5rem;
}

.tamus-news__card h3 a {
	color: #000000;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tamus-news__card h3 a:hover,
.tamus-news__card h3 a:focus {
	color: #732f2f;
}

.tamus-news__meta {
	color: #3e3e3e;
	font-size: 0.85rem;
	margin: 0;
}

/* -------------------------------------------------- media feature (video) */

.tamus-video-feature {
	display: flex;
	align-items: stretch;
	margin: 4rem auto;
	max-width: 1600px;
}

.tamus-video-feature__media {
	flex: 1 1 55%;
	position: relative;
	min-width: 0;
}

.tamus-video-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tamus-video-feature__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	background: #f00;
	border-radius: 10px;
}

.tamus-video-feature__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-40%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 18px;
	border-color: transparent transparent transparent #ffffff;
}

.tamus-video-feature__panel {
	flex: 1 1 45%;
	background: #f6f6f6;
	padding: 4rem 3rem;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tamus-video-feature__panel h2 {
	font-family: "Work Sans", Arial, sans-serif;
	text-transform: uppercase;
	font-weight: 700;
	color: #500000;
	font-size: 1.5rem;
	margin: 0 0 1rem;
}

.tamus-video-feature__panel p {
	line-height: 1.6;
	margin: 0;
}

/* ----------------------------------------------------------------- social */

.tamus-social {
	max-width: 900px;
	margin: 3rem auto 4rem;
	padding: 0 1.5rem;
	text-align: center;
}

.tamus-social__heading {
	font-family: "Open Sans", Arial, sans-serif;
	font-style: italic;
	font-weight: 700;
	font-size: 1.25rem;
	color: #500000;
	margin: 0 0 1.5rem;
}

.tamus-social__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2rem;
	justify-content: center;
	align-items: center;
}

.tamus-social__list::before,
.tamus-social__list::after {
	content: "";
	flex: 1 1 45px;
	height: 1px;
	background: #d1d1d1;
}

.tamus-social__list a {
	display: inline-flex;
}

.tamus-social__list svg {
	width: 2rem;
	height: 2rem;
	fill: #500000;
	transition: fill 0.2s ease;
}

.tamus-social__list a:hover svg,
.tamus-social__list a:focus svg {
	fill: #732f2f;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
	.tamus-hero__title {
		font-size: 3rem;
		top: 120px;
	}

	.tamus-media-feature,
	.tamus-video-feature {
		flex-direction: column;
	}

	.tamus-media-feature__panel {
		margin: -3rem 1.5rem 0;
	}

	.tamus-stats__row {
		flex-direction: column;
		gap: 1.5rem;
	}

	.tamus-news__grid {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------- stats band (Figma 731:10506)
   AUX "Standard Card Group" block with icon cards. The Figma dev-mode type
   overrides that used to live here (Work Sans 600 headings, bold maroon
   labels, 76px icons, keyed to the #tamus-stat-cards Row Anchor) are gone:
   the client signed off on AUX's default card rendering as seen on the home
   page band, and the anchored overrides made the Research band diverge from
   it (TAMUS1-67). Both bands now inherit identical AUX defaults. */

/* ------------------------------------ front-page home hero (Figma 1263:4066)
   The hero now renders as AUX's own `.hero--home` component (the tamu.edu
   treatment) via the child header-hero.php override + the page's "Home Hero"
   switch, so the AUX CDN styles the overlaid white H1, the maroon-capped
   panel and the image gradient natively. The old client-approved CSS overlay
   workaround on hero--main (8-17/8-18-26) is gone. Only the Figma dev-value
   deltas the component misses remain: Work Sans 800 uppercase (AUX ships
   900 mixed-case) and the softer 0 4px 19px drop shadow.
   -------------------------------------------------------------------------- */

.hero.hero--home .hero__container h1 {
	font-weight: 800;
	text-transform: uppercase;
	text-shadow: 0 4px 19px rgba(0, 0, 0, 0.85);
}

/* Headline-to-panel gap: exactly 20px (client 8-28-26 — every hero uses
   the same 20px; the interior floated heroes mirror this number in
   tamus-overrides.css). All 20px on the panel side so the h1's own line
   box stays CDN-stock. Desktop overlay only — <=768px re-lays the heading
   below the image and manages its own spacing (see the small-screen block
   below). */
@media (min-width: 769px) {
	.hero.hero--home .hero__container h1 {
		margin-bottom: 0;
	}

	.hero.hero--home .hero__container .hero__content {
		margin-top: 20px;
	}
}

/* CDN gap: above 1400px the base .hero .hero__image rule keeps
   height: 560px (its height: auto lives in a max-width: 1400px query), and
   hero--home only adds aspect-ratio — so the box's WIDTH resolves from the
   fixed height (560px x 2.5 = 1400px) and the hero stops 1400px wide,
   leaving a white gap on wide screens. hero--main resets its own height;
   hero--home forgot to. Let the full width drive the height instead. */
.hero.hero--home .hero__image {
	width: 100%;
	height: auto;
}

/* Figma 1263:4066 crops the hero art 2:1 (1440x710), not the component's
   2.5:1 — desktop only, so the CDN's steeper mobile ladder (2/1 -> 1.5/1
   -> 1/1) stays. */
@media (min-width: 993px) {
	.hero.hero--home .hero__image {
		aspect-ratio: 2 / 1;
	}
}

/* Keep the title above the fold (client request 8-26-26). The H1 block
   hangs a fixed -20rem off the image bottom, so its two lines span roughly
   300px to 125px above the image's bottom edge — capping the image height
   against the viewport pins the title on screen. Overlay widths (>768px):
   image <= 100svh - 40px puts the title bottom ~20px above the fold;
   420px floor keeps the -20rem pull from colliding with the header on very
   short windows; 750px ceiling is the wide-screen cap (tamu.edu does the
   same). The plain 100vh line is the fallback for browsers without svh.
   object-fit: cover absorbs whatever the cap crops. */
@media (min-width: 769px) {
	.hero.hero--home .hero__image {
		max-height: calc(100vh - 40px);
		max-height: clamp(420px, 100svh - 40px, 750px);
	}
}

/* <=768px the heading renders below the image (maroon treatment above), so
   the image itself must leave ~280px for header + two title lines. */
@media (max-width: 768px) {
	.hero.hero--home .hero__image {
		max-height: calc(100vh - 280px);
		max-height: max(260px, 100svh - 280px);
	}
}

/* Small screens: the CDN keeps the white H1 overlaid, but a multi-line
   heading overruns the short image onto the white panel. tamu.edu's own
   site fixes this in page CSS, not the CDN — heading drops below the image
   in maroon with the short accent bar; the panel loses its maroon cap so
   the bar isn't doubled. Mirrors tamu.edu's ≤768px rules. */
@media (max-width: 768px) {
	.hero.hero--home .hero__container {
		margin-top: 1rem;
	}

	.hero.hero--home .hero__container h1 {
		width: 100%;
		margin: 0;
		padding: 0 1.5rem;
		color: #500000;
		text-shadow: none;
	}

	.hero.hero--home .hero__container h1::after {
		content: "";
		display: block;
		width: 5rem;
		height: 0.75rem;
		background-color: #732f2f;
		margin-top: 1rem;
	}

	.hero.hero--home .hero__container h1 .superhead {
		color: #500000;
		text-shadow: none;
	}

	.hero.hero--home .hero__container .hero__content {
		border-top: none;
		margin-top: 0;
		padding-top: 0;
	}
}

/* ---------------------------------- home hero background video (TAMUS1-126)
   header-hero.php puts .tamus-hero-video inside .hero__image when the page
   has an AUX "Video Header Options" video, so the layer inherits the
   image's crop at every breakpoint and the image stays underneath as the
   poster.
   - The video covers the box with object-fit: cover.
   - The layer is positioned, so it would paint over the non-positioned
     .hero__container that pulls the H1 up over the image. Positioning the
     container too keeps the H1 on top, since it comes later in the DOM.
   - The video is transparent until the script sees its first frame play,
     so a slow load shows the header image rather than an empty box.
   -------------------------------------------------------------------------- */

.hero.hero--home .hero__image {
	position: relative;
	overflow: hidden;
}

.hero.hero--home .hero__container {
	position: relative;
}

.tamus-hero-video {
	position: absolute;
	inset: 0;
}

.tamus-hero-video__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
}

.tamus-hero-video.is-playing .tamus-hero-video__player {
	opacity: 1;
	transition: opacity 0.6s ease;
}

/* Modelled on tamu.edu's home hero video control (checked 9-16-26): a
   bare 3rem white circle icon in the top-right corner at 75% opacity, no
   visible text, the action in aria-label. Always visible there too; WCAG
   2.2.2 needs a pause control for motion over five seconds. The icons are
   tamu.edu's aux-prod-icons files, copied because the AUX CDN sprite has no
   play/pause pair. */
.tamus-hero-video__toggle {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent url("../icons/circle-pause-regular.svg") center / contain no-repeat;
	opacity: 0.75;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.tamus-hero-video__toggle.is-paused {
	background-image: url("../icons/circle-play-regular.svg");
}

.tamus-hero-video__toggle:hover,
.tamus-hero-video__toggle:focus-visible {
	opacity: 1;
}

/* Same focus ring AUX draws on its header controls. */
.tamus-hero-video__toggle:focus-visible {
	outline: solid #af8846 4px;
	outline-offset: 2px;
}

/* -------------------------------------------- front-page button chevrons
   Client request (8-18-26): every home-page button carries the » chevron
   AUX only reveals on .btn--cta hover, visible at all times.
   - .btn--cta already renders <svg #aux_angles-right> at opacity 0 → 1 on
     hover; pin it to 1.
   - .btn--primary (hero CTAs, media-feature "Learn More") has no icon in its
     markup, so draw the same sprite as a masked ::after — the technique AUX
     itself uses for .link--cta arrows — from the AUX CDN icon set.
   -------------------------------------------------------------------------- */

.home .btn--cta svg,
.home .btn--cta:hover svg {
	opacity: 1;
}

.home .btn.btn--primary:not(.btn--icon)::after {
	content: "";
	display: inline-block;
	width: 1rem;
	height: 1rem;
	margin-left: 0.5rem;
	vertical-align: -0.15em;
	background-color: currentColor;
	-webkit-mask: url("https://aux.tamu.edu/icons/aux-prod-icons/angles-right.svg") no-repeat center / contain;
	mask: url("https://aux.tamu.edu/icons/aux-prod-icons/angles-right.svg") no-repeat center / contain;
}
