/*
Theme Name: Armelia
Theme URI: https://www.armeliafashion.co.uk/
Author: EngForce UK
Description: A simple, fast clothing-store theme for Armelia Fashion. Homepage with hero, swipeable store front, Buy on Vinted slider, services and designer bio, all edited in Appearance → Customize → Armelia Homepage. Full WooCommerce support.
Version: 1.2.4
Requires at least: 6.3
Tested up to: 6.8
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: armelia
Tags: e-commerce, custom-logo, custom-menu, featured-images, one-column
WC requires at least: 8.0
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--af-plum: #600936;
	--af-wine: #772F48;
	--af-sand: #DADAD1;
	--af-cream: #F7F3EF;
	--af-ink: #0F0814;
	--af-muted: #6E6470;
	--af-white: #ffffff;
	--af-line: color-mix(in srgb, var(--af-sand) 70%, white);

	--af-font-head: "Geom", "Jost", "Futura", "Century Gothic", sans-serif;
	--af-font-body: "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--af-radius: 12px;
	--af-radius-sm: 8px;
	--af-container: 1240px;
	--af-gutter: clamp(16px, 4vw, 40px);
	--af-section: clamp(56px, 8vw, 104px);
	--af-header-h: 76px;
	--af-shadow: 0 10px 30px -12px rgba(15, 8, 20, .18);
	--af-ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--af-header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--af-white);
	color: var(--af-ink);
	font-family: var(--af-font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.af-menu-open { overflow: hidden; }

img,
video { max-width: 100%; height: auto; display: block; }

a { color: var(--af-wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--af-plum); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--af-font-head);
	font-weight: 300;
	color: var(--af-plum);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 400; }

p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--af-wine); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.af-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 1000;
	background: var(--af-plum);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--af-radius-sm);
}
.af-skip:focus { left: 8px; color: #fff; }

.af-container {
	width: 100%;
	max-width: var(--af-container);
	margin-inline: auto;
	padding-inline: var(--af-gutter);
}
.af-container--narrow { max-width: 860px; }

.af-icon { flex: none; }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.af-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border: 1px solid var(--af-wine);
	border-radius: 999px;
	background: var(--af-wine);
	color: #fff;
	font-family: var(--af-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--af-ease), color .2s var(--af-ease), border-color .2s var(--af-ease), transform .2s var(--af-ease);
}
.af-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: var(--af-plum);
	border-color: var(--af-plum);
	color: #fff;
}
.af-btn:active { transform: translateY(1px); }

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--af-wine);
	color: #fff;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: var(--af-plum); color: #fff; }

.af-btn--light { background: #fff; border-color: #fff; color: var(--af-ink); }
.af-btn--light:hover { background: var(--af-cream); border-color: var(--af-cream); color: var(--af-plum); }

.af-btn--outline { background: transparent; color: var(--af-wine); }
.af-btn--outline:hover { background: var(--af-wine); border-color: var(--af-wine); color: #fff; }

.af-btn--small { min-height: 40px; padding: 8px 18px; font-size: 14px; }

.af-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.af-btn-row--center { justify-content: center; }

.af-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	color: var(--af-wine);
	text-decoration: none;
}
.af-link .af-icon { width: 18px; height: 18px; transition: transform .2s var(--af-ease); }
.af-link:hover .af-icon { transform: translateX(3px); }

.af-kicker {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--af-wine);
}
.af-kicker--light { color: rgba(255, 255, 255, .9); }

.af-admin-hint {
	margin: 0 auto 24px;
	max-width: 640px;
	padding: 14px 18px;
	border: 1px dashed var(--af-wine);
	border-radius: var(--af-radius-sm);
	background: #fff;
	color: var(--af-wine);
	font-size: 15px;
	text-align: center;
}

/* ==========================================================================
   Header
   ========================================================================== */
.af-header {
	position: sticky;
	top: 0;
	z-index: 100;
	/* Solid white: a backdrop-filter here would trap the fixed mobile menu inside the header. */
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s var(--af-ease), border-color .25s var(--af-ease);
}
.admin-bar .af-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .af-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .af-header { top: 0; } }

.af-header.is-scrolled { border-bottom-color: var(--af-line); box-shadow: 0 6px 20px -16px rgba(15, 8, 20, .5); }

.af-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--af-header-h);
}

.af-header__brand { flex: none; }
.af-logo,
.custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.af-logo img,
.custom-logo { width: auto; max-height: 52px; }
.af-logo__text { font-family: var(--af-font-head); font-size: 1.5rem; color: var(--af-plum); }

.af-nav { margin-left: auto; }
.af-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.af-menu li { position: relative; }
.af-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--af-ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 999px;
	transition: color .2s, background-color .2s;
}
.af-menu a:hover,
.af-menu .current-menu-item > a { color: var(--af-wine); background: var(--af-cream); }

/* Dropdowns (desktop) */
.af-menu .sub-menu {
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	margin: 0;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--af-line);
	border-radius: var(--af-radius);
	box-shadow: var(--af-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .2s var(--af-ease);
}
.af-menu li:hover > .sub-menu,
.af-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.af-nav .af-nav__social { display: none; }

.af-header__actions { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.af-header__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--af-ink);
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.af-header__icon:hover { background: var(--af-cream); color: var(--af-wine); }

.af-cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--af-wine);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}
.af-cart-count.is-empty { display: none; }

.af-nav-toggle { display: none; }
.af-nav-toggle__close { display: none; }
.af-nav-toggle[aria-expanded="true"] .af-nav-toggle__open { display: none; }
.af-nav-toggle[aria-expanded="true"] .af-nav-toggle__close { display: inline-flex; }

