/*
Theme Name: EventArt
Description: Tema para EventArt: catering, montajes temáticos y eventos. Mismo lenguaje visual que Nuria Catedra.
Author: Evan Grup
Author URI: https://evangrup.com/
Version: 0.1.0
Text Domain: eventart
Requires at least: 6.5
Requires PHP: 8.1
*/

/* Visual system shared with Nuria Catedra: ivory paper, ink, terracotta. */
@font-face {
	font-family: "EA Manrope";
	src: url("assets/fonts/manrope-variable.woff2") format("woff2");
	font-display: swap;
	font-style: normal;
	font-weight: 200 800;
}

@font-face {
	font-family: "EA Display";
	src: url("assets/fonts/dm-serif-display-regular.woff2") format("woff2");
	font-display: block;
	font-style: normal;
	font-weight: 400;
}

@font-face {
	font-family: "EA Display";
	src: url("assets/fonts/dm-serif-display-italic.woff2") format("woff2");
	font-display: block;
	font-style: italic;
	font-weight: 400;
}

:root {
	--font-display: "EA Display", "DM Serif Display", Georgia, "Times New Roman", serif;
	--font-body: "EA Manrope", "Manrope", Arial, Helvetica, sans-serif;
	--ea-paper: #f7f5f0;
	--ea-paper-light: #fcfbf8;
	--ea-paper-soft: #ece8df;
	--ea-ink: #181817;
	--ea-muted: #5f5b55;
	--ea-soft-text: #b5b0a6;
	--ea-wine: #a65d45;
	--ea-wine-deep: #653b35;
	--ea-line: #dedad2;
	--ea-content-width: 1240px;
	--ea-wide-width: 1440px;
	--ea-gutter: clamp(1.25rem, 4vw, 4.5rem);
	--ea-section-space: clamp(5rem, 10vw, 10rem);
	--ea-ease: cubic-bezier(.2, .7, .2, 1);
	--site-header-height: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--ea-paper); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ea-paper);
	color: var(--ea-ink);
	font-family: var(--font-body);
	font-size: 1rem;
	font-feature-settings: "kern" 1, "liga" 1;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--ea-wine); color: var(--ea-paper-light); }

h1, h2, h3 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	text-wrap: balance;
}

a { color: inherit; }
main a:focus-visible, main button:focus-visible, main input:focus-visible, main select:focus-visible, main textarea:focus-visible { outline: 2px solid var(--ea-wine); outline-offset: 4px; }

.ea-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Shared editorial primitives. */
.ea-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	padding: 1rem 1.625rem;
	border: 1px solid var(--ea-ink);
	border-radius: 2px;
	font-family: var(--font-body);
	font-size: .81rem;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ea-btn--primary { background: var(--ea-ink); color: var(--ea-paper-light); }
.ea-btn--primary:hover, .ea-btn--primary:focus-visible { background: transparent; color: var(--ea-ink); }
.ea-btn--secondary { background: transparent; color: var(--ea-ink); }
.ea-btn--secondary:hover, .ea-btn--secondary:focus-visible { background: var(--ea-ink); color: var(--ea-paper-light); }
.ea-btn--light { border-color: var(--ea-paper-light); background: var(--ea-paper-light); color: var(--ea-ink); }
.ea-btn--light:hover, .ea-btn--light:focus-visible { background: transparent; color: var(--ea-paper-light); }
.ea-btn--ghost-light { border-color: color-mix(in srgb, var(--ea-paper-light) 55%, transparent); background: transparent; color: var(--ea-paper-light); }
.ea-btn--ghost-light:hover, .ea-btn--ghost-light:focus-visible { border-color: var(--ea-paper-light); background: var(--ea-paper-light); color: var(--ea-ink); }
.ea-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.ea-arrow { display: inline-block; width: 1.1em; height: 1px; background: currentColor; position: relative; }
.ea-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }

/* Brand logos. On dark backgrounds the colours are inverted; the hue turn keeps the red signature red. */
.ea-logo { display: block; width: auto; max-width: 100%; height: auto; }
.ea-logo--on-dark { filter: invert(1) hue-rotate(180deg); }

/* Media frames: the photo is the content, the frame stays quiet. */
.ea-media { position: relative; margin: 0; overflow: hidden; background: var(--ea-paper-soft); }
.ea-media img { width: 100%; height: 100%; object-fit: cover; }

