/*
Theme Name: Fresh Cool
Theme URI: https://freshcool.qa/
Description: Fresh Cool for Contracting W.L.L. — HVAC solutions. Child theme of Hello Elementor mirroring freshcool.com.qa UI.
Author: Fresh Cool
Version: 1.0.0
Template: hello-elementor
Text Domain: freshcool
*/

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
	--fc-primary: hsl(221, 83%, 53%);
	--fc-primary-rgb: 37, 99, 235;
	--fc-primary-hover: hsl(221, 83%, 45%);
	--fc-bg: hsl(210, 20%, 98%);
	--fc-card: #ffffff;
	--fc-foreground: hsl(222, 47%, 11%);
	--fc-muted: hsl(215, 16%, 47%);
	--fc-border: hsl(214, 32%, 91%);
	--fc-whatsapp: #25D366;
	--fc-radius: .75rem;
}

* { box-sizing: border-box; }

body,
body.elementor-default,
.elementor-kit-default {
	font-family: "Plus Jakarta Sans", "Cairo", sans-serif;
	color: var(--fc-foreground);
	background: var(--fc-bg);
	margin: 0;
}
body.rtl { font-family: "Cairo", "Plus Jakarta Sans", sans-serif; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--fc-primary); }

/* ======== Header ======== */
.fc-header {
	position: sticky;
	top: 0;
	z-index: 40;
	width: 100%;
	border-bottom: 1px solid rgba(0, 0, 0, .06);
	background: rgba(255, 255, 255, .95);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	transition: background-color .3s ease;
}
.fc-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1rem;
}
.fc-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: 80px;
}
.fc-brand {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-shrink: 0;
}
.fc-brand img { height: 48px; width: auto; object-fit: contain; }
@media (min-width: 768px) { .fc-brand img { height: 56px; } }
.fc-brand-text { display: none; line-height: 1.1; }
@media (min-width: 1024px) { .fc-brand-text { display: block; } }
.fc-brand-text h1 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--fc-primary);
	margin: 0;
	line-height: 1.2;
}
.fc-brand-text p {
	font-size: .75rem;
	color: var(--fc-muted);
	font-weight: 500;
	margin: 0;
}

.fc-nav {
	display: none;
	align-items: center;
	gap: 1.5rem;
}
@media (min-width: 768px) { .fc-nav { display: flex; } }
.fc-nav a {
	font-size: .875rem;
	font-weight: 500;
	color: rgba(17, 24, 39, .8);
	padding: .5rem 0;
	position: relative;
	transition: color .2s ease;
}
.fc-nav a:hover,
.fc-nav a.is-active { color: var(--fc-primary); }
.fc-nav a.is-active::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--fc-primary);
	border-radius: 2px;
}

/* Middle cluster: Browse + Search (visible on wide screens only, matches Horizons) */
.fc-mid {
	display: none;
	align-items: center;
	gap: .75rem;
	flex: 1 1 0;
	max-width: 32rem;
	justify-content: flex-end;
}
@media (min-width: 1024px) { .fc-mid { display: flex; } }

/* Right actions cluster */
.fc-actions {
	display: flex;
	align-items: center;
	gap: .25rem;
	flex-shrink: 0;
}
@media (min-width: 640px) { .fc-actions { gap: .5rem; } }
.fc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	height: 36px;
	padding: 0 1rem;
	border-radius: 999px;
	border: 1px solid transparent;
	background: transparent;
	color: inherit;
	font-size: .875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all .2s ease;
	text-decoration: none;
}
.fc-btn:hover { background: rgba(0, 0, 0, .04); }
.fc-btn-outline {
	border-color: rgba(var(--fc-primary-rgb), .25);
	color: var(--fc-foreground);
}
.fc-btn-outline:hover { background: rgba(var(--fc-primary-rgb), .05); color: var(--fc-primary); }
.fc-btn-primary {
	background: var(--fc-primary);
	color: #fff;
}
.fc-btn-primary:hover { background: var(--fc-primary-hover); color: #fff; }
.fc-btn-icon {
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 999px;
}
.fc-btn svg { width: 16px; height: 16px; }

.fc-browse { display: none; }
@media (min-width: 1280px) { .fc-browse { display: inline-flex; } }

.fc-search { display: none; position: relative; width: 100%; max-width: 20rem; }
@media (min-width: 1024px) { .fc-search { display: block; } }
.fc-search input {
	width: 100%;
	height: 36px;
	padding: 0 .75rem 0 2.25rem;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, .04);
	font-family: inherit;
	font-size: .875rem;
}
.fc-search input:focus { outline: 2px solid rgba(var(--fc-primary-rgb), .4); background: #fff; }
.fc-search svg { position: absolute; top: 50%; left: .75rem; transform: translateY(-50%); width: 16px; height: 16px; color: var(--fc-muted); }

/* Cart — icon+label pill. Collapses to icon-only on narrow widths. */
.fc-cart-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	height: 36px;
	padding: 0 .75rem;
	border-radius: 999px;
	color: var(--fc-foreground);
	font-size: .85rem;
	font-weight: 600;
	line-height: 1;
	transition: background-color .2s ease, color .2s ease;
	text-decoration: none;
}
.fc-cart-wrap svg { width: 20px; height: 20px; flex-shrink: 0; }
.fc-cart-wrap:hover { background: rgba(var(--fc-primary-rgb), .08); color: var(--fc-primary); }
html[data-theme="dark"] .fc-cart-wrap:hover { background: rgba(96, 165, 250, .14); color: var(--fc-primary); }
@media (max-width: 639px) {
	.fc-cart-label { display: none; }
	.fc-cart-wrap { width: 36px; padding: 0; }
}