@media (max-width: 960px) {
	:root { --af-header-h: 64px; }
	.af-logo img,
	.custom-logo { max-height: 42px; }
	.af-header__actions { margin-left: auto; }
	.af-nav-toggle { display: inline-flex; }

	.af-nav {
		position: fixed;
		inset: var(--af-header-h) 0 0 0;
		margin: 0;
		padding: 24px var(--af-gutter) 40px;
		background: #fff;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .25s var(--af-ease), transform .25s var(--af-ease), visibility .25s;
	}
	.admin-bar .af-nav { top: calc(var(--af-header-h) + 46px); }
	.af-nav.is-open { opacity: 1; visibility: visible; transform: none; }

	.af-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.af-menu a {
		padding: 16px 4px;
		border-radius: 0;
		border-bottom: 1px solid var(--af-line);
		font-family: var(--af-font-head);
		font-size: 1.5rem;
		font-weight: 300;
		color: var(--af-plum);
	}
	.af-menu a:hover { background: transparent; }
	.af-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 16px;
	}
	.af-menu .sub-menu a { font-size: 1.15rem; }
	.af-nav .af-nav__social { display: flex; margin-top: 28px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.af-section { padding-block: var(--af-section); }
.af-section--tint { background: var(--af-cream); }

.af-section__head { max-width: 680px; margin: 0 auto clamp(28px, 4vw, 48px); }
.af-section__head--center { text-align: center; }
.af-section__head--left { margin-left: 0; }
.af-section__title { margin-bottom: 12px; }
.af-section__text { margin: 0; color: var(--af-muted); font-size: 1.05rem; }
.af-section__cta { margin: clamp(28px, 4vw, 44px) 0 0; text-align: center; }

/* ---------- Hero ---------- */
.af-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(440px, 72vh, 720px);
	overflow: hidden;
	background: var(--af-plum);
	color: #fff;
	isolation: isolate;
}
.af-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.af-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(60, 6, 34, .62) 0%, rgba(60, 6, 34, .32) 45%, rgba(60, 6, 34, 0) 75%);
}
.af-hero__inner { padding-block: 64px; }
.af-hero__title {
	max-width: 14ch;
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(2.6rem, 6.2vw, 4.75rem);
	font-weight: 300;
	line-height: 1.05;
}
.af-hero__text { max-width: 34ch; margin: 0 0 30px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .92); }

@media (max-width: 640px) {
	.af-hero { min-height: 520px; align-items: flex-end; }
	.af-hero::after { background: linear-gradient(0deg, rgba(60, 6, 34, .78) 0%, rgba(60, 6, 34, .35) 55%, rgba(60, 6, 34, .1) 100%); }
	.af-hero__inner { padding-block: 48px 40px; }
}

/* ---------- Slider ---------- */
.af-slider { --af-per-view: 4; --af-gap: 24px; position: relative; }

.af-slider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--af-per-view) - 1) * var(--af-gap)) / var(--af-per-view));
	gap: var(--af-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
	-webkit-overflow-scrolling: touch;
}
.af-slider__track::-webkit-scrollbar { display: none; }
.af-slider__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.af-slider__slide { scroll-snap-align: start; min-width: 0; }

.af-slider__controls {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 28px;
}
.af-slider.has-overflow .af-slider__controls { display: flex; }

.af-slider__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--af-sand);
	border-radius: 50%;
	background: #fff;
	color: var(--af-plum);
	cursor: pointer;
	transition: all .2s var(--af-ease);
}
.af-slider__arrow:hover:not(:disabled) { background: var(--af-wine); border-color: var(--af-wine); color: #fff; }
.af-slider__arrow:disabled { opacity: .35; cursor: default; }

.af-slider__dots { display: flex; align-items: center; gap: 8px; }
.af-slider__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--af-plum);
	opacity: .2;
	cursor: pointer;
	transition: all .25s var(--af-ease);
}
.af-slider__dot[aria-current="true"] { width: 24px; opacity: .85; }

@media (max-width: 1100px) { .af-slider { --af-per-view: 3; } }
@media (max-width: 800px) { .af-slider { --af-per-view: 2.3; --af-gap: 16px; } }
@media (max-width: 520px) {
	.af-slider { --af-per-view: 1.25; --af-gap: 14px; }
	/* Let the track bleed to the screen edges so the next card peeks in. */
	.af-slider__track {
		margin-inline: calc(var(--af-gutter) * -1);
		padding-inline: var(--af-gutter);
		scroll-padding-inline: var(--af-gutter);
	}
	.af-slider__arrow { display: none; }
}

/* Two rows: tiles fill top then bottom, column by column, and the whole block swipes sideways. */
.af-slider--rows-2 { --af-per-view: 5; }
.af-slider--rows-2 .af-slider__track { grid-template-rows: repeat(2, auto); row-gap: clamp(28px, 3vw, 40px); }
@media (max-width: 1100px) { .af-slider--rows-2 { --af-per-view: 4; } }
.af-slider--rows-2 .af-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.af-slider--rows-2 .af-card__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 800px) { .af-slider--rows-2 { --af-per-view: 2.5; } }
@media (max-width: 520px) {
	.af-slider--rows-2 { --af-per-view: 2.15; --af-gap: 12px; }
	.af-slider--rows-2 .af-slider__track { row-gap: 22px; }
	.af-slider--rows-2 .af-card__title { font-size: 15px; }
	.af-slider--rows-2 .af-card__meta { font-size: 12.5px; }
	.af-slider--rows-2 .af-card .af-btn { min-height: 38px; padding: 8px 14px; font-size: 13.5px; }
}

/* ---------- Product card ---------- */
.af-card { display: flex; flex-direction: column; height: 100%; }
.af-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--af-radius);
	background: var(--af-sand);
}
.af-card__media img,
.af-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--af-ease);
}
.af-card:hover .af-card__media img { transform: scale(1.04); }

