/* ==========================================================================
   Prime Smart Flags - Design System
   Tokens sampled from the brand logo: maroon #660622, gold #DDB140.
   ========================================================================== */

:root {
	/* Brand */
	--ps-maroon: #660622;
	--ps-maroon-600: #7d0a2c;
	--ps-maroon-700: #4f0419;
	--ps-maroon-050: #fbf2f4;
	--ps-gold: #ddb140;
	--ps-gold-600: #bd9330;
	--ps-gold-050: #fdf8ec;

	/* Neutrals */
	--ps-ink: #231f20;
	--ps-body: #4c4a4d;
	--ps-muted: #78757a;
	--ps-line: #e5e2e5;
	--ps-line-strong: #cfcbd0;
	--ps-surface: #ffffff;
	--ps-surface-2: #f8f7f8;

	/* Feedback */
	--ps-success: #1c7a4d;
	--ps-error: #b3261e;
	--ps-whatsapp: #25d366;
	--ps-whatsapp-700: #128c7e;

	/* Typography - parent theme already loads Outfit */
	--ps-font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--ps-fs-xs: 0.75rem;
	--ps-fs-sm: 0.875rem;
	--ps-fs-base: 1rem;
	--ps-fs-lg: 1.125rem;
	--ps-fs-xl: 1.375rem;
	--ps-fs-2xl: 1.75rem;
	--ps-fs-3xl: 2.25rem;
	--ps-fs-4xl: 2.875rem;
	--ps-lh-tight: 1.2;
	--ps-lh-snug: 1.4;
	--ps-lh-base: 1.65;

	/* Spacing - 4px scale */
	--ps-1: 0.25rem;
	--ps-2: 0.5rem;
	--ps-3: 0.75rem;
	--ps-4: 1rem;
	--ps-5: 1.25rem;
	--ps-6: 1.5rem;
	--ps-8: 2rem;
	--ps-10: 2.5rem;
	--ps-12: 3rem;
	--ps-16: 4rem;
	--ps-20: 5rem;

	/* Radius */
	--ps-radius-sm: 0.375rem;
	--ps-radius: 0.625rem;
	--ps-radius-lg: 1rem;
	--ps-radius-pill: 999px;

	/* Elevation - restrained, premium */
	--ps-shadow-1: 0 1px 2px rgba(35, 31, 32, 0.06);
	--ps-shadow-2: 0 4px 16px rgba(35, 31, 32, 0.08);
	--ps-shadow-3: 0 12px 32px rgba(35, 31, 32, 0.12);

	/* Layout */
	--ps-container: 1280px;
	--ps-focus: 0 0 0 3px rgba(102, 6, 34, 0.28);
}

/* --------------------------------------------------------------------------
   Accessibility - visible focus everywhere (WCAG 2.4.7)
   -------------------------------------------------------------------------- */
.ps-btn:focus-visible,
.ps-card a:focus-visible,
.ps-select select:focus-visible,
.ps-field input:focus-visible,
.ps-field textarea:focus-visible {
	outline: 2px solid var(--ps-maroon);
	outline-offset: 2px;
	box-shadow: var(--ps-focus);
}

/* --------------------------------------------------------------------------
   Buttons - one primary action per view (brief section 37)
   -------------------------------------------------------------------------- */
.ps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ps-2);
	min-height: 48px; /* thumb-friendly touch target */
	padding: var(--ps-3) var(--ps-6);
	border: 1px solid transparent;
	border-radius: var(--ps-radius);
	font-family: var(--ps-font);
	font-size: var(--ps-fs-base);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ps-btn--primary {
	background: var(--ps-maroon);
	border-color: var(--ps-maroon);
	color: #fff;
}
.ps-btn--primary:hover,
.ps-btn--primary:focus {
	background: var(--ps-maroon-600);
	border-color: var(--ps-maroon-600);
	color: #fff;
}

.ps-btn--secondary {
	background: transparent;
	border-color: var(--ps-maroon);
	color: var(--ps-maroon);
}
.ps-btn--secondary:hover,
.ps-btn--secondary:focus {
	background: var(--ps-maroon-050);
	color: var(--ps-maroon-700);
}

.ps-btn--ghost {
	background: transparent;
	border-color: var(--ps-line-strong);
	color: var(--ps-ink);
}
.ps-btn--ghost:hover {
	border-color: var(--ps-ink);
}

.ps-btn--whatsapp {
	background: var(--ps-whatsapp-700);
	border-color: var(--ps-whatsapp-700);
	color: #fff;
}
.ps-btn--whatsapp:hover,
.ps-btn--whatsapp:focus {
	background: #0f7a6d;
	border-color: #0f7a6d;
	color: #fff;
}

