/* ==========================================================================
   Emporiapolis Cleaning — theme.css
   CSS variables, reset, typography, global utilities.
   Mirrors the Next.js globals.css palette + base.
   ========================================================================== */

:root {
	/* ── Brand palette ── */
	--emp-navy: #0B1533;
	--emp-navy-2: #131F47;
	--emp-navy-3: #1D2C5C;
	--emp-navy-deep: #060B1E;
	--emp-blue: #2563EB;
	--emp-blue-hover: #1D4FD7;
	--emp-blue-soft: #DBEAFE;
	--emp-blue-tint: #EFF6FF;

	/* ── Surfaces ── */
	--emp-surface: #FAFAF7;
	--emp-surface-2: #F4F2EC;
	--emp-surface-card: #FFFFFF;
	--emp-surface-warm: #FFFDF8;

	/* ── Text ── */
	--emp-ink: #0B1533;
	--emp-ink-2: #1B2547;
	--emp-body: #475569;
	--emp-muted: #94A3B8;
	--emp-faint: #CBD5E1;
	--emp-light: #E2E8F0;
	--emp-white: #FFFFFF;

	/* ── Accents ── */
	--emp-amber: #F59E0B;
	--emp-amber-soft: #FEF3C7;
	--emp-green: #16A34A;
	--emp-green-soft: #DCFCE7;
	--emp-orange: #F97316;

	/* ── Borders ── */
	--emp-border: #E5E7EB;
	--emp-border-soft: #F3F4F6;
	--emp-border-warm: #EAE5DA;
	--emp-border-dark: #1E293B;

	/* ── Fonts ── */
	--emp-font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
	--emp-font-body: "Manrope", system-ui, -apple-system, sans-serif;

	/* ── Layout ── */
	--emp-container: 1280px;
	--emp-container-px: clamp(1rem, 4vw, 2rem);
	--emp-section-py: clamp(4rem, 8vw, 7rem);
	--emp-radius: 24px;
	--emp-radius-sm: 16px;
	--emp-header-h: 78px;
	--emp-ribbon-h: 36px;

	/* ── Easing ── */
	--emp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ──────────────────────────────────────
   Reset / base
   ────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body.emp-body {
	margin: 0;
	background: var(--emp-surface);
	color: var(--emp-body);
	font-family: var(--emp-font-body);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "ss01", "cv01", "cv11";
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--emp-font-display);
	color: var(--emp-ink);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-feature-settings: "ss01";
	margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

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

button {
	font-family: inherit;
	cursor: pointer;
}

/*
 * Link + list resets are scoped to the theme chrome (header, footer, modal,
 * mobile menu, ribbon, sticky CTA) so that content the client builds in
 * Elementor keeps its native styling (bulleted lists, underlined links).
 */
.emp-header a,
.emp-footer a,
.emp-modal a,
.emp-mobile-menu a,
.emp-ribbon a,
.emp-sticky-cta a,
.emp-btn { color: inherit; text-decoration: none; }

.emp-header ul,
.emp-footer ul,
.emp-modal ul,
.emp-mobile-menu ul { list-style: none; margin: 0; padding: 0; }

/* Skip link */
.emp-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--emp-navy);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 12px 0;
}
.emp-skip-link:focus { left: 0; }

/* ──────────────────────────────────────
   Layout helpers (usable inside Elementor HTML widgets)
   ────────────────────────────────────── */
.emp-container {
	max-width: var(--emp-container);
	margin-inline: auto;
	padding-inline: var(--emp-container-px);
}

.emp-main {
	min-height: 40vh;
}

/* Push content below the fixed header (front-page hero handles its own offset) */
.emp-main {
	padding-top: var(--emp-header-h);
}
@media (min-width: 768px) {
	.emp-main { padding-top: calc(var(--emp-header-h) + var(--emp-ribbon-h)); }
}
/* Elementor canvas / full-width templates manage their own spacing */
.emp-main--flush { padding-top: 0; }

/* ──────────────────────────────────────
   Buttons
   ────────────────────────────────────── */