.af-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--af-wine);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
}
.af-card__badge--vinted { left: auto; right: 12px; background: #fff; color: #007782; }

.af-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 2px 0; }
.af-card__title { margin: 0 0 4px; font-family: var(--af-font-body); font-size: 1rem; font-weight: 500; line-height: 1.35; letter-spacing: 0; }
.af-card__title a { color: var(--af-ink); text-decoration: none; }
.af-card__title a:hover { color: var(--af-wine); }
.af-card__meta { margin: 0 0 6px; color: var(--af-muted); font-size: 14px; }
.af-card__price { margin-bottom: 14px; color: var(--af-plum); font-size: 1.05rem; font-weight: 500; }
.af-card__price del { margin-right: 6px; color: var(--af-muted); font-weight: 400; opacity: .8; }
.af-card__price ins { text-decoration: none; }
.af-card .af-btn { margin-top: auto; align-self: flex-start; }
.af-card__por,
.af-por { font-size: .95rem; font-weight: 400; font-style: italic; color: var(--af-muted); }

/* Sold pieces */
.woocommerce ul.products li.product { position: relative; }
.af-sold-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--af-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.woocommerce ul.products li.product.outofstock .onsale { display: none; }
.woocommerce ul.products li.product.outofstock a img { filter: grayscale(.35); opacity: .8; }
.woocommerce div.product .stock.out-of-stock { color: var(--af-wine); font-weight: 600; }

.af-enquire { margin: 24px 0; }
.af-enquire .af-btn { min-height: 52px; padding-inline: 36px; }
.af-enquire__note { margin: 10px 0 0; color: var(--af-muted); font-size: 14px; }

/* ---------- Services ---------- */
.af-services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 28px;
}
.af-service {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--af-line);
	border-radius: var(--af-radius);
	background: #fff;
}
.af-service__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--af-sand); }
.af-service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--af-ease); }
.af-service__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.af-service__title { margin-bottom: 8px; }
.af-service__title a { color: inherit; text-decoration: none; transition: color .2s var(--af-ease); }
/* The whole card is one link (the title); the image and "Find out more" just look clickable. */
.af-service__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.af-service__title a:focus-visible { outline: none; }
.af-service:has(.af-service__title a:focus-visible) { outline: 2px solid var(--af-wine); outline-offset: 3px; }
.af-service__body p { color: var(--af-muted); font-size: 15.5px; }
/* Gentle zoom on the photo – desktop pointers only, so phones never get a "stuck" zoom after a tap. */
@media (hover: hover) and (pointer: fine) {
	.af-service:hover .af-service__media img { transform: scale(1.045); }
	.af-service:hover .af-service__title a { color: var(--af-wine); }
	.af-service:hover .af-link .af-icon { transform: translateX(3px); }
}
.af-service .af-link { margin-top: auto; }

@media (max-width: 640px) {
	/* Services become a swipe row on phones too. */
	.af-services__grid {
		display: grid;
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: 80%;
		gap: 14px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		margin-inline: calc(var(--af-gutter) * -1);
		padding: 0 var(--af-gutter) 8px;
		scroll-padding-inline: var(--af-gutter);
	}
	.af-services__grid::-webkit-scrollbar { display: none; }
	.af-service { scroll-snap-align: start; }
}

/* ---------- Bio ---------- */
.af-bio__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}
.af-bio__inner--noimg { grid-template-columns: 1fr; max-width: 760px; }
.af-bio__media {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--af-radius);
	overflow: hidden;
	background: var(--af-sand);
}
.af-bio__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.af-bio__text { margin-bottom: 28px; font-size: 1.05rem; }
.af-bio__text p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
	.af-bio__inner { grid-template-columns: 1fr; }
	.af-bio__media { aspect-ratio: 4 / 4.2; }
}

/* ---------- Contact ---------- */
.af-contact__inner { text-align: center; }
.af-contact__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px 40px;
	margin: 0 0 32px;
	padding: 0;
}
.af-contact__list li { display: flex; align-items: flex-start; gap: 10px; text-align: left; }
.af-contact__list .af-icon { margin-top: 3px; color: var(--af-wine); }
.af-contact__list a { color: var(--af-ink); text-decoration: none; }
.af-contact__list a:hover { color: var(--af-wine); }