.ps-btn--block {
	width: 100%;
}
.ps-btn--lg {
	min-height: 56px;
	font-size: var(--ps-fs-lg);
	padding: var(--ps-4) var(--ps-8);
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.ps-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--ps-1);
	padding: var(--ps-1) var(--ps-3);
	border-radius: var(--ps-radius-pill);
	font-size: var(--ps-fs-xs);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.ps-badge--gold {
	background: var(--ps-gold-050);
	color: #7a5c10;
}
.ps-badge--maroon {
	background: var(--ps-maroon-050);
	color: var(--ps-maroon);
}

/* --------------------------------------------------------------------------
   Section rhythm
   -------------------------------------------------------------------------- */
.ps-section {
	padding-block: var(--ps-16);
}
.ps-section--tight {
	padding-block: var(--ps-10);
}
.ps-container {
	width: min(100% - 2.5rem, var(--ps-container));
	margin-inline: auto;
}
.ps-section-head {
	margin-bottom: var(--ps-8);
}
.ps-section-head h2 {
	margin: 0 0 var(--ps-2);
	font-size: var(--ps-fs-2xl);
	line-height: var(--ps-lh-tight);
	color: var(--ps-ink);
}
.ps-section-head p {
	margin: 0;
	max-width: 62ch;
	color: var(--ps-muted);
}

/* --------------------------------------------------------------------------
   Trust strip — native Elementor containers (no shortcode / HTML widget)
   -------------------------------------------------------------------------- */
.ps-trust.e-con,
.ps-trust {
	gap: var(--ps-4);
}
.ps-trust > .e-con,
.ps-trust .ps-trust__item {
	flex: 1 1 210px;
	min-width: 0;
	max-width: 100%;
}
.ps-trust .ps-trust__title .elementor-heading-title {
	margin: 0;
	font-size: var(--ps-fs-sm);
	font-weight: 600;
	color: var(--ps-ink);
}
.ps-trust .ps-trust__text p {
	margin: 0;
	font-size: var(--ps-fs-xs);
	color: var(--ps-muted);
	line-height: var(--ps-lh-snug);
}
.ps-trust .ps-trust__text a {
	color: var(--ps-maroon);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Header utility bar — native Elementor widgets only (no HTML widget)
   -------------------------------------------------------------------------- */
.ps-topbar {
	background: var(--ps-maroon);
	color: rgba(255, 255, 255, 0.9);
}
.ps-topbar .elementor-widget-text-editor p {
	margin: 0;
}
.ps-topbar .ps-topbar__btn .elementor-button {
	min-height: 0;
	line-height: 1.2;
	box-shadow: none;
}
.ps-topbar .ps-topbar__btn--phone .elementor-button:hover,
.ps-topbar .ps-topbar__btn--phone .elementor-button:focus {
	color: var(--ps-gold) !important;
}
.ps-topbar .ps-topbar__hours p {
	margin: 0;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.ps-topbar .ps-topbar__inner {
		justify-content: center;
	}
	.ps-topbar .ps-topbar__links {
		width: 100%;
		justify-content: center;
	}
}

/* Header quote button keeps the design-system look even though Elementor
   generates its own per-widget CSS. */
.ps-header-cta .elementor-button,
.elementor-location-header .elementor-widget-button .elementor-button {
	border-radius: var(--ps-radius);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.ps-breadcrumb,
.woocommerce-breadcrumb {
	font-size: var(--ps-fs-sm);
	color: var(--ps-muted);
}
.ps-breadcrumb a,
.woocommerce-breadcrumb a {
	color: var(--ps-body);
	text-decoration: none;
}
.ps-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover {
	color: var(--ps-maroon);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.ps-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

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

/* ==========================================================================
   Homepage shared button height — layout/gaps live in home.css
   ========================================================================== */

.home .elementor-widget-button .elementor-button {
	min-height: 44px;
}

/* Prevent flex children collapsing oddly in nested Elementor containers */
.home .e-con.e-flex > .e-con {
	min-width: 0;
}

/* Hero image keeps natural proportions */
.home .ps-home-hero .elementor-widget-image img {
	height: auto !important;
	max-height: 420px;
	object-fit: contain;
	background: transparent;
}

/* Hide leftover wishlist icon in quote-led header */
.ps-hide-wishlist,
.elementor-widget-icon.ps-hide-wishlist {
	display: none !important;
}
.ps-topbar__hours {
	opacity: 0.9;
}
@media (max-width: 900px) {
	.ps-topbar__hours { display: none; }
}