/*
Theme Name: All Things Eventos
Theme URI: https://allthings-eventos.com/
Author: All Things Eventos
Description: Custom block theme for All Things Eventos and The Party Line. Every section is made of editable WordPress blocks, so text, prices, photos, videos and FAQs can be changed in the editor.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: all-things-eventos
*/

:root {
	--tyrian: #66023C;
	--bamboo: #C6C954;
	--citron: #CAD183;
	--cypress: #667436;
	--ylang: #FFEC8E;
	--blush: #D9828D;
	--slab: 'Alfa Slab One', Georgia, serif;
	--mono: 'DM Mono', ui-monospace, monospace;
	--serif: 'EB Garamond', Georgia, serif;
	--gut: 56px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
[id] { scroll-margin-top: 90px; }
.wp-site-blocks { max-width: 1440px; margin: 0 auto; }
.wp-site-blocks > * { margin-block: 0 !important; }
.ate-main > .wp-block-post-content > *,
.ate-main > .wp-block-post-content { margin-block: 0; }
img, video { max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4, .wp-block-heading { margin: 0; font-family: var(--slab); font-weight: 400; text-transform: uppercase; }
h1 { font-size: 66px; line-height: .92; }
h2 { font-size: 54px; line-height: .95; }
h3 { font-size: 34px; line-height: .98; }
h4 { font-size: 24px; line-height: 1.1; }
p { margin: 0; }

/* Underlined text links inside paragraphs and lists */
.ate-main p a, .ate-main li a, .ate-footer p a { text-decoration: underline; text-underline-offset: 3px; }
.ate-main .ate-band p a { text-underline-offset: 3px; }

/* ---------- Paragraph styles ---------- */
.mono, .is-style-label, .is-style-note {
	font-family: var(--mono);
	letter-spacing: .2em;
	text-transform: uppercase;
	font-size: 11px;
	line-height: 1.6;
}
.is-style-label { opacity: .68; }
.is-style-note { font-size: 10px; line-height: 1.7; opacity: .78; }
.is-style-lede, .ate-lede { font-size: 21px; line-height: 1.55; max-width: 44ch; }

/* ---------- Buttons ---------- */
.wp-block-buttons { gap: 14px; }
.wp-block-button__link { display: inline-block; text-decoration: none !important; transition: transform .15s ease, opacity .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); opacity: .92; }
.wp-block-button.is-style-light .wp-block-button__link { background: var(--ylang); color: var(--tyrian); }
.wp-block-button.is-style-lime .wp-block-button__link { background: var(--bamboo); color: var(--tyrian); padding: 20px 32px; white-space: nowrap; }
.wp-block-button.is-style-full { width: 100%; }
.wp-block-button.is-style-full .wp-block-button__link { width: 100%; text-align: center; }

/* ---------- Section styles (Group block) ---------- */
.is-style-section, .is-style-plum, .is-style-olive { padding: 84px var(--gut); }
.is-style-section { border-bottom: 2px solid var(--tyrian); }
.is-style-plum { background: var(--tyrian); color: var(--ylang); }
.is-style-olive { background: var(--cypress); color: var(--ylang); }
.is-style-blush { background: var(--blush); color: var(--tyrian); padding: 18px var(--gut); border-bottom: 2px solid var(--tyrian); }
.is-style-card { background: var(--ylang); color: var(--tyrian); border-radius: 6px; padding: 34px; }
.is-style-plum .is-style-card, .is-style-olive .is-style-card { color: var(--tyrian); }

/* Children of grid and flex layouts should not get WordPress flow spacing */
.ate-hero > *, .ate-hero__copy > *, .ate-hero__media > *, .ate-split > *, .ate-pkg > *, .ate-about > *, .ate-book > *,
.ate-grid-2 > *, .ate-grid-3 > *, .ate-styled > *, .ate-faq > *, .ate-fcta > *, .ate-footer > *, .ate-nav > *,
.ate-band > *, .is-style-card > * { margin-block: 0; min-width: 0; }

/* ---------- Header ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 30; }
.admin-bar header.wp-block-template-part { top: 32px; }
.ate-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--gut); border-bottom: 1px solid rgba(102,2,60,.25); background: var(--bamboo); }
.ate-nav__right { display: flex; align-items: center; gap: 34px; }
.ate-nav .wp-block-buttons, .ate-nav .wp-block-navigation, .ate-nav p { margin: 0 !important; }
.ate-nav .wp-block-navigation { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; gap: 34px; }
.ate-nav .wp-block-navigation__container { gap: 34px; }
.ate-nav .wp-block-navigation a { text-decoration: none; }
.ate-nav .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ate-lock a { text-decoration: none !important; display: inline-block; }
.ate-lock .k { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .32em; line-height: 1.5; }
.ate-lock .w { display: block; font-family: var(--slab); font-size: 26px; text-transform: uppercase; line-height: .95; }
.ate-lock { line-height: 1; }

/* ---------- Hero ---------- */
.ate-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); border-bottom: 2px solid var(--tyrian); }
.ate-hero--single { grid-template-columns: 1fr; }
.ate-hero__copy { padding: 84px var(--gut) 76px; display: flex; flex-direction: column; gap: 30px; }
.ate-hero--single .ate-hero__copy { max-width: 900px; }
.ate-hero__copy > p:not(.is-style-label):not(.is-style-lede):not(.mono):not(.is-style-note) { max-width: 56ch; font-size: 18px; }
.ate-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ate-cta-row > * { margin: 0 !important; }
.ate-hero__media { display: flex; align-items: center; justify-content: center; padding: 56px 48px; border-left: 2px solid var(--tyrian); }
.ate-hero__media .wp-block-video { width: 100%; max-width: 340px; margin: 0; }
.ate-hero__media video { width: 100%; aspect-ratio: 9/14; height: auto; object-fit: cover; object-position: center 40%; border-radius: 6px; display: block; background: var(--tyrian); }
.ate-hero__media--full { padding: 0; overflow: hidden; position: relative; min-height: 620px; }
.ate-hero__media--full .wp-block-video { max-width: none; height: 100%; position: absolute; inset: 0; }
.ate-hero__media--full video { aspect-ratio: auto; height: 100%; border-radius: 0; }

