/*
Theme Name: Twenty Twenty-Four Child - Upash Studio
Template: twentytwentyfour
Theme URI: https://upashstudio.com
Author: Upash Studio
Description: Child theme of Twenty Twenty-Four built for Upash Studio (Chicago wedding photographer & videographer). The studio's wedding photo sits behind every page, content lives on rounded ivory sheets above it, and the homepage opens with the original "Welcome" card. Built-in SEO / AI-search schema (LocalBusiness, FAQPage, BlogPosting, Breadcrumbs) with no extra plugin required.
Version: 1.4.0
Text Domain: twentytwentyfour-child-upash
*/

/* =========================================================================
   0. TOKENS
   ========================================================================= */

:root {
	--upash-ivory: #faf9f7;
	--upash-white: #ffffff;
	--upash-tint: #f3eee8;
	--upash-ink: #1a1a1a;
	--upash-muted: #5f5a55;
	--upash-line: rgba(26, 26, 26, 0.09);
	--upash-accent: #ad4546;
	--upash-accent-bright: #ff3d30;

	--upash-radius-xl: 40px;
	--upash-radius-lg: 24px;
	--upash-radius-md: 16px;

	--upash-gutter: clamp(10px, 2vw, 28px);
	--upash-sheet-max: 1320px;
	--upash-header-h: 184px;
	--upash-section-space: clamp(56px, 7vw, 104px);

	--upash-shadow-card: 0 1px 2px rgba(26, 26, 26, 0.04), 0 12px 30px -14px rgba(26, 26, 26, 0.18);
	--upash-shadow-lift: 0 2px 4px rgba(26, 26, 26, 0.05), 0 26px 50px -18px rgba(26, 26, 26, 0.3);
	--upash-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	--upash-font-heading: var(--wp--preset--font-family--heading, Cardo, Georgia, serif);
	--upash-font-body: var(--wp--preset--font-family--body, Inter, sans-serif);
}

@media (max-width: 781px) {
	:root {
		--upash-radius-xl: 28px;
		--upash-radius-lg: 20px;
		--upash-header-h: 152px;
	}
}

/* =========================================================================
   1. THE PHOTO BACKDROP
   The wedding photo is painted once, as a fixed layer behind every page:
   the header and the homepage "Welcome" card sit directly on it, and the
   content sheets scroll over it. A fixed, screen-sized layer keeps the
   photo framed the same way on every page, instead of stretching it over
   the whole document height the way a plain body background does.
   ========================================================================= */

body {
	background-color: var(--upash-ivory);
	/* Additional CSS on the live site also sets this photo as a document-sized
	   body background, which zooms it on long pages. The layer below replaces
	   it, so switch that one off. */
	background-image: none !important;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	height: 100lvh;
	/* 42% keeps the wedding rings just above the Welcome card on desktop. */
	background: #d8cdc3 url("assets/images/background.webp") center 42% / cover no-repeat;
	z-index: -2;
	pointer-events: none;
}

/* A soft shade along the top edge so the white menu stays readable on the
   bright veil. */
body::after {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 240px;
	background: linear-gradient(180deg, rgba(20, 14, 10, 0.34) 0%, rgba(20, 14, 10, 0) 100%);
	z-index: -1;
	pointer-events: none;
}

/* =========================================================================
   2. HEADER
   ========================================================================= */

.wp-site-blocks > header.wp-block-template-part {
	position: relative;
	z-index: 20;
	margin-top: 0;
}

.upash-header .wp-block-site-logo img {
	width: 144px;
	height: auto;
}

.upash-header .upash-nav,
.upash-header .upash-nav .wp-block-navigation__container {
	gap: clamp(1.1rem, 2vw, 1.9rem);
}

.upash-header .upash-nav {
	font-size: 1.05rem;
	font-weight: 500;
}

.upash-header .upash-nav .wp-block-navigation-item__content {
	color: #ffffff;
	text-decoration: none;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.upash-header .upash-nav .wp-block-navigation-item__content:hover,
.upash-header .upash-nav .wp-block-navigation-item__content:focus-visible {
	color: #ffffff;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.45em;
}

/* Mobile menu button + overlay */
.upash-header .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	padding: 6px;
	color: #ffffff;
	filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.45));
}

.upash-header .wp-block-navigation__responsive-container-open svg {
	width: 32px;
	height: 32px;
}

.upash-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--upash-ivory) !important;
	color: var(--upash-ink) !important;
}

.upash-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.upash-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: center !important;
}

.upash-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.4rem;
}

