/* ==========================================================================
   Leetoo theme — design system
   Self-hosted fonts (no Google Fonts network request), vanilla everything.
   ========================================================================== */

/* -------------------- Fonts (self-hosted, SIL OFL licensed) -------------------- */
@font-face {
	font-family: "Quicksand";
	src: url("../fonts/quicksand-latin-400-normal.woff2") format("woff2");
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Quicksand";
	src: url("../fonts/quicksand-latin-500-normal.woff2") format("woff2");
	font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Quicksand";
	src: url("../fonts/quicksand-latin-600-normal.woff2") format("woff2");
	font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Quicksand";
	src: url("../fonts/quicksand-latin-700-normal.woff2") format("woff2");
	font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Fredoka";
	src: url("../fonts/fredoka-latin-300-normal.woff2") format("woff2");
	font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Fredoka";
	src: url("../fonts/fredoka-latin-500-normal.woff2") format("woff2");
	font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Fredoka";
	src: url("../fonts/fredoka-latin-600-normal.woff2") format("woff2");
	font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Fredoka";
	src: url("../fonts/fredoka-latin-700-normal.woff2") format("woff2");
	font-weight: 700; font-style: normal; font-display: swap;
}

:root {
	--font-heading: "Fredoka", system-ui, sans-serif;
	--font-body: "Quicksand", system-ui, sans-serif;

	--color-accent: #6ab04c;
	--color-accent-dark: #57943f;
	--color-ink: #111111;
	--color-body: #111111;
	--color-bg: #ffffff;
	--color-bg-soft: #f7f8fa;
	--color-border: #e8eaed;

	--container-width: 1250px;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow-sm: 0 2px 8px rgba(31,41,55,.06);
	--shadow-md: 0 12px 32px rgba(31,41,55,.10);
	--ease: cubic-bezier(.4,0,.2,1);
	--transition-fast: 200ms var(--ease);
	--transition-med: 450ms var(--ease);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-body);
	line-height: 1.65;
	font-size: 16px;
	background: var(--color-bg);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}
body.nav-open { overflow: hidden; } /* scroll lock while mobile overlay is open */
main { flex: 1 0 auto; } /* fills remaining space so footer sticks to the bottom even on short pages */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-ink);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 .5em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent-dark); }

.container {
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: 24px;
}

/* Consistent vertical rhythm above/below the main content area, sitewide.
   Targets the <main> element directly (used exactly once per template)
   rather than a class, so every current and future template inherits it
   automatically with nothing extra to remember to add. */
main {
	padding-block: 15px; /* mobile */
}
@media (min-width: 768px) {
	main { padding-block: 30px; } /* tablet and desktop */
}

/* -------------------- Submit buttons (sitewide — forms, CF7, etc.) -------------------- */
input[type="submit"],
button[type="submit"] {
	display: inline-block;
	background: var(--color-accent);
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	border: none;
	border-radius: 999px;
	padding: 14px 36px;
	font-size: .85rem;
	cursor: pointer;
	transition: background var(--transition-fast), transform var(--transition-fast);
}
input[type="submit"]:hover,
button[type="submit"]:hover {
	background: #111;
	transform: translateY(-2px);
}

/* -------------------- Contact Form 7 -------------------- */
.wpcf7 {
	max-width: 600px;
	margin-inline: auto;
}
.wpcf7-form p { margin-bottom: 22px; }

/* Icon + field laid out as flex siblings (icon is the ::before of the flex
   container itself) rather than absolutely positioned against the field's
   height — this stays correctly aligned no matter what markup Contact Form 7
   wraps the input in, instead of guessing at a fixed/percentage offset. */
.cf-field {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
}
.cf-field p { margin: 0; flex: 1; min-width: 0; }
.cf-field::before {
	content: "";
	flex-shrink: 0;
	width: 20px; height: 20px;
	background-repeat: no-repeat; background-size: contain;
	pointer-events: none;
}
/* Message field's icon sits at the top of the row instead of centered,
   since the textarea is much taller than a single-line input. */
