/*
Theme Name: Ionian Crest
Theme URI: https://tedbg.com
Author: TEDBG
Author URI: https://tedbg.com
Description: Lightweight classic theme for Ionian Crest, a construction company in Corfu. Services, gallery, testimonials, blog and a native contact form. No page builder, no jQuery, one stylesheet.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ioniancrest
*/

/* ------------------------------------------------------------------
   1. Tokens and base
------------------------------------------------------------------ */
:root {
	--c-navy: #0b2b40;
	--c-navy-2: #10384f;
	--c-sea: #1a6e8e;
	--c-sea-dark: #13556e;
	--c-aqua: #4fb3c9;
	--c-sand: #f4efe6;
	--c-sand-2: #ebe3d4;
	--c-stone: #d9cdb8;
	--c-gold: #c9a062;
	--c-ink: #1c2a33;
	--c-muted: #5b6b75;
	--c-line: #e3ded4;
	--c-white: #ffffff;
	--c-ok: #1f7a4d;
	--c-err: #b3261e;
	--c-wa: #25d366;
	--font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--wrap: 1200px;
	--gutter: 16px;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px rgba(11, 43, 64, 0.08);
	--shadow-lg: 0 18px 50px rgba(11, 43, 64, 0.16);
	--header-h: 68px;
}
@media (min-width: 768px) {
	:root { --gutter: 24px; --header-h: 80px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.mnav-open, html.lb-open { overflow: hidden; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-ink);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--c-sea); text-decoration: none; }
a:hover { color: var(--c-sea-dark); }
:focus-visible { outline: 3px solid var(--c-aqua); outline-offset: 2px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.15;
	color: var(--c-navy);
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--c-white); padding: 10px 14px; border-radius: 8px; }
.eyebrow {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-sea);
	margin: 0 0 12px;
}
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--c-muted); }
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-text { color: var(--c-muted); font-size: 1.05rem; margin: 0; }
.section-more { margin: 36px 0 0; text-align: center; }
.link-more { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.empty { color: var(--c-muted); font-size: 1.05rem; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: var(--radius-sm);
	font-weight: 700; font-size: 0.95rem; line-height: 1.2;
	border: 2px solid transparent; text-decoration: none; cursor: pointer;
	transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
	max-width: 100%; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-sea); color: var(--c-white); }