.upash-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--upash-ink);
	text-shadow: none;
	font-family: var(--upash-font-heading);
	font-size: 2rem;
	font-weight: 400;
}

.upash-header .wp-block-navigation__responsive-container-close {
	color: var(--upash-ink);
}

/* The menu moves focus to its first link when opened; only show that ring
   to keyboard users, not after a tap. */
.upash-header .wp-block-navigation__responsive-container.is-menu-open a:focus:not(:focus-visible) {
	outline: none;
}

/* Six menu items plus the logo don't fit on tablets - keep the menu button
   up to 860px instead of core's 600px so the links never wrap. */
@media (min-width: 600px) and (max-width: 860px) {
	.upash-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}
	.upash-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}

@media (max-width: 781px) {
	.upash-header .wp-block-site-logo img {
		width: 112px;
	}
}

/* =========================================================================
   3. HOMEPAGE HERO - the "Welcome" card
   ========================================================================= */

.wp-site-blocks > .upash-home {
	margin-top: 0;
}

.upash-hero {
	display: grid;
	place-items: center;
	min-height: calc(100vh - var(--upash-header-h));
	min-height: calc(100svh - var(--upash-header-h));
	padding: clamp(4px, 1.5vh, 16px) var(--upash-gutter) clamp(48px, 9vh, 104px);
	margin: 0 !important;
}

.admin-bar .upash-hero {
	min-height: calc(100svh - var(--upash-header-h) - 32px);
}

.upash-welcome-card {
	width: min(100%, 700px);
	margin: 0 !important;
	padding: clamp(28px, 4vw, 46px) clamp(22px, 4.5vw, 56px) clamp(32px, 4vw, 48px);
	background: rgba(255, 255, 255, 0.77);
	-webkit-backdrop-filter: blur(6px) saturate(1.05);
	backdrop-filter: blur(6px) saturate(1.05);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: var(--upash-radius-xl);
	box-shadow: 0 30px 70px -24px rgba(20, 14, 10, 0.4), 0 2px 8px rgba(20, 14, 10, 0.06);
	color: var(--upash-ink);
	text-align: center;
}

.upash-welcome-card .upash-welcome-title {
	margin: 0 0 1.25rem !important;
	font-family: var(--upash-font-body);
	font-size: clamp(2rem, 1.55rem + 1.4vw, 2.5rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #111111;
}

.upash-welcome-card p {
	max-width: 36em;
	margin: 1.5rem auto 0 !important;
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
	line-height: 1.65;
	color: #1f1b18;
}

.upash-welcome-card .upash-welcome-title + p {
	margin-top: 0 !important;
}

.upash-welcome-card .wp-block-buttons {
	margin-top: 2rem !important;
}

.upash-welcome-card .wp-block-button .wp-block-button__link {
	padding: 18px 40px;
	font-size: 17px;
}

/* =========================================================================
   4. THE SHEET
   Every page's content sits on one rounded ivory sheet floating above the
   photo (the homepage's starts right under the Welcome card).
   ========================================================================= */

.upash-sheet {
	position: relative;
	width: min(var(--upash-sheet-max), calc(100% - 2 * var(--upash-gutter)));
	margin-right: auto !important;
	margin-left: auto !important;
	background: var(--upash-ivory);
	border-radius: var(--upash-radius-xl);
	box-shadow: 0 40px 90px -40px rgba(20, 14, 10, 0.5);
	overflow: hidden;
	overflow: clip;
}

.wp-site-blocks > main.upash-sheet {
	margin-top: clamp(8px, 3vh, 40px);
}

.upash-home > .upash-sheet {
	margin-top: 0 !important;
}

/* =========================================================================
   5. SECTIONS
   ========================================================================= */

.upash-section {
	margin: 0 !important;
	padding-top: var(--upash-section-space) !important;
	padding-bottom: var(--upash-section-space) !important;
}

.upash-section--tint {
	background-color: var(--upash-tint);
}

.upash-eyebrow {
	font-family: var(--upash-font-body);
	font-size: 0.78rem !important;
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--upash-accent);
}

.upash-section > .upash-eyebrow,
.upash-page-head > .upash-eyebrow,
.upash-split .upash-eyebrow {
	margin-bottom: 0.9rem !important;
}

.upash-section > h2,
.upash-split h2 {
	margin-top: 0 !important;
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
	line-height: 1.12;
}

.upash-section-intro {
	max-width: 40rem;
	margin-top: 1rem !important;
	font-size: 1.08rem;
	line-height: 1.65;
	color: var(--upash-muted);
	text-wrap: pretty;
}