.cf-field--message { align-items: flex-start; }
.cf-field--message::before { margin-top: 14px; }

/* Solid-fill icons (Heroicons, MIT licensed) instead of outline strokes */
.cf-field--name::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236ab04c'%3E%3Cpath d='M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z'/%3E%3C/svg%3E");
}
.cf-field--email::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236ab04c'%3E%3Cpath d='M1.5 8.67v8.58a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V8.67l-8.928 5.493a3 3 0 0 1-3.144 0L1.5 8.67Z'/%3E%3Cpath d='M22.5 6.908V6.75a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3v.158l9.714 5.978a1.5 1.5 0 0 0 1.572 0L22.5 6.908Z'/%3E%3C/svg%3E");
}
.cf-field--website::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236ab04c'%3E%3Cpath fill-rule='evenodd' d='M21.721 12.752a9.711 9.711 0 0 0-.945-5.003 12.754 12.754 0 0 1-4.339 2.708 18.991 18.991 0 0 1-.214 4.772 17.165 17.165 0 0 0 5.498-2.477ZM14.634 15.55a17.324 17.324 0 0 0 .332-4.647c-.952.227-1.945.347-2.966.347-1.021 0-2.014-.12-2.966-.347a17.515 17.515 0 0 0 .332 4.647 17.385 17.385 0 0 0 5.268 0ZM9.772 17.119a18.963 18.963 0 0 0 4.456 0A17.182 17.182 0 0 1 12 21.724a17.18 17.18 0 0 1-2.228-4.605ZM7.777 15.23a18.87 18.87 0 0 1-.214-4.774 12.753 12.753 0 0 1-4.34-2.708 9.711 9.711 0 0 0-.944 5.004 17.165 17.165 0 0 0 5.498 2.477ZM21.356 14.752a9.765 9.765 0 0 1-7.478 6.817 18.64 18.64 0 0 0 1.988-4.718 18.627 18.627 0 0 0 5.49-2.098ZM2.644 14.752c1.682.971 3.53 1.688 5.49 2.099a18.64 18.64 0 0 0 1.988 4.718 9.765 9.765 0 0 1-7.478-6.816ZM13.878 2.43a9.755 9.755 0 0 1 6.116 3.986 11.267 11.267 0 0 1-3.746 2.504 18.63 18.63 0 0 0-2.37-6.49ZM12 2.276a17.152 17.152 0 0 1 2.805 7.121c-.897.23-1.837.353-2.805.353-.968 0-1.908-.122-2.805-.353A17.151 17.151 0 0 1 12 2.276ZM10.122 2.43a18.629 18.629 0 0 0-2.37 6.49 11.266 11.266 0 0 1-3.746-2.504 9.754 9.754 0 0 1 6.116-3.985Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
.cf-field--subject::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236ab04c'%3E%3Cpath fill-rule='evenodd' d='M5.25 2.25a3 3 0 0 0-3 3v4.318a3 3 0 0 0 .879 2.121l9.58 9.581c.92.92 2.39 1.186 3.548.428a18.849 18.849 0 0 0 5.441-5.44c.758-1.16.492-2.629-.428-3.548l-9.58-9.581a3 3 0 0 0-2.122-.879H5.25ZM6.375 7.5a1.125 1.125 0 1 0 0-2.25 1.125 1.125 0 0 0 0 2.25Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
.cf-field--message::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236ab04c'%3E%3Cpath fill-rule='evenodd' d='M12 2.25c-2.429 0-4.817.178-7.152.521C2.87 3.061 1.5 4.795 1.5 6.741v6.018c0 1.946 1.37 3.68 3.348 3.97.877.129 1.761.234 2.652.316V21a.75.75 0 0 0 1.28.53l4.184-4.183a.39.39 0 0 1 .266-.112c2.006-.05 3.982-.22 5.922-.506 1.978-.29 3.348-2.023 3.348-3.97V6.741c0-1.947-1.37-3.68-3.348-3.97A49.145 49.145 0 0 0 12 2.25ZM8.25 8.625a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25Zm2.625 1.125a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Zm4.875-1.125a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
.cf-field--phone::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236ab04c'%3E%3Cpath fill-rule='evenodd' d='M1.5 4.5a3 3 0 0 1 3-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 0 1-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 0 0 6.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 0 1 1.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 0 1-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	padding: 12px 0;
	font-family: var(--font-body);
	font-size: 18px;
	color: var(--color-ink);
	border: none;
	border-bottom: 1px solid var(--color-border);
	background: transparent;
	transition: border-color var(--transition-fast);
}
.wpcf7 textarea { min-height: 130px; resize: vertical; }

