/*
Theme Name: Clara Ayuso Ramos
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: clara-ayuso-ramos
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;
}

:root {
	--maxw: 1160px;
	--line: rgba(51, 54, 43, 0.22);
	--line-on-dark: rgba(240, 238, 236, 0.4);
}

html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	* {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

em {
	font-style: italic;
}

/* === nav === */
.site-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: rgba(240, 238, 236, 0.86);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease, background 0.3s ease;
	padding-top: 14px;
	padding-bottom: 14px;
}
.site-nav.is-scrolled {
	border-bottom-color: var(--line);
}
.nav-mark {
	margin: 0;
}
.nav-mark img {
	display: block;
	height: 88px;
	width: auto;
}
@media (max-width: 640px) {
	.nav-mark img {
		height: 56px;
	}
}
.nav-links {
	font-size: 0.9rem;
}
.nav-links a {
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}
.nav-cta .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--sage-deep);
	border: 1px solid var(--wp--preset--color--sage-deep);
	padding: 9px 20px;
	font-size: 0.9rem;
}
.nav-cta .wp-element-button:hover {
	background: var(--wp--preset--color--sage-deep);
	color: var(--wp--preset--color--paper);
}
@media (max-width: 760px) {
	.nav-cta {
		display: none;
	}
}

/* === hero === */
.hero {
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: 132px;
	padding-bottom: 40px;
	overflow: hidden;
}
.hero-inner {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 60px;
	padding-top: 20px;
	padding-bottom: 20px;
}
.hero-text {
	flex: 1;
	min-width: 240px;
}
.hero-eyebrow {
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--green-light);
	margin: 0 0 18px;
}
.hero-line {
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	line-height: 1.28;
	max-width: 16ch;
	color: var(--wp--preset--color--paper);
}
.hero-mark {
	width: min(40vw, 380px);
	flex-shrink: 0;
}
.hero-mark-img img {
	width: 100%;
	height: auto;
	opacity: 1;
	transform: none;
	animation: hero-mark-in 1.1s ease both 0.15s;
}
@keyframes hero-mark-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.hero-foot-note {
	font-size: 0.9rem;
	color: var(--wp--preset--color--green-light);
	max-width: 34ch;
	margin: 0;
}
.scroll-cue {
	font-size: 0.8rem;
	color: var(--wp--preset--color--green-light);
}
.scroll-arrow-img img {
	width: 16px;
	height: 22px;
}
@media (max-width: 640px) {
	.hero-inner {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 30px;
	}
	.hero-mark {
		width: 44vw;
	}
}

/* === statement === */
.statement {
	padding-top: 110px;
	padding-bottom: 110px;
}
.statement-grid {
	gap: 60px;
	align-items: flex-start;
}
.statement-h {
	flex: 1.4 1 420px;
	font-size: clamp(1.7rem, 4vw, 2.7rem);
	line-height: 1.3;
	max-width: 15ch;
	margin: 0;
}
.statement-aside {
	flex: 1 1 280px;
}
.constellation-img {
	width: 150px;
	margin: 0 0 22px;
}
.constellation-img img {
	width: 100%;
	height: auto;
}
.statement-p {
	font-size: 0.97rem;
	color: var(--wp--preset--color--sage-dark);
	max-width: 38ch;
	margin: 0;
}
@media (max-width: 760px) {
	.statement {
		padding-top: 70px;
		padding-bottom: 70px;
	}
}

/* === kicker === */
.is-style-kicker {
	align-items: center;
	gap: 14px;
	margin-bottom: 26px;
	position: relative;
}
.kicker-label {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: 0.9rem;
	color: var(--wp--preset--color--sage);
	margin: 0;
	white-space: nowrap;
}
.is-style-kicker::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
	min-width: 40px;
}
.is-style-kicker-dark .kicker-label {
	color: var(--wp--preset--color--green-light);
}
.is-style-kicker-dark::after {
	background: var(--line-on-dark);
}

/* === about === */
.about {
	padding-top: 110px;
	padding-bottom: 110px;
}
.about-inner p {
	font-size: 1rem;
	max-width: 52ch;
	margin: 0 0 16px;
}
.is-style-pull-quote {
	color: var(--wp--preset--color--sage-dark);
	border-left: 2px solid var(--wp--preset--color--taupe);
	padding-left: 18px;
	margin: 28px 0 0;
}
@media (max-width: 760px) {
	.about {
		padding-top: 70px;
		padding-bottom: 70px;
	}
}

/* === why === */
.why {
	padding-top: 110px;
	padding-bottom: 110px;
}
.why-lead {
	font-size: clamp(1.5rem, 3.2vw, 2.1rem);
	line-height: 1.42;
	max-width: 26ch;
	font-weight: 400;
	margin: 0;
}
.why-lead em {
	color: var(--wp--preset--color--green-light);
}
.why-foot {
	margin-top: 40px;
	font-size: 0.95rem;
	color: var(--wp--preset--color--green-light);
	max-width: 44ch;
}
@media (max-width: 760px) {
	.why {
		padding-top: 70px;
		padding-bottom: 70px;
	}
}