.btn-primary:hover { background: var(--c-sea-dark); color: var(--c-white); }
.btn-outline { background: transparent; color: var(--c-sea); border-color: var(--c-sea); }
.btn-outline:hover { background: var(--c-sea); color: var(--c-white); }
.btn-light { background: var(--c-white); color: var(--c-navy); }
.btn-light:hover { background: var(--c-sand); color: var(--c-navy); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.08); color: var(--c-white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost-light:hover { background: var(--c-white); color: var(--c-navy); }
.btn-whatsapp { background: var(--c-wa); color: var(--c-white); }
.btn-whatsapp:hover { background: #1ebe5b; color: var(--c-white); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }

/* ------------------------------------------------------------------
   2. Header and navigation
------------------------------------------------------------------ */
/* No backdrop-filter here: a filter on the header would turn it into the containing block of the
   fixed mobile menu, which must cover the whole viewport. */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--c-white);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.2s, border-color 0.2s;
}
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: 0 6px 24px rgba(11, 43, 64, 0.08); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); position: relative; z-index: 101; background: var(--c-white); } /* above the mobile panel (z 99 inside the header), so the burger turned X stays visible and clickable */
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 0; }
.brand-svg { height: 40px; width: auto; }
.brand-img { display: block; max-height: 40px; width: auto; }
@media (min-width: 768px) { .brand-img { max-height: 46px; } }
@media (min-width: 1024px) { .brand-img { max-height: 32px; } } /* 1024-1319: same width as the old wordmark, the nav needs the room */
@media (min-width: 1320px) { .brand-img { max-height: 48px; } }
@media (max-width: 479px) { .brand-img { max-height: 32px; } } /* up to 479: logo 278 px wide at 40 px does not fit next to the phone icon and the burger */
.brand-footer .brand-img { max-height: 44px; }
@media (min-width: 768px) { .brand-svg { height: 48px; } }
.main-nav { display: none; margin-left: auto; min-width: 0; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: nowrap; }
.main-nav .menu li { flex: 0 0 auto; }
.main-nav .menu a {
	display: block; padding: 10px 11px; border-radius: 8px; white-space: nowrap;
	color: var(--c-navy); font-weight: 600; font-size: 0.92rem;
}
.main-nav .menu a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: var(--c-sand); color: var(--c-sea-dark); }
.header-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.h-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--c-navy); font-weight: 700; padding: 10px; border-radius: 8px; white-space: nowrap; }
.h-phone span { display: none; }
.h-phone:hover { background: var(--c-sand); color: var(--c-sea-dark); }
.h-quote { display: none; white-space: nowrap; }
.burger {
	display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
	width: 44px; height: 44px; padding: 10px; border-radius: 8px; cursor: pointer; flex: 0 0 auto;
}
.burger span { display: block; height: 2px; background: var(--c-navy); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.mnav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.mnav-toggle:checked ~ .header-inner .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mnav-toggle:checked ~ .header-inner .burger span:nth-child(2) { opacity: 0; }
.mnav-toggle:checked ~ .header-inner .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 99; visibility: hidden; pointer-events: none; overflow: hidden; }
/* Very narrow phones (320-399 px): the logo and the burger must fit, the phone goes to the menu. */
@media (max-width: 399px) {
	.header-inner { gap: 12px; }
	.brand-svg { height: 34px; }
	.h-phone { display: none; }
}
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(11, 43, 64, 0.5); opacity: 0; transition: opacity 0.25s; cursor: pointer; }
.mobile-nav-inner {
	position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw);
	background: var(--c-white); padding: calc(var(--header-h) + 12px) 20px 24px; overflow-y: auto;
	transform: translateX(100%); transition: transform 0.25s ease; z-index: 1; box-shadow: var(--shadow-lg);
}
.mnav-toggle:checked ~ .mobile-nav { visibility: visible; pointer-events: auto; }
.mnav-toggle:checked ~ .mobile-nav .mobile-nav-backdrop { opacity: 1; }
.mnav-toggle:checked ~ .mobile-nav .mobile-nav-inner { transform: none; }
.mobile-menu { list-style: none; margin: 0 0 20px; padding: 0; }
.mobile-menu a { display: block; padding: 13px 6px; border-bottom: 1px solid var(--c-line); color: var(--c-navy); font-weight: 700; font-size: 1.05rem; }
.mobile-menu .current-menu-item > a { color: var(--c-sea); }
.mobile-actions { display: grid; gap: 10px; }
@media (min-width: 1024px) {
	.main-nav { display: block; }
	.burger, .mobile-nav { display: none; }
	.header-cta { margin-left: 0; }
	.h-quote { display: inline-flex; }
	.brand-svg { height: 42px; }
}
/* 1024-1139 px (small laptops, tablets in landscape): tighter menu so the seven items, the phone icon and the
   quote button do not touch. */
@media (min-width: 1024px) and (max-width: 1139px) {
	.header-inner { gap: 12px; }
	.main-nav .menu a { padding-left: 8px; padding-right: 8px; font-size: 0.9rem; }
	.h-phone { padding: 10px 6px; }
}
/* The header may be a little wider than the content so the logo, seven menu items, the phone
   and the quote button fit on one line without shrinking. */
.site-header .wrap { max-width: 1340px; }
@media (min-width: 1320px) {
	.h-phone span { display: inline; }
	.brand-svg { height: 48px; }
	.header-inner { gap: 24px; }
}