/* ---------- Social ---------- */
.af-social { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.af-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--af-sand);
	border-radius: 50%;
	color: var(--af-plum);
	transition: all .2s var(--af-ease);
}
.af-social a:hover { background: var(--af-wine); border-color: var(--af-wine); color: #fff; }
.af-social .af-icon { width: 18px; height: 18px; }
.af-social--large { justify-content: center; }
.af-social--large a { width: 48px; height: 48px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.af-footer { background: var(--af-plum); color: rgba(255, 255, 255, .85); }
.af-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-block: 56px 40px;
}
.af-footer .af-logo img,
.af-footer .custom-logo { max-height: 48px; filter: brightness(0) invert(1); }
.af-footer__tagline { margin: 16px 0 20px; font-family: var(--af-font-head); font-size: 1.2rem; font-weight: 300; color: #fff; }
.af-footer .af-social a { border-color: rgba(255, 255, 255, .3); color: #fff; }
.af-footer .af-social a:hover { background: #fff; border-color: #fff; color: var(--af-plum); }
.af-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.af-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.af-footer a:hover { color: #fff; text-decoration: underline; }
.af-footer__title { color: #fff; font-size: 1.1rem; }
.af-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; }
.af-footer__bottom p { margin: 0; padding-block: 18px; }

@media (max-width: 800px) {
	.af-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Inner pages & posts
   ========================================================================== */
.af-page { padding-block: clamp(24px, 3.5vw, 44px) var(--af-section); }
.af-page__head { margin-bottom: 24px; }
.af-page--banner { padding-top: clamp(20px, 3vw, 36px); }
.af-shop-hero__crumbs span[aria-current] { color: rgba(255, 255, 255, .75); }
/* WooCommerce cart/checkout blocks add their own top gap */
.af-page--banner .af-content > .wp-block-woocommerce-cart:first-child,
.af-page--banner .af-content > .wp-block-woocommerce-checkout:first-child { margin-top: 0; padding-top: 0; }
.af-page__title { margin: 0; }
.af-entry__date { margin: 8px 0 0; color: var(--af-muted); }
.af-entry__thumb { margin-bottom: 32px; border-radius: var(--af-radius); overflow: hidden; }

.af-content > * { margin-block: 0 1.2em; }
.af-content > *:last-child { margin-bottom: 0; }
.af-content img { border-radius: var(--af-radius-sm); }
.af-content .alignwide { max-width: 1100px; }
.af-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

.af-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.af-post__thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--af-radius); margin-bottom: 14px; }
.af-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.af-post__title { font-size: 1.35rem; }
.af-post__title a { color: inherit; text-decoration: none; }

.af-404 { text-align: center; }

.pagination,
.woocommerce nav.woocommerce-pagination { margin-top: 48px; text-align: center; }
.nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-numbers {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--af-line);
	border-radius: 999px;
	color: var(--af-ink);
	text-decoration: none;
}
.page-numbers.current { background: var(--af-wine); border-color: var(--af-wine); color: #fff; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--af-sand);
	border-radius: var(--af-radius-sm);
	background: #fff;
	color: var(--af-ink);
	font: inherit;
	font-size: 16px;
}
input:focus,
textarea:focus,
select:focus { outline: none; border-color: var(--af-wine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--af-wine) 18%, transparent); }

/* ==========================================================================
   WooCommerce
   ========================================================================== */
.af-breadcrumb,
.woocommerce .woocommerce-breadcrumb { margin: 0 0 24px; color: var(--af-muted); font-size: 14px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--af-muted); }

.woocommerce-products-header { margin-bottom: 24px; }
.woocommerce-products-header__title { margin: 0; }

.woocommerce .woocommerce-result-count { color: var(--af-muted); font-size: 14px; margin: 10px 0 24px; }
.woocommerce .woocommerce-ordering { margin: 0 0 24px; }
.woocommerce .woocommerce-ordering select { width: auto; padding: 10px 36px 10px 14px; }

/* Compact shop banner */
.af-shop-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--af-plum);
	color: #fff;
}
.af-shop-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}
.af-shop-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(60, 6, 34, .88) 0%, rgba(60, 6, 34, .62) 55%, rgba(60, 6, 34, .35) 100%);
}
.af-shop-hero__inner { padding-block: 26px 28px; }
.af-shop-hero__crumbs { margin: 0 0 4px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.af-shop-hero__crumbs a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.af-shop-hero__crumbs a:hover { color: #fff; text-decoration: underline; }
.af-shop-hero__title { margin: 0; color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.af-shop-hero__text { max-width: 62ch; margin-top: 8px; color: rgba(255, 255, 255, .88); font-size: 15px; }
.af-shop-hero__text p { margin: 0; }

.af-shop--archive { padding-top: 20px; }
.af-shop--single { padding-top: 20px; }

/* Toolbar: category pills + count + sorting in one row */
.af-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 0 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--af-line);
}
.af-pills {
	display: flex;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.af-pills::-webkit-scrollbar { display: none; }
.af-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid var(--af-sand);
	border-radius: 999px;
	color: var(--af-ink);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	transition: all .2s var(--af-ease);
}
.af-pill:hover { border-color: var(--af-wine); color: var(--af-wine); }
.af-pill.is-active { background: var(--af-wine); border-color: var(--af-wine); color: #fff; }
.af-pill__count { font-size: 12px; opacity: .65; }

.af-shop-toolbar__right { display: flex; align-items: center; gap: 16px; flex: none; margin-left: auto; }
.woocommerce .af-shop-toolbar .woocommerce-result-count,
.woocommerce .af-shop-toolbar .woocommerce-ordering {
	float: none;
	margin: 0;
}
.woocommerce .af-shop-toolbar .woocommerce-result-count { white-space: nowrap; }
.woocommerce .af-shop-toolbar .woocommerce-ordering select {
	height: 40px;
	padding: 0 34px 0 14px;
	border-radius: 999px;
	font-size: 14px;
}

@media (max-width: 700px) {
	.af-shop-hero__inner { padding-block: 18px 20px; }
	.af-shop-hero__title { font-size: 1.7rem; }
	.af-shop--archive { padding-top: 14px; }
	.af-shop-toolbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; }
	.af-pills {
		margin-inline: calc(var(--af-gutter) * -1);
		padding-inline: var(--af-gutter);
	}
	.af-shop-toolbar__right { justify-content: space-between; margin-left: 0; }
	.woocommerce .af-shop-toolbar .woocommerce-result-count { font-size: 13px; }
}

/* Product grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 24px;
	margin: 0;
	padding: 0;
	clear: both;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	display: flex;
	flex-direction: column;
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	text-align: left;
}
.woocommerce ul.products li.product a { text-decoration: none; }
.woocommerce ul.products li.product a img {
	aspect-ratio: 3 / 4;
	width: 100%;
	height: auto;
	margin: 0 0 14px;
	object-fit: cover;
	border-radius: var(--af-radius);
	background: var(--af-sand);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0;
	margin: 0 0 4px;
	font-family: var(--af-font-body);
	font-size: 1rem;
	font-weight: 500;
	color: var(--af-ink);
	letter-spacing: 0;
}
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
	padding: 0;
	font-family: var(--af-font-head);
	font-size: 1.2rem;
	font-weight: 300;
	color: var(--af-plum);
}
.woocommerce ul.products li.product-category mark.count {
	background: none;
	color: var(--af-muted);
	font-family: var(--af-font-body);
	font-size: .85rem;
}
.woocommerce ul.products li.product .price { color: var(--af-plum); font-size: 1.05rem; font-weight: 500; margin-bottom: 12px; }
.woocommerce ul.products li.product .price del { color: var(--af-muted); }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button {
	margin-top: auto;
	align-self: flex-start;
	min-height: 40px;
	padding: 8px 18px;
	font-size: 14px;
	background: transparent;
	color: var(--af-wine);
}
.woocommerce ul.products li.product .button:hover { background: var(--af-wine); color: #fff; }
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	top: 12px;
	left: 12px;
	right: auto;
	margin: 0;
	min-width: 0;
	min-height: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--af-wine);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

@media (max-width: 1000px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
	.woocommerce ul.products li.product .button { padding: 8px 14px; font-size: 13px; }
}

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(28px, 5vw, 72px); }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0; }
.woocommerce div.product div.images img { border-radius: var(--af-radius); }
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .product_title { margin-bottom: 12px; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--af-plum); font-size: 1.5rem; font-weight: 500; }
.woocommerce div.product form.cart { margin: 24px 0; }
.woocommerce div.product form.cart .button { min-height: 52px; padding-inline: 36px; }
.woocommerce .quantity .qty { width: 80px; min-height: 52px; text-align: center; }
.woocommerce div.product .product_meta { color: var(--af-muted); font-size: 14px; border-top: 1px solid var(--af-line); padding-top: 16px; }
.woocommerce div.product .woocommerce-tabs { margin-top: 56px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 24px; border-bottom: 1px solid var(--af-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; background: none; border-radius: 0; margin: 0 20px 0 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0; color: var(--af-muted); font-weight: 500; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--af-plum); box-shadow: inset 0 -2px 0 var(--af-wine); }
.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2 { margin: 56px 0 24px; }
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td { padding: 10px 12px; border-color: var(--af-line); font-style: normal; }

@media (max-width: 800px) {
	.woocommerce div.product { grid-template-columns: 1fr; }
	.woocommerce div.product div.images { margin-bottom: 24px; }
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--af-wine);
	border-radius: var(--af-radius-sm);
	background: var(--af-cream);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--af-wine); }

/* Cart / checkout (classic shortcodes and blocks) */
.woocommerce table.shop_table { border-color: var(--af-line); border-radius: var(--af-radius); }
.woocommerce table.shop_table td,
.woocommerce table.shop_table th { border-color: var(--af-line); }
.wc-block-components-button:not(.is-link) { border-radius: 999px; background: var(--af-wine); color: #fff; }
.wc-block-components-button:not(.is-link):hover { background: var(--af-plum); color: #fff; }

/* ==========================================================================
   Service pages
   ========================================================================== */
.af-services__all { margin: clamp(24px, 3vw, 36px) 0 0; text-align: center; }

/* Hero: text + photo */
.af-svc-hero { background: var(--af-cream); }
.af-svc-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
	padding-block: clamp(24px, 4vw, 48px);
}
.af-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; color: var(--af-muted); font-size: 14px; }
.af-crumbs a { color: var(--af-muted); text-decoration: none; }
.af-crumbs a:hover { color: var(--af-wine); }
.af-svc-hero__title { margin: 0 0 14px; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; color: var(--af-plum); }
.af-svc-hero__summary { max-width: 34em; margin: 0 0 24px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.af-svc-hero .af-btn .af-icon { width: 18px; height: 18px; }
.af-svc-hero__where { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--af-muted); font-size: 14.5px; }
.af-svc-hero__where .af-icon { width: 18px; height: 18px; color: var(--af-wine); flex: none; }
.af-svc-hero__media { aspect-ratio: 5 / 4; max-height: 440px; overflow: hidden; border-radius: var(--af-radius); background: var(--af-sand); }
.af-svc-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) {
	.af-svc-hero__inner { grid-template-columns: 1fr; padding-top: 20px; }
	.af-svc-hero__media { order: -1; aspect-ratio: 16 / 10; }
}