/* === lenguajes === */
.langs {
	padding-top: 110px;
	padding-bottom: 110px;
}
.langs-head {
	margin-bottom: 56px;
}
.langs-head p {
	font-size: 0.97rem;
	color: var(--wp--preset--color--sage-dark);
	margin: 14px 0 0;
}
.langs-grid {
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.is-style-lang-cell {
	display: flex;
	flex-direction: column;
	flex: 1 1 32%;
	background: var(--wp--preset--color--cream);
	padding: 34px 20px;
	min-height: 150px;
	justify-content: flex-end;
	align-items: flex-start;
}
.is-style-lang-cell .lang-icon {
	width: 40px;
	height: 40px;
	margin: 0 0 14px;
}
.is-style-lang-cell .lang-icon img {
	width: 100%;
	height: 100%;
}
.is-style-lang-cell p {
	font-size: 0.85rem;
	margin: 0;
}
.langs-note {
	margin-top: 36px;
	color: var(--wp--preset--color--sage);
}
@media (max-width: 760px) {
	.langs {
		padding-top: 70px;
		padding-bottom: 70px;
	}
	.is-style-lang-cell {
		flex-basis: 45%;
	}
}

/* === process === */
.process {
	padding-top: 110px;
	padding-bottom: 110px;
}
.process-grid {
	gap: 60px;
}
.process-copy {
	flex: 1 1 320px;
}
.process-copy h2 {
	max-width: 14ch;
	margin-bottom: 18px;
}
.process-copy p {
	font-size: 0.97rem;
	max-width: 44ch;
	margin: 0;
}
.ladder {
	flex: 1 1 320px;
}
.is-style-ladder-row {
	align-items: center;
	gap: 18px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
}
.ladder > .is-style-ladder-row:last-child {
	border-bottom: 1px solid var(--line);
}
.ladder-label {
	font-size: 0.93rem;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--sage-deep);
	margin: 0;
}
.is-style-ladder-row::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--sage-dark);
	background: var(--wp--preset--color--paper);
	flex-shrink: 0;
}
.is-style-ladder-row.is-active::before {
	background: var(--wp--preset--color--sage-dark);
}
@media (max-width: 840px) {
	.process {
		padding-top: 70px;
		padding-bottom: 70px;
	}
}

/* === practical === */
.practical {
	padding-top: 90px;
	padding-bottom: 90px;
}
.practical-grid {
	gap: 40px;
}
.practical-item {
	flex: 1 1 28%;
}
.practical-item h3 {
	margin-bottom: 10px;
}
.practical-item p {
	font-size: 0.95rem;
	margin: 0;
}
@media (max-width: 760px) {
	.practical {
		padding-top: 60px;
		padding-bottom: 60px;
	}
	.practical-item {
		flex-basis: 100%;
	}
}

/* === contact === */
.contact {
	padding-top: 110px;
	padding-bottom: 110px;
}
.contact-grid {
	gap: 70px;
}
.contact-copy {
	flex: 1 1 360px;
}
.contact-copy h2 {
	max-width: 12ch;
	margin-bottom: 20px;
	color: var(--wp--preset--color--paper);
}
.contact-intro {
	font-size: 0.97rem;
	color: var(--wp--preset--color--green-light);
	max-width: 38ch;
	margin: 0 0 34px;
}
.contact-detail {
	margin-bottom: 22px;
}
.contact-label {
	color: var(--wp--preset--color--green-light);
	margin: 0 0 4px;
}
.contact-value {
	margin: 0;
}
.contact-value a {
	text-decoration: none;
	border-bottom: 1px solid var(--line-on-dark);
}
.contact-value a:hover,
.footer-links a:hover {
	color: var(--wp--preset--color--paper);
}
.contact-form-wrap {
	flex: 1 1 360px;
}
.contact-form .jetpack-field-label {
	font-size: 0.8rem;
	color: var(--wp--preset--color--green-light);
}
.contact-form input,
.contact-form textarea {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--line-on-dark);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--sans);
	padding: 8px 2px;
	border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
	border-bottom-color: var(--wp--preset--color--paper);
	outline: none;
}
.contact-submit .wp-element-button {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--sage-deep);
	margin-top: 10px;
}
.contact-submit .wp-element-button:hover {
	background: var(--wp--preset--color--green-light);
}
.form-note {
	color: var(--wp--preset--color--green-light);
	margin-top: 10px;
}
@media (max-width: 840px) {
	.contact {
		padding-top: 70px;
		padding-bottom: 70px;
	}
}

/* === footer === */
.site-footer {
	padding-top: 50px;
	padding-bottom: 34px;
}
.footer-mark {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 0.95rem;
	margin: 0;
}
.footer-links {
	font-size: 0.85rem;
}
.footer-links a {
	text-decoration: none;
	color: var(--wp--preset--color--green-light);
}
.footer-fine {
	margin-top: 26px;
	opacity: 0.75;
}

/* === responsive === */