/* ---------- Founding band ---------- */
.ate-band { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.ate-band p { font-size: 19px; line-height: 1.45; }
.ate-band p.mono, .ate-band p.is-style-label { font-size: 11px; opacity: 1; }

/* ---------- Two column splits ---------- */
.ate-split { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 56px; align-items: center; }
.ate-split p:not([class*="is-style"]) { max-width: 46ch; }
.ate-split.ate-even { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.ate-portrait { position: relative; max-width: 340px; width: 100%; justify-self: center; margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 9/15; background: var(--tyrian); }
.ate-portrait video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Package ---------- */
.ate-pkg { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: center; }
.ate-setup { margin: 0; }
.ate-setup video { width: 100%; aspect-ratio: 9/15; object-fit: cover; object-position: center 40%; border-radius: 6px; display: block; background: var(--tyrian); }
.ate-setup figcaption { font-family: var(--mono); letter-spacing: .2em; font-size: 9px; margin-top: 10px; opacity: .7; text-align: left; }
.ate-numbered { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: ate; }
.ate-numbered li { counter-increment: ate; display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(255,236,142,.25); font-size: 19px; line-height: 1.45; }
.ate-numbered li::before { content: counter(ate, decimal-leading-zero); font-family: var(--mono); font-size: 10px; letter-spacing: .2em; padding-top: .5em; flex: none; }
.ate-price { padding: 44px 40px; }
.ate-price > * + * { margin-top: 0; }
.ate-price .ate-big { font-family: var(--slab); font-size: 88px; line-height: 1; margin: 18px 0 8px; }
.ate-price .ate-big--words { font-size: 52px; margin: 18px 0 14px; text-transform: uppercase; }
.ate-addons { margin: 30px 0 !important; padding: 22px 0; border-top: 1px solid rgba(102,2,60,.2); border-bottom: 1px solid rgba(102,2,60,.2); }
.ate-addons > * { margin: 0 !important; }
.ate-addons .is-style-label { margin-bottom: 14px !important; font-size: 10px; }
.ate-row { display: flex; justify-content: space-between; gap: 12px; font-size: 20px; padding: 6px 0; }
.ate-row strong { font-family: var(--slab); font-weight: 400; }
.ate-price .wp-block-buttons { margin-top: 0; }
.ate-price .has-text-align-center:not(.is-style-note) { font-size: 16px; line-height: 1.5; margin-top: 18px; }
.ate-price .is-style-note { margin-top: 14px; }
.ate-price p:not(.ate-big):not(.is-style-label):not(.is-style-note):not(.ate-row):not(.has-text-align-center) { font-size: 18px; line-height: 1.5; margin: 0 0 26px; }

/* ---------- About ---------- */
.ate-about { display: grid; grid-template-columns: minmax(0,360px) minmax(0,1fr); gap: 56px; align-items: center; }
.ate-about > .wp-block-image { margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 4/5; max-width: 360px; }
.ate-about > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.ate-styled-label { margin-top: 64px !important; }
.ate-styled { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; }
.ate-styled .wp-block-image { margin: 0; }
.ate-styled img { width: 100%; height: 340px; object-fit: cover; border-radius: 6px; display: block; }

/* ---------- Enquiry ---------- */
.ate-book { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 56px; padding-top: 72px; padding-bottom: 72px; }
.ate-book p { max-width: 38ch; }
.ate-steps { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,236,142,.3); }
.ate-steps p { font-size: 17px; line-height: 1.6; max-width: none; }
.ate-steps .is-style-label { font-size: 10px; }
.ate-book .ate-small { font-size: 17px; margin-top: 26px; }
.ate-formcard { padding: 32px; }
.ate-formcard p { max-width: none; }
.ate-formhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px 20px; }
.ate-formhead > * { margin: 0 !important; }
.ate-formhead .ate-formtitle { font-family: var(--slab); font-size: 22px; text-transform: uppercase; }
.ate-formbox { background: #fff; border-radius: 4px; overflow: hidden; }
.ate-formbox--padded { padding: 32px 24px; text-align: center; }
.ate-formbox--padded p { font-size: 19px; margin-bottom: 22px; }
.ate-formbox--padded .wp-block-buttons { justify-content: center; }
.ate-formcard .has-text-align-center.is-style-note { padding: 18px 6px 0; }

/* ---------- Cards ---------- */
.ate-grid-3, .ate-grid-2 { display: grid; gap: 24px; margin-top: 44px !important; }
.ate-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ate-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ate-grid-2.ate-flush, .ate-grid-3.ate-flush { margin-top: 0 !important; }
.ate-grid-3 > .is-style-card, .ate-grid-2 > .is-style-card { display: flex; flex-direction: column; gap: 16px; }
.ate-grid-3 > .is-style-card, .ate-grid-2:not(.ate-flush) > .is-style-card { min-height: 260px; }
.is-style-card p:not([class*="is-style-"]):not(.ate-big):not(.ate-row):not(.ate-formtitle):not(.ate-source) { font-size: 18px; line-height: 1.5; }
.is-style-card p.ate-source { font-size: 14px; opacity: .8; }
.is-style-card a { overflow-wrap: anywhere; }
.ate-intro { max-width: 48ch; font-size: 20px; line-height: 1.5; }

/* ---------- FAQ ---------- */
.ate-faq { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 56px; border-bottom: 0 !important; }
.ate-faq__intro > * + * { margin-top: 20px; }
.ate-faq__list > * { margin: 0 !important; }
.wp-block-details { border-top: 1px solid rgba(102,2,60,.3); padding: 22px 0; }
.wp-block-details summary { font-family: var(--slab); text-transform: uppercase; font-size: 24px; line-height: 1.1; list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: '+'; font-family: var(--mono); font-size: 16px; flex: none; }
.wp-block-details[open] summary::after { content: '\2013'; }
.wp-block-details > *:not(summary) { font-size: 19px; line-height: 1.55; max-width: 60ch; margin-top: 14px; }

/* ---------- Footer CTA and footer ---------- */
.ate-fcta { background: var(--tyrian); color: var(--ylang); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding: 76px var(--gut) 44px; }
.ate-fcta h2 { font-size: 72px; line-height: .9; max-width: 20ch; }
.ate-fcta .wp-block-buttons { flex: none; }
footer.wp-block-template-part { background: var(--tyrian); color: var(--ylang); }
.ate-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin: 0 var(--gut); padding: 34px 0 44px; border-top: 1px solid rgba(255,236,142,.3); }
.ate-footer .ate-lock .w { font-size: 30px; }
.ate-footer__links { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; line-height: 2; text-align: right; opacity: .85; text-transform: uppercase; }
.ate-footer__links a { color: var(--ylang); }