/* No lonely last words in headings. */
.upash-sheet h1,
.upash-sheet h2,
.upash-sheet h3,
.upash-welcome-card h2 {
	text-wrap: balance;
}

.upash-section > .upash-grid,
.upash-section > .upash-posts,
.upash-section > .upash-faq,
.upash-section > .wp-block-html {
	margin-top: clamp(32px, 4vw, 56px) !important;
}

.upash-section > .upash-badge-row + .upash-grid {
	margin-top: clamp(28px, 3.5vw, 44px) !important;
}

.upash-section-actions {
	margin-top: clamp(32px, 4vw, 48px) !important;
}

/* Card grids */
.upash-sheet .upash-grid {
	gap: clamp(16px, 2vw, 24px);
	align-items: stretch;
}

.upash-sheet .upash-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.upash-sheet .upash-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
	.upash-sheet .upash-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.upash-sheet .upash-grid--3 {
		grid-template-columns: minmax(0, 1fr);
		max-width: 560px;
	}
}

@media (max-width: 600px) {
	.upash-sheet .upash-grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* On phones and tablets the portfolio row becomes a swipeable strip that
   bleeds to the edges of the sheet. */
@media (max-width: 900px) {
	.upash-sheet .upash-section .upash-grid--scroll {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(240px, 72%);
		max-width: none;
		margin-right: calc(-1 * var(--wp--style--root--padding-right)) !important;
		margin-left: calc(-1 * var(--wp--style--root--padding-left)) !important;
		padding: 4px var(--wp--style--root--padding-right) 12px var(--wp--style--root--padding-left);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--wp--style--root--padding-left);
		scrollbar-width: none;
	}
	.upash-sheet .upash-grid--scroll::-webkit-scrollbar {
		display: none;
	}
	.upash-sheet .upash-grid--scroll > * {
		scroll-snap-align: start;
	}
}

/* =========================================================================
   6. CARDS
   ========================================================================= */

/* 6a. Photo cards (Services) */
.upash-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--upash-white);
	border: 1px solid var(--upash-line);
	border-radius: var(--upash-radius-lg);
	box-shadow: var(--upash-shadow-card);
	overflow: hidden;
	transition: transform 0.45s var(--upash-ease), box-shadow 0.45s var(--upash-ease);
}

.upash-card > * {
	margin: 0 !important;
}

.upash-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.upash-card__media img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.9s var(--upash-ease);
}

.upash-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 24px !important;
}

.upash-card__body > * {
	margin: 0 !important;
}

.upash-card h3 {
	font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);
	line-height: 1.2;
}

.upash-card h3 a {
	color: inherit;
	text-decoration: none;
}

/* The heading link stretches over the whole card, so the card is one big
   click target without nesting links. */
.upash-card h3 a::after,
.upash-story h3 a::after,
.upash-post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.upash-card__body p:not(.upash-card__more) {
	margin-top: 0.6rem !important;
	font-size: 0.97rem;
	line-height: 1.6;
	color: var(--upash-muted);
}

.upash-card__more {
	margin-top: auto !important;
	padding-top: 1.1rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--upash-accent);
}

.upash-card__more::after,
.upash-story__more::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.5em;
	transition: transform 0.35s var(--upash-ease);
}

/* 6b. Full-photo portfolio cards */
.upash-story {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 4 / 5;
	background: #2a211c;
	border-radius: var(--upash-radius-lg);
	box-shadow: var(--upash-shadow-card);
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.45s var(--upash-ease), box-shadow 0.45s var(--upash-ease);
}

.upash-story > * {
	margin: 0 !important;
}

.upash-story__media {
	position: absolute !important;
	inset: 0;
	z-index: -1;
}

.upash-story__media img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 1s var(--upash-ease);
}

.upash-story__caption {
	padding: 120px 26px 24px !important;
	background: linear-gradient(180deg, rgba(20, 14, 10, 0) 0%, rgba(20, 14, 10, 0.72) 100%);
	color: #ffffff;
}

.upash-story__caption > * {
	margin: 0 !important;
}

.upash-story h3 {
	font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.9rem);
	line-height: 1.15;
	color: #ffffff;
}

.upash-story h3 a {
	color: #ffffff;
	text-decoration: none;
}

