/*
Theme Name:   Clayclub Ecolife Child
Description:  Child theme of Astra for Clayclub Ecolife. Holds brand tokens and opt-in utility classes only.
Author:       Clayclub Ecolife
Template:     astra
Version:      1.6.0
Requires at least: 6.5
Requires PHP: 8.0
License:      GPL-2.0-or-later
Text Domain:  clayclub-ecolife-child
*/

/* ==========================================================================
   1. Brand tokens
   Colours read from Astra's Global Palette (Customizer → Global → Colors),
   so changing a colour there updates everything. Fallbacks match the
   recommended palette in case a slot is left at Astra's default.
   ========================================================================== */
:root {
	--cce-forest:      var(--ast-global-color-0, #1F3A2B); /* primary: buttons, links, footer */
	--cce-gold-deep:   var(--ast-global-color-1, #7A5C18); /* accent text + "Book Now" (AA on cream and with white text) */
	--cce-heading:     var(--ast-global-color-2, #1F2A22);
	--cce-text:        var(--ast-global-color-3, #3D4A40);
	--cce-cream:       var(--ast-global-color-4, #F7F2E8); /* page background */
	--cce-white:       var(--ast-global-color-5, #FFFFFF);
	--cce-sand:        var(--ast-global-color-6, #EDE4D3); /* alternate section background */
	--cce-gold:        var(--ast-global-color-7, #B8892E); /* DECORATIVE ONLY: rules, icons. Fails contrast as text. */
	--cce-earth:       var(--ast-global-color-8, #3A2A1E); /* event band */
	--cce-gold-light:  #D9B66A;                            /* text accent on dark (earth/forest) backgrounds */

	--cce-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--cce-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--cce-radius-sm: 6px;
	--cce-radius:    12px;
	--cce-shadow:    0 4px 18px rgba(31, 58, 43, 0.08);
	--cce-section-space: clamp(3rem, 6vw, 5.5rem);
}

/* ==========================================================================
   2. Global accessibility (applies site-wide by design)
   ========================================================================== */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--cce-gold-deep);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   3. Opt-in utility classes
   Apply via Elementor → Advanced → CSS Classes. Nothing below affects a
   page unless the class is added, so unrelated pages are untouched.
   ========================================================================== */

/* Section heading with gold rules either side ("—— Book What You Need ——"). */
.cce-section-title .elementor-heading-title,
h2.cce-section-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	text-align: center;
	text-wrap: balance; /* if a long title must wrap, split it evenly */
}
.cce-section-title .elementor-heading-title::before,
.cce-section-title .elementor-heading-title::after,
h2.cce-section-title::before,
h2.cce-section-title::after {
	content: "";
	/* Lines take only leftover space (basis 0), so the title keeps its full
	   width and never wraps just to make room for them. */
	flex: 1 1 0;
	min-width: 1.5rem;
	max-width: 10rem;
	height: 1px;
	background: var(--cce-gold);
}

/* Booking tile ("Book What You Need" grid) – for Elementor Image Box widget. */
.cce-tile .elementor-image-box-wrapper {
	background: var(--cce-white);
	border-radius: var(--cce-radius);
	box-shadow: var(--cce-shadow);
	overflow: hidden;
	height: 100%;
}
.cce-tile .elementor-image-box-img {
	margin: 0 !important; /* Elementor adds a bottom margin inline */
	width: 100% !important;
}
.cce-tile .elementor-image-box-img img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 0;
}
.cce-tile .elementor-image-box-content {
	padding: 0.75rem 1rem 0.9rem;
	text-align: start;
}
.cce-tile .elementor-image-box-title {
	margin: 0;
	font-family: var(--cce-font-body);
	font-size: 0.95rem;
	font-weight: 600;
}
.cce-tile .elementor-image-box-title a {
	color: var(--cce-heading);
	text-decoration: none;
}
/* Make the whole tile clickable when the title has a link. */
.cce-tile .elementor-image-box-wrapper { position: relative; }
.cce-tile .elementor-image-box-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.cce-tile .elementor-image-box-wrapper:focus-within {
	outline: 2px solid var(--cce-gold-deep);
	outline-offset: 2px;
}
.cce-tile .elementor-image-box-title a:focus-visible { outline: none; }

/* Dark band text (upcoming event, footer): small gold label readable on dark. */
.cce-on-dark .cce-accent,
.cce-on-dark .cce-accent .elementor-heading-title {
	color: var(--cce-gold-light);
}

/* Product cards inside WooCommerce [products] shortcode on the homepage only. */
.cce-shop-strip ul.products li.product {
	background: var(--cce-white);
	border-radius: var(--cce-radius);
	box-shadow: var(--cce-shadow);
	padding-bottom: 1rem;
	overflow: hidden;
}

/* ==========================================================================
   4. Homepage hero
   Classes (Elementor → Advanced → CSS Classes):
     cce-hero           outer container
     cce-hero__bg       Image widget used as the background photo
     cce-hero__lead     Text Editor widget (intro paragraph)
     cce-hero__actions  container holding the two buttons
     cce-hero-features  container holding the four Icon Box widgets
   Breakpoints match Elementor defaults: tablet ≤1024px, mobile ≤767px.
   ========================================================================== */
.cce-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.cce-hero > .e-con-inner { position: static; }

/* Background photo: a real <img> with srcset, so phones download a small file. */
.cce-hero .cce-hero__bg {
	position: absolute !important;
	inset: 0;
	z-index: -1;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}
.cce-hero .cce-hero__bg > .elementor-widget-container,
.cce-hero .cce-hero__bg img {
	width: 100%;
	height: 100%;
}
.cce-hero .cce-hero__bg img {
	display: block;
	max-width: none;
	object-fit: cover;
	object-position: 70% 50%;
	border-radius: 0;
}
/* Cream wash behind the text so it stays readable over any photo. */
.cce-hero .cce-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg,
		rgba(247, 242, 232, 0.94) 0%,
		rgba(247, 242, 232, 0.82) 38%,
		rgba(247, 242, 232, 0) 66%);
}

/* Fluid type: scales smoothly between phone and desktop. */
.cce-hero h1.elementor-heading-title {
	margin: 0;
	font-size: clamp(2rem, 1.25rem + 3.2vw, 3.5rem);
	line-height: 1.12;
	color: var(--cce-forest);
}
.cce-hero .cce-hero__lead {
	max-width: 34rem;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
	line-height: 1.6;
	color: var(--cce-heading);
}
.cce-hero .cce-hero__lead p:last-child { margin-bottom: 0; }

/* Buttons */
.cce-hero__actions,
.cce-hero__actions > .e-con-inner { flex-wrap: wrap !important; }
.cce-hero__actions .elementor-button {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Feature strip: four items with thin gold dividers. */
.cce-hero-features,
.cce-hero-features > .e-con-inner { flex-wrap: wrap !important; }
.cce-hero-features .elementor-widget-icon-box {
	flex: 1 1 0 !important;
	min-width: 9rem;
}
.cce-hero-features .elementor-widget-icon-box + .elementor-widget-icon-box {
	border-left: 1px solid rgba(184, 137, 46, 0.45);
	padding-left: clamp(0.75rem, 1.5vw, 1.25rem);
}
.cce-hero-features .elementor-icon-box-wrapper { text-align: start; }
.cce-hero-features .elementor-icon-box-title {
	margin: 0;
	font-family: var(--cce-font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--cce-heading);
}

/* Tablet: wider wash, because the text column takes more of the width. */
@media (max-width: 1024px) {
	.cce-hero .cce-hero__bg::after {
		background: linear-gradient(90deg,
			rgba(247, 242, 232, 0.95) 0%,
			rgba(247, 242, 232, 0.86) 58%,
			rgba(247, 242, 232, 0.1) 92%);
	}
}

/* Optional eyebrow above the H1: add a Heading widget (p or span tag) with
   class cce-hero__eyebrow, e.g. "Eco-Luxury Lakeside Retreat". */
.cce-hero .cce-hero__eyebrow .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-family: var(--cce-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cce-gold-deep);
}
.cce-hero .cce-hero__eyebrow .elementor-heading-title::before {
	content: "";
	width: 1.75rem;
	height: 1px;
	background: var(--cce-gold);
}

/* --------------------------------------------------------------------------
   Hero settings (phones). Every value below can be changed WITHOUT editing
   this file, in increasing order of priority:
     1. Appearance → Customize → Clayclub Hero (colour pickers + sliders)
     2. Appearance → Customize → Additional CSS, e.g.
          .cce-hero { --cce-card-tint: #3A2A1E; --cce-card-opacity: 60%; }
        or for one page only:  .page-id-12 .cce-hero { … }
     3. Elementor: add a preset class next to cce-hero-features
        (Advanced → CSS Classes): cce-glass-light or cce-glass-clear.
   Colours are plain hex; opacities are percentages.
   -------------------------------------------------------------------------- */
.cce-hero {
	/* Overlay behind the heading + intro */
	--cce-hero-wash-color:        #F7F2E8;
	--cce-hero-wash-opacity:      88%;
	--cce-hero-wash-blur:         3px;
	--cce-hero-wash-glow:         #D9B66A;
	--cce-hero-wash-glow-opacity: 30%;
	--cce-hero-wash-solid:        40%;  /* overlay fully on down to here … */
	--cce-hero-wash-end:          64%;  /* … and fully gone by here (of hero height) */
	--cce-hero-photo-position:    75% 100%;
	--cce-hero-photo-space:       clamp(7rem, 30vw, 9.5rem); /* clear photo below the card */

	/* Heading accent + buttons */
	--cce-hero-rule-color:        var(--cce-gold);
	--cce-hero-rule-width:        3.5rem;
	--cce-hero-btn2-opacity:      70%;  /* glass fill of the second button */

	/* Feature card (glass) */
	--cce-card-tint:              #1F3A2B;
	--cce-card-tint-2:            #282E1E; /* bottom-corner tone */
	--cce-card-opacity:           72%;
	--cce-card-blur:              10px;
	--cce-card-saturate:          1.25;
	--cce-card-radius:            20px;
	--cce-card-border:            #D9B66A;
	--cce-card-border-opacity:    38%;
	--cce-card-divider-opacity:   28%;
	--cce-card-sheen:             20%;  /* white shine, top-left */
	--cce-card-shadow:            0 22px 44px -20px rgba(10, 20, 14, 0.7);
	--cce-card-text:              #FBF6EC;
	--cce-card-text-shadow:       0 1px 2px rgba(10, 20, 14, 0.35);
	--cce-card-icon:              #D9B66A;
	--cce-card-icon-disc:         2.75rem;
	--cce-card-icon-size:         1.2rem;
}

/* Elementor presets: add to the cce-hero-features container. */
.cce-hero-features.cce-glass-light {
	--cce-card-tint:            #FFFFFF;
	--cce-card-tint-2:          #F7F2E8;
	--cce-card-opacity:         55%;
	--cce-card-blur:            14px;
	--cce-card-saturate:        1.6;
	--cce-card-sheen:           45%;
	--cce-card-text:            #1F2A22;
	--cce-card-text-shadow:     none;
	--cce-card-icon:            #7A5C18;
	--cce-card-border:          #FFFFFF;
	--cce-card-border-opacity:  65%;
	--cce-card-shadow:          0 18px 40px -18px rgba(31, 42, 34, 0.4);
}
.cce-hero-features.cce-glass-clear {
	--cce-card-opacity:         42%;
	--cce-card-blur:            6px;
	--cce-card-saturate:        1.6;
	--cce-card-sheen:           26%;
	--cce-card-text-shadow:     0 1px 3px rgba(10, 20, 14, 0.6);
}

/* Mobile: frosted overlay behind the top content only, fading smoothly to a
   clear photo, with the four features on a glass card. */
@media (max-width: 767px) {
	.cce-hero .cce-hero__bg img { object-position: var(--cce-hero-photo-position); }
	.cce-hero .cce-hero__bg::after {
		--_s: var(--cce-hero-wash-solid);
		--_e: var(--cce-hero-wash-end);
		background:
			radial-gradient(120% 55% at 100% 0%,
				color-mix(in srgb, var(--cce-hero-wash-glow) var(--cce-hero-wash-glow-opacity), transparent) 0%,
				transparent 70%),
			color-mix(in srgb, var(--cce-hero-wash-color) var(--cce-hero-wash-opacity), transparent);
		-webkit-backdrop-filter: blur(var(--cce-hero-wash-blur)) saturate(1.1);
		backdrop-filter: blur(var(--cce-hero-wash-blur)) saturate(1.1);
		/* Eased fade: solid → clear between --cce-hero-wash-solid and -end. */
		-webkit-mask-image: linear-gradient(180deg,
			#000 0%, #000 var(--_s),
			rgba(0, 0, 0, 0.82) calc(var(--_s) + (var(--_e) - var(--_s)) * 0.25),
			rgba(0, 0, 0, 0.5)  calc(var(--_s) + (var(--_e) - var(--_s)) * 0.5),
			rgba(0, 0, 0, 0.18) calc(var(--_s) + (var(--_e) - var(--_s)) * 0.75),
			transparent var(--_e));
		mask-image: linear-gradient(180deg,
			#000 0%, #000 var(--_s),
			rgba(0, 0, 0, 0.82) calc(var(--_s) + (var(--_e) - var(--_s)) * 0.25),
			rgba(0, 0, 0, 0.5)  calc(var(--_s) + (var(--_e) - var(--_s)) * 0.5),
			rgba(0, 0, 0, 0.18) calc(var(--_s) + (var(--_e) - var(--_s)) * 0.75),
			transparent var(--_e));
	}

	/* Short accent rule under the heading (set width to 0 to hide). */
	.cce-hero h1.elementor-heading-title::after {
		content: "";
		display: block;
		width: var(--cce-hero-rule-width);
		height: 2px;
		margin-top: 1rem;
		border-radius: 2px;
		background: var(--cce-hero-rule-color);
	}

	.cce-hero__actions .elementor-widget-button,
	.cce-hero__actions .elementor-button { width: 100%; }
	.cce-hero__actions .elementor-widget-button:first-child .elementor-button {
		box-shadow: 0 10px 22px -8px rgba(31, 58, 43, 0.55);
	}
	.cce-hero__actions .elementor-widget-button:not(:first-child) .elementor-button {
		background-color: color-mix(in srgb, #FFFFFF var(--cce-hero-btn2-opacity), transparent);
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
	}

	/* Feature card */
	.cce-hero .cce-hero-features {
		position: relative;
		isolation: isolate;
		overflow: hidden;
		margin-block-end: var(--cce-hero-photo-space);
		padding: 0.25rem;
		border: 1px solid color-mix(in srgb, var(--cce-card-border) var(--cce-card-border-opacity), transparent);
		border-radius: var(--cce-card-radius);
		background: linear-gradient(160deg,
			color-mix(in srgb, var(--cce-card-tint)   min(100%, calc(var(--cce-card-opacity) + 8%)), transparent) 0%,
			color-mix(in srgb, var(--cce-card-tint)   max(0%, calc(var(--cce-card-opacity) - 4%)), transparent) 55%,
			color-mix(in srgb, var(--cce-card-tint-2) min(100%, calc(var(--cce-card-opacity) + 2%)), transparent) 100%);
		-webkit-backdrop-filter: blur(var(--cce-card-blur)) saturate(var(--cce-card-saturate));
		backdrop-filter: blur(var(--cce-card-blur)) saturate(var(--cce-card-saturate));
		box-shadow:
			inset 0 1px 0 color-mix(in srgb, #FFFFFF var(--cce-card-sheen), transparent),
			inset 0 -1px 0 color-mix(in srgb, var(--cce-card-border) 18%, transparent),
			var(--cce-card-shadow);
	}
	.cce-hero .cce-hero-features::before { /* diagonal sheen + warm corner glow */
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		border-radius: inherit;
		background:
			linear-gradient(125deg,
				color-mix(in srgb, #FFFFFF var(--cce-card-sheen), transparent) 0%,
				color-mix(in srgb, #FFFFFF calc(var(--cce-card-sheen) * 0.3), transparent) 30%,
				transparent 46%),
			radial-gradient(80% 60% at 100% 100%,
				color-mix(in srgb, var(--cce-card-border) 16%, transparent) 0%, transparent 70%);
	}
	.cce-hero-features,
	.cce-hero-features > .e-con-inner { gap: 0 !important; }
	.cce-hero-features .elementor-widget-icon-box {
		box-sizing: border-box;
		flex: 1 1 50% !important;
		max-width: 50%;
		min-width: 0;
		padding: 1rem 0.6rem !important;
	}
	.cce-hero-features .elementor-widget-icon-box + .elementor-widget-icon-box { border-left: 0; }
	/* Hairline cross dividing the 2 × 2 grid. */
	.cce-hero-features .elementor-widget-icon-box:nth-child(even) {
		border-left: 1px solid color-mix(in srgb, var(--cce-card-border) var(--cce-card-divider-opacity), transparent);
	}
	.cce-hero-features .elementor-widget-icon-box:nth-child(n+3) {
		border-top: 1px solid color-mix(in srgb, var(--cce-card-border) var(--cce-card-divider-opacity), transparent);
	}
	/* Icons in a ringed glass disc. */
	.cce-hero-features .elementor-icon-box-icon .elementor-icon {
		display: inline-grid;
		place-items: center;
		width: var(--cce-card-icon-disc);
		height: var(--cce-card-icon-disc);
		border-radius: 50%;
		background: radial-gradient(circle at 35% 30%,
			color-mix(in srgb, var(--cce-card-icon) 32%, transparent),
			color-mix(in srgb, var(--cce-card-icon) 10%, transparent) 70%);
		box-shadow:
			inset 0 0 0 1px color-mix(in srgb, var(--cce-card-icon) 45%, transparent),
			0 0 18px color-mix(in srgb, var(--cce-card-icon) 18%, transparent);
		color: var(--cce-card-icon) !important;
		fill: var(--cce-card-icon) !important;
	}
	.cce-hero-features .elementor-icon-box-icon .elementor-icon svg,
	.cce-hero-features .elementor-icon-box-icon .elementor-icon i {
		width: var(--cce-card-icon-size);
		height: var(--cce-card-icon-size);
		font-size: var(--cce-card-icon-size);
		color: var(--cce-card-icon) !important;
		fill: var(--cce-card-icon) !important;
	}
	.cce-hero-features .elementor-icon-box-title {
		font-weight: 600;
		letter-spacing: 0.01em;
		color: var(--cce-card-text) !important;
		text-shadow: var(--cce-card-text-shadow);
	}
}

/* Browsers without backdrop-filter: more solid fills keep text readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	@media (max-width: 767px) {
		.cce-hero .cce-hero-features {
			background: color-mix(in srgb, var(--cce-card-tint) min(100%, calc(var(--cce-card-opacity) + 20%)), transparent);
		}
		.cce-hero .cce-hero__bg::after {
			background-color: color-mix(in srgb, var(--cce-hero-wash-color) 93%, transparent);
		}
	}
}

/* ==========================================================================
   5. Site footer (template-parts/footer/site-footer.php)
   Structure: one row of four sections from 1200px (photo fading in from
   the right), two columns from 768px, one column on phones.
   Position and alignment per device come from Customizer classes:
     cce-fo-{d|t|m}-{1-4}            order
     cce-fa-{d|t|m}-{left|center|right}  alignment
     cce-fb-{d|t|m}-{split|left|center|right}  bottom bar
   Devices follow the footer's own layout, not Elementor's breakpoints:
   desktop ≥1200px (one row), tablet 768–1199px (two columns), phone ≤767px.
   So the settings always match what is on screen, e.g. a 13" iPad Pro
   (1032px portrait) uses the Tablet settings.
   ========================================================================== */
.cce-footer {
	--cce-fpad: clamp(1.25rem, 2.2vw, 2rem); /* column padding in the one-row layout */
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--cce-forest);
	color: rgba(255, 255, 255, 0.86);
	font-family: var(--cce-font-body);
	font-size: 0.9375rem;
	line-height: 1.6;
}
.cce-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}
.cce-footer a:hover,
.cce-footer a:focus-visible { color: var(--cce-gold-light); }
.cce-footer :focus-visible { outline-color: var(--cce-gold-light); }
.cce-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.cce-footer p { margin: 0; }

/* Scene photo */
.cce-footer__art {
	position: absolute;
	inset: 0;
	z-index: -1;
}
.cce-footer__art img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 70% 100%;
}
.cce-footer__art::after {
	content: "";
	position: absolute;
	inset: 0;
	/* Solid green behind the text, photo showing through along the bottom. */
	background: linear-gradient(180deg,
		var(--cce-forest) 0%,
		var(--cce-forest) calc(100% - 260px),
		rgba(31, 58, 43, 0.25) 100%);
}

/* Container and columns */
.cce-footer__inner {
	max-width: 1240px;
	margin-inline: auto;
	padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
}
.cce-footer--has-art .cce-footer__inner { padding-bottom: 190px; }
.cce-footer__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.25rem clamp(1.5rem, 4vw, 3rem);
}
.cce-footer__col { min-width: 0; box-sizing: border-box; }

.cce-footer__title {
	margin: 0 0 1rem;
	font-family: var(--cce-font-body);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.3;
	color: var(--cce-white);
}

/* Brand */
.cce-footer__logo { display: inline-block; }
.cce-footer__logo img {
	display: block;
	width: auto;
	max-width: 220px;
	max-height: 72px;
}
.cce-footer__site-name {
	font-family: var(--cce-font-heading);
	font-size: 1.75rem;
	line-height: 1.2;
	color: var(--cce-white);
}
.cce-footer__brand-nav { margin-top: 1rem; }
.cce-footer__inline {
	display: flex;
	flex-wrap: wrap;
	row-gap: 0.25rem;
	font-size: 0.875rem;
}
.cce-footer__inline li + li::before {
	content: "|";
	margin: 0 0.6rem;
	color: rgba(217, 182, 106, 0.6);
}

/* Contact and Quick Links are blocks that move as a unit when the
   section is centred or right-aligned; their own text stays left-aligned. */
.cce-footer__contact,
.cce-footer__links {
	display: inline-block;
	max-width: 100%;
	text-align: left;
	vertical-align: top;
}
.cce-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
}
.cce-footer__contact li + li { margin-top: 0.7rem; }
.cce-footer__icon {
	flex: none;
	margin-top: 0.15em;
	color: var(--cce-gold-light);
}
.cce-footer__contact a { overflow-wrap: anywhere; }
.cce-footer address { margin: 0; font-style: normal; }

.cce-footer__links {
	columns: 2;
	column-gap: 1.5rem;
}
.cce-footer__links li {
	break-inside: avoid;
	padding-bottom: 0.45rem;
	white-space: nowrap;
}

/* Social */
.cce-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.cce-footer__social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	border-radius: var(--cce-radius-sm);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cce-footer__social a:hover,
.cce-footer__social a:focus-visible {
	background: var(--cce-gold-light);
	border-color: var(--cce-gold-light);
	color: var(--cce-forest);
}
.cce-footer__social .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
}

/* Alignment: text-align moves text and inline blocks; --cce-justify moves
   the flex rows (logo links, social icons). */
.cce-footer__inline,
.cce-footer__social { justify-content: var(--cce-justify, flex-start); }

/* Bottom bar */
.cce-footer__bar {
	position: relative;
	background: rgba(0, 0, 0, 0.28);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.8);
}
.cce-footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 2rem;
	max-width: 1240px;
	margin-inline: auto;
	padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
}