/* ---------- Prose (privacy, blog posts) ---------- */
.ate-prose { max-width: 780px; margin: 0 auto; padding: 64px 24px 80px; }
.ate-prose h1 { font-size: 52px; line-height: .95; margin: 14px 0 24px; }
.ate-prose h2 { font-size: 24px; line-height: 1.1; margin-top: 44px; }
.ate-prose ul { padding-left: 22px; }
.ate-prose li { font-size: 19px; line-height: 1.6; }
.ate-prose .is-style-card { padding: 24px 26px; margin-top: 22px; }
.ate-post-head { padding: 72px var(--gut) 40px; border-bottom: 2px solid var(--tyrian); }
.ate-post-head h1 { max-width: 20ch; }
.ate-post-body { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; }
.ate-post-body h2 { font-size: 34px; margin-top: 40px; }
.ate-post-body img { border-radius: 6px; }
.ate-posts { padding: 72px var(--gut); }
.ate-posts .wp-block-post { border-top: 1px solid rgba(102,2,60,.3); padding: 28px 0; }
.ate-posts .wp-block-post-title { font-size: 34px; }
.ate-404 { padding: 120px var(--gut); }

/* ---------- Sticky CTA and cookie banner (added by the theme) ---------- */
.ate-sticky { display: none; }
#ate-cookie { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: var(--tyrian); color: var(--ylang); border-radius: 10px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
#ate-cookie p { margin: 0 0 14px; font-size: 17px; line-height: 1.5; }
#ate-cookie a { color: var(--ylang); text-decoration: underline; }
#ate-cookie .ate-cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
#ate-cookie button { font-family: var(--mono); letter-spacing: .2em; font-size: 11px; border-radius: 999px; padding: 12px 22px; cursor: pointer; }
#ate-cookie .ate-accept { background: var(--ylang); color: var(--tyrian); border: 0; }
#ate-cookie .ate-decline { background: transparent; color: var(--ylang); border: 1px solid rgba(255,236,142,.6); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.ate-pkg { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
	.ate-pkg > :last-child { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
	:root { --gut: 20px; }
	h1 { font-size: 42px; line-height: .98; }
	h2 { font-size: 35px; }
	h3 { font-size: 28px; }
	.is-style-lede, .ate-lede { font-size: 18px; }
	.is-style-section, .is-style-plum, .is-style-olive, .ate-book { padding: 44px var(--gut); }
	.is-style-blush { padding: 16px var(--gut); }
	.ate-band p { font-size: 17px; }

	.ate-nav { padding: 14px var(--gut); }
	.ate-nav .wp-block-navigation { display: none; }
	.ate-nav .wp-block-button__link { padding: 11px 16px; font-size: 10px; letter-spacing: .14em; }
	.ate-lock .w { font-size: 22px; }
	.ate-lock .k { font-size: 8px; }

	.ate-hero, .ate-split, .ate-split.ate-even, .ate-pkg, .ate-about, .ate-book, .ate-faq, .ate-grid-2, .ate-grid-3 { grid-template-columns: 1fr; }
	.ate-pkg { gap: 32px; }
	.ate-split, .ate-about, .ate-faq { gap: 28px; }
	.ate-hero__copy { padding: 40px var(--gut) 36px; gap: 20px; }
	.ate-hero__media { border-left: 0; border-top: 2px solid var(--tyrian); padding: 28px var(--gut) 36px; }
	.ate-hero__media .wp-block-video { max-width: 280px; }
	.ate-hero__media--full { padding: 0; min-height: 420px; }
	.ate-hero__media--full .wp-block-video { max-width: none; }
	.ate-portrait { max-width: 280px; }
	.ate-setup { max-width: 320px; }
	.ate-price { padding: 30px 22px; }
	.ate-price .ate-big { font-size: 60px; }
	.ate-price .ate-big--words { font-size: 40px; }
	.ate-numbered li { font-size: 17px; padding: 13px 0; }
	.ate-about > .wp-block-image { max-width: 260px; }
	.ate-styled { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ate-styled img { height: 220px; }
	.ate-styled > :first-child { grid-column: span 2; }
	.ate-styled > :last-child { display: none; }
	.ate-styled-label { margin-top: 36px !important; }
	.ate-formcard { padding: 22px 16px; }
	.ate-grid-3 > .is-style-card, .ate-grid-2 > .is-style-card { min-height: 0 !important; }
	.ate-fcta { flex-direction: column; align-items: flex-start; padding: 56px 24px 36px; }
	.ate-fcta h2 { font-size: 44px; }
	.ate-footer { flex-direction: column; align-items: flex-start; margin: 0 24px; padding-bottom: 36px; }
	.ate-footer__links { text-align: left; }
	.ate-prose h1 { font-size: 36px; }
	.ate-prose h2 { font-size: 21px; }

	.ate-sticky { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; justify-content: center; background: var(--tyrian); color: var(--ylang); padding: 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: opacity .2s, transform .2s; font-family: var(--mono); letter-spacing: .2em; font-size: 11px; text-decoration: none; }
	.ate-sticky.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
	body.has-ate-sticky { padding-bottom: 76px; }
	#ate-cookie { bottom: 80px; }
}
@media (max-width: 782px) {
	.admin-bar header.wp-block-template-part { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar header.wp-block-template-part { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Sources list on articles */
#sources ul { font-size: 17px; line-height: 1.8; margin-top: 16px; padding-left: 20px; }