.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-bottom-color: var(--color-accent);
}

.wpcf7-not-valid-tip { font-size: .8rem; margin-top: 4px; }
.wpcf7-response-output { border-radius: var(--radius-sm); margin-top: 20px !important; }

.icon { display: inline-block; vertical-align: middle; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 30px;
	border: 2px solid var(--color-ink);
	border-radius: 999px;
	color: var(--color-ink);
	font-family: var(--font-heading);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .5px;
	font-size: .8rem;
	background: transparent;
	cursor: pointer;
	transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn:hover { background: var(--color-ink); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--color-ink); }
.btn--small { padding: 9px 20px; font-size: .72rem; }

/* -------------------- Header -------------------- */
.site-header {
	position: sticky; top: 0; z-index: 200;
	background: rgba(255,255,255,.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: background var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--color-border); }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	padding-block: 18px;
}

/* Transparent-over-hero state: floats fixed over the hero (not sticky, which
   would still reserve its own layout height even while transparent) — starts
   see-through with white text/logo, flips to a solid white bar with dark
   text/logo once scrolled past the hero. */
.site-header--overlay {
	position: fixed; top: 0; left: 0; right: 0; width: 100%;
	background: transparent; backdrop-filter: none; border-bottom-color: transparent;
}
.site-header--overlay.is-scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }

.site-logo { position: relative; display: block; height: 36px; aspect-ratio: 244.582 / 75.959; } /* matches the actual logo SVG dimensions — without this, the two absolutely-positioned <img> children contribute no width to the container at all */
.site-logo__img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; object-fit: contain; transition: opacity var(--transition-fast); }
.site-logo__img--black { opacity: 1; }
.site-logo__img--white { opacity: 0; }
.site-header--overlay .site-logo__img--white { opacity: 1; }
.site-header--overlay .site-logo__img--black { opacity: 0; }
.site-header--overlay.is-scrolled .site-logo__img--white { opacity: 0; }
.site-header--overlay.is-scrolled .site-logo__img--black { opacity: 1; }

.primary-nav__list { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.primary-nav__list a {
	position: relative;
	color: var(--color-ink); font-weight: 600; font-family: var(--font-heading);
	font-size: .85rem; text-transform: uppercase; letter-spacing: .5px;
	padding-bottom: 4px; transition: color var(--transition-fast);
}
.primary-nav__list a::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
	background: var(--color-accent); transition: width var(--transition-fast);
}
.primary-nav__list a:hover::after,
.primary-nav__list .current-menu-item a::after { width: 100%; }
.primary-nav__list a:hover { color: var(--color-accent-dark); }

