/* =========================================================
   Euro Serwis — design tokens + shared components
   Colors/type reuse the WordPress-generated custom properties
   from theme.json (--wp--preset--color--*) with literal fallbacks.
   ========================================================= */

:root {
	--es-navy: var(--wp--preset--color--navy, #1E2530);
	--es-text: var(--wp--preset--color--text, #1A2130);
	--es-blue: var(--wp--preset--color--blue, #2A57A7);
	--es-blue-dark: var(--wp--preset--color--blue-dark, #1D3D79);
	--es-muted: var(--wp--preset--color--muted, #5C6779);
	--es-muted-light: var(--wp--preset--color--muted-light, #AFB8C4);
	--es-utility-text: #C7CDD6;
	--es-border: var(--wp--preset--color--border, #E2E6EC);
	--es-border-light: #EEF0F3;
	--es-surface: var(--wp--preset--color--surface, #F4F6F9);
	--es-placeholder: #9AA3B0;
	--es-placeholder-icon: #B9C2CE;
	--es-danger: var(--wp--preset--color--danger, #B23434);
	--es-success: var(--wp--preset--color--success, #1C7A4F);
	--es-success-dot: #2EA870;
	--es-success-bg: #E9F3EA;
	--es-white: #FFFFFF;

	--es-max: 1280px;
	--es-radius-sm: 8px;
	--es-radius-md: 10px;
	--es-radius-lg: 12px;
	--es-radius-xl: 14px;
	--es-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
	--es-shadow-card-hover: 0 14px 30px rgba(0, 0, 0, 0.10);
	--es-shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.25);

	--font-heading: var(--wp--preset--font-family--heading, 'Oswald', sans-serif);
	--font-body: var(--wp--preset--font-family--body, 'Work Sans', sans-serif);
}

@keyframes esFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes esPop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes esPopBounce { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }

/* ---------- base ---------- */
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--es-text); background: var(--es-white); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--es-blue); text-decoration: none; }
a:hover { color: var(--es-blue-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0; }
button { font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }
input::placeholder, textarea::placeholder { color: var(--es-placeholder); }

.es-container { max-width: var(--es-max); margin: 0 auto; padding: 0 24px; }
.es-main { display: block; }

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

/* ---------- utility bar ---------- */
.es-utility-bar {
	background: var(--es-navy); color: var(--es-utility-text); font-size: 13px;
	padding: 9px 24px; display: flex; justify-content: flex-end; align-items: center;
	gap: 26px; flex-wrap: wrap;
}
.es-utility-bar a { color: var(--es-utility-text); display: flex; align-items: center; gap: 7px; }
.es-utility-bar a:hover { color: var(--es-white); }

/* ---------- header ---------- */
.es-header { position: sticky; top: 0; z-index: 50; background: var(--es-white); border-bottom: 1px solid var(--es-border); }
.es-header-inner { max-width: var(--es-max); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.es-logo { display: flex; align-items: center; gap: 14px; }
.es-logo-mark, .es-logo img { height: 52px; width: auto; display: block; }
.es-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.es-logo-title { font-family: var(--font-heading); font-weight: 700; font-size: 22px; letter-spacing: 0.5px; color: var(--es-text); }
.es-logo-subtitle { font-weight: 600; font-size: 12px; letter-spacing: 2px; color: var(--es-muted); }

.es-nav-desktop { display: flex; }
.es-nav-list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.es-nav-list a { color: var(--es-text); font-weight: 600; font-size: 15px; }
.es-nav-list li.current-menu-item > a, .es-nav-list a.es-active { color: var(--es-blue); }

.es-header-actions { display: flex; align-items: center; gap: 18px; }
.es-cart-link, .es-account-link { position: relative; display: flex; align-items: center; gap: 6px; color: var(--es-text); font-size: 14px; font-weight: 600; }
.es-cart-badge {
	position: absolute; top: -8px; left: 12px; background: var(--es-danger); color: var(--es-white);
	font-size: 10.5px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.es-menu-toggle {
	display: none; background: none; border: 1px solid var(--es-border); border-radius: 8px;
	width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center;
	gap: 5px; cursor: pointer; position: relative; z-index: 6;
}
.es-menu-toggle span { width: 20px; height: 2px; background: var(--es-text); transition: transform 0.25s ease, opacity 0.2s ease; }
.es-header.es-menu-open .es-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.es-header.es-menu-open .es-menu-toggle span:nth-child(2) { opacity: 0; }
.es-header.es-menu-open .es-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.es-nav-mobile { display: none; flex-direction: column; padding: 8px 24px 20px; border-top: 1px solid var(--es-border); animation: esFade 0.25s ease; }
.es-nav-mobile-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.es-nav-mobile-list a { padding: 12px 0; color: var(--es-text); font-weight: 600; border-bottom: 1px solid var(--es-border-light); display: block; }
.es-nav-mobile-actions { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.es-nav-mobile-action { display: flex; align-items: center; gap: 10px; padding: 14px 0; color: var(--es-text); font-weight: 600; border-bottom: 1px solid var(--es-border-light); }
.es-nav-mobile-action svg { flex: none; color: var(--es-blue); }
.es-nav-mobile-badge {
	background: var(--es-danger); color: var(--es-white); font-size: 11px; font-weight: 700;
	min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center;
	justify-content: center; padding: 0 5px;
}
.es-header.es-menu-open .es-nav-mobile { display: flex; }

@media (max-width: 960px) {
	.es-nav-desktop, .es-header-actions { display: none; }
	.es-menu-toggle { display: flex; }
	.es-header.es-menu-open .es-nav-mobile {
		position: fixed; inset: 0; z-index: 5;
		width: 100%; height: 100%; padding: 110px 24px 32px; margin: 0; overflow-y: auto;
		background: var(--es-white); animation: esFade 0.2s ease;
	}
	body.es-menu-open-body { overflow: hidden; }
}

/* ---------- breadcrumb bar ---------- */
.es-breadcrumb-bar { background: var(--es-surface); padding: 16px 0; border-bottom: 1px solid var(--es-border); }
.es-breadcrumb-bar .es-container { font-size: 13px; color: var(--es-muted); }
.es-breadcrumb-bar a { color: var(--es-muted); }
.es-breadcrumb-bar .es-current, .es-breadcrumb-bar strong { color: var(--es-text); font-weight: 600; }
.woocommerce-breadcrumb.es-breadcrumb { font-size: 13px; color: var(--es-muted); }
.woocommerce-breadcrumb.es-breadcrumb a { color: var(--es-muted); }

/* ---------- page banner (dark hero) ---------- */
.es-page-banner { background: var(--es-navy); padding: 64px 0; }
.es-page-banner .es-crumbs { font-size: 13px; color: #8A93A3; margin-bottom: 14px; }
.es-page-banner .es-crumbs a { color: #8A93A3; }
.es-page-banner .es-crumbs span { color: #D7DCE3; }
.es-page-banner h1 { color: var(--es-white); font-size: clamp(30px, 4vw, 44px); margin: 0 0 14px; }
.es-page-banner p { color: var(--es-muted-light); font-size: 16px; max-width: 680px; margin: 0; }

/* ---------- buttons ---------- */
.es-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: var(--es-radius-sm);
	border: none; cursor: pointer; font-family: var(--font-body); text-align: center;
	transition: background 0.3s ease, transform 0.3s ease; line-height: 1.2;
}
.es-btn-primary { background: var(--es-blue); color: var(--es-white); }
.es-btn-primary img { width: 16px; height: 16px; }
.es-btn-primary:hover { background: var(--es-blue-dark); color: var(--es-white); transform: translateY(-2px); }
.es-btn-secondary { background: var(--es-white); color: var(--es-text); border: 1px solid var(--es-border); font-weight: 600; }
.es-btn-secondary:hover { color: var(--es-text); }
.es-btn-outline { background: transparent; border: 1px solid var(--es-blue); color: var(--es-blue); }
.es-btn-accent { background: #4A7FE0; color: var(--es-white); box-shadow: 0 2px 10px rgba(74,127,224,0.5); }
.es-btn-accent:hover { background: #5E90ED; color: var(--es-white); transform: translateY(-2px); }
.es-btn-block { width: 100%; }
.es-btn-sm { padding: 10px 18px; font-size: 13.5px; }
.es-btn:disabled { background: var(--es-placeholder-icon); cursor: not-allowed; }

@keyframes esSpin { to { transform: rotate(360deg); } }
.es-btn.loading, a.button.loading, button.button.loading {
	position: relative; color: transparent !important; pointer-events: none;
}
.es-btn.loading::after, a.button.loading::after, button.button.loading::after {
	content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px;
	margin: -8px 0 0 -8px; border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: #fff;
	border-radius: 50%; animation: esSpin 0.6s linear infinite;
}
.es-btn-secondary.loading::after, .es-btn-outline.loading::after {
	border: 2px solid rgba(42, 87, 167, 0.3); border-top-color: var(--es-blue);
}

/* WooCommerce's AJAX blockUI overlay (jquery.blockUI, used on cart/checkout updates) loses its
   default appearance now that WooCommerce's own stylesheet is dequeued — restyle minimally.
   The spinner is fixed to the viewport (not absolute within the dimmed overlay) on purpose:
   checkout submission blocks the whole, very tall <form>, and centering "top:50%" within that
   element's own box can land the spinner well below the visible viewport — this keeps it
   centered on screen regardless of how tall the blocked element is or how far it's scrolled. */
.blockUI.blockOverlay { position: relative !important; }
.blockUI.blockOverlay::after {
	content: ""; position: fixed; top: 50%; left: 50%; width: 28px; height: 28px;
	margin: -14px 0 0 -14px; border: 3px solid var(--es-border); border-top-color: var(--es-blue);
	border-radius: 50%; animation: esSpin 0.7s linear infinite; z-index: 9999;
}

/* ---------- sections & grids ---------- */
.es-section { padding: 88px 0; }
.home .es-section { padding: 112px 0; }
.es-section-tight { padding: 56px 0 72px; }
.es-section-surface { background: var(--es-surface); }
.es-section-navy { background: var(--es-navy); }
.es-grid { display: grid; gap: 20px; }
.es-grid-auto-220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.es-grid-auto-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.es-grid-auto-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.es-grid-auto-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.es-grid-auto-320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- badges ---------- */
.es-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.es-badge-lg { font-size: 12px; padding: 5px 12px; }
.es-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- cards (product / gallery / trust / service) ---------- */
.es-card {
	background: var(--es-white); border-radius: var(--es-radius-lg); overflow: hidden;
	box-shadow: var(--es-shadow-card); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.es-card:hover { transform: translateY(-5px); box-shadow: var(--es-shadow-card-hover); }
.es-card-image { position: relative; aspect-ratio: 1/1; background: #FAFBFC; border-bottom: 1px solid var(--es-border-light); display: flex; align-items: center; justify-content: center; }
.es-card-image svg, .es-placeholder-icon { color: var(--es-placeholder-icon); stroke: var(--es-placeholder-icon); }
.es-card-image img { width: 100%; height: 100%; object-fit: cover; }
.es-card-body { padding: 16px 18px 18px; }
.es-card-sku { font-size: 11.5px; color: var(--es-placeholder); margin-bottom: 6px; }
.es-card-title { font-family: var(--font-heading); font-weight: 600; font-size: 14.5px; margin: 0 0 10px; line-height: 1.35; min-height: 38px; }
.es-card-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.es-card-price { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--es-text); }
.es-card-price-old { font-size: 13px; color: var(--es-placeholder); text-decoration: line-through; }

.es-section-surface-services { background: #F7F9FC; }
.home .es-section-surface-services { padding-bottom: 64px; }
.es-service-header { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; margin: 0 0 90px; min-height: 340px; }
.es-service-header-text { position: relative; z-index: 2; padding-right: 32px; }
.es-service-header-desc { color: var(--es-muted); font-size: 16px; line-height: 1.6; margin: 16px 0 0; }
.es-service-header-photo { position: relative; height: 340px; border-radius: var(--es-radius-lg); overflow: hidden; }
.es-service-header-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.es-service-header-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #F7F9FC 0%, rgba(247,249,252,0) 16%); pointer-events: none; }

.es-service-divided { display: grid; grid-template-columns: repeat(3, 1fr); }
.es-service-card-d { padding: 0 28px 36px; border-right: 1px solid var(--es-border); border-bottom: 1px solid var(--es-border); }
.es-service-card-d:nth-child(3n+1) { padding-left: 0; }
.es-service-card-d:nth-child(3n) { padding-right: 0; border-right: none; }
.es-service-card-d:nth-child(n+4) { padding-top: 36px; padding-bottom: 0; border-bottom: none; }
.es-icon-img { width: 60%; height: 60%; object-fit: contain; }
.es-icon-circle { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--es-blue); color: var(--es-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.es-icon-circle img { width: 26px; height: 26px; }
.es-service-card-d h3 { font-size: 19px; margin: 0 0 14px; }
.es-service-card-d ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.es-service-card-d li { color: var(--es-muted); font-size: 14.5px; line-height: 1.5; padding-left: 16px; position: relative; }
.es-service-card-d li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--es-blue); border-radius: 1px; }

.es-service-trust-row { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.es-service-trust-item { display: flex; align-items: center; gap: 14px; padding-right: 28px; border-right: 1px solid var(--es-border); }
.es-service-trust-item:last-child { border-right: none; padding-right: 0; }
.es-service-trust-icon { flex-shrink: 0; color: var(--es-blue); display: flex; }
.es-service-trust-icon img { width: 30px; height: 30px; }
.es-service-trust-item h5 { font-size: 15.5px; margin: 0 0 3px; }
.es-service-trust-item p { color: var(--es-muted); font-size: 13.5px; line-height: 1.4; margin: 0; }

.es-trust-card, .es-service-card { background: var(--es-surface); border-radius: var(--es-radius-lg); padding: 28px 24px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.es-trust-card:hover, .es-service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(30, 37, 48, 0.10); }
.es-service-card { padding: 34px; }
.es-icon-tile { width: 38px; height: 38px; border-radius: 8px; background: var(--es-blue); margin-bottom: 16px; }
.es-service-card .es-icon-tile { width: 46px; height: 46px; border-radius: 10px; margin-bottom: 20px; }
.es-service-card .es-icon-tile.es-icon-tile-svg { width: 52px; height: 52px; border-radius: 12px; background: rgba(42,87,167,0.1); color: var(--es-blue); display: flex; align-items: center; justify-content: center; }
.es-trust-card h3, .es-service-card h3 { font-size: 17px; margin: 0 0 8px; }
.es-service-card h3 { font-size: 20px; margin-bottom: 16px; }
.es-trust-card p, .es-service-card p { color: var(--es-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.es-service-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.es-service-list li { color: var(--es-muted); font-size: 15px; line-height: 1.55; padding-left: 18px; position: relative; }
.es-service-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--es-blue); border-radius: 1px; }

.es-gallery-card { cursor: pointer; }
.es-gallery-card img, .es-gallery-card .es-placeholder { width: 100%; height: 220px; object-fit: cover; display: block; }
.es-gallery-card p { margin: 0; padding: 14px 16px; font-size: 14px; font-weight: 600; color: #374151; }

.es-placeholder {
	background: #FAFBFC; display: flex; align-items: center; justify-content: center; color: var(--es-placeholder);
	font-size: 13px; text-align: center; padding: 10px;
}

/* ---------- form controls ---------- */
.es-field { margin-bottom: 20px; }
.es-field label { display: block; font-size: 14px; margin-bottom: 8px; }
.es-field input[type="text"], .es-field input[type="email"], .es-field input[type="tel"],
.es-field input[type="password"], .es-field select, .es-field textarea,
.es-input {
	width: 100%; padding: 12px 14px; border: 1px solid var(--es-border); border-radius: var(--es-radius-sm);
	font-size: 14.5px; background: var(--es-white); color: var(--es-text);
}
.es-field textarea { resize: vertical; }
.es-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }

.es-check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14.5px; }
.es-check-row input[type="checkbox"], .es-check-row input[type="radio"] {
	appearance: none; -webkit-appearance: none; width: 18px; height: 18px; min-width: 18px;
	border: 2px solid var(--es-border); background: var(--es-white); cursor: pointer; margin: 2px 0 0;
}
.es-check-row input[type="checkbox"] { border-radius: 4px; }
.es-check-row input[type="radio"] { border-radius: 50%; }
.es-check-row input[type="checkbox"]:checked, .es-check-row input[type="radio"]:checked { border-color: var(--es-blue); }
.es-check-row input[type="checkbox"]:checked {
	background-color: var(--es-blue);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center; background-size: 10px 10px;
}
.es-check-row input[type="radio"]:checked { box-shadow: inset 0 0 0 4px var(--es-blue); }
.es-check-row-clear { display: inline-block; font-size: 13px; color: var(--es-muted); }
.es-check-row-clear:hover { color: var(--es-blue); }

/* ---------- modal (added to cart) ---------- */
.es-modal-overlay {
	position: fixed; inset: 0; background: rgba(20, 24, 32, 0.5); z-index: 200;
	display: none; align-items: center; justify-content: center; padding: 20px; animation: esFade 0.2s ease;
}
.es-modal-overlay.is-open { display: flex; }
.es-modal {
	background: var(--es-white); border-radius: var(--es-radius-xl); max-width: 420px; width: 100%;
	padding: 28px; animation: esPop 0.25s ease; box-shadow: var(--es-shadow-modal);
}
.es-modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.es-modal-title { display: flex; align-items: center; gap: 10px; color: var(--es-success); font-weight: 700; font-size: 15px; }
.es-modal-close { background: none; border: none; cursor: pointer; color: var(--es-placeholder); font-size: 20px; line-height: 1; }
.es-modal-product { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.es-modal-thumb { width: 56px; height: 56px; border-radius: 10px; background: #FAFBFC; border: 1px solid var(--es-border-light); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.es-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.es-modal-actions > * { flex: 1 1 160px; }
.es-modal-actions .es-btn { font-size: 14px; padding: 12px; }

/* ---------- lightbox (gallery) ---------- */
.es-lightbox-overlay { position: fixed; inset: 0; background: rgba(20, 24, 32, 0.88); z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; animation: esFade 0.2s ease; }
.es-lightbox-overlay.is-open { display: flex; }
.es-lightbox-close, .es-lightbox-prev, .es-lightbox-next {
	position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--es-white); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.es-lightbox-close { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 20px; background: rgba(255,255,255,0.1); }
.es-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 20px; }
.es-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 20px; }
.es-lightbox-body { max-width: 820px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; align-items: center; color: var(--es-white); }
.es-lightbox-body img, .es-lightbox-body .es-placeholder { width: 100%; height: 60vh; object-fit: cover; border-radius: var(--es-radius-lg); }
.es-lightbox-caption { color: var(--es-white); text-align: center; margin: 18px 0 0; font-size: 15px; font-weight: 600; }

/* ---------- tabs (product page) ---------- */
.es-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--es-border); margin-bottom: 28px; flex-wrap: wrap; }
.es-tab-btn { background: none; border: none; padding: 14px 6px; margin-right: 26px; font-size: 15px; font-weight: 600; color: var(--es-muted); border-bottom: 2px solid transparent; cursor: pointer; font-family: var(--font-body); }
.es-tab-btn.is-active { color: var(--es-blue); border-bottom-color: var(--es-blue); }
.es-tab-panel { display: none; max-width: 760px; color: #374151; font-size: 15px; line-height: 1.75; }
.es-tab-panel.is-active { display: block; }

/* ---------- footer ---------- */
.es-footer { background: var(--es-navy); padding: 72px 0 0; }
.es-footer-grid { max-width: var(--es-max); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.es-footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.es-footer-logo img { height: 40px; width: auto; }
.es-footer-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.es-footer-logo-title { font-family: var(--font-heading); font-weight: 700; color: var(--es-white); font-size: 17px; }
.es-footer-logo-subtitle { font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: 1.5px; color: #8A93A3; }
.es-footer-col > p { color: #8A93A3; font-size: 14px; line-height: 1.7; margin: 0; }
.es-footer-col h5 { color: var(--es-white); font-size: 14px; letter-spacing: 1px; margin: 0 0 18px; }
.es-footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.es-footer-nav li { font-size: 14.5px; line-height: 1.2; }
.es-footer-nav a { color: var(--es-muted-light); font-size: 14.5px; line-height: 1.2; }
.es-footer-contact { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.es-footer-contact a { color: var(--es-muted-light); line-height: 1.2; }
.es-footer-bottom {
	max-width: var(--es-max); margin: 56px auto 0; padding: 22px 24px; border-top: 1px solid #2A323F;
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.es-footer-bottom span { color: #6B7484; font-size: 13px; }

/* ---------- philosophy / quote band ---------- */
.es-quote-band { background: var(--es-navy); padding: 80px 24px; }
.es-quote-band .es-quote-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.es-quote-band .es-eyebrow { color: #8FB2E8; font-family: var(--font-heading); font-weight: 600; letter-spacing: 2px; font-size: 14px; }
.es-quote-band p { color: var(--es-white); font-family: var(--font-heading); font-weight: 500; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.5; margin: 22px 0 0; }

/* ---------- CTA band ---------- */
.es-cta-band { background: var(--es-surface); border-radius: var(--es-radius-lg); padding: 36px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.es-service-cta { margin-top: 44px; }
.es-cta-band-bare { margin-top: 56px; }
.es-cta-band.is-dark { background: var(--es-navy); }
.es-cta-band.is-dark h3 { color: var(--es-white); }
.es-cta-band.is-dark p { color: var(--es-muted-light); }
.es-cta-band h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.es-service-cta-inner { display: flex; align-items: center; gap: 20px; }
.es-service-cta-inner h3 { margin: 0; max-width: 560px; }
.es-service-cta-icon { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); color: var(--es-white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.es-service-cta-icon img { width: 22px; height: 22px; }
.es-cta-band p { color: var(--es-muted); font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 600px; }
.es-cta-band-stacked { display: block; }
.es-cta-band-stacked h3 { margin: 0 0 10px; }
.es-cta-band-stacked p { margin: 0 0 18px; }

/* ---------- utility ---------- */
.es-fade-in { animation: esFade 0.35s ease; }
.es-text-center { text-align: center; }
.es-mt-0 { margin-top: 0; }

/* ---------- eyebrow label ---------- */
.es-eyebrow { display: inline-block; color: var(--es-blue); font-family: var(--font-heading); font-weight: 600; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; margin-bottom: 14px; margin-top: 0px;}
.es-eyebrow.is-light { color: #8FB2E8; }
.es-eyebrow::after { content: ""; display: block; width: 44px; height: 3px; background: var(--es-blue); margin-top: 10px; }
.es-eyebrow.is-light::after { background: #8FB2E8; }
.es-text-center .es-eyebrow::after { margin-left: auto; margin-right: auto; }

.es-section-title { font-size: clamp(26px, 3vw, 36px); }
.es-section-title-lg { font-size: clamp(28px, 3.4vw, 40px); }

/* ---------- hero slider ---------- */
.es-hero { position: relative; height: min(620px, 86vh); min-height: 440px; overflow: hidden; background: var(--es-navy); }
.es-hero-slide { position: absolute; inset: 0; opacity: 0; z-index: 1; transition: opacity 1s ease; pointer-events: none; display: block !important; }
.es-hero-slide.is-active { opacity: 1; z-index: 2; pointer-events: auto; }
.es-hero-bg { position: absolute !important; inset: 0; margin: 0 !important; }
.es-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.es-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,37,48,0.93) 0%, rgba(30,37,48,0.68) 48%, rgba(30,37,48,0.30) 100%); }
.es-hero-content { position: relative; z-index: 2; height: 100%; max-width: var(--es-max); margin: 0 auto; display: flex; align-items: center; padding: 0 24px; }
.es-hero-content > .wp-block-group__inner-container, .es-hero-text { max-width: 600px; }
.es-hero-eyebrow { display: inline-block; color: #8FB2E8; font-family: var(--font-heading); font-weight: 600; letter-spacing: 3px; font-size: 13px; margin-bottom: 16px; text-transform: uppercase; }
.es-hero-eyebrow::after { content: ""; display: block; width: 44px; height: 3px; background: #8FB2E8; margin-top: 10px; }
.es-hero-title { font-size: clamp(26px, 4vw, 42px); line-height: 1.15; color: var(--es-white); margin: 0 0 16px; }
.es-hero-desc { color: #D7DCE3; font-size: 16px; line-height: 1.6; margin: 0 0 26px; max-width: 560px; }
.es-hero-controls { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 16px; z-index: 5; }
.es-hero-nav-btn { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: var(--es-white); font-size: 16px; cursor: pointer; transition: background 0.3s ease; }
.es-hero-nav-btn:hover { background: var(--es-blue); }
.es-hero-dots { display: flex; align-items: center; gap: 10px; }
.es-hero-dot { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,0.4); transition: background 0.3s ease; }
.es-hero-dot.is-active { background: var(--es-blue); }

/* ---------- about teaser ---------- */
.es-about-teaser { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.3fr); gap: 64px; align-items: start; }
.es-about-teaser figure { margin: 0; height: 100%; min-height: 380px; border-radius: var(--es-radius-lg); overflow: hidden; }
.es-about-teaser figure img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.es-check-list { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 30px; list-style: none; padding: 0; }
.es-check-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.2; color: #374151; font-weight: 500; }
.es-check-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--es-blue); flex-shrink: 0; }
.es-arrow-link { display: inline-flex; align-items: center; gap: 8px; color: var(--es-blue); font-weight: 700; font-size: 15px; }

/* ---------- quality band ---------- */
.es-quality-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
@media (max-width: 960px) { .es-quality-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .es-quality-list { grid-template-columns: 1fr; } }
.es-quality-feature { background: #2A323F; border-radius: var(--es-radius-lg); padding: 26px 24px; display: flex; gap: 16px; align-items: center; transition: transform 0.3s ease; }
.es-quality-feature:hover { transform: translateY(-4px); }
.es-quality-feature .es-icon-dot { width: 44px; height: 44px; border-radius: 11px; background: rgba(143,178,232,0.14); color: #8FB2E8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.es-quality-feature img { width: 22px; height: 22px; }
.es-quality-feature p { color: #D7DCE3; font-size: 15px; line-height: 1.55; margin: 0; }
.es-quality-note { background: #2A323F; border-radius: var(--es-radius-lg); padding: 28px 30px; border-left: 3px solid var(--es-blue); }
.es-quality-note h4 { color: var(--es-white); font-family: var(--font-heading); font-weight: 600; font-size: 16px; margin: 0 0 10px; }
.es-quality-note p { color: var(--es-muted-light); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---------- gallery + contact teaser (homepage) ---------- */
.es-home-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
@media (max-width: 960px) { .es-home-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .es-home-gallery-grid { grid-template-columns: 1fr; } }
.es-home-gallery-grid figure { margin: 0; background: var(--es-white); border-radius: var(--es-radius-lg); overflow: hidden; box-shadow: var(--es-shadow-card); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.es-home-gallery-grid figure:hover { transform: translateY(-5px); box-shadow: var(--es-shadow-card-hover); }
.es-home-gallery-grid img { width: 100%; height: 280px; object-fit: cover; display: block; }
.es-home-gallery-grid figcaption { margin: 0; padding: 14px 16px; font-size: 14px; font-weight: 600; color: #374151; }
.es-home-contact-band { background: var(--es-white); border-radius: var(--es-radius-lg); padding: 52px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.es-home-contact-band h3 { font-family: var(--font-heading); font-weight: 700; font-size: 25px; margin: 14px 0 18px; }
.es-home-contact-row { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.2; color: #374151; }
.es-home-contact-row .es-icon-dot-sm { width: 36px; height: 36px; border-radius: 9px; background: rgba(42,87,167,0.1); color: var(--es-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.es-home-contact-row .es-icon-dot-sm img { width: 17px; height: 17px; }

@media (max-width: 640px) {
	.es-section, .home .es-section { padding: 56px 0; }
	.es-page-banner { padding: 44px 0; }
	.es-service-header { margin-bottom: 40px; }
	.es-service-divided { grid-template-columns: 1fr; }
	.es-service-card-d { padding: 0 0 28px !important; border-right: none !important; border-bottom: 1px solid var(--es-border); }
	.es-service-card-d:last-child { border-bottom: none; padding-bottom: 0 !important; }
	.es-service-card-d:nth-child(n+2) { padding-top: 28px !important; }
	.es-service-trust-item { border-right: none; padding-right: 0; }
	.es-about-teaser { grid-template-columns: 1fr; }
}