/* ------------------------------------------------------------------
   3. Hero and highlights
------------------------------------------------------------------ */
.hero {
	position: relative; isolation: isolate; color: var(--c-white);
	background: var(--c-navy);
	padding: 0 0 84px; min-height: 0; display: block;
}
/* Phone and tablet (22.10.2026, client): the photo stands alone above the text and fades into the navy block */
.hero-bg {
	position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; z-index: 0;
	-webkit-mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0) 100%);
}
@media (min-width: 600px) { .hero-bg { aspect-ratio: 16 / 9; } }
.hero-overlay { display: none; }
.hero-content { margin-top: -16px; }
.hero-box { max-width: 560px; }
.hero .eyebrow { color: var(--c-aqua); }
.hero .hero-title { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; font-size: clamp(1.55rem, 2.6vw, 2.25rem); color: var(--c-white); margin: 0 0 14px; }
.hero .lead { color: rgba(255, 255, 255, 0.88); max-width: 520px; font-size: 1rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 18px; }
.hero-actions .btn { padding: 12px 20px; font-size: 0.95rem; }
.hero-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.hero-phone a { color: var(--c-white); font-weight: 700; font-size: 1rem; }
/* Desktop: the photo fills the hero, the text sits in a narrow column on the right over the sea, the villa stays clear */
@media (min-width: 900px) {
	.hero { padding: 96px 0 130px; min-height: 600px; display: flex; align-items: center; }
	.hero-bg { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; z-index: -2; -webkit-mask-image: none; mask-image: none; }
	.hero-overlay { display: block; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 43, 64, 0.32) 0%, rgba(11, 43, 64, 0) 38%), linear-gradient(270deg, rgba(11, 43, 64, 0.74) 0%, rgba(11, 43, 64, 0.5) 32%, rgba(11, 43, 64, 0.14) 56%, rgba(11, 43, 64, 0) 78%); }
	.hero-content { margin-top: 0; }
	.hero-box { margin-left: auto; }
	.hero .eyebrow, .hero .hero-title, .hero .lead, .hero-phone { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 24px rgba(0, 0, 0, 0.25); }
}
/* The cards start below the lowest point of the hero wave, so the wave stays visible (19.10.2026) */
.stats { position: relative; z-index: 2; margin-top: -16px; }
@media (min-width: 900px) { .stats { margin-top: -24px; } }
.stats-grid {
	display: grid; grid-template-columns: 1fr; gap: 1px;
	background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { background: var(--c-white); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat .num { font-family: var(--font-head); font-size: 1.6rem; color: var(--c-navy); font-weight: 600; line-height: 1.1; }
.stat .label { color: var(--c-muted); font-size: 0.95rem; }

/* ------------------------------------------------------------------
   4. Cards and grids
------------------------------------------------------------------ */
.services-grid, .projects-grid, .posts-grid, .t-grid, .values-grid, .turnkey-grid {
	display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
	.services-grid, .projects-grid, .posts-grid, .t-grid, .values-grid, .turnkey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.services-grid-3, .projects-grid, .posts-grid, .t-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.turnkey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; margin: 0 auto; }
}
.services-grid > *, .projects-grid > *, .posts-grid > *, .t-grid > *, .values-grid > *, .turnkey-grid > * { min-width: 0; max-width: 100%; }
.thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; background: var(--c-sand); color: var(--c-stone); }

.service-card, .post-card, .project-card {
	background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover, .post-card:hover, .project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-media, .post-media, .project-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-sand); position: relative; }
.service-media img, .post-media img, .project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .service-media img, .project-card:hover .project-media img, .post-card:hover .post-media img { transform: scale(1.04); }
.service-body, .post-body, .project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.service-body h3, .post-body h3, .project-body h3 { font-size: 1.2rem; margin: 0 0 8px; }
.service-body h3 a, .post-body h3 a, .project-body h3 a { color: var(--c-navy); }
.service-body h3 a:hover, .post-body h3 a:hover, .project-body h3 a:hover { color: var(--c-sea); }
.service-body p, .post-body p { color: var(--c-muted); font-size: 0.95rem; margin: 0 0 14px; }
.service-icon {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
	background: var(--c-sand); color: var(--c-sea); margin: -44px 0 12px; position: relative;
	border: 3px solid var(--c-white); box-shadow: 0 4px 12px rgba(11, 43, 64, 0.1);
}
.value-card .service-icon, .turnkey-card .service-icon { margin: 0 0 14px; border: 0; box-shadow: none; }
.more { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; color: var(--c-sea); font-weight: 700; font-size: 0.92rem; }
.more:hover svg, .more:focus-visible svg { transform: translateX(4px); }
.project-overlay {
	position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
	background: var(--c-white); color: var(--c-navy); display: grid; place-items: center;
	opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s;
}
.project-card:hover .project-overlay { opacity: 1; transform: none; }
.project-body .meta, .post-body .meta { color: var(--c-muted); font-size: 0.85rem; margin: 0 0 8px; }
.post-body .meta .sep { margin: 0 4px; }
.post-body h3 { order: 1; }
.post-body .meta { order: 0; }
.post-body p:not(.meta) { order: 2; }
.post-body .more { order: 3; }

/* Values / turnkey cards */
.value-card, .turnkey-card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px 24px; }
.value-card h3, .turnkey-card h3 { font-size: 1.15rem; }
.value-card p, .turnkey-card p { color: var(--c-muted); font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------------------------
   5. About, process, testimonials, CTA
------------------------------------------------------------------ */
.about-split { background: var(--c-white); }
.about-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-lg); }
.about-media:empty { display: none; }
.about-text .prose h2:first-child { margin-top: 0; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: 0 0 auto; margin-top: 4px; color: var(--c-sea); background: var(--c-sand); border-radius: 50%; padding: 2px; width: 20px; height: 20px; }

