/*
Theme Name: Arroyo Vargas
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arroyo-vargas
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === header === */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-block: 10px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.site-header .wp-block-site-logo {
	margin: 0;
	line-height: 0;
}
.site-header .wp-block-site-logo img {
	max-width: 136px;
	height: auto;
}
.site-nav {
	gap: 1.75rem;
	flex-wrap: wrap;
}
.site-nav a {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: color 0.18s ease-out;
}
.site-nav a:hover {
	color: var(--wp--preset--color--primary);
}

/* === hero === */
.hero {
	padding: 0;
	overflow: hidden;
}
.hero-eyebrow {
	color: var(--wp--preset--color--accent);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.hero h1 {
	color: var(--wp--preset--color--primary);
	max-width: 17ch;
	margin-top: 1.25rem;
}
.hero-intro {
	color: var(--wp--preset--color--secondary);
	max-width: 48ch;
	font-size: 1rem;
	line-height: 1.7;
}
.hero .wp-block-buttons {
	margin-top: 2rem;
}
.hero-cols {
	align-items: stretch;
	gap: clamp(1.5rem, 4vw, 4rem);
}
.hero-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding-top: clamp(4rem, 10vw, 7rem);
	padding-bottom: clamp(6rem, 12vw, 9rem);
	padding-left: clamp(1.25rem, 4vw, 5rem);
}
.hero-media {
	display: flex;
	align-items: stretch;
	justify-content: center;
}
.hero-wapuu {
	margin: 0;
	width: 100%;
	overflow: hidden;
}
.hero-wapuu img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	animation: wapuu-float 7s ease-in-out infinite;
}
@keyframes wapuu-float {
	0%,
	100% {
		transform: translateY(-12px) rotate(-1.2deg);
	}
	50% {
		transform: translateY(12px) rotate(1.2deg);
	}
}

/* === reels (cinta en diagonal) === */
.reel {
	overflow: hidden;
	padding: 0;
}
.reel-strip {
	width: 118vw;
	margin-left: -9vw;
	gap: 1.25rem;
	transform: rotate(-3.5deg);
}
.reel-strip .wp-block-image {
	margin: 0;
	flex: 0 0 auto;
	width: clamp(250px, 27vw, 360px);
	height: clamp(160px, 19vw, 240px);
	overflow: hidden;
	border-radius: 6px;
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: 0 1px 3px rgb(16 24 40 / 0.06);
}
.reel-strip .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.reel.alt .reel-strip {
	transform: rotate(3.5deg);
}