.fc-cart-badge {
	background: var(--fc-primary);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	border-radius: 999px;
	height: 1.15rem;
	min-width: 1.15rem;
	padding: 0 .3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: -2px;
	right: -2px;
	border: 2px solid var(--fc-background, #fff);
	line-height: 1;
}
html[data-theme="dark"] .fc-cart-badge { border-color: var(--fc-background, #0b1020); }
body.rtl .fc-cart-badge { right: auto; left: -2px; }

/* Language toggle — single globe+label button, matches the Horizons markup */
.fc-lang-toggle {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	height: 36px;
	padding: 0 .75rem;
	border-radius: 999px;
	color: var(--fc-foreground);
	font-size: .85rem;
	font-weight: 600;
	line-height: 1;
	transition: background-color .2s ease, color .2s ease;
	text-decoration: none;
	white-space: nowrap;
}
.fc-lang-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
.fc-lang-toggle:hover { background: rgba(var(--fc-primary-rgb), .08); color: var(--fc-primary); }
html[data-theme="dark"] .fc-lang-toggle:hover { background: rgba(96, 165, 250, .14); color: var(--fc-primary); }
@media (max-width: 639px) {
	.fc-lang-label { display: none; }
	.fc-lang-toggle { width: 36px; padding: 0; justify-content: center; }
}

.fc-mobile-toggle { display: inline-flex; }
@media (min-width: 768px) { .fc-mobile-toggle { display: none; } }
.fc-mobile-menu {
	display: none;
	padding: 1rem;
	border-top: 1px solid var(--fc-border);
	background: #fff;
}
.fc-mobile-menu.is-open { display: block; }
.fc-mobile-menu a { display: block; padding: .5rem 0; font-weight: 500; }

/* ======== Footer ======== */
.fc-footer {
	background: var(--fc-card);
	border-top: 1px solid var(--fc-border);
	margin-top: 5rem;
	color: var(--fc-foreground);
}
.fc-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: 3rem 0 1.5rem;
}
@media (min-width: 768px) { .fc-footer-grid { grid-template-columns: repeat(3, 1fr); } }
.fc-footer-col img { height: 64px; width: auto; margin-bottom: 1rem; object-fit: contain; }
.fc-footer-col h3 {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 1rem;
}
.fc-footer-col h4 {
	font-size: .875rem;
	font-weight: 600;
	margin: 1.5rem 0 .75rem;
}
.fc-footer-col p { font-size: .875rem; color: var(--fc-muted); margin: 0 0 1rem; line-height: 1.6; }
.fc-footer-col ul { list-style: none; padding: 0; margin: 0; }
.fc-footer-links li { margin-bottom: .5rem; }
.fc-footer-links a {
	font-size: .875rem;
	color: var(--fc-muted);
	transition: color .2s ease;
}
.fc-footer-links a:hover { color: var(--fc-primary); }
.fc-footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	font-size: .875rem;
	color: var(--fc-muted);
	margin-bottom: .75rem;
}
.fc-footer-contact li svg { width: 16px; height: 16px; color: var(--fc-primary); flex-shrink: 0; margin-top: 2px; }
.fc-footer-social {
	display: flex;
	gap: .75rem;
}
.fc-footer-social a {
	color: var(--fc-muted);
	transition: color .2s ease;
}
.fc-footer-social a:hover { color: var(--fc-primary); }
.fc-footer-social svg { width: 20px; height: 20px; }
.fc-footer-bottom {
	border-top: 1px solid var(--fc-border);
	margin-top: 2rem;
	padding: 1.5rem 0;
	text-align: center;
	font-size: .875rem;
	color: var(--fc-muted);
}

/* ======== WhatsApp FAB ======== */
.fc-whatsapp {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 50;
	background: var(--fc-whatsapp);
	color: #fff;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 25px -5px rgba(37, 211, 102, .4);
	transition: transform .2s ease;
}
.fc-whatsapp:hover { transform: scale(1.08); color: #fff; }
.fc-whatsapp svg { width: 28px; height: 28px; }

/* ======== Content neutralisation ======== */
.site { max-width: 1280px; margin: 0 auto; padding: 2rem 1rem; }
.site h1, .site h2, .site h3 { color: var(--fc-foreground); }

/* Hide default hello-elementor header/footer leakage in case */
.site-header:not(.fc-header),
.site-footer:not(.fc-footer) { display: none !important; }

/* RTL */
body.rtl .fc-footer-contact li { flex-direction: row-reverse; }
body.rtl .fc-search input { padding: 0 2.25rem 0 .75rem; text-align: right; }
body.rtl .fc-search svg { left: auto; right: .75rem; }
body.rtl .fc-whatsapp { right: auto; left: 1.25rem; }

/* ======== Bilingual product description toggle ======== */
/* Source site shows EN on /en/ and AR on /ar/ — we render both in post_content
   and toggle visibility via the <html lang> attribute set by TranslatePress. */
html[lang="ar"] .fc-lang-en,
html:lang(ar) .fc-lang-en { display: none; }
html:not([lang="ar"]) .fc-lang-ar,
html[lang="en-US"] .fc-lang-ar,
html[lang="en"] .fc-lang-ar { display: none; }

.fc-desc.fc-lang-ar,
.fc-lang-ar { font-family: "Cairo", "Plus Jakarta Sans", sans-serif; line-height: 1.9; }
.fc-desc h2 { font-size: 1.5rem; margin: 0 0 1rem; color: var(--fc-foreground); }
.fc-desc h3 { font-size: 1.125rem; margin: 1.5rem 0 .75rem; color: var(--fc-foreground); }
.fc-desc ul { padding-inline-start: 1.25rem; margin: .5rem 0 1rem; }
.fc-desc li { margin-bottom: .35rem; }
.fc-desc a { color: var(--fc-primary); }
.fc-desc a:hover { text-decoration: underline; }