.upash-story__more {
	margin-top: 0.4rem !important;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* 6c. Feature cards (Why Upash) */
.upash-feature {
	height: 100%;
	padding: clamp(24px, 3vw, 34px) !important;
	background: var(--upash-white);
	border: 1px solid var(--upash-line);
	border-radius: var(--upash-radius-lg);
	box-shadow: var(--upash-shadow-card);
}

.upash-feature > * {
	margin: 0 !important;
}

.upash-feature__num {
	font-family: var(--upash-font-heading);
	font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem);
	line-height: 1;
	color: var(--upash-accent);
}

.upash-feature .upash-feature__title {
	margin-top: 1.1rem !important;
	font-family: var(--upash-font-body);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
}

.upash-feature .upash-feature__title + p {
	margin-top: 0.5rem !important;
	font-size: 0.97rem;
	line-height: 1.6;
	color: var(--upash-muted);
}

.upash-feature a {
	color: var(--upash-accent);
}

/* Trust badges ("Fast delivery / Respectful direction / Affordable packages") */
.upash-badge-row {
	gap: 0.75rem;
	margin-top: 1.5rem !important;
}

.upash-badge-row > p.upash-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 !important;
	padding: 0.6rem 1.1rem 0.6rem 0.8rem !important;
	background: var(--upash-white);
	border: 1px solid rgba(173, 69, 70, 0.2);
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--upash-ink);
}

.upash-badge-row > p.upash-badge::before,
.upash-facts li::before,
.upash-page-pricing .upash-page-content .wp-block-column li::before {
	content: "";
	flex-shrink: 0;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--upash-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* 6d. Service area + quick facts */
.upash-split {
	gap: clamp(28px, 5vw, 72px) !important;
}

.upash-split .wp-block-column > p:not(.upash-eyebrow) {
	margin-top: 1.1rem;
	font-size: 1.06rem;
	line-height: 1.7;
	color: var(--upash-muted);
}

.upash-split .wp-block-buttons {
	margin-top: 1.8rem !important;
}

.upash-facts {
	padding: clamp(24px, 3vw, 36px) !important;
	background: var(--upash-white);
	border: 1px solid var(--upash-line);
	border-radius: var(--upash-radius-lg);
	box-shadow: var(--upash-shadow-card);
}

.upash-facts > * {
	margin: 0 !important;
}

.upash-facts h3 {
	font-size: 1.6rem;
}

.upash-facts ul {
	margin-top: 0.9rem !important;
	padding: 0 !important;
	list-style: none;
}

.upash-facts li {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--upash-line);
	line-height: 1.45;
}

.upash-facts li:first-child {
	border-top: 0;
}

/* 6e. Testimonials (pattern kept for when real reviews are available) */
.upash-testimonial {
	height: 100%;
	padding: clamp(24px, 3vw, 32px) !important;
	background: var(--upash-white);
	border: 1px solid var(--upash-line);
	border-radius: var(--upash-radius-lg);
	box-shadow: var(--upash-shadow-card);
}

.upash-testimonial .upash-stars {
	margin: 0 0 0.75rem !important;
	letter-spacing: 0.15em;
	color: var(--upash-accent);
}

.upash-testimonial .upash-testimonial__cite {
	font-size: 0.9rem;
	font-weight: 600;
}

@media (hover: hover) {
	.upash-card:hover,
	.upash-story:hover,
	.upash-post-card:hover {
		transform: translateY(-6px);
		box-shadow: var(--upash-shadow-lift);
	}
	.upash-card:hover .upash-card__media img,
	.upash-story:hover .upash-story__media img,
	.upash-post-card:hover .upash-post-card__image img {
		transform: scale(1.05);
	}
	.upash-card:hover .upash-card__more::after,
	.upash-story:hover .upash-story__more::after {
		transform: translateX(5px);
	}
}

.upash-card:focus-within,
.upash-story:focus-within,
.upash-post-card:focus-within {
	outline: 2px solid var(--upash-accent);
	outline-offset: 3px;
}

/* =========================================================================
   7. BLOG CARDS (homepage teaser, Blog page, archives, search)
   Built to look finished with or without a featured image - the current
   posts don't have one.
   ========================================================================= */

.upash-posts .wp-block-post-template {
	gap: clamp(16px, 2vw, 24px);
	margin: 0;
	padding: 0;
}

@media (min-width: 601px) and (max-width: 900px) {
	.upash-posts .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.upash-posts .wp-block-post-template > li {
	margin: 0;
}

.upash-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 28px 26px 24px !important;
	background: var(--upash-white);
	border: 1px solid var(--upash-line);
	border-radius: var(--upash-radius-lg);
	box-shadow: var(--upash-shadow-card);
	overflow: hidden;
	transition: transform 0.45s var(--upash-ease), box-shadow 0.45s var(--upash-ease);
}

