/*
Theme Name: Catering Bei Lillo
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: catering-lillo
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--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* Full-bleed bands butt edge-to-edge inside the page content: zero the
   flow layout's gap between consecutive alignfull sections so no thin
   sliver shows between bands. Ordinary paragraphs (non-alignfull) keep
   their normal rhythm. */
.entry-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* ============ Header ============ */
.site-header {
	background: var(--wp--preset--color--background);
	border-bottom: 1px solid #e6e6e3;
}
.site-header__inner {
	padding: 1.05rem var(--wp--style--root--padding-left);
}
.site-header .wp-block-site-title {
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: -0.01em;
}
.site-header__nav {
	gap: 0.5rem;
}
.site-header__nav .wp-block-button__link {
	padding: 0.55rem 1.1rem;
	font-size: 0.8rem;
}

/* ============ Hero ============ */
.hero__inner {
	color: #fff;
	padding-top: 1rem;
}
.hero .hero-eyebrow {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 600;
}
.hero-title {
	color: #fff;
	font-size: clamp(2.6rem, 6vw, 4.4rem);
	line-height: 1.04;
	font-weight: 600;
	letter-spacing: -0.02em;
	max-width: 17ch;
	margin-block: 0.9rem;
}
.hero-sub {
	color: rgba(255, 255, 255, 0.92);
	max-width: 46ch;
	font-size: 1.125rem;
	line-height: 1.55;
}

/* ============ Sections ============ */
.band-angebot {
	padding-bottom: var(--wp--preset--spacing--40);
}
.section-head {
	padding-top: var(--wp--preset--spacing--50);
}
.section-head .eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.5rem;
}
.section-head h2 {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	max-width: 22ch;
}
.section-sub {
	color: var(--wp--preset--color--muted);
	max-width: 56ch;
	font-size: 1.05rem;
}
.offer-img {
	margin: 0;
}
.offer-img img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}
.offer-label {
	font-weight: 600;
	font-size: 1.1rem;
	margin-block: 0.9rem 0.2rem;
}
.offer-desc {
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
}

/* ============ Kontakt (Wine band) ============ */
.band-kontakt {
	background: var(--wp--preset--color--wine);
	color: #fff;
}
.band-kontakt .section-head {
	padding-bottom: 2rem;
}
.band-kontakt .eyebrow {
	color: #f0d6a8;
}
.band-kontakt h2,
.band-kontakt h3 {
	color: #fff;
}
.band-kontakt .section-sub {
	color: rgba(255, 255, 255, 0.85);
}
.kontakt-info h3 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
}
.kontakt-item {
	margin-block: 0 1.25rem;
}
.kontakt-item strong {
	color: #f0d6a8;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	display: block;
	margin-bottom: 0.25rem;
}
.band-kontakt a {
	color: #fff;
	text-decoration: underline;
}
.band-kontakt .wp-block-jetpack-contact-form input,
.band-kontakt .wp-block-jetpack-contact-form textarea {
	background: #fff;
	color: #151515;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	padding: 0.7rem 0.85rem;
	font-family: inherit;
	font-size: 1rem;
	width: 100%;
}
.band-kontakt .wp-block-jetpack-contact-form textarea {
	min-height: 140px;
}
.band-kontakt .wp-block-jetpack-contact-form .grunion-field-label,
.band-kontakt .wp-block-jetpack-contact-form label {
	color: #fff;
	font-size: 0.9rem;
}
.band-kontakt .wp-block-jetpack-contact-form .wp-block-button__link {
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--wine);
}

/* ============ Footer ============ */
.site-footer {
	background: #151515;
	color: #fff;
}
.site-footer__inner {
	padding-block: 4rem 1.5rem;
}
.site-footer .wp-block-site-title {
	color: #fff;
	font-weight: 600;
}
.site-footer a {
	color: #fff;
}
.site-footer .footer-label {
	color: rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.75rem;
	font-weight: 600;
}
.site-footer .wp-block-separator {
	border-color: rgba(255, 255, 255, 0.18);
	margin-block: 2rem 1.25rem;
}
.footer-copy {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.875rem;
	text-align: center;
}

/* ============ Scroll reveal (progressive enhancement) ============ */
.reveal {
	/* final visible state by default: nothing to do */
}
html.js-reveal .reveal {
	opacity: 0;
	transform: translateY(44px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}
html.js-reveal .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html.js-reveal .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
