/*
 * components.css — Nav, Hero, Portfolio, Stats, Events, Shop, Footer.
 * fredi-theme-vidona
 */

/* ================================================================
   NAVIGATION
   ================================================================ */
.aa-nav {
	position: fixed;
	padding-top:10px;
	top: 0;
	left: 0;
	right: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nav-h);
	padding: 0 var(--pad);
	background: rgba(8, 45, 94, 0.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: box-shadow 0.2s;
}

.aa-nav--scrolled {
	box-shadow: var(--shadow-subtle);
}

/* Logo */
.aa-nav__logo,
.aa-nav__logo-text a {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 900;
	letter-spacing: 0.22em;
	color: var(--accent-color);
	text-decoration: none;
	text-transform: uppercase;
	flex-shrink: 0;
}

.aa-nav__logo-text {
	font-size: inherit;
	margin: 0;
}

/* Custom logo image */
.aa-nav .custom-logo-link img {
	height: 100px;
	width: auto;
}

/* Nav links */
.aa-nav__links {
	display: none !important;
	display: flex;
	list-style: none;
	gap: 1.75rem;
	align-items: center;
	margin: 0;
	padding: 0;
}

.aa-nav__links a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.aa-nav__links a:hover,
.aa-nav__links .current-menu-item > a,
.aa-nav__links .current_page_item > a {
	color: var(--accent-color);
}

/*
 * Nav CTA button — reuses the shared .aa-btn / .aa-btn--secondary
 * component (see header.php); this just adapts its colors for the
 * dark nav surface, where navy-on-navy would be unreadable.
 */
.aa-nav__btn {
	padding: 0.42rem 1.1rem;
	font-size: 0.6rem;
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--white);
	flex-shrink: 0;
}

.aa-nav__btn:hover,
.aa-nav__btn:focus-visible {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: var(--white);
	color: var(--white);
	outline: none;
}

/* Mobile hamburger (hidden on desktop) */
.aa-nav__hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}

.aa-nav__hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--white);
	transition: transform 0.3s, opacity 0.3s;
}

.aa-nav__hamburger[aria-expanded='true'] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.aa-nav__hamburger[aria-expanded='true'] span:nth-child(2) {
	opacity: 0;
}

.aa-nav__hamburger[aria-expanded='true'] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.aa-nav__mobile-menu {
	display: none;
	position: fixed;
	top: var(--nav-h);
	left: 0;
	right: 0;
	background: rgba(8, 45, 94, 0.97);
	padding: 1.5rem var(--pad) 2rem;
	z-index: 199;
}

.aa-nav__mobile-menu.is-open {
	display: block;
}

.aa-nav__mobile-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.aa-nav__mobile-menu ul li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aa-nav__mobile-menu ul a {
	display: block;
	padding: 0.9rem 0;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color 0.2s;
}

.aa-nav__mobile-menu ul a:hover {
	color: var(--accent-color);
}

/* ================================================================
   HERO
   ================================================================ */
.aa-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 640px;
	overflow: hidden;
}

/* <picture> is inline by default — force it to behave like the plain
   <img> it replaces so the existing absolute-fill sizing still applies. */
.aa-hero picture {
	display: block;
	width: 100%;
	height: 100%;
}

.aa-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
	display: block;
}

.aa-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.18) 0%,
		rgba(0, 0, 0, 0.06) 38%,
		rgba(0, 0, 0, 0.48) 75%,
		rgba(0, 0, 0, 0.68) 100%
	);
	pointer-events: none;
}

.aa-hero__body {
	position: absolute;
	bottom: 12%;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	width: 100%;
	padding: 0 2rem;
	pointer-events: none;
}

.aa-hero__eyebrow {
	display: block;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	margin-bottom: 0.6rem;
}

.aa-hero__title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 5rem, 10rem);
	font-weight: 900;
	line-height: 0.87;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--white);
}

.aa-hero__title-row2 {
	display: block;
}

.aa-hero__accent {
	color: var(--accent-color);
}

.aa-hero__side {
	position: absolute;
	bottom: 14%;
	font-size: 0.55rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	pointer-events: none;
}

.aa-hero__side--left  { left: var(--pad); }
.aa-hero__side--right { right: var(--pad); text-align: right; }

/* ================================================================
   PORTFOLIO — FILTERS
   ================================================================ */
.aa-portfolio {
	background-color: var(--cream);
	padding-bottom: var(--gap-md);
}

.aa-filters {
	display: flex;
	gap: 2.5rem;
	justify-content: center;
	align-items: center;
	padding: 1.4rem var(--pad);
	border-top:    1px solid var(--border-subtle);
	border-bottom: 1px solid var(--border-subtle);
	margin-bottom: var(--gap-px);
	flex-wrap: wrap;
}