.upash-post-card > * {
	margin: 0 !important;
}

/* A short brand-red rule on cards without a featured image. */
.upash-post-card:not(:has(.upash-post-card__image))::before {
	content: "";
	flex: 0 0 auto;
	width: 36px;
	height: 3px;
	margin-bottom: 18px;
	border-radius: 3px;
	background: var(--upash-accent);
}

.upash-post-card .upash-post-card__image {
	margin: -28px -26px 22px !important;
	overflow: hidden;
}

.upash-post-card__image img {
	border-radius: 0 !important;
	transition: transform 0.9s var(--upash-ease);
}

.upash-post-card .upash-post-card__date {
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--upash-accent);
}

.upash-post-card .upash-post-card__date a {
	color: inherit;
}

.upash-post-card .upash-post-card__title {
	margin-top: 0.75rem !important;
	font-size: clamp(1.35rem, 1.2rem + 0.45vw, 1.6rem);
	line-height: 1.25;
}

.upash-post-card .upash-post-card__title a {
	color: var(--upash-ink);
	text-decoration: none;
}

.upash-post-card .upash-post-card__excerpt {
	display: flex;
	flex: 1;
	flex-direction: column;
	margin-top: 0.8rem !important;
	font-size: 0.97rem;
	line-height: 1.65;
	color: var(--upash-muted);
}

.upash-post-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.upash-post-card .wp-block-post-excerpt__more-text {
	margin: auto 0 0 !important;
	padding-top: 1.2rem;
}

.upash-post-card .wp-block-post-excerpt__more-link {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--upash-accent);
}

.upash-post-card .wp-block-post-excerpt__more-link::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.5em;
}

/* Pagination */
.upash-pagination {
	gap: 0.5rem;
	margin-top: clamp(32px, 4vw, 48px) !important;
	font-size: 0.95rem;
}

.upash-pagination a,
.upash-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding: 0 0.9rem;
	border: 1px solid var(--upash-line);
	border-radius: 999px;
	background: var(--upash-white);
	color: var(--upash-ink);
	text-decoration: none;
}

.upash-pagination .page-numbers.current {
	background: var(--upash-ink);
	border-color: var(--upash-ink);
	color: #ffffff;
}

.upash-pagination a:hover {
	border-color: var(--upash-accent);
	color: var(--upash-accent);
}

/* =========================================================================
   8. FAQ ACCORDION
   Native <details>/<summary>: no JavaScript, keyboard accessible, and the
   answers stay in the DOM when collapsed, so crawlers still read them.
   ========================================================================= */

.upash-faq {
	max-width: 780px;
	margin-right: auto !important;
	margin-left: auto !important;
}

.upash-faq .upash-faq-item {
	margin-bottom: 0.75rem;
	padding: 0;
	background: var(--upash-white);
	border: 1px solid var(--upash-line);
	border-radius: var(--upash-radius-md);
	overflow: hidden;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.upash-faq .upash-faq-item[open] {
	border-color: rgba(173, 69, 70, 0.25);
	box-shadow: var(--upash-shadow-card);
}

.upash-faq .upash-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 1.15rem 1.4rem;
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--upash-ink);
	list-style: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.upash-faq .upash-faq-q::-webkit-details-marker {
	display: none;
}

.upash-faq .upash-faq-q:hover {
	color: var(--upash-accent);
}

.upash-faq .upash-faq-q::after {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin-top: -4px;
	border-right: 2px solid var(--upash-accent);
	border-bottom: 2px solid var(--upash-accent);
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}

.upash-faq .upash-faq-item[open] .upash-faq-q::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.upash-faq .upash-faq-a {
	margin: 0;
	padding: 0 1.4rem 1.3rem;
	line-height: 1.7;
	color: var(--upash-muted);
}

/* =========================================================================
   9. CLOSING CALL TO ACTION
   ========================================================================= */

.upash-section.upash-section--cta {
	padding-top: var(--wp--style--root--padding-left) !important;
	padding-bottom: var(--wp--style--root--padding-left) !important;
}

.upash-cta {
	position: relative;
	padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 64px) !important;
	background: #1f1712 url("assets/images/background.webp") center 72% / cover no-repeat;
	border-radius: calc(var(--upash-radius-xl) - 10px);
	color: #ffffff;
	text-align: center;
	overflow: hidden;
	isolation: isolate;
}

.upash-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(20, 14, 10, 0.6) 0%, rgba(20, 14, 10, 0.78) 100%);
}