/* Shared site header (same component as Nuria Catedra). */
html.ea-menu-open { overflow: hidden; }
.site-header { position: fixed; z-index: 30; top: 0; right: 0; left: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--site-header-height); border-top: 2px solid var(--ea-ink); padding: 0 clamp(20px, 4vw, 64px); background: transparent; color: var(--ea-ink); font-size: clamp(.78rem, 1vw, .95rem); transition: background-color 180ms ease, color 180ms ease; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--ea-paper-light) 96%, transparent); }
.site-header__nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 3.5rem); white-space: nowrap; }
.site-header__nav--right { justify-content: flex-end; }
.site-header__nav a, .site-header__mobile-menu a { color: inherit; text-decoration: none; }
.site-header__nav a:hover, .site-header__nav a:focus-visible, .site-header__nav a[aria-current="page"], .site-header__mobile-menu a:hover, .site-header__mobile-menu a:focus-visible { text-decoration: underline; text-underline-offset: .25rem; }
.site-header__nav a[aria-current="page"] { text-decoration-color: var(--ea-wine); }
.site-header__brand { display: block; color: inherit; line-height: 0; text-decoration: none; }
.site-header__brand .ea-logo { height: clamp(2.5rem, 3.4vw, 3.4rem); }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 2px solid var(--ea-wine); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 50; top: -5rem; left: 1rem; padding: .65rem 1rem; background: var(--ea-paper-light); color: var(--ea-ink); font-weight: 600; text-decoration: none; transition: top 180ms ease; }
.skip-link:focus { top: 1rem; }
.site-header__toggle, .site-header__mobile-menu { display: none; }
.site-header__menu-item { position: relative; }
.site-header__submenu-trigger { display: inline-flex; align-items: center; gap: .35rem; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.site-header__submenu-trigger:hover .site-header__submenu-label, .site-header__submenu-trigger:focus-visible .site-header__submenu-label { text-decoration: underline; text-underline-offset: .25rem; }
.site-header__submenu-icon { font-size: 1.1em; line-height: 1; transition: transform 200ms var(--ea-ease); }
.site-header__submenu-trigger[aria-expanded="true"] .site-header__submenu-icon, .site-header__mobile-group > button[aria-expanded="true"] .site-header__submenu-icon { transform: rotate(45deg); }
.site-header__mobile-group .site-header__submenu-icon { display: inline-block; }

/* Services panel: the header grows downward and lists every service. */
.site-header__panel { position: absolute; top: 100%; right: 0; left: 0; display: grid; grid-template-rows: 0fr; visibility: hidden; background: color-mix(in srgb, var(--ea-paper-light) 96%, transparent); color: var(--ea-ink); transition: grid-template-rows 320ms var(--ea-ease), visibility 0s linear 320ms; }
.site-header__panel.is-open { grid-template-rows: 1fr; visibility: visible; box-shadow: 0 26px 36px -30px rgba(24, 24, 23, .32); transition-delay: 0s; }
.site-header__panel-clip { min-height: 0; overflow: hidden; }
.site-header__panel-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem clamp(1.5rem, 4vw, 4rem); max-width: 72rem; margin: auto; padding: clamp(1.75rem, 3.6vw, 3rem) clamp(20px, 4vw, 64px) clamp(2rem, 4vw, 3.25rem); opacity: 0; transform: translateY(-.5rem); transition: opacity 180ms ease, transform 260ms var(--ea-ease); }
.site-header__panel.is-open .site-header__panel-nav { opacity: 1; transform: translateY(0); transition-delay: 90ms; }
.site-header__panel-nav a { color: inherit; font-family: var(--font-display); font-size: clamp(1.5rem, 2.3vw, 2.25rem); letter-spacing: -.02em; line-height: 1.15; text-decoration: none; }
.site-header__panel-nav a:hover, .site-header__panel-nav a:focus-visible, .site-header__panel-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ea-wine); text-decoration-thickness: 1px; text-underline-offset: .3rem; }
.site-header__mobile-group, .site-header__mobile-submenu { display: none; }