/* Body */
.af-svc-content { padding-block: clamp(36px, 6vw, 72px); }
.af-svc-content > h2 { margin-top: 1.9em; color: var(--af-plum); font-size: clamp(1.55rem, 2.6vw, 2rem); }
.af-svc-content > h2:first-child { margin-top: 0; }
.af-svc-content h3 { color: var(--af-plum); font-size: 1.2rem; }
.af-content > .alignwide {
	width: min(1100px, calc(100vw - 2 * var(--af-gutter)));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}
.af-content .wp-block-table { margin-inline: 0; }
.af-content .wp-block-columns { gap: clamp(24px, 4vw, 56px); margin-block: 1.4em 2em; }
.af-content .wp-block-column > *:first-child { margin-top: 0; }
.af-content .wp-block-column > *:last-child { margin-bottom: 0; }

.af-lead { font-size: clamp(1.12rem, 1.8vw, 1.32rem); line-height: 1.6; color: var(--af-ink); }

/* Buttons inside page content look like theme buttons */
.af-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.af-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 1px solid var(--af-wine);
	border-radius: 999px;
	background: var(--af-wine);
	color: #fff;
	font-weight: 500;
	text-decoration: none;
	transition: background .2s var(--af-ease), color .2s var(--af-ease);
}
.af-content .wp-block-button__link:hover { background: var(--af-plum); border-color: var(--af-plum); color: #fff; }
.af-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--af-wine); }

/* Diagrams */
.af-diagram { margin: 1.4em 0 2em; padding: clamp(10px, 2vw, 22px); border: 1px solid var(--af-line); border-radius: var(--af-radius); background: #fff; }
.wp-block-column .af-diagram { margin: 0; }
.af-diagram svg { display: block; width: 100%; height: auto; }
.af-diagram figcaption { margin-top: 10px; color: var(--af-muted); font-size: 14px; text-align: center; }

/* Numbered steps (cards) */
.af-steps {
	list-style: none;
	counter-reset: af-step;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-inline: 0;
	padding: 0;
}
.af-steps:has(> li:nth-child(4):last-child),
.af-steps:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .af-steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .af-steps { grid-template-columns: 1fr !important; } ol.af-steps > li { padding: 16px 16px 16px 58px; } ol.af-steps > li::before { top: 16px; left: 16px; } }
.af-steps li {
	counter-increment: af-step;
	position: relative;
	padding: 52px 18px 18px;
	border: 1px solid var(--af-line);
	border-radius: var(--af-radius);
	background: #fff;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--af-muted);
}
.af-steps li::before {
	content: counter(af-step);
	position: absolute;
	top: 16px;
	left: 18px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--af-wine);
	color: #fff;
	font: 600 14px/1 var(--af-font-body);
}
.af-steps li strong { display: block; margin-bottom: 4px; color: var(--af-ink); font-family: var(--af-font-head); font-size: 1.08rem; font-weight: 500; }