.upash-cta .upash-eyebrow {
	margin-bottom: 0.9rem !important;
	color: #f2c9c2;
}

.upash-cta h2 {
	margin-top: 0 !important;
	font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
	line-height: 1.1;
	color: #ffffff;
}

.upash-cta p:not(.upash-eyebrow) {
	max-width: 36rem;
	margin-top: 1rem !important;
	font-size: 1.08rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.86);
}

.upash-cta .wp-block-buttons {
	margin-top: 2rem !important;
}

.upash-cta .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.75);
	color: #ffffff;
}

.upash-cta .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #ffffff !important;
	border-color: #ffffff !important;
	color: var(--upash-ink) !important;
}

/* =========================================================================
   10. INNER PAGES
   ========================================================================= */

.upash-page-head {
	padding-top: clamp(40px, 6vw, 88px) !important;
	padding-bottom: clamp(20px, 3vw, 40px) !important;
	text-align: center;
}

.upash-page-head h1 {
	margin-top: 0 !important;
	font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);
	line-height: 1.08;
}

.upash-page-head .upash-section-intro {
	margin-right: auto !important;
	margin-left: auto !important;
}

.upash-page-image {
	margin-top: clamp(24px, 3vw, 40px) !important;
}

.upash-page-image img {
	border-radius: var(--upash-radius-lg);
}

.upash-page-content {
	padding-bottom: var(--upash-section-space) !important;
}

/* Breadcrumbs */
.upash-breadcrumbs {
	margin-bottom: 1.1rem !important;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	color: var(--upash-muted);
}

.upash-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.upash-breadcrumbs a:hover {
	color: var(--upash-accent);
	text-decoration: underline;
}

.upash-breadcrumbs .upash-breadcrumbs-sep {
	margin: 0 0.5em;
	opacity: 0.6;
}

/* Page content built from Columns (About, Our Work, Pricing, Contact)
   becomes a row of white cards. */
.upash-page-content .wp-block-columns {
	gap: clamp(16px, 2vw, 24px);
}

.upash-page-content .wp-block-column {
	/* Cards in a row share one height; center shorter content (e.g. the
	   About page's text next to a tall photo) instead of leaving a gap. */
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 100%;
	padding: clamp(20px, 2.6vw, 32px);
	background: var(--upash-white);
	border: 1px solid var(--upash-line);
	border-radius: var(--upash-radius-lg);
	box-shadow: var(--upash-shadow-card);
	overflow: hidden;
}

.upash-page-content .wp-block-column .wp-block-column {
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.upash-page-content .wp-block-column .wp-block-image img {
	border-radius: var(--upash-radius-md);
}

.upash-page-content .wp-block-column .wp-block-image a {
	display: block;
	border-radius: var(--upash-radius-md);
	overflow: hidden;
}

.upash-page-content .wp-block-column .wp-block-image a img {
	transition: transform 0.9s var(--upash-ease);
}

.upash-page-content .wp-block-column .wp-block-image a:hover img {
	transform: scale(1.04);
}

.upash-page-content .wp-block-column h2 a {
	color: var(--upash-ink);
	text-decoration: none;
}

.upash-page-content .wp-block-column h2 a:hover {
	color: var(--upash-accent);
}

.upash-page-content .wp-block-gallery .wp-block-image img {
	border-radius: 10px;
}

.upash-page-content > .wp-block-heading {
	margin-top: clamp(40px, 5vw, 64px);
	margin-bottom: 0.4rem;
}

.upash-page-content > .wp-block-heading + .wp-block-columns {
	margin-top: 1.6rem;
}

.upash-page-content .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--upash-line);
	opacity: 1;
}

/* Pricing: each package card lists its features with checks and pins the
   price to the bottom, so the cards line up. */
.upash-page-pricing .upash-page-content .wp-block-column {
	justify-content: flex-start;
}

.upash-page-pricing .upash-page-content .wp-block-column > p:first-child strong {
	font-family: var(--upash-font-heading);
	font-size: 1.55rem;
	font-weight: 400;
	line-height: 1.2;
}

.upash-page-pricing .upash-page-content .wp-block-column ul {
	padding-left: 0 !important;
	list-style: none;
}

.upash-page-pricing .upash-page-content .wp-block-column li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0.55rem 0;
	line-height: 1.5;
}

.upash-page-pricing .upash-page-content .wp-block-column li::before {
	margin-top: 0.18rem;
}