.site-header--overlay .primary-nav__list a { color: #fff; }
.site-header--overlay .primary-nav__list a:hover { color: var(--color-accent); }
.site-header--overlay.is-scrolled .primary-nav__list a { color: var(--color-ink); }
.site-header--overlay.is-scrolled .primary-nav__list a:hover { color: var(--color-accent-dark); }

/* -------------------- Mobile hamburger: staggered 3-bar → X -------------------- */
.nav-toggle {
	display: none;
	position: fixed;
	top: 24px; right: 24px;
	width: 32px; height: 24px;
	background: none; border: none; cursor: pointer; padding: 0;
	z-index: 210;
}
.nav-toggle__bar {
	position: absolute; left: 0;
	height: 3px; border-radius: 2px;
	background: var(--color-ink);
	transition: transform var(--transition-fast), width var(--transition-fast), opacity var(--transition-fast), top var(--transition-fast), background var(--transition-fast);
}
/* staggered widths for a distinctive, non-uniform look */
.nav-toggle__bar:nth-child(1) { top: 0;    width: 100%; }
.nav-toggle__bar:nth-child(2) { top: 10px; width: 70%; }
.nav-toggle__bar:nth-child(3) { top: 20px; width: 85%; }

body.has-hero .nav-toggle__bar { background: #fff; }
body.has-hero.is-scrolled .nav-toggle__bar { background: var(--color-ink); }

.nav-toggle.is-open .nav-toggle__bar { width: 100%; background: #fff; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* -------------------- Full-screen mobile nav overlay -------------------- */
.mobile-nav-overlay {
	position: fixed; inset: 0; z-index: 205; /* above .site-header (200) so it fully covers any solid header, below .nav-toggle (210) so the close button stays clickable */
	background: #111111; /* explicit per spec, independent of --color-ink token changes */
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	opacity: 0; visibility: hidden; transform: translateY(-12px);
	transition: opacity var(--transition-med), visibility var(--transition-med), transform var(--transition-med);
}
.mobile-nav-overlay.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav-overlay__logo { height: 40px; width: auto; margin-bottom: 40px; }
.mobile-nav-overlay__list {
	list-style: none; margin: 0; padding: 0; text-align: center;
}
.mobile-nav-overlay__list li { margin: 18px 0; }
.mobile-nav-overlay__list a {
	font-family: var(--font-heading); font-weight: 600; text-transform: uppercase;
	letter-spacing: 1px; font-size: 1.8rem; color: #fff;
	transition: color var(--transition-fast), letter-spacing var(--transition-fast);
}
.mobile-nav-overlay__list a:hover { color: var(--color-accent); letter-spacing: 2px; }

@media (max-width: 780px) {
	.primary-nav--desktop { display: none; }
	.nav-toggle { display: block; }
}
@media (min-width: 781px) {
	.mobile-nav-overlay { display: none; }
}

/* -------------------- Hero / slider -------------------- */
.hero { position: relative; overflow: hidden; }
.hero--slider { height: 100vh; }

/* Static hero (page headers) — vh-based again per your request, with a
   min-height floor so short/landscape viewports never collapse too small.
   Mobile gets proportionally more vh since the subtitle needs more room
   relative to a narrower viewport width. */
.hero--static { height: 62vh; min-height: 420px; }
@media (min-width: 768px) {
	.hero--static { height: 50vh; min-height: 440px; }
}
@media (min-width: 1025px) {
	.hero--static { height: 44vh; min-height: 460px; }
}

.hero__slides { list-style: none; margin: 0; padding: 0; height: 100%; }
.hero__slide {
	position: absolute; inset: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	opacity: 0; visibility: hidden;
	/* Deliberately its own slower duration (1.4s), not the shared
	   --transition-med (450ms) used for quick UI hovers elsewhere — a
	   dissolve between two completely different photographs needs real
	   time to read as a graceful reveal rather than a quick swap, even
	   with technically correct crossfade CSS (which this already was).
	   visibility stays delayed to match, for the same reason as before:
	   without the delay it snaps to hidden instantly instead of fading. */
	transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s;
	display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero__slide.is-active {
	opacity: 1; visibility: visible;
	z-index: 1; /* incoming slide sits underneath the outgoing one while it dissolves away */
	transition: opacity 1.4s var(--ease), visibility 0s linear 0s;
}
.hero__slide.is-leaving { z-index: 2; } /* outgoing slide stays on top for its full fade-out, so it visually dissolves to reveal the incoming slide underneath, rather than the two just swapping instantly */
.hero__slide::before {
	content: ""; position: absolute; inset: 0;
	background-color: rgba(11, 45, 11, .2); /* dark olive #0B2D0B @ 20% — keeps text legible over any image */
}
/* Blog featured images vary a lot in brightness (illustrations, screenshots,
   photos) — bump the overlay darker specifically here rather than sitewide,
   since other hero contexts (homepage slider, pages) already read fine. */
body.is-single-post .hero__slide::before {
	background-color: rgba(11, 45, 11, .85);
}
.hero__content { position: relative; z-index: 1; color: #fff; max-width: 720px; padding: 0 20px; margin-inline: auto; }
.hero__heading { color: #fff; text-align: center; font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .5rem; }
.hero__subtext { color: #fff; font-family: var(--font-heading); font-weight: 300; font-size: 1.65rem; line-height: 1; margin-bottom: 1.8rem; opacity: .95; }
.hero__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff;
	width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background var(--transition-fast), transform var(--transition-fast);
	z-index: 2;
}
.hero__nav:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.08); }
.hero__nav--prev { left: 28px; }
.hero__nav--next { right: 28px; }

/* Rectangle/dash indicators instead of circular dots — modern slider look */
.hero__dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero__dots button {
	width: 32px; height: 4px; border-radius: 2px;
	border: none; background: rgba(255,255,255,.4); cursor: pointer;
	transition: background var(--transition-fast), width var(--transition-fast);
}
.hero__dots button:hover { background: rgba(255,255,255,.7); }
.hero__dots button.is-active { background: #fff; width: 44px; }

/* -------------------- Service cards (shortcode) -------------------- */
.wp-block-columns { gap: 32px !important; }
.services-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}
@media (min-width: 768px) {
	.services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
	.services-grid { grid-template-columns: repeat(4, 1fr); }
}
.services-grid > br { display: none; } /* belt-and-suspenders alongside the PHP-level strip above — any stray <br> between cards would otherwise still count as a real grid item */
.service-card {
	text-align: center;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 36px 28px;
	transition: border-color var(--transition-fast);
}
.service-card:hover { border-color: var(--color-accent); }
.service-card__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 68px; height: 68px; border-radius: 50%;
	background: rgba(106, 176, 76, .12); /* light accent-green tint, not neutral gray */
	color: var(--color-accent);
	margin-bottom: 16px;
	transition: background var(--transition-fast), color var(--transition-fast);
}
.service-card:hover .service-card__icon { background: var(--color-accent); color: #fff; }
.service-card__title { font-size: 1.05rem; margin-bottom: 8px; }
.service-card__desc { font-size: .92rem; color: var(--color-body); margin: 0; }

/* -------------------- Homepage section rhythm -------------------- */
.section { margin-block: 64px; }
main > .section:last-child { margin-bottom: 0; } /* otherwise the last section's own bottom margin adds an extra gap before the footer, on top of main's own padding */
main > .section--full:last-child {
	margin-bottom: -15px; /* cancels main's own bottom padding (mobile) so a full-bleed section runs flush to the footer instead of leaving main's standard content padding as a visible gap */
}
@media (min-width: 768px) {
	main > .section--full:last-child { margin-bottom: -30px; } /* matches main's tablet/desktop padding-bottom */
}
.section--full { padding-inline: 0; }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-subtitle { color: var(--color-body); font-size: 1.05rem; margin: 8px 0 0; }

/* -------------------- Contact CTA -------------------- */
.cta-box {
	background: #f5f5f5;
	border-radius: var(--radius);
	padding: 56px 40px;
	text-align: center;
	max-width: 720px;
	margin-inline: auto;
}
.cta-box h2 { margin-bottom: 12px; }
.cta-box p { color: var(--color-body); margin-bottom: 28px; }
.btn--accent {
	background: var(--color-accent); border-color: var(--color-accent); color: #fff;
}
.btn--accent:hover { background: #111; border-color: #111; color: #fff; }

/* -------------------- Full-screen CTA (shortcode) -------------------- */
.cta-fullscreen {
	/* breaks out of the content area's max-width to span the full viewport,
	   even though the shortcode is typed directly into normal page content */
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	background: var(--color-accent);
	color: #fff;
	text-align: center;
	padding: 100px 24px;
}
.cta-fullscreen h2 { color: #fff; max-width: 720px; margin-inline: auto; }
@media (min-width: 1025px) {
	.cta-fullscreen h2 { font-size: 3rem; max-width: 1250px; }
}
.btn--cta-white {
	background: #fff; border-color: #fff; color: var(--color-accent);
}
.btn--cta-white:hover {
	background: transparent; border: 1px solid #fff; color: #fff;
}

/* -------------------- Homepage testimonials slider (autoplay only, no controls) -------------------- */
.home-testimonials {
	background: #f5f5f5;
	padding-block: 64px;
}
.home-testimonials__track {
	position: relative;
	max-width: 780px;
	margin-inline: auto;
	padding-inline: 24px;
	min-height: 200px;
	overflow: hidden;
}
.home-testimonial-card {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity var(--transition-med), transform var(--transition-med), visibility var(--transition-med);
	text-align: center; margin: 0; padding: 0 24px;
}
.home-testimonial-card.is-active { opacity: 1; visibility: visible; transform: translateY(0); position: relative; }
.home-testimonial-card .icon { color: var(--color-accent); margin-bottom: 12px; }
.home-testimonial-card__content { font-size: 1.1rem; color: var(--color-ink); }
.home-testimonial-card__content p { margin: 0 0 12px; }
.home-testimonial-card__content p:last-child { margin-bottom: 16px; }
.home-testimonial-card cite { font-family: var(--font-heading); font-weight: 600; font-style: normal; color: var(--color-body); }

/* -------------------- Portfolio grid / filter -------------------- */
/* Full-width archive layout — the container itself has no max-width or
   side padding, so grid images run edge-to-edge like the reference site.
   The filter nav keeps its own inner padding so its buttons don't touch
   the exact browser edge. */
.portfolio-archive-main {
	width: 100%; max-width: none;
	padding-inline: 15px;
}
@media (min-width: 1025px) {
	.portfolio-archive-main { padding-inline: 30px; }
}
.portfolio-filter {
	display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0;
}
.portfolio-filter__btn {
	background: none; border: 1px solid var(--color-border); border-radius: 999px; padding: 9px 20px;
	font-family: var(--font-heading); font-size: .78rem; text-transform: uppercase; letter-spacing: .3px;
	cursor: pointer; transition: all var(--transition-fast);
}
.portfolio-filter__btn.is-active,
.portfolio-filter__btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}
.portfolio-grid--home { gap: 0; } /* seamless full-bleed strip on the homepage, unlike the archive's 20px gutters */
@media (min-width: 1025px) {
	/* Larger cells on desktop, ~450x300 to match the reference site */
	.portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); }
	/* Homepage preview band specifically always wants exactly 4 across,
	   regardless of viewport width — the archive page's auto-fill sizing
	   above is for an arbitrary/larger number of items and wouldn't
	   reliably fit 4 columns on a typical ~1366px laptop screen. */
	.portfolio-grid--home { grid-template-columns: repeat(4, 1fr); }
}
.portfolio-grid__item { transition: opacity var(--transition-med), transform var(--transition-med); }
.portfolio-grid__item.is-hidden { display: none; }

.portfolio-card {
	position: relative; display: block; overflow: hidden;
	/* no border-radius/shadow here — full-bleed edge-to-edge tiles, not floating cards */
}
.portfolio-card__media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--color-bg-soft); }
.portfolio-card__media img {
	width: 100%; height: 100%; object-fit: cover;
	filter: grayscale(100%);
	transition: transform var(--transition-med), filter var(--transition-med);
}
.portfolio-card:hover .portfolio-card__media img { transform: scale(1.08); filter: grayscale(0%); }

/* Title/category text hidden by default, revealed on hover — the image
   itself is the initial focus, matching the request to lead with visuals. */
.portfolio-card__overlay {
	position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
	padding: 24px; color: #fff;
	background: linear-gradient(to top, rgba(0,0,0,.85), transparent 65%);
	opacity: 0;
	transition: opacity var(--transition-fast);
}
.portfolio-card:hover .portfolio-card__overlay,
.portfolio-card:focus-within .portfolio-card__overlay { opacity: 1; } /* focus-within keeps this reachable via keyboard nav, not just mouse hover */
.portfolio-card__overlay h3 { color: #fff; margin: 0 0 4px; text-transform: uppercase; font-size: 1.1rem; }
.portfolio-card__cats { margin: 0; font-size: .78rem; opacity: .85; }

/* -------------------- Single portfolio -------------------- */
.portfolio-single__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; margin: 44px 0; }
.portfolio-single__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.portfolio-single__meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; margin: 20px 0; }
.portfolio-single__meta dt { font-weight: 700; font-family: var(--font-heading); }
.portfolio-single__adjacent {
	display: flex; justify-content: space-between; padding: 24px 0; border-top: 1px solid var(--color-border);
	font-family: var(--font-heading); font-weight: 600;
}
.portfolio-single__prev, .portfolio-single__next { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 780px) { .portfolio-single__grid { grid-template-columns: 1fr; } }