.aa-filter-btn {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-family: var(--font-body);
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(9, 40, 80, 0.42);
	cursor: pointer;
	padding: 0.2rem 0;
	transition: color 0.2s, border-color 0.2s;
}

.aa-filter-btn.is-active,
.aa-filter-btn:hover,
.aa-filter-btn:focus-visible {
	color: var(--link-color);
	border-bottom-color: var(--link-color);
	outline: none;
}

/* ================================================================
   PORTFOLIO — MASONRY GRID
   True Pinterest-style masonry: every tile keeps the video's real
   aspect ratio (set inline from server-known dimensions — see
   ftvd_get_video_aspect_ratio()). Tiles stack full-width, correctly
   sized, until portfolio-grid.js bin-packs them into columns and
   switches the grid to `.is-masonry` (absolute positioning). If JS
   never runs, the stacked full-width fallback still shows every
   video uncropped.
   ================================================================ */
.aa-portfolio-grid {
	position: relative;
	padding: 0 var(--pad);
}

.aa-pitem {
	position: relative;
	display: block;
	border-radius: var(--radius);
	width: 100%;
	overflow: hidden;
	background-color: var(--dark-section);
	margin-bottom: var(--gap-px);
}

.aa-portfolio-grid.is-masonry .aa-pitem {
	position: absolute;
	
	top: 0;
	left: 0;
	margin-bottom: 0;
	transition: transform 0.4s var(--ease-out);
}

.aa-portfolio-grid.no-transition .aa-pitem {
	transition: none;
}

.aa-pitem img,
.aa-pitem__video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background-color: var(--dark-section);
	transition: transform 0.5s var(--ease-out);
}

.aa-pitem:hover img,
.aa-pitem:hover .aa-pitem__video,
.aa-pitem:focus-within img,
.aa-pitem:focus-within .aa-pitem__video {
	transform: scale(1.05);
}

.aa-pitem__label {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--overlay-dark);
	color: var(--white);
	padding: 0.55rem 0.9rem;
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	z-index: 1;
}

/* Click target for the video lightbox — covers the whole tile, sits
   above the muted preview + label so the entire card is clickable. */
.aa-pitem__trigger {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.aa-pitem__trigger:focus-visible {
	outline: 2px solid var(--color-light-cyan);
	outline-offset: -4px;
}

.aa-pitem__play-icon {
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: rgba(8, 45, 94, 0.55);
	backdrop-filter: blur(2px);
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), background-color 0.2s;
}

.aa-pitem__play-icon::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent var(--white);
}

.aa-pitem:hover .aa-pitem__play-icon,
.aa-pitem:focus-within .aa-pitem__play-icon {
	opacity: 1;
	transform: scale(1);
}

.aa-pitem__trigger:hover .aa-pitem__play-icon {
	background-color: var(--color-deep-blue);
}

/* ================================================================
   PORTFOLIO — VIDEO LIGHTBOX MODAL
   ================================================================ */
.ftvd-video-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem;
}

.ftvd-video-modal[hidden] {
	display: none;
}

.ftvd-video-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 45, 94, 0.85);
	opacity: 0;
	transition: opacity 0.3s var(--ease-out);
}

.ftvd-video-modal.is-open .ftvd-video-modal__overlay {
	opacity: 1;
}

.ftvd-video-modal__dialog {
	position: relative;
	z-index: 1;
	max-width: min(1100px, 92vw);
	max-height: 90vh;
	opacity: 0;
	transform: scale(0.92);
	transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out);
}

.ftvd-video-modal.is-open .ftvd-video-modal__dialog {
	opacity: 1;
	transform: scale(1);
}

.ftvd-video-modal__video-wrap {
	display: inline-flex;
	max-width: 100%;
	background-color: #000;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(4, 20, 43, 0.45);
}

.ftvd-video-modal__video {
	display: block;
	max-width: min(1100px, 92vw);
	max-height: 90vh;
	width: auto;
	height: auto;
}

.ftvd-video-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background-color: rgba(8, 45, 94, 0.7);
	color: var(--white);
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}

.ftvd-video-modal__close:hover {
	background-color: var(--color-deep-blue);
	transform: scale(1.06);
}

.ftvd-video-modal__close:focus-visible {
	outline: 2px solid var(--color-light-cyan);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.ftvd-video-modal {
		padding: 1.25rem;
	}

	.ftvd-video-modal__video,
	.ftvd-video-modal__dialog {
		max-height: 80vh;
	}

	.ftvd-video-modal__close {
		top: 0.5rem;
		right: 0.5rem;
		width: 36px;
		height: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ftvd-video-modal__overlay,
	.ftvd-video-modal__dialog {
		transition: none;
	}
}

/* ================================================================
   STATISTICS — DARK SECTION
   ================================================================ */
.aa-stats {
	background-color: var(--dark-section);
	color: var(--white);
	padding: var(--gap-xl) var(--pad);
}

.aa-stats__inner {
	max-width: var(--max-w);
	margin: 0 auto;
}

.aa-stats__tagline {
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: 3.5rem;
}

.aa-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
}