.upash-page-pricing .upash-page-content .wp-block-column > p.has-text-align-center:last-child {
	margin-top: auto;
	padding-top: 1.1rem;
	border-top: 1px solid var(--upash-line);
	font-family: var(--upash-font-heading);
	font-size: 2.3rem;
	line-height: 1.1;
	color: var(--upash-accent);
}

/* Blog posts */
.upash-article .upash-page-head .wp-block-post-terms {
	margin-bottom: 0.9rem !important;
}

.upash-article .upash-page-head .wp-block-post-terms a {
	color: var(--upash-accent);
	text-decoration: none;
}

.upash-article .upash-article__title {
	max-width: 24ch;
	margin-right: auto !important;
	margin-left: auto !important;
	font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
}

.upash-article .upash-article__date {
	margin-top: 1rem !important;
	font-size: 0.9rem;
	color: var(--upash-muted);
}

.upash-article__content {
	padding-bottom: 0 !important;
	font-size: 1.08rem;
	line-height: 1.78;
}

.upash-article__content > h2 {
	margin-top: 2.2em;
	font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
}

.upash-article__content > h3 {
	margin-top: 1.8em;
	font-size: 1.4rem;
}

.upash-article__content li {
	margin: 0.45em 0;
}

.upash-article__content a {
	color: var(--upash-accent);
	text-underline-offset: 0.2em;
}

.upash-article__footer {
	padding-top: clamp(40px, 5vw, 64px) !important;
	padding-bottom: var(--upash-section-space) !important;
}

.upash-article-cta {
	padding: clamp(26px, 4vw, 42px) !important;
	background: var(--upash-tint);
	border-radius: var(--upash-radius-lg);
	text-align: center;
}

.upash-article-cta > * {
	margin-top: 0 !important;
}

.upash-article-cta h2 {
	font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
}

.upash-article-cta p {
	margin: 0.7rem auto 0 !important;
	color: var(--upash-muted);
}

.upash-article-cta .wp-block-buttons {
	justify-content: center;
	margin-top: 1.5rem !important;
}

.upash-post-nav {
	gap: 1rem;
	align-items: stretch !important;
	margin-top: 2rem !important;
}

.upash-post-nav .wp-block-post-navigation-link:empty {
	display: none;
}

.upash-post-nav .wp-block-post-navigation-link {
	flex: 1 1 260px;
	max-width: 100%;
}

.upash-post-nav .post-navigation-link-next {
	text-align: right;
}

.upash-post-nav .wp-block-post-navigation-link a {
	display: block;
	height: 100%;
	padding: 1rem 1.25rem;
	border: 1px solid var(--upash-line);
	border-radius: var(--upash-radius-md);
	background: var(--upash-white);
	color: var(--upash-ink);
	text-decoration: none;
	transition: border-color 0.3s ease;
}

.upash-post-nav .wp-block-post-navigation-link a:hover {
	border-color: var(--upash-accent);
}

.upash-post-nav .post-navigation-link__label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--upash-accent);
}

.upash-post-nav .post-navigation-link__title {
	font-family: var(--upash-font-heading);
	font-size: 1.15rem;
	line-height: 1.3;
}

.upash-back-link {
	margin-top: 2rem !important;
	font-size: 0.95rem;
}

.upash-back-link a {
	color: var(--upash-muted);
	text-decoration: none;
}

.upash-back-link a:hover {
	color: var(--upash-accent);
}

/* 404 + search */
.upash-404 {
	padding-bottom: var(--upash-section-space) !important;
}

.upash-404 .wp-block-buttons {
	justify-content: center;
	margin-top: 2rem !important;
}

.upash-search {
	max-width: 520px;
	margin: 2rem auto 0 !important;
}

.upash-search .wp-block-search__inside-wrapper {
	gap: 0.5rem;
	padding: 0;
	border: 0;
}

.upash-search .wp-block-search__input {
	padding: 0.8rem 1.2rem;
	border: 1px solid var(--upash-line);
	border-radius: 999px;
	background: var(--upash-white);
	font-size: 1rem;
}

.upash-search .wp-block-search__button {
	margin: 0;
	padding: 0.8rem 1.4rem;
	border-radius: 999px;
	background: var(--upash-ink);
	color: #ffffff;
	font-weight: 600;
}

/* =========================================================================
   11. FOOTER
   ========================================================================= */

.wp-site-blocks > footer.wp-block-template-part {
	margin-top: var(--upash-gutter);
	padding-bottom: var(--upash-gutter);
}