.process-section { background: var(--c-sand); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.step { background: var(--c-white); border-radius: var(--radius); padding: 24px 22px; min-width: 0; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-navy); color: var(--c-white); font-weight: 700; margin-bottom: 14px; font-family: var(--font-head); }
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--c-muted); font-size: 0.93rem; }

.testimonials-section { background: linear-gradient(180deg, var(--c-white) 0%, var(--c-sand) 100%); }
.t-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.t-head .section-head { margin-bottom: 28px; }
.t-slider-nav { display: none; gap: 8px; margin-bottom: 28px; flex: 0 0 auto; }
.t-slider-nav-mobile { display: flex; justify-content: center; margin: 18px 0 0; }
@media (min-width: 900px) { .t-slider-nav { display: flex; } .t-slider-nav-mobile { display: none; } }
.t-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-navy); display: grid; place-items: center; }
.t-arrow:hover { background: var(--c-navy); color: var(--c-white); }
.t-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 14px; scrollbar-width: none; }
.t-track::-webkit-scrollbar { display: none; }
.t-track .t-card { flex: 0 0 min(100%, 380px); scroll-snap-align: start; }
.t-card {
	position: relative; margin: 0; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius);
	padding: 28px 26px 24px; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow);
}
.t-quote { position: absolute; top: 18px; right: 20px; color: var(--c-sand-2); }
.stars { display: inline-flex; gap: 2px; margin-bottom: 12px; }
.stars .on { color: var(--c-gold); }
.stars .off { color: var(--c-line); }
.t-card blockquote { margin: 0 0 18px; font-size: 1rem; line-height: 1.65; color: var(--c-ink); flex: 1; }
.t-card blockquote p:last-child { margin-bottom: 0; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c-navy); color: var(--c-white); display: grid; place-items: center; font-family: var(--font-head); font-size: 1.1rem; flex: 0 0 auto; }
.t-card .name { display: block; font-weight: 700; color: var(--c-navy); }
.t-card .role { display: block; font-size: 0.85rem; color: var(--c-muted); }

.cta-band { background: var(--c-navy); color: var(--c-white); padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 179, 201, 0.35) 0%, rgba(79, 179, 201, 0) 70%); }
.cta-inner { position: relative; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; } .cta-actions { justify-content: flex-end; } }
.cta-band h2 { color: var(--c-white); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 0; max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------
   6. Inner pages
------------------------------------------------------------------ */
.page-hero { background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-navy-2) 60%, #164a62 100%); color: var(--c-white); padding: 40px 0 44px; }
@media (min-width: 900px) { .page-hero { padding: 56px 0 60px; } }
.page-hero h1 { color: var(--c-white); margin-bottom: 10px; max-width: 900px; font-size: clamp(1.8rem, 4vw, 2.9rem); }
.page-hero .eyebrow { color: var(--c-aqua); }
.page-hero .eyebrow a { color: var(--c-white); }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); max-width: 760px; margin: 0; }
.crumbs { margin-bottom: 18px; font-size: 0.85rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; color: rgba(255, 255, 255, 0.7); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { color: rgba(255, 255, 255, 0.85); }
.crumbs a:hover { color: var(--c-white); }
.author-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.author-hero .author-avatar img { border-radius: 50%; width: 96px; height: 96px; }

.content-section .page-figure { margin: -16px 0 32px; }
.page-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose-page { max-width: 780px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.35em; }
.prose img { border-radius: var(--radius); margin: 1.5em auto; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 0.85rem; color: var(--c-muted); text-align: center; margin-top: 8px; }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--c-aqua); background: var(--c-sand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.95rem; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--c-sand); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .wp-block-image, .prose .wp-block-embed { max-width: 100%; }
.prose iframe { max-width: 100%; }
.post-updated { color: var(--c-muted); font-size: 0.88rem; margin: 28px 0 0; }
.gallery-title { margin-top: 48px; }