.aa-stat__title {
	font-family: var(--font-display);
	font-size: clamp(1rem, 2.2vw, 1.65rem);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 1.08;
	margin-bottom: 1.5rem;
}

.aa-stat__divider {
	width: 100%;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.16);
	margin-bottom: 1.5rem;
}

.aa-stat__text {
	font-size: 0.78rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.5);
}

/* ================================================================
   EVENTS — TWO LARGE IMAGES
   ================================================================ */
.aa-events {
	background-color: var(--cream);
	padding: 0 var(--pad) var(--gap-md);
}

.aa-events__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--gap-px);
	margin-bottom: 1.6rem;
}

.aa-events__grid img,
.aa-events__grid .aa-events__item {
	width: 100%;
	height: 520px;
	object-fit: cover;
	display: block;
	overflow: hidden;
}

.aa-events__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease-out);
}

.aa-events__item:hover img {
	transform: scale(1.04);
}

/* ================================================================
   SHOP — PRODUCTS
   ================================================================ */
.aa-shop {
	background-color: var(--cream);
	padding: var(--gap-xl) var(--pad);
}

.aa-products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	max-width: var(--max-w);
	margin: 0 auto 2rem;
}

.aa-product {
	display: flex;
	flex-direction: column;
}

.aa-product__img-wrap {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--radius);
	background-color: rgba(9, 40, 80, 0.06);
	margin-bottom: 1rem;
}

.aa-product__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s var(--ease-out);
}

.aa-product:hover .aa-product__img-wrap img {
	transform: scale(1.05);
}

.aa-product__name {
	font-family: var(--font-display);
	font-size: 0.76rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-color);
	margin-bottom: 0.35rem;
}

.aa-product__price {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--text-color);
	margin-bottom: 0.35rem;
}

.aa-product__stars {
	font-size: 0.78rem;
	color: var(--text-color);
	letter-spacing: 0.05em;
	margin-bottom: 0.9rem;
}

/* Sizing/layout override only — colors, radius, hover come from the
   shared .aa-btn / .aa-btn--primary classes (see cards.php markup). */
.aa-product__btn {
	padding: 0.5rem 1.4rem;
	font-size: 0.6rem;
	letter-spacing: 0.14em;
	align-self: flex-start;
}

/* ================================================================
   FOOTER
   ================================================================ */
.aa-footer {
	background-color: var(--dark-section);
	color: var(--white);
	padding: var(--gap-xl) var(--pad) var(--gap-md);
}

.aa-footer__main {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	max-width: var(--max-w);
	margin: 0 auto;
	padding-bottom: var(--gap-lg);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	align-items: start;
}

/* Big nav links */
.aa-footer__nav-big {
	display: flex;
	flex-direction: column;
}

/*
 * Footer big nav items are rendered as inert <span> elements (see
 * FTVD_Disabled_Nav_Walker / ftvd_footer_nav_fallback() in footer.php) —
 * no href, so no hover/focus affordance is styled here.
 */
.aa-footer__nav-big-text {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 4.8vw, 4.2rem);
	font-weight: 900;
	color: var(--white);
	text-decoration: none;
	text-transform: uppercase;
	line-height: 1.05;
	letter-spacing: -0.025em;
	cursor: default;
}

/* WP nav menu reset inside footer big nav */
.aa-footer__nav-big ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Contact / social columns */
.aa-footer__col-group {
	margin-bottom: 2rem;
}

.aa-footer__col-group:last-child {
	margin-bottom: 0;
}

.aa-footer__col h5 {
	font-family: var(--font-display);
	font-size: 0.63rem;
	font-weight: 900;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--white);
	margin-bottom: 0.85rem;
}

.aa-footer__col a,
.aa-footer__col span,
.aa-footer__col p,
.aa-footer__col address {
	font-size: 0.78rem;
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.48);
	text-decoration: none;
	font-style: normal;
	display: block;
	transition: color 0.2s;
}

/* Only real links (email/phone) get the hover affordance. */
.aa-footer__col a:hover {
	color: var(--white);
}

.aa-footer__col span {
	cursor: default;
}

/* Footer bottom bar */
.aa-footer__bottom {
	max-width: var(--max-w);
	margin: 1.6rem auto 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.aa-footer__bottom span,
.aa-footer__bottom a {
	font-size: 0.58rem;
	color: rgba(255, 255, 255, 0.28);
	text-decoration: none;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: color 0.2s;
}

.aa-footer__bottom a:hover {
	color: rgba(255, 255, 255, 0.55);
}

/* WP nav menu reset in footer bottom */
.aa-footer__bottom nav ul {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Comment list + comment form styles live in comments.css. */