@media (max-width: 1080px) {
	:root { --site-header-height: 4.25rem; }
	.site-header { grid-template-columns: minmax(0, 1fr) auto; padding: 0 1.25rem; }
	.site-header__nav, .site-header__panel { display: none; }
	.site-header__brand { grid-column: 1; justify-self: start; }
	.site-header__brand .ea-logo { height: 2.5rem; }
	.site-header__toggle { position: relative; z-index: 40; grid-column: 2; display: grid; justify-self: end; width: 2.75rem; height: 2.75rem; place-content: center; gap: .38rem; border: 0; background: transparent; color: inherit; cursor: pointer; }
	.site-header__toggle span { display: block; width: 1.5rem; height: 1px; background: currentColor; transition: transform 180ms ease; }
	.site-header__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
	.site-header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
	.site-header__mobile-menu { position: fixed; z-index: 20; inset: 0; display: flex; flex-direction: column; justify-content: safe center; align-items: flex-start; gap: clamp(.5rem, 1.5vh, 1.25rem); width: 100vw; height: 100dvh; padding: 5.5rem 1.5rem 2rem; overflow: auto; background: var(--ea-paper-light); color: var(--ea-ink); opacity: 0; pointer-events: none; transform: translateX(100%); transition: transform 260ms cubic-bezier(.76, 0, .24, 1), opacity 160ms ease; }
	.site-header__mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: translateX(0); }
	.site-header__mobile-menu > a, .site-header__mobile-group > button { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3.25rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; opacity: 0; transform: translateY(1rem); transition: opacity 160ms ease, transform 220ms ease; }
	.site-header__mobile-menu.is-open > a, .site-header__mobile-menu.is-open .site-header__mobile-group > button { opacity: 1; transform: translateY(0); }
	.site-header__mobile-group { display: block; width: 100%; }
	.site-header__mobile-group > button { display: inline-flex; align-items: center; gap: .5rem; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
	.site-header__mobile-group > button .site-header__submenu-icon { font-family: var(--font-body); font-size: .6em; }
	.site-header__mobile-submenu { display: grid; max-height: 0; gap: .45rem; overflow: hidden; padding-left: 1rem; opacity: 0; transition: max-height 220ms ease, opacity 180ms ease, margin 180ms ease; }
	.site-header__mobile-submenu.is-open { max-height: 26rem; margin-top: .8rem; opacity: 1; }
	.site-header__mobile-submenu a { color: var(--ea-muted); font-family: var(--font-body); font-size: clamp(1.05rem, 4.5vw, 1.35rem); line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) { .site-header__toggle span, .site-header__mobile-menu, .site-header__mobile-menu > a, .site-header__mobile-group > button, .site-header__mobile-submenu, .site-header__panel, .site-header__panel-nav, .site-header__submenu-icon { transition: none; } }

/* Shared site footer: dark ink closing with the wordmark. */
.site-foot { background: var(--ea-ink); color: var(--ea-paper); font-family: var(--font-body); }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover, .site-foot a:focus-visible { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.site-foot a:focus-visible { outline: 2px solid var(--ea-paper); outline-offset: 4px; }
.site-foot ::selection { background: var(--ea-paper); color: var(--ea-ink); }
.site-foot__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2.5vw, 2.75rem); max-width: var(--ea-content-width); margin: auto; padding: clamp(4rem, 8vw, 7rem) var(--ea-gutter) clamp(2rem, 4vw, 3rem); }
.site-foot__brand { grid-column: 1 / span 4; align-self: start; }
.site-foot__wordmark { display: inline-block; line-height: 0; }
.site-foot__wordmark .ea-logo { width: clamp(10rem, 16vw, 13rem); }
.site-foot__space-logo { display: inline-block; margin-bottom: .35rem; line-height: 0; }
.site-foot__space-logo .ea-logo { width: 9rem; }
.site-foot .site-foot__tagline { max-width: 22rem; margin: 1rem 0 0; color: var(--ea-soft-text); font-size: .9375rem; line-height: 1.55; }
.site-foot__col { grid-column: span 2; }
.site-foot__col:nth-of-type(1) { grid-column: 6 / span 3; }
.site-foot__col:nth-of-type(3) { grid-column: 11 / span 2; }
.site-foot__col h2 { margin: 0 0 1rem; color: var(--ea-soft-text); font-family: var(--font-body); font-size: .8125rem; font-weight: 500; letter-spacing: .01em; line-height: 1.4; }
.site-foot__col ul + h2 { margin-top: 2rem; }
.site-foot__col ul { display: grid; gap: .55rem; margin: 0; padding: 0; font-size: .9375rem; line-height: 1.45; list-style: none; }
.site-foot__col address { font-style: normal; }
.site-foot__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; gap: 1rem 2rem; margin: clamp(3rem, 7vw, 6rem) 0 0; color: var(--ea-soft-text); font-size: .8125rem; }
.site-foot__copy, .site-foot__credit { margin: 0; }
.site-foot__credit a { display: inline-flex; align-items: center; gap: .625rem; }
.site-foot__credit img { display: block; width: auto; height: 1.25rem; }
@media (max-width: 900px) {
	.site-foot__brand { grid-column: 1 / -1; }
	.site-foot__col, .site-foot__col:nth-of-type(1), .site-foot__col:nth-of-type(3) { grid-column: span 6; }
	.site-foot__col:nth-of-type(1) { grid-column: 1 / -1; }
}

/* Generic pages (legal texts, anything created from the editor). */
.ea-page { padding-top: var(--site-header-height); }
.ea-page__head { max-width: var(--ea-content-width); margin: auto; padding: clamp(4rem, 9vw, 8rem) var(--ea-gutter) clamp(2.5rem, 5vw, 4rem); }
.ea-page__head h1 { max-width: 14ch; font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.03em; line-height: .95; }
.ea-page__body { max-width: 760px; margin: 0 auto; padding: 0 var(--ea-gutter) var(--ea-section-space); }
.ea-page__body h2 { margin: 2.5em 0 .75em; font-size: clamp(1.75rem, 2.6vw, 2.25rem); letter-spacing: -.02em; line-height: 1.1; }
.ea-page__body h3 { margin: 2em 0 .6em; font-size: 1.4rem; line-height: 1.2; }
.ea-page__body p, .ea-page__body li { color: var(--ea-ink); font-size: 1.0625rem; line-height: 1.72; text-wrap: pretty; }
.ea-page__body a { text-decoration-color: var(--ea-wine); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.ea-page__body img { margin-block: 2rem; }