/* FAQ accordion, global so it looks the same on services, blog and pages */
.prose details, .product-faq details { border: 1px solid var(--c-line); border-radius: var(--radius-sm); margin: 0 0 10px; background: var(--c-white); }
.prose details summary, .product-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 18px; cursor: pointer; font-weight: 700; color: var(--c-navy); list-style: none;
}
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--c-sea); flex: 0 0 auto; }
.prose details[open] summary::after { content: "-"; }
.prose details > *:not(summary) { padding: 0 18px; }
.prose details > p:last-child { padding-bottom: 14px; margin-bottom: 0; }
.prose .faq-answer, .product-faq-answer { padding: 0 18px 14px; }

/* Service single layout */
.service-layout, .project-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) {
	.service-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
	.project-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
}
.service-main, .project-layout .prose { min-width: 0; }
.service-side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: var(--c-sand); border-radius: var(--radius); padding: 24px; }
.side-card h2 { font-size: 1.2rem; margin-bottom: 10px; }
.side-card p { color: var(--c-muted); font-size: 0.95rem; }
.side-card-cta { background: var(--c-navy); color: var(--c-white); }
.side-card-cta h2 { color: var(--c-white); }
.side-card-cta p { color: rgba(255, 255, 255, 0.82); }
.side-card-cta .btn { width: 100%; }
.side-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--c-white); font-weight: 700; margin-top: 14px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { border-bottom: 1px solid rgba(11, 43, 64, 0.08); }
.side-list li:last-child { border: 0; }
.side-list a { display: flex; align-items: center; gap: 6px; padding: 9px 0; color: var(--c-navy); font-weight: 600; font-size: 0.95rem; }
.side-list a:hover { color: var(--c-sea); }
.project-facts dl { margin: 0 0 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 0.95rem; }
.project-facts dt { color: var(--c-muted); }
.project-facts dd { margin: 0; font-weight: 600; color: var(--c-navy); }
.project-facts .btn { width: 100%; }

/* Gallery grid and lightbox */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--c-sand); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(11, 43, 64, 0.95); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; text-align: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 8px; object-fit: contain; }
.lightbox figcaption { color: rgba(255, 255, 255, 0.8); margin-top: 10px; font-size: 0.9rem; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: var(--c-white); display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); } }

/* Filter chips, pagination, search */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-navy); font-weight: 600; font-size: 0.9rem; background: var(--c-white); }
.chip:hover, .chip.is-active { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }
.pagination { margin-top: 40px; }
.pagination ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--c-line); color: var(--c-navy); font-weight: 600; }
.pagination .page-numbers.current { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }
.pagination a.page-numbers:hover { background: var(--c-sand); }
.search-form { display: flex; gap: 8px; max-width: 520px; flex-wrap: wrap; }
.search-form input[type="search"] { flex: 1 1 200px; min-width: 0; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); font: inherit; }
.search-again { margin-bottom: 32px; }

/* Author box */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 40px 0 0; padding: 22px 24px; background: var(--c-sand); border-radius: var(--radius); max-width: 780px; }
.author-box .author-avatar img { border-radius: 50%; width: 64px; height: 64px; }
.author-box p { margin: 0; }
.author-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-muted); font-weight: 700; }
.author-name { font-weight: 700; font-size: 1.1rem; }
.author-bio { color: var(--c-muted); font-size: 0.95rem; margin-top: 4px !important; }