/* --- Per-device classes. One block per device so they never overlap. --- */
@media (min-width: 1200px) {
	.cce-fo-d-1 { order: 1; } .cce-fo-d-2 { order: 2; } .cce-fo-d-3 { order: 3; } .cce-fo-d-4 { order: 4; }
	.cce-fa-d-left   { text-align: left;   --cce-justify: flex-start; }
	.cce-fa-d-center { text-align: center; --cce-justify: center; }
	.cce-fa-d-right  { text-align: right;  --cce-justify: flex-end; }
	.cce-fb-d-split  { flex-direction: row;    justify-content: space-between; text-align: left; }
	.cce-fb-d-left   { flex-direction: column; align-items: flex-start; text-align: left; }
	.cce-fb-d-center { flex-direction: column; align-items: center;     text-align: center; }
	.cce-fb-d-right  { flex-direction: column; align-items: flex-end;   text-align: right; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.cce-fo-t-1 { order: 1; } .cce-fo-t-2 { order: 2; } .cce-fo-t-3 { order: 3; } .cce-fo-t-4 { order: 4; }
	.cce-fa-t-left   { text-align: left;   --cce-justify: flex-start; }
	.cce-fa-t-center { text-align: center; --cce-justify: center; }
	.cce-fa-t-right  { text-align: right;  --cce-justify: flex-end; }
	.cce-fb-t-split  { flex-direction: row;    justify-content: space-between; text-align: left; }
	.cce-fb-t-left   { flex-direction: column; align-items: flex-start; text-align: left; }
	.cce-fb-t-center { flex-direction: column; align-items: center;     text-align: center; }
	.cce-fb-t-right  { flex-direction: column; align-items: flex-end;   text-align: right; }
}
@media (max-width: 767px) {
	.cce-fo-m-1 { order: 1; } .cce-fo-m-2 { order: 2; } .cce-fo-m-3 { order: 3; } .cce-fo-m-4 { order: 4; }
	.cce-fa-m-left   { text-align: left;   --cce-justify: flex-start; }
	.cce-fa-m-center { text-align: center; --cce-justify: center; }
	.cce-fa-m-right  { text-align: right;  --cce-justify: flex-end; }
	.cce-fb-m-split  { flex-direction: row;    justify-content: space-between; text-align: left; }
	.cce-fb-m-left   { flex-direction: column; align-items: flex-start; text-align: left; }
	.cce-fb-m-center { flex-direction: column; align-items: center;     text-align: center; }
	.cce-fb-m-right  { flex-direction: column; align-items: flex-end;   text-align: right; }
}

/* --- Structure by width --- */

/* One row from 1200px. Flex (not grid) so each section keeps its own width
   wherever it is placed. Dividers: every section has a left border, and the
   row clips 1px on the left so the visually first section shows none. */
@media (min-width: 1200px) {
	.cce-footer--has-art .cce-footer__inner { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
	.cce-footer__cols {
		display: flex;
		flex-wrap: nowrap;
		align-items: flex-start;
		gap: 0;
		overflow: hidden;
		margin-inline: calc(-1 * var(--cce-fpad));
	}
	.cce-footer__col {
		align-self: stretch;
		margin-left: -1px;
		padding-inline: var(--cce-fpad);
		border-left: 1px solid rgba(217, 182, 106, 0.35);
	}
	.cce-footer__col--brand   { flex: 1 0 auto; }
	/* Sizes include padding. Contact and links keep their minimum so the
	   email and link names never break. */
	.cce-footer__col--contact { flex: 1.3 0 18rem; }
	.cce-footer__col--links   { flex: 1 0 18rem; }
	.cce-footer__col--social  { flex: 0 0 auto; }
	/* One line on desktop, so no separator starts a line. */
	.cce-footer__inline { flex-wrap: nowrap; white-space: nowrap; }

	.cce-footer__art { left: auto; width: 44%; }
	.cce-footer__art img { object-position: 60% 60%; }
	.cce-footer__art::after {
		background: linear-gradient(90deg,
			var(--cce-forest) 0%,
			rgba(31, 58, 43, 0.85) 45%,
			rgba(31, 58, 43, 0.45) 100%);
	}
}

/* Wide screens: lighter fade, as the row no longer reaches the photo's right side. */
@media (min-width: 1400px) {
	.cce-footer__art::after {
		background: linear-gradient(90deg,
			var(--cce-forest) 0%,
			rgba(31, 58, 43, 0.82) 30%,
			rgba(31, 58, 43, 0.15) 75%,
			rgba(31, 58, 43, 0) 100%);
	}
}

/* Phones: one column. */
@media (max-width: 767px) {
	.cce-footer__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}
	.cce-footer--has-art .cce-footer__inner { padding-bottom: 170px; }
	.cce-footer__links { column-gap: 3rem; }
	.cce-footer__title { margin-bottom: 0.75rem; }
	.cce-footer__art::after {
		background: linear-gradient(180deg,
			var(--cce-forest) 0%,
			var(--cce-forest) calc(100% - 230px),
			rgba(31, 58, 43, 0.2) 100%);
	}
}