/* -------------------- Blog grid (fixed) -------------------- */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
	align-items: stretch; /* default for grid, stated explicitly since the flex column below relies on it */
}
.blog-card {
	display: flex; flex-direction: column;
	border-radius: var(--radius); overflow: hidden;
	background: var(--color-bg); box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card__media {
	position: relative;
	aspect-ratio: 16/10; overflow: hidden; background: var(--color-bg-soft);
	display: flex; align-items: center; justify-content: center;
}
/* Switched from object-fit:contain back to cover — contain's "never crop"
   guarantee meant any image whose native aspect ratio didn't closely match
   this card's fixed 16:10 box (several of the flat-graphic blog headers,
   in particular) showed visible letterboxing instead of filling the card.
   These are mostly centered text/icon graphics with generous built-in
   padding, so a modest crop is low-risk compared to the inconsistent,
   partially-empty look contain was producing across the grid. */
.blog-card__media-fg {
	position: relative; z-index: 1;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform var(--transition-med);
}
.blog-card:hover .blog-card__media-fg { transform: scale(1.06); }
.blog-card__placeholder { color: var(--color-border); }

.blog-card__body {
	display: flex; flex-direction: column;
	flex: 1; /* fills the row's stretched height so like buttons land in the same spot across a row */
	padding: 18px;
}
.blog-card__body h3 {
	margin: 0 0 8px; font-size: 1.05rem; line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; /* caps title to 2 lines so one long headline can't throw off card height */
}
.blog-card__excerpt {
	font-size: .88rem; line-height: 1.55; color: var(--color-body);
	margin: 0 0 14px;
	flex: 1; /* absorbs leftover space so the like button below stays bottom-anchored */
}
.blog-card__body .like-btn {
	align-self: flex-start;
	margin-top: auto;
	pointer-events: auto; /* explicit — sits inside an <a>, make sure it's still independently clickable */
}

#infinite-scroll-sentinel { height: 1px; }
.infinite-scroll-status {
	text-align: center; color: var(--color-body); font-size: .85rem;
	padding: 24px 0; margin: 0;
}

/* -------------------- Single portfolio & blog article grids on archives -------------------- */
.portfolio-grid--preview { margin-bottom: 24px; }

/* -------------------- Blog single + sidebar -------------------- */
.blog-single__layout { display: grid; grid-template-columns: 2.4fr 1fr; gap: 52px; align-items: start; }
.blog-single__meta { color: #9aa2ad; font-size: .85rem; }
.blog-single__thumb img { border-radius: var(--radius); }
.tag-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0; }
.tag-chips a {
	background: var(--color-bg-soft); padding: 7px 16px; border-radius: 999px; font-size: .8rem;
	transition: background var(--transition-fast), color var(--transition-fast);
}
.tag-chips a:hover { background: var(--color-accent); color: #fff; }

.related-posts { margin-top: 40px; } /* breathing room below the like button/tags footer */
.related-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.related-posts__item { display: block; border-radius: var(--radius-sm); overflow: hidden; transition: transform var(--transition-fast); }
.related-posts__item:hover { transform: translateY(-3px); }
.related-posts__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.related-posts__placeholder {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 4/3; background: var(--color-bg-soft); color: var(--color-border);
}
.related-posts__item h3 { font-size: .95rem; margin-top: 8px; }
@media (max-width: 640px) {
	.related-posts__grid { grid-template-columns: repeat(2, 1fr); } /* 3 across is too tight on small phones */
}

.sidebar-block { background: var(--color-bg-soft); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.sidebar-block--promo { text-align: center; }
.sidebar-block__title { margin-bottom: 12px; }
@media (max-width: 900px) { .blog-single__layout { grid-template-columns: 1fr; } }

/* -------------------- Like button -------------------- */
.like-btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: none; border: 1px solid var(--color-border); border-radius: 999px; padding: 9px 18px;
	cursor: pointer; color: var(--color-body); font-family: var(--font-heading); font-weight: 600;
	transition: all var(--transition-fast);
}
.like-btn:hover, .like-btn.is-liked { border-color: var(--color-accent); color: var(--color-accent); }
.like-btn.is-animating .like-btn__icon { animation: like-pop 320ms var(--ease); }
@keyframes like-pop {
	0% { transform: scale(1); }
	45% { transform: scale(1.5); }
	100% { transform: scale(1); }
}

/* -------------------- Testimonial carousel -------------------- */
.testimonial-carousel {
	display: flex; align-items: center; gap: 24px;
	max-width: 780px; margin: 48px auto; position: relative;
}
.testimonial-carousel__track { position: relative; flex: 1; min-height: 220px; overflow: hidden; }
.testimonial-card {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity var(--transition-med), transform var(--transition-med), visibility var(--transition-med);
	background: var(--color-bg-soft); border-radius: var(--radius); padding: 36px;
	text-align: center; margin: 0;
}
.testimonial-card.is-active { opacity: 1; visibility: visible; transform: translateY(0); position: relative; }
.testimonial-card .icon { color: var(--color-accent); margin-bottom: 12px; }
.testimonial-card__content { font-size: 1.1rem; color: var(--color-ink); }
.testimonial-card__content p { margin: 0 0 12px; }
.testimonial-card__content p:last-child { margin-bottom: 16px; }
.testimonial-card cite { font-family: var(--font-heading); font-weight: 600; font-style: normal; color: var(--color-body); }
.testimonial-carousel__nav {
	flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--color-border); background: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center; color: var(--color-ink);
	transition: all var(--transition-fast);
}
.testimonial-carousel__nav:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.testimonial-carousel__dots {
	position: absolute; bottom: -32px; left: 0; right: 0;
	display: flex; justify-content: center; gap: 8px;
}
.testimonial-carousel__dots button {
	width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--color-border); cursor: pointer;
	transition: background var(--transition-fast), transform var(--transition-fast);
}
.testimonial-carousel__dots button.is-active { background: var(--color-accent); transform: scale(1.3); }
@media (max-width: 600px) { .testimonial-carousel { flex-direction: column; } }

/* -------------------- Scroll reveal (progressive enhancement) -------------------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity var(--transition-med), transform var(--transition-med);
}
[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	.mobile-nav-overlay, .testimonial-card { transition: none; }
	/* .hero__slide deliberately NOT included here — a plain opacity
	   crossfade isn't the kind of motion this preference is meant to
	   guard against (unlike the transform-based animations above), and
	   disabling it entirely made slide changes snap instantly instead of
	   fading, which read as "jumpy" rather than reduced. */
}

/* -------------------- Footer -------------------- */
.site-footer {
	background: var(--color-ink); color: #b7bec8;
	height: 45px;
	display: flex; align-items: center; justify-content: center;
	text-align: center; font-size: .8rem;
	flex-shrink: 0; /* never compressed by the flex-column body layout above */
}
.site-footer p { margin: 0; }