/* ------------------------------------------------------------------
   7. Contact page and form
------------------------------------------------------------------ */
.contact-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-muted); margin-bottom: 2px; }
.contact-list a { font-weight: 600; font-size: 1.05rem; }
.ci-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-sand); color: var(--c-sea); flex: 0 0 auto; }
.contact-hint { background: var(--c-sand); border-radius: var(--radius); padding: 24px; }
.contact-hint h2 { font-size: 1.2rem; }
.contact-hint .checks { margin: 0; }
.contact-map { margin: 0; min-width: 0; }
@media (min-width: 1024px) { .contact-map { grid-column: 1; } .contact-form-wrap { grid-column: 2; grid-row: 1 / 3; } }
.contact-map a { display: block; }
.contact-map img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--c-line); }
.contact-map figcaption { font-size: 0.9rem; color: var(--c-muted); margin-top: 8px; }
.contact-map .map-credit { display: block; font-size: 0.75rem; opacity: 0.75; }
.contact-form-wrap { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 640px) { .contact-form-wrap { padding: 32px; } }
.contact-form-wrap h2 { font-size: 1.5rem; margin-bottom: 18px; }
.ic-form .ic-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ic-form .ic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ic-form .field-full { grid-column: 1 / -1; } }
.ic-form .field { margin: 0; min-width: 0; }
.ic-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--c-navy); }
.ic-form .req { color: var(--c-err); }
.ic-form input[type="text"], .ic-form input[type="email"], .ic-form input[type="tel"], .ic-form select, .ic-form textarea {
	width: 100%; max-width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
	font: inherit; color: var(--c-ink); background: var(--c-white); transition: border-color 0.15s, box-shadow 0.15s;
}
.ic-form select { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a6e8e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.ic-form textarea { resize: vertical; min-height: 140px; }
.ic-form input:focus, .ic-form select:focus, .ic-form textarea:focus { outline: none; border-color: var(--c-sea); box-shadow: 0 0 0 3px rgba(26, 110, 142, 0.15); }
.ic-form .field.is-invalid input, .ic-form .field.is-invalid textarea { border-color: var(--c-err); }
.ic-form .field-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 0.9rem; color: var(--c-muted); }
.ic-form .field-consent input { margin-top: 4px; flex: 0 0 auto; }
.ic-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ic-form .field-turnstile { min-height: 65px; min-width: 0; }
.ic-form .field-turnstile .cf-turnstile { transform: scale(var(--ts-scale, 1)); transform-origin: 0 0; }
.ic-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 20px 0 0; }
.ic-note { color: var(--c-muted); font-size: 0.9rem; }
.ic-status:empty { display: none; }
.ic-status p { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; margin: 0 0 16px; }
.ic-ok { background: #e6f4ec; color: var(--c-ok); }
.ic-err { background: #fbeae8; color: var(--c-err); }
#contact-form { scroll-margin-top: calc(var(--header-h) + 16px); }
/* Enquiry opened from a project, service or article page */
.ic-about { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 12px 12px 14px; background: var(--c-sand); border: 1px solid var(--c-line); border-left: 4px solid var(--c-gold); border-radius: var(--radius-sm); min-width: 0; max-width: 100%; box-sizing: border-box; }
.ic-about-img { flex: 0 0 auto; width: 72px; height: 54px; border-radius: 6px; overflow: hidden; background: var(--c-sand-2); }
.ic-about-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ic-about-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ic-about-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-sea); }
.ic-about-title { font-weight: 700; color: var(--c-navy); line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; }
.ic-about-title:hover { color: var(--c-sea); text-decoration: underline; }
.ic-about-remove { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--c-muted); }
.ic-about-remove:hover, .ic-about-remove:focus-visible { background: var(--c-white); color: var(--c-err); }
@media (max-width: 479px) {
	.ic-about { gap: 10px; padding: 10px 6px 10px 10px; }
	.ic-about-img { width: 56px; height: 44px; }
	.ic-about-label { font-size: 0.68rem; letter-spacing: 0.03em; line-height: 1.35; }
	.ic-about-remove { width: 32px; height: 32px; }
}
@media (max-width: 359px) { .ic-about-img { display: none; } }

/* ------------------------------------------------------------------
   8. Footer and floating button
------------------------------------------------------------------ */
.site-footer { background: #081f2e; color: rgba(255, 255, 255, 0.74); padding: 56px 0 88px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; } }
.footer-grid > * { min-width: 0; }
.footer-about p { margin: 16px 0 0; max-width: 420px; }
.brand-footer .brand-svg text { fill: var(--c-white); }
.brand-footer .brand-svg { height: 42px; }
.footer-title { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--c-white); margin: 6px 0 16px; }
.footer-menu, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-menu a, .footer-contact a { color: rgba(255, 255, 255, 0.82); }
.footer-menu a:hover, .footer-contact a:hover { color: var(--c-aqua); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: 0 0 auto; margin-top: 4px; color: var(--c-aqua); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--c-white); }
.social a:hover { background: var(--c-sea); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.85); }
.footer-bottom a:hover { color: var(--c-aqua); }
.whatsapp-fab {
	position: fixed; right: 16px; bottom: 16px; z-index: 90;
	width: 56px; height: 56px; border-radius: 50%; background: var(--c-wa); color: var(--c-white);
	display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); transition: transform 0.2s;
}
.whatsapp-fab:hover { transform: scale(1.06); color: var(--c-white); }
@media (min-width: 768px) { .whatsapp-fab { right: 24px; bottom: 24px; } }