.emp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--emp-font-body);
	font-weight: 600;
	font-size: 13.5px;
	line-height: 1;
	border: none;
	border-radius: 999px;
	padding: 0.75rem 1.25rem;
	min-height: 44px;
	transition: background-color 0.3s var(--emp-ease), box-shadow 0.3s var(--emp-ease), transform 0.3s var(--emp-ease);
	text-align: center;
}

.emp-btn--primary {
	background: var(--emp-blue);
	color: #fff;
	box-shadow: 0 8px 24px -12px rgba(37, 99, 235, 0.5);
}
.emp-btn--primary:hover {
	background: var(--emp-blue-hover);
	box-shadow: 0 12px 28px -10px rgba(37, 99, 235, 0.55);
}

.emp-btn--ghost {
	background: transparent;
	color: var(--emp-ink);
	border: 1px solid var(--emp-border-warm);
}
.emp-btn--ghost:hover { background: var(--emp-surface-2); }

.emp-btn__arrow { transition: transform 0.3s var(--emp-ease); }
.emp-btn:hover .emp-btn__arrow { transform: rotate(45deg); }

/* ──────────────────────────────────────
   Brand component shortcodes
   ────────────────────────────────────── */

/* WhatsApp button */
.emp-wa-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 14px;
	padding: 0.75rem 1.25rem;
	min-height: 46px;
	border-radius: 999px;
	transition: background-color 0.3s var(--emp-ease), transform 0.3s var(--emp-ease);
}
.emp-wa-btn--solid { background: var(--emp-green); color: #fff; }
.emp-wa-btn--solid:hover { background: #15803D; }
.emp-wa-btn--outline { border: 1px solid var(--emp-green); color: var(--emp-green); }
.emp-wa-btn--outline:hover { background: var(--emp-green-soft); }
.emp-wa-btn__icon { flex-shrink: 0; }

/* Trust bar */
.emp-trust-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	align-items: center;
}
.emp-trust-bar__pill {
	font-size: 13px;
	font-weight: 500;
	color: var(--emp-body);
	background: #fff;
	border: 1px solid var(--emp-border);
	border-radius: 999px;
	padding: 0.375rem 0.875rem;
}

/* Satisfaction guarantee */
.emp-guarantee {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	background: var(--emp-amber-soft);
	border: 1px solid #FDE68A;
	border-radius: var(--emp-radius-sm);
	padding: 1.25rem 1.5rem;
}
.emp-guarantee__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--emp-amber);
	color: #fff;
	flex-shrink: 0;
}
.emp-guarantee__title {
	font-family: var(--emp-font-display);
	font-weight: 600;
	color: var(--emp-ink);
	font-size: 1.05rem;
	margin: 0 0 0.25rem;
	letter-spacing: -0.01em;
}
.emp-guarantee__text { font-size: 14px; color: var(--emp-body); margin: 0; }

/* Hours table */
.emp-hours { display: flex; flex-direction: column; gap: 0.4rem; }
.emp-hours__row { display: flex; justify-content: space-between; font-size: 14px; }
.emp-hours__day { color: var(--emp-ink); font-weight: 500; }
.emp-hours__time { color: var(--emp-muted); }

/* Map embed */
.emp-map {
	position: relative;
	width: 100%;
	height: var(--emp-map-h, 420px);
	border-radius: var(--emp-radius);
	overflow: hidden;
	background: var(--emp-surface-2);
}
.emp-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	filter: saturate(0.85) contrast(1.02) brightness(0.97);
}

.emp-form-missing {
	padding: 1rem;
	border: 1px dashed var(--emp-border);
	border-radius: 12px;
	color: var(--emp-muted);
	font-size: 14px;
}

/* ──────────────────────────────────────
   Utilities
   ────────────────────────────────────── */
.emp-eyebrow {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--emp-blue);
}
.dot-grid {
	background-image: radial-gradient(rgba(37, 99, 235, 0.18) 1px, transparent 1px);
	background-size: 18px 18px;
}
.map-filter { filter: saturate(0.85) contrast(1.02) brightness(0.97); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