/* Timeline */
.af-timeline { list-style: none; margin: 1.2em 0 2em; padding: 0; }
.af-timeline li { position: relative; padding: 0 0 22px 34px; }
.af-timeline li::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 4px;
	width: 13px;
	height: 13px;
	border: 3px solid var(--af-wine);
	border-radius: 50%;
	background: #fff;
}
.af-timeline li::after { content: ""; position: absolute; top: 24px; bottom: 2px; left: 10px; width: 2px; background: var(--af-sand); }
.af-timeline li:last-child { padding-bottom: 0; }
.af-timeline li:last-child::after { display: none; }
.af-timeline li:last-child::before { background: var(--af-wine); }
.af-timeline li strong { display: block; color: var(--af-wine); font-family: var(--af-font-head); font-weight: 500; font-size: 1.05rem; }

/* Check list */
.af-checklist { list-style: none; margin-inline: 0; padding: 0; }
.af-checklist li { position: relative; margin-bottom: 10px; padding-left: 32px; }
.af-checklist li::before {
	content: "";
	position: absolute;
	top: .25em;
	left: 0;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: var(--af-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23772F48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Things to avoid */
.af-avoid { list-style: none; margin-inline: 0; padding: 0; }
.af-avoid li { position: relative; margin-bottom: 10px; padding-left: 32px; }
.af-avoid li:last-child { margin-bottom: 0; }
.af-avoid li::before {
	content: "";
	position: absolute;
	top: .25em;
	left: 0;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23772F48' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Diagram key: numbers match the badges in the drawing */
.af-callouts { list-style: none; counter-reset: af-callout; margin: 0; padding: 0; }
.af-callouts li { counter-increment: af-callout; position: relative; margin-bottom: 12px; padding-left: 38px; font-size: 15.5px; line-height: 1.5; color: var(--af-muted); }
.af-callouts li::before {
	content: counter(af-callout);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--af-wine);
	color: #fff;
	font: 600 13px/1 var(--af-font-body);
}
.af-callouts li strong { color: var(--af-ink); font-weight: 600; }
.af-callouts li strong::after { content: " –"; font-weight: 400; color: var(--af-muted); }

/* Price list */
.af-prices { margin: 1em 0 .6em; }
.af-content .af-prices table,
.af-content .af-measure-card table { width: 100%; border-collapse: collapse; }
.af-prices th { padding: 0 0 10px; border-bottom: 2px solid var(--af-plum); color: var(--af-plum); font: 500 13px/1.2 var(--af-font-body); letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.af-prices td { padding: 13px 0; border: 0; border-bottom: 1px solid var(--af-line); vertical-align: top; }
.af-prices th:last-child,
.af-prices td:last-child { width: 32%; padding-left: 16px; text-align: right; }
.af-prices td:last-child { color: var(--af-wine); font-weight: 600; white-space: nowrap; }
.af-prices .has-fixed-layout { table-layout: auto; }
.af-note { margin-top: .4em; color: var(--af-muted); font-size: 14.5px; font-style: italic; }

/* Measurement card (to print and fill in) */
.af-measure-card th,
.af-measure-card td { padding: 10px 12px; border: 1px solid var(--af-sand); text-align: left; }
.af-measure-card th { background: var(--af-cream); color: var(--af-plum); font-weight: 600; font-size: 14px; }
.af-measure-card td { height: 22px; }
.af-measure-card td:first-child { width: 42%; font-weight: 500; }
.af-measure-card td:nth-child(2) { width: 18%; }

/* Tip box */
.af-tip {
	margin-block: 1.6em 2em;
	padding: clamp(18px, 3vw, 28px);
	border-left: 4px solid var(--af-wine);
	border-radius: 0 var(--af-radius) var(--af-radius) 0;
	background: var(--af-cream);
}
.af-tip > *:last-child,
.af-tip .af-checklist li:last-child { margin-bottom: 0; }
.af-tip h3 { margin: 0 0 12px; }
.af-tip .af-checklist li::before { background-color: #fff; }

/* FAQs */
.af-faq { border-bottom: 1px solid var(--af-line); }
.af-content > .af-faq { margin: 0; }
.af-faq summary {
	position: relative;
	padding: 18px 40px 18px 0;
	font-family: var(--af-font-head);
	font-size: 1.08rem;
	color: var(--af-ink);
	cursor: pointer;
	list-style: none;
}
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 6px;
	width: 11px;
	height: 11px;
	margin-top: -8px;
	border-right: 2px solid var(--af-wine);
	border-bottom: 2px solid var(--af-wine);
	transform: rotate(45deg);
	transition: transform .25s var(--af-ease);
}
.af-faq[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.af-faq summary:hover { color: var(--af-wine); }
.af-faq p { margin: 0 0 18px; color: var(--af-muted); }

/* Closing call to action */
.af-cta {
	margin-block: clamp(40px, 6vw, 72px) 0;
	padding: clamp(28px, 5vw, 56px);
	border-radius: var(--af-radius);
	background: var(--af-plum);
	color: rgba(255, 255, 255, .88);
	text-align: center;
}
.af-cta h2 { margin: 0 0 10px; color: #fff; }
.af-cta p { max-width: 36em; margin: 0 auto 22px; }
.af-cta .wp-block-buttons { justify-content: center; }
.af-content .af-cta .wp-block-button__link { background: #fff; border-color: #fff; color: var(--af-plum); }
.af-content .af-cta .wp-block-button__link:hover { background: var(--af-cream); border-color: var(--af-cream); }

/* Enquiry section */
.af-svc-enquire { background: var(--af-cream); scroll-margin-top: 70px; }
.af-svc-enquire__inner,
.af-contact--form .af-contact__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: start;
	gap: clamp(28px, 5vw, 72px);
	text-align: left;
}
.af-svc-enquire__intro .af-section__title { color: var(--af-plum); }
.af-contact__list--compact,
.af-contact--form .af-contact__list { flex-direction: column; justify-content: flex-start; gap: 12px; margin: 24px 0; }
.af-contact--form .af-section__head { margin-bottom: 0; }
.af-svc-enquire__form,
.af-contact__form { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--af-line); border-radius: var(--af-radius); background: #fff; }
.af-contact--form .af-social { justify-content: flex-start; }
@media (max-width: 860px) {
	.af-svc-enquire__inner,
	.af-contact--form .af-contact__inner { grid-template-columns: 1fr; }
}

.af-svc-more .af-services__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.af-services__grid--page { margin-block: 1.4em 2.4em; }
@media (max-width: 640px) {
	/* On phones the services become the same swipe row as on the homepage, edge to edge. */
	.af-content > .af-services__grid.alignwide { width: auto; margin-left: calc(var(--af-gutter) * -1); margin-right: calc(var(--af-gutter) * -1); transform: none; }
}

/* Print: for the review pack and for clients printing the measuring guide */
@media print {
	@page { margin: 14mm 14mm 16mm; }
	body { font-size: 11pt; background: #fff; }
	.af-header, .af-footer, .af-svc-more, .af-svc-enquire, .af-cta, .af-btn-row, .af-crumbs, #wpadminbar, .af-admin-hint { display: none !important; }
	.af-svc-hero { background: none; }
	.af-svc-hero__inner { grid-template-columns: 1fr 34%; gap: 8mm; padding-block: 0 6mm; }
	.af-svc-hero__media { order: 0; aspect-ratio: 1; max-height: none; }
	.af-svc-content { padding-block: 4mm 0; }
	/* Keep side-by-side layouts on paper */
	.af-content .wp-block-columns { flex-wrap: nowrap !important; align-items: flex-start !important; }
	.af-content .wp-block-column { flex: 1 1 0 !important; }
	.af-content .wp-block-column:has(.af-diagram) { flex: 0 0 46% !important; }
	.af-content .wp-block-column:has(.af-diagram--measure-body) { flex: 0 0 58% !important; }
	.af-services__grid, .af-services__grid--page { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; overflow: visible !important; margin-inline: 0 !important; padding: 0 !important; }
	.af-service__body { padding: 10px 12px; }
	.af-service__body p { font-size: 9pt; }
	.af-service .af-link { display: none; }
	.af-steps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.af-steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.af-content > .alignwide { width: 100%; margin-left: 0; transform: none; }
	.af-steps li, .af-tip, .af-diagram, .af-prices, .af-measure-card, .af-faq, .af-timeline li, .wp-block-columns { break-inside: avoid; }
	.af-svc-content > h2 { break-after: avoid; }
	.af-faq summary::after { display: none; }
	a { color: inherit; text-decoration: none; }
}

/* ==========================================================================
   Armelia Events – same look, playful touches (pink, gold, sparkle)
   ========================================================================== */
:root { --af-pink: #E9A8BE; --af-pink-soft: #FBEFF3; --af-gold: #C9A24A; }
.af-sparkle-bg,
.af-svc--events .af-svc-hero,
.af-events-band {
	background-color: var(--af-pink-soft);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='140' viewBox='0 0 180 140'%3E%3Cg fill='%23C9A24A' opacity='.55'%3E%3Cpath d='M30 20l2.2 6.3 6.3 2.2-6.3 2.2L30 37l-2.2-6.3-6.3-2.2 6.3-2.2z'/%3E%3Cpath d='M140 60l1.6 4.4 4.4 1.6-4.4 1.6-1.6 4.4-1.6-4.4-4.4-1.6 4.4-1.6z'/%3E%3Cpath d='M80 110l1.2 3.3 3.3 1.2-3.3 1.2-1.2 3.3-1.2-3.3-3.3-1.2 3.3-1.2z'/%3E%3C/g%3E%3Cg fill='%23E9A8BE'%3E%3Ccircle cx='110' cy='18' r='2.5'/%3E%3Ccircle cx='20' cy='95' r='2'/%3E%3Ccircle cx='165' cy='120' r='2.5'/%3E%3C/g%3E%3C/svg%3E"),
		linear-gradient(135deg, var(--af-cream) 0%, var(--af-pink-soft) 100%);
}
.af-events-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--af-wine);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	box-shadow: 0 0 0 1px var(--af-pink);
}
.af-events-badge span { color: var(--af-gold); }
.af-svc--events .af-crumbs { margin-bottom: 10px; }

/* Drawings used as hero pictures */
.af-svc-hero__media--art { display: grid; place-items: center; padding: clamp(12px, 2vw, 24px); background: #fff; box-shadow: 0 0 0 1px var(--af-pink); }
.af-svc-hero__media--art img { object-fit: contain; }

/* Gold ticks and pink steps on events pages */
.af-svc--events .af-checklist li::before { background-color: var(--af-pink-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C9A24A'%3E%3Cpath d='M12 2l2.6 7.4L22 12l-7.4 2.6L12 22l-2.6-7.4L2 12l7.4-2.6z'/%3E%3C/svg%3E"); background-size: 13px; }
.af-svc--events .af-tip .af-checklist li::before { background-color: #fff; }
.af-svc--events .af-steps li::before,
.af-svc--events .af-callouts li::before { background: linear-gradient(135deg, var(--af-wine), #B5577A); }
.af-svc--events .af-timeline li::before { border-color: var(--af-gold); }
.af-svc--events .af-timeline li strong { color: var(--af-wine); }
.af-svc--events .af-tip { border-left-color: var(--af-gold); background: var(--af-pink-soft); }
.af-svc--events .af-diagram { box-shadow: 0 0 0 1px var(--af-pink); border-color: transparent; }
.af-svc--events .af-cta {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--af-plum) 0%, var(--af-wine) 60%, #A44B6F 100%);
}
.af-svc--events .af-cta::before,
.af-svc--events .af-cta::after { content: "✦"; position: absolute; color: var(--af-gold); opacity: .8; font-size: 28px; }
.af-svc--events .af-cta::before { top: 18px; left: 26px; }
.af-svc--events .af-cta::after { right: 30px; bottom: 18px; font-size: 20px; }
.af-svc--events .af-svc-enquire { background: var(--af-pink-soft); }

/* Two big cards on the Events overview */
.af-event-card {
	height: 100%;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--af-pink);
	border-radius: var(--af-radius);
	background: #fff;
}
.af-event-card h3 { margin: 0 0 10px; font-size: 1.35rem; }
.af-event-card p { color: var(--af-muted); }
.af-event-card .af-card-link { margin: 14px 0 0; }
.af-event-card .af-card-link a { color: var(--af-wine); font-weight: 600; text-decoration: none; }
.af-event-card .af-card-link a:hover { text-decoration: underline; }
.af-content .wp-block-columns:has(.af-event-card) { align-items: stretch !important; }
.af-content .wp-block-column:has(> .af-event-card) { display: flex; }
.af-content .wp-block-column > .af-event-card { width: 100%; display: flex; flex-direction: column; }
.af-event-card .af-card-link { margin-top: auto !important; padding-top: 14px; }

/* Hire table: three columns */
.af-hire-table td:nth-child(2) { color: var(--af-muted); font-size: 15px; }
.af-hire-table th:nth-child(2), .af-hire-table td:nth-child(2) { width: auto; }
.af-hire-table th:first-child, .af-hire-table td:first-child { width: 30%; padding-right: 18px; font-weight: 500; }
.af-hire-table td:nth-child(2) { padding-right: 16px; }
.af-hire-table th:last-child, .af-hire-table td:last-child { width: 18%; }
@media (max-width: 560px) {
	.af-hire-table td:nth-child(2) { display: none; }
	.af-hire-table th:nth-child(2) { display: none; }
}

/* Selling points with a picture each (events pages) */
.af-usps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.4vw, 28px);
	margin-block: 1.2em 2em;
}
.af-usps > .af-usp { margin: 0; }
.af-usp {
	overflow: hidden;
	border: 1px solid var(--af-line);
	border-radius: var(--af-radius);
	background: #fff;
}
.af-svc--events .af-usp { border-color: var(--af-pink); }
.af-usp .wp-block-image { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--af-pink-soft, var(--af-cream)); }
.af-usp .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--af-ease); }
.af-usp h3 { margin: 16px 18px 6px; font-size: 1.12rem; }
.af-usp p { margin: 0 18px 18px; color: var(--af-muted); font-size: 15px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .af-usp:hover .wp-block-image img { transform: scale(1.04); } }
@media (max-width: 900px) { .af-usps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	/* Phones: picture on the left, words on the right – compact but still visual */
	.af-usps { grid-template-columns: 1fr; gap: 12px; }
	.af-usp { display: grid; grid-template-columns: 118px 1fr; align-items: center; }
	.af-usp .wp-block-image { grid-row: span 2; height: 100%; aspect-ratio: auto; }
	.af-usp h3 { margin: 12px 14px 2px; font-size: 1rem; }
	.af-usp p { margin: 0 14px 12px; font-size: 14px; }
}

/* Photo galleries ("From our parties", "What guests make") */
.af-content .wp-block-gallery.af-gallery {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(8px, 1.4vw, 16px) !important;
	margin-block: 1em 2.2em;
}
.af-content .wp-block-gallery.af-gallery:has(> figure:nth-child(3):last-child),
.af-content .wp-block-gallery.af-gallery:has(> figure:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-content .af-gallery > .wp-block-image {
	width: auto !important;
	margin: 0 !important;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: calc(var(--af-radius) * .75);
	background: var(--af-pink-soft, var(--af-cream));
}
.af-content .af-gallery > .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .7s var(--af-ease); }
@media (hover: hover) and (pointer: fine) { .af-content .af-gallery > .wp-block-image:hover img { transform: scale(1.05); } }
@media (max-width: 700px) {
	.af-content .wp-block-gallery.af-gallery,
	.af-content .wp-block-gallery.af-gallery:has(> figure:nth-child(3):last-child),
	.af-content .wp-block-gallery.af-gallery:has(> figure:nth-child(6):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
	.af-usps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.af-content .wp-block-gallery.af-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	.af-usp, .af-gallery { break-inside: avoid; }
}

/* About: founder line, signature line, founder block */
.af-bio__role { margin: -6px 0 18px; color: var(--af-wine); font-weight: 500; letter-spacing: .02em; }
.af-tagline { margin: 1.4em 0; color: var(--af-plum); font-family: var(--af-font-head); font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-style: italic; line-height: 1.35; }
.af-content > .af-tagline { padding: 18px 0; border-top: 1px solid var(--af-line); border-bottom: 1px solid var(--af-line); text-align: center; }
.af-founder { padding: clamp(18px, 3vw, 32px); border-radius: var(--af-radius); background: var(--af-cream); }
.af-founder .af-founder__photo { margin: 0; overflow: hidden; border-radius: var(--af-radius); aspect-ratio: 4 / 5; }
.af-founder .af-founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.af-founder .af-kicker { margin-bottom: 4px; }
.af-founder__name { margin: 0 0 4px; font-size: 1.6rem; }
.af-founder__role { margin: 0 0 12px; color: var(--af-wine); font-weight: 500; }

/* Homepage band */
.af-events-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: clamp(28px, 5vw, 72px);
}
.af-events-band .af-section__title { color: var(--af-plum); text-align: left; }
.af-events-band__text p { font-size: 1.08rem; }
.af-events-band__art { display: block; }
.af-events-band__art .af-diagram { margin: 0; background: #fff; box-shadow: 0 10px 30px rgba(96, 9, 54, .08); border-color: var(--af-pink); }
@media (hover: hover) and (pointer: fine) {
	.af-events-band__art .af-diagram { transition: transform .5s var(--af-ease); }
	.af-events-band__art:hover .af-diagram { transform: scale(1.02); }
}
@media (max-width: 860px) {
	.af-events-band__inner { grid-template-columns: 1fr; }
	.af-events-band__art { order: -1; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