/* ------------------------------------------------------------------
   11. Motion and a less rigid layout (18.10.2026)
   All of it switches off with "reduce motion" (rule at the end) and in print.
------------------------------------------------------------------ */
@keyframes ic-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ic-settle { from { transform: scale(1.1); } to { transform: none; } }
@keyframes ic-drift { to { transform: translateX(-1200px); } }
@keyframes ic-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes ic-float { to { transform: translate(-70px, 50px) scale(1.18); } }
@keyframes ic-ring { from { transform: scale(1); opacity: 0.55; } to { transform: scale(1.5); opacity: 0; } }
@keyframes ic-parallax { from { transform: translateY(28px); } to { transform: translateY(-28px); } }

/* Home hero: the photo settles, the lines rise one after another, the sea moves at the bottom */
.hero { overflow: hidden; }
.hero-bg { animation: ic-settle 16s cubic-bezier(0.2, 0.65, 0.3, 1) both; }
.hero-content { position: relative; z-index: 1; }
.hero-box > * { animation: ic-rise 0.9s cubic-bezier(0.2, 0.65, 0.3, 1) both; }
.hero-box > :nth-child(2) { animation-delay: 0.12s; }
.hero-box > :nth-child(3) { animation-delay: 0.26s; }
.hero-box > :nth-child(4) { animation-delay: 0.4s; }
.hero-box > :nth-child(5) { animation-delay: 0.52s; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 0; overflow: hidden; pointer-events: none; }
@media (min-width: 900px) { .hero-waves { height: 110px; } }
.hero-waves span { position: absolute; left: 0; bottom: 0; height: 100%; width: calc(100% + 1200px); background-repeat: repeat-x; background-size: 1200px 100%; will-change: transform; }
.hero-waves .w1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' fill-opacity='.16' d='M0 26Q300 -6 600 26T1200 26V80H0Z'/%3E%3C/svg%3E"); animation: ic-drift 34s linear infinite; }
.hero-waves .w2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 30Q150 0 300 30T600 30T900 30T1200 30V80H0Z'/%3E%3C/svg%3E"); animation: ic-drift 58s linear infinite reverse; }
.hero.is-off .hero-waves span, .cta-band.is-off::before, .cta-band.is-off::after { animation-play-state: paused; }

/* Highlights rise after the hero, a gold line draws in on each */
.stat { position: relative; animation: ic-rise 0.8s cubic-bezier(0.2, 0.65, 0.3, 1) 0.55s both; }
.stat:nth-child(2) { animation-delay: 0.67s; }
.stat:nth-child(3) { animation-delay: 0.79s; }
.stat::before { content: ""; position: absolute; left: 24px; top: 0; width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-gold); transform-origin: left center; animation: ic-grow 0.7s ease 0.95s both; }
.stat:nth-child(2)::before { animation-delay: 1.07s; }
.stat:nth-child(3)::before { animation-delay: 1.19s; }

/* Reveal on scroll (classes added by theme.js only to elements below the fold) */
.rv { opacity: 0; transform: translateY(32px); transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.3, 1) var(--rd, 0ms), transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1) var(--rd, 0ms); }
.rv.is-in { opacity: 1; transform: none; }
.rv .service-media img, .rv .project-media img, .rv .post-media img { transform: scale(1.14); transition: transform 1.1s cubic-bezier(0.2, 0.65, 0.3, 1) var(--rd, 0ms); }
.rv.is-in .service-media img, .rv.is-in .project-media img, .rv.is-in .post-media img { transform: none; }
.section-head .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; margin: 0 10px 0 0; vertical-align: middle; background: var(--c-gold); transform-origin: left center; position: relative; top: -1px; }
.section-head.rv .eyebrow::before { transform: scaleX(0); transition: transform 0.6s ease calc(var(--rd, 0ms) + 0.35s); }
.section-head.rv.is-in .eyebrow::before { transform: none; }
.step.rv .step-num { transform: scale(0.3); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--rd, 0ms) + 0.25s); }
.step.rv.is-in .step-num { transform: none; }

/* Process: big faded numbers, wavy top edge, zig-zag on wide screens */
.process-section { position: relative; }
.process-section::before { content: ""; position: absolute; left: 0; right: 0; top: -39px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f4efe6' d='M0 46Q300 4 600 46T1200 46V80H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none; }
.home .process-section::after { content: ""; position: absolute; left: 0; right: 0; bottom: -39px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23f4efe6' d='M0 0H1200V34Q900 76 600 34T0 34Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat; pointer-events: none; }
@media (min-width: 900px) {
	.process-section::before { top: -63px; height: 64px; }
	.home .process-section::after { bottom: -63px; height: 64px; }
}
.step { position: relative; overflow: hidden; counter-increment: step; transition: box-shadow 0.25s; }
.step:hover { box-shadow: var(--shadow-lg); }
.step::after { content: counter(step, decimal-leading-zero); position: absolute; right: 14px; top: 6px; font-family: var(--font-head); font-weight: 600; font-size: 3.4rem; line-height: 1; color: var(--c-sand); pointer-events: none; }
.step > * { position: relative; z-index: 1; }