/* === services === */
.services {
	padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.services-label {
	color: var(--wp--preset--color--accent);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.services h2 {
	color: var(--wp--preset--color--primary);
	margin-top: 0.75rem;
}
.services-note {
	color: var(--wp--preset--color--secondary);
	max-width: 56ch;
}
.services .cards-grid {
	margin-top: 2.5rem;
}

/* === cards === */
.is-style-card {
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	padding: 1.75rem;
	box-shadow: 0 1px 3px rgb(16 24 40 / 0.06);
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}
.is-style-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgb(16 24 40 / 0.1);
}
.is-style-card.is-featured {
	border-top: 3px solid var(--wp--preset--color--accent);
}
.is-style-card .svc-num {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	letter-spacing: 0.08em;
}
.is-style-card h3 {
	color: var(--wp--preset--color--primary);
	font-size: 1.125rem;
	margin: 0.6rem 0 0.4rem;
}
.is-style-card p {
	color: var(--wp--preset--color--secondary);
	font-size: 1rem;
	line-height: 1.55;
	margin: 0;
}
.is-style-card .wp-block-buttons {
	margin-top: 1.25rem;
}
.is-style-card .card-cta .wp-block-button__link {
	padding: 10px 18px;
	line-height: 1;
}

/* === activities === */
.activities {
	padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.activities-label {
	color: var(--wp--preset--color--accent);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.activities h2 {
	color: var(--wp--preset--color--primary);
	margin-top: 0.75rem;
}
.activities .cards-grid {
	margin-top: 2.5rem;
}
.act-card {
	overflow: hidden;
	padding: 0;
}
.act-card .wp-block-image {
	margin: 0;
}
.act-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}
.act-card .act-body {
	padding: 1.5rem;
}
.act-card .act-body h3 {
	margin-top: 0;
}

/* === cta === */
.cta {
	padding: clamp(4.5rem, 9vw, 7rem) 0;
	background: var(--wp--preset--color--primary);
	color: #ffffff;
}
.cta h2 {
	color: #ffffff;
}
.cta p {
	color: rgba(255, 255, 255, 0.85);
	max-width: 48ch;
}
.cta .wp-block-button .wp-element-button {
	background: #ffffff;
	color: var(--wp--preset--color--primary);
}
.cta .wp-block-button .wp-element-button:hover {
	background: #f3f5f8;
}

/* === footer === */
.site-footer {
	padding-block: 3rem;
	border-top: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--secondary);
}
.site-footer .wp-block-site-logo {
	margin: 0;
	line-height: 0;
}
.site-footer .wp-block-site-logo img {
	max-width: 168px;
	height: auto;
}
.site-footer .footer-legal {
	margin-top: 1.5rem;
	color: var(--wp--preset--color--secondary);
}
.footer-links {
	gap: 1.5rem;
	margin-top: 2rem;
}
.footer-email a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.18s ease-out;
}
.footer-email a:hover {
	color: var(--wp--preset--color--accent);
}
.footer-social {
	gap: 1.15rem;
}
.footer-social .wp-social-link {
	color: var(--wp--preset--color--secondary);
	background: transparent;
	transition: color 0.18s ease-out;
}
.footer-social .wp-social-link:hover,
.footer-social .wp-social-link:focus {
	color: var(--wp--preset--color--accent);
	transform: none;
}
.footer-social .wp-social-link svg {
	fill: currentColor;
}
.footer-rule {
	margin-top: 2rem;
	border-color: var(--wp--preset--color--border);
}

/* === polish === */
.wp-block-button__link {
	text-decoration-line: none !important;
}
.cta {
	text-align: center;
}
.cta .wp-block-buttons {
	justify-content: center;
}

/* === responsive === */
@media (max-width: 781px) {
	.reel-strip {
		transform: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		width: calc(100vw - 2rem);
		margin-left: -1rem;
	}
	.reel-strip .wp-block-image {
		scroll-snap-align: center;
	}
	.hero h1 {
		max-width: 12ch;
	}
	.site-header {
		padding-block: 8px;
	}
	.site-header .wp-block-site-logo img {
		max-width: 112px;
	}
	.site-nav {
		flex-basis: 100%;
		justify-content: center;
		gap: 1.25rem;
		margin-top: 0.25rem;
	}
	.footer-top,
	.footer-links {
		flex-direction: column;
		align-items: center;
		gap: 1.25rem;
	}
	.footer-top .footer-tagline {
		text-align: center;
	}
	.footer-email,
	.footer-legal {
		text-align: center;
	}
	.footer-rule {
		margin-top: 1.75rem;
	}
	.hero {
		padding: clamp(3rem, 8vw, 4rem) 1.25rem;
	}
	.hero-text {
		display: block;
		padding-top: 0;
		padding-bottom: 0;
		padding-left: 0;
	}
	.hero-media {
		display: block;
	}
	.hero-wapuu {
		height: auto;
	}
	.hero-wapuu img {
		width: auto;
		max-width: 260px;
		height: auto;
		object-fit: fill;
		margin-inline: auto;
	}
	.wp-block-group.cards-grid {
		grid-template-columns: 1fr;
	}
}

/* === reduced motion === */
@media (prefers-reduced-motion: reduce) {
	.reel-strip,
	.reel.alt .reel-strip {
		transform: none;
	}
	.is-style-card {
		transition: none;
	}
	.hero-wapuu img {
		animation: none;
	}
}