.upash-footer {
	width: min(var(--upash-sheet-max), calc(100% - 2 * var(--upash-gutter)));
	margin-right: auto !important;
	margin-left: auto !important;
	padding: clamp(36px, 5vw, 64px) clamp(22px, 5vw, 64px) clamp(20px, 2.5vw, 28px) !important;
	background: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-radius: var(--upash-radius-xl);
	box-shadow: 0 30px 70px -40px rgba(20, 14, 10, 0.5);
	font-size: 0.95rem;
	color: var(--upash-ink);
}

.upash-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 0.8fr 1fr;
	gap: clamp(28px, 4vw, 56px);
}

.upash-footer__grid > * {
	margin: 0 !important;
}

@media (max-width: 960px) {
	.upash-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.upash-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.upash-footer .wp-block-site-logo {
	/* The logo file has a lot of empty space above and below the lettering. */
	margin: -24px 0 -18px !important;
}

.upash-footer .upash-footer__title {
	margin: 0 0 1rem !important;
	font-family: var(--upash-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--upash-accent);
}

.upash-footer p {
	margin: 0 0 0.8rem !important;
	line-height: 1.65;
	color: var(--upash-muted);
}

.upash-footer a {
	color: var(--upash-ink);
	text-decoration: none;
}

.upash-footer a:hover {
	color: var(--upash-accent);
}

.upash-footer .upash-footer__tagline {
	max-width: 28ch;
	margin-top: 0.9rem !important;
}

.upash-footer .upash-footer__links {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.upash-footer .upash-footer__links li {
	margin: 0 0 0.55rem;
}

.upash-footer .upash-footer__social {
	gap: 0.6rem;
	margin-top: 1.2rem !important;
}

/* The store badge images carry ~11px of transparent padding; pull them back
   into line with the column title. */
.upash-footer .upash-footer__badge {
	margin: -6px 0 0 -11px !important;
}

.upash-footer .upash-footer__title + .upash-footer__badge {
	margin-top: -11px !important;
}

.upash-footer .upash-footer__badge img {
	width: 170px;
	height: auto;
}

.upash-footer .upash-footer__bottom {
	gap: 0.4rem 2rem;
	margin-top: clamp(28px, 4vw, 48px) !important;
	padding-top: 20px;
	border-top: 1px solid var(--upash-line);
	font-size: 0.85rem;
}

.upash-footer .upash-footer__bottom p {
	margin: 0 !important;
}

/* =========================================================================
   12. BUTTONS
   The site's original black pill buttons (from its old Additional CSS),
   with a bright-red hover.
   ========================================================================= */

.wp-block-button .wp-block-button__link {
	display: inline-block;
	padding: 15px 32px;
	background-color: var(--upash-ink);
	border: 2px solid var(--upash-ink);
	border-radius: 999px;
	box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45);
	font-family: var(--upash-font-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	color: #ffffff;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible {
	background-color: var(--upash-accent-bright);
	border-color: var(--upash-accent-bright);
	box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
	color: #ffffff;
	transform: translateY(-2px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border-color: currentColor;
	box-shadow: none;
	color: var(--upash-ink);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	background-color: var(--upash-ink) !important;
	border-color: var(--upash-ink) !important;
	color: #ffffff !important;
}

.wp-block-button.is-style-accent .wp-block-button__link {
	background-color: var(--upash-accent);
	border-color: var(--upash-accent);
}

.wp-block-button.is-style-accent .wp-block-button__link:hover,
.wp-block-button.is-style-accent .wp-block-button__link:focus-visible {
	background-color: var(--upash-accent-bright);
	border-color: var(--upash-accent-bright);
}

/* =========================================================================
   13. CONTACT FORM 7
   ========================================================================= */

.wpcf7-form label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form .wpcf7-form-control.wpcf7-select,
.wpcf7-form .wpcf7-form-control.wpcf7-date {
	width: 100%;
	margin-bottom: 15px;
	padding: 12px 14px;
	background-color: var(--upash-white);
	border: 1px solid #d9d4ce;
	border-radius: 12px;
	font-size: 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
	border-color: var(--upash-accent);
	box-shadow: 0 0 0 3px rgba(173, 69, 70, 0.15);
	outline: none;
}

.wpcf7-form input[type="submit"] {
	padding: 15px 36px;
	background-color: var(--upash-accent);
	border: none;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
	background-color: var(--upash-accent-bright);
}

/* =========================================================================
   14. EMBEDS + UTILITIES
   ========================================================================= */

@media only screen and (max-width: 1400px) {
	iframe[src*="youtube.com/embed/"] {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 16 / 9;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