/* Broken grid on the home page: the middle column sits lower */
@media (min-width: 1024px) {
	.home .services-grid-3 > :nth-child(3n+2), .home .projects-grid > :nth-child(3n+2) { translate: 0 44px; }
	.home .services-grid-3, .home .projects-grid { padding-bottom: 44px; }
	.steps > :nth-child(even) { translate: 0 30px; }
	.steps { padding-bottom: 30px; }
}

/* About photo: gold frame and a dot pattern behind it, gentle parallax where supported */
@media (min-width: 900px) {
	.about-media { position: relative; z-index: 0; }
	.about-media::before { content: ""; position: absolute; inset: 26px -26px -26px 26px; border: 2px solid var(--c-gold); border-radius: 20px; opacity: 0.7; z-index: -1; }
	.about-media::after { content: ""; position: absolute; left: -22px; top: -22px; width: 130px; height: 130px; background-image: radial-gradient(var(--c-sea) 1.6px, transparent 1.7px); background-size: 14px 14px; opacity: 0.3; z-index: -1; }
}
@supports (animation-timeline: view()) {
	@media (min-width: 900px) {
		.about-media img { animation: ic-parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
	}
}

/* Inner pages: title lines rise, wavy bottom edge */
.page-hero { position: relative; padding-bottom: 72px; }
@media (min-width: 900px) { .page-hero { padding-bottom: 96px; } }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 36px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 34Q300 2 600 34T1200 34V80H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none; }
@media (min-width: 900px) { .page-hero::after { height: 56px; } }
.page-hero .wrap > * { animation: ic-rise 0.8s cubic-bezier(0.2, 0.65, 0.3, 1) both; }
.page-hero .wrap > :nth-child(2) { animation-delay: 0.08s; }
.page-hero .wrap > :nth-child(3) { animation-delay: 0.16s; }
.page-hero .wrap > :nth-child(4) { animation-delay: 0.24s; }

/* Call to action: slanted top edge and two slowly floating light spots */
.cta-band { margin-top: -22px; padding-top: 78px; clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%); }
@media (min-width: 900px) { .cta-band { margin-top: -44px; padding-top: 100px; clip-path: polygon(0 44px, 100% 0, 100% 100%, 0 100%); } }
.cta-band::before { animation: ic-float 16s ease-in-out infinite alternate; }
.cta-band::after { content: ""; position: absolute; left: -140px; bottom: -170px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 160, 98, 0.22) 0%, rgba(201, 160, 98, 0) 70%); animation: ic-float 21s ease-in-out infinite alternate-reverse; pointer-events: none; }
.cta-inner { z-index: 1; }

/* Hover details */
.btn { transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(26, 110, 142, 0.32); }
.service-icon { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s, color 0.25s; }
.service-card:hover .service-icon, .value-card:hover .service-icon, .turnkey-card:hover .service-icon { transform: translateY(-4px) rotate(-8deg); background: var(--c-sea); color: var(--c-white); }
.more svg, .link-more svg, .section-more .btn svg { transition: transform 0.25s; }
.service-card:hover .more svg, .post-card:hover .more svg, .link-more:hover svg, .section-more .btn:hover svg { transform: translateX(4px); }
.value-card, .turnkey-card, .t-card { transition: transform 0.25s, box-shadow 0.25s; }
.value-card:hover, .turnkey-card:hover, .t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* WhatsApp: three soft pulses a few seconds after the page opens */
.whatsapp-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c-wa); z-index: -1; animation: ic-ring 2.2s ease-out 3s 3 both; pointer-events: none; }

/* Phone and email until theme.js puts them back (ic_obf_text): the source holds them reversed */
.ic-obf { unicode-bidi: bidi-override; direction: rtl; white-space: nowrap; }

/* Admin bar offset for the sticky header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .whatsapp-fab, .cta-band, .mobile-nav { display: none !important; }
	.rv { opacity: 1 !important; transform: none !important; }
}
