/*
Theme Name: ALWEFEQ
Theme URI: https://alwefeq.com
Author: ALWEFEQ
Description: Custom theme for ALWEFEQ - Industrial Equipment & Dewatering Solutions.
Version: 3.0.0
Text Domain: alwefeq
*/

/* ============ DESIGN TOKENS — per ALWEFEQ brand guideline ============ */
:root {
	--navy: #00324A;
	--navy-700: #003f5c;
	--blue: #1687B5;
	--blue-light: #3aa3cf;
	--green: #72B84A;
	--green-dark: #5fa03a;

	--white: #FFFFFF;
	--surface: #F4F7F8;
	--surface-2: #eaeef0;
	--text: #17242B;
	--text-muted: #64727A;
	--border: #e3e8ea;

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;

	--shadow: 0 8px 30px rgba(0, 50, 74, 0.08);
	--shadow-hover: 0 14px 40px rgba(0, 50, 74, 0.12);

	--font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--container: 1280px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	background: var(--white);
	line-height: 1.65;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }
ul { padding-left: 1.2em; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 4.4vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; line-height: 1.2; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-muted); font-size: 1rem; line-height: 1.65; }
small, .small-text { font-size: .85rem; font-weight: 500; color: var(--text-muted); line-height: 1.5; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; position: relative; }
@media (max-width: 767px) { .container { padding: 0 20px; } }

/* RTL / Arabic */
body.lang-ar, html[dir="rtl"] body { font-family: 'Tajawal', 'Manrope', sans-serif; }
html[dir="rtl"] ul { padding-left: 0; padding-right: 1.2em; }

/* ============ SCROLL REVEAL — subtle fade-up only ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transition: opacity .5s ease; }
.reveal-scale.in { opacity: 1; }
.stagger .reveal:nth-child(1) { transition-delay: 0s; }
.stagger .reveal:nth-child(2) { transition-delay: .06s; }
.stagger .reveal:nth-child(3) { transition-delay: .12s; }
.stagger .reveal:nth-child(4) { transition-delay: .18s; }
.stagger .reveal:nth-child(5) { transition-delay: .24s; }

/* ============ BUTTONS ============ */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--navy); color: var(--white);
	padding: 14px 28px; border-radius: var(--radius-md);
	font-weight: 600; font-size: .95rem; border: none; cursor: pointer;
	transition: background .25s ease, transform .2s ease;
}
.btn:hover { background: var(--blue); color: var(--white); }
.btn:active { transform: scale(.98); }
.btn.btn-outline { background: transparent; border: 1px solid var(--navy); color: var(--navy); padding: 13px 27px; }
.btn.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn.btn-outline-white { background: transparent; border: 1px solid rgba(255,255,255,.6); color: var(--white); padding: 13px 27px; }
.btn.btn-outline-white:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn.btn-accent { background: var(--green); }
.btn.btn-accent:hover { background: var(--green-dark); }

/* ============ HEADER ============ */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--border);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; gap: 24px; max-width: var(--container); margin: 0 auto; height: 76px; }
@media (max-width: 767px) { .site-header-inner { padding: 12px 20px; height: 64px; } }
.brand-group { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { height: 42px; width: auto; display: block; }
@media (max-width: 480px) { .site-branding img { height: 34px; } }
.site-branding .site-title { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.brand-divider { width: 1px; height: 34px; background: var(--border); }
.vision-badge { height: 40px; width: auto; display: block; }
@media (max-width: 640px) { .brand-divider, .vision-badge { display: none; } }

.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block; padding: 10px 16px; color: var(--text);
	font-weight: 600; font-size: .95rem; border-radius: var(--radius-sm);
}
.primary-nav a:hover { background: var(--surface); color: var(--navy); }
.primary-nav .current-menu-item > a { color: var(--navy); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch a {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: .78rem; font-weight: 700; padding: 6px 10px; border-radius: var(--radius-sm);
	border: 1px solid var(--border); color: var(--text);
}
.lang-switch a .flag { font-size: 1rem; line-height: 1; }
.lang-switch a.active, .lang-switch a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
@media (max-width: 480px) { .lang-switch a .code { display: none; } .lang-switch a { padding: 6px 8px; } }
.header-actions .btn { padding: 10px 20px; font-size: .88rem; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 1px; }

@media (max-width: 900px) {
	body { position: relative; }
	.primary-nav {
		position: fixed; top: 0; bottom: 0; right: -300px; left: auto; width: 280px; max-width: 82vw;
		background: var(--white); visibility: hidden; transition: right .3s ease, visibility .3s ease;
		padding: 90px 24px 24px; box-shadow: var(--shadow-hover); z-index: 999; overflow-y: auto;
	}
	html[dir="rtl"] .primary-nav { right: auto; left: -300px; }
	.primary-nav.is-open { right: 0; visibility: visible; }
	html[dir="rtl"] .primary-nav.is-open { left: 0; }
	.primary-nav ul { flex-direction: column; }
	.header-actions .btn { display: none; }
	.menu-toggle { display: block; }
}
.nav-backdrop {
	position: fixed; inset: 0; background: rgba(0,50,74,.4); z-index: 95;
	opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }
@media (min-width: 901px) { .nav-backdrop { display: none; } }

/* ============ HERO SLIDER ============ */
.hero-slider { position: relative; height: 88vh; min-height: 540px; max-height: 820px; overflow: hidden; background: var(--navy); }
.hero-slide {
	position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
	display: flex; align-items: center;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide .slide-bg {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	transform: scale(1.04); transition: transform 8s ease-out;
}
.hero-slide.is-active .slide-bg { transform: scale(1); }
.hero-slide .slide-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(0,50,74,.88) 20%, rgba(0,50,74,.55) 55%, rgba(0,50,74,.25) 85%);
}
.hero-content { position: relative; z-index: 3; padding: 0 32px; max-width: var(--container); margin: 0 auto; width: 100%; }
.hero-inner { max-width: 680px; }
.hero-content .eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--white); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem;
	margin-bottom: 22px; opacity: .9;
}
.hero-content .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--green); display: inline-block; }
.hero-content h1 { color: var(--white); margin-bottom: .45em; }
.hero-content p.lead { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 540px; margin-bottom: 2.2em; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-nav { position: absolute; z-index: 4; bottom: 36px; left: 0; right: 0; }
.hero-nav .container { display: flex; align-items: center; justify-content: space-between; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
	width: 28px; height: 3px; background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0; border-radius: 2px;
	transition: background .3s ease;
}
.hero-dots button.is-active { background: var(--green); }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06);
	color: var(--white); cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
	transition: background .25s ease;
}
.hero-arrows button:hover { background: rgba(255,255,255,.18); }
@media (max-width: 720px) { .hero-arrows { display: none; } }

/* Mobile hero: shorter, full image visible (no crop), tighter type */
@media (max-width: 767px) {
	.hero-slider { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 5; }
	.hero-slide .slide-bg { background-size: cover; background-position: center 30%; }
	.hero-slide.self-contained .slide-bg { background-size: contain; background-repeat: no-repeat; background-color: #0b3a1f; }
	.hero-content { padding: 0 20px; }
	.hero-inner { max-width: 100%; }
	.hero-content .eyebrow { margin-bottom: 14px; font-size: .72rem; }
	.hero-content h1 { font-size: 1.7rem; line-height: 1.2; }
	.hero-content p.lead { font-size: .95rem; margin-bottom: 1.4em; }
	.hero-actions .btn, .hero-actions .btn-outline { padding: 11px 20px; font-size: .85rem; }
	.hero-nav { bottom: 16px; }
	.hero-dots button { width: 20px; }
}
@media (max-width: 400px) {
	.hero-slider { aspect-ratio: 3 / 4; }
	.hero-content h1 { font-size: 1.45rem; }
}

/* ============ SECTIONS ============ */
section { padding: 96px 0; position: relative; }
@media (max-width: 767px) { section { padding: 64px 0; } }
.section-alt { background: var(--surface); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow {
	display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .8rem;
	margin-bottom: 12px;
}
.section-head .eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--green); display: inline-block; }
.section-dark .section-head .eyebrow { color: var(--blue-light); }

/* Grids */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* Cards */
.card {
	background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
	padding: 32px 28px; position: relative; transition: box-shadow .3s ease, transform .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .card-icon-wrap {
	width: 54px; height: 54px; border-radius: var(--radius-md); background: var(--surface); display: flex; align-items: center; justify-content: center;
	margin-bottom: 20px;
}
h3 + .card p, .card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: .95rem; }

.card-media { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s ease, transform .3s ease; }
.card-media:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-media .media { height: 210px; background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-media:hover .media img { transform: scale(1.05); }
.card-media .body { padding: 26px; flex-grow: 1; display: flex; flex-direction: column; }
.card-media h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card-media p { font-size: .92rem; flex-grow: 1; }
.card-media ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: .9rem; color: var(--text); }
.card-media ul li { padding-left: 20px; position: relative; margin-bottom: 7px; }
.card-media ul li::before { content: "•"; position: absolute; left: 0; color: var(--green); font-weight: bold; }
html[dir="rtl"] .card-media ul li { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .card-media ul li::before { left: auto; right: 0; }
.card-media > a, .card-media .body > a:not(.btn) { font-weight: 700; color: var(--blue); font-size: .9rem; }

/* Stat strip */
.stats { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; text-align: center; }
.stats .stat strong { display: block; font-size: 2.4rem; color: var(--white); font-weight: 800; font-variant-numeric: tabular-nums; }
.stats .stat strong .suffix { color: var(--green); }
.stats .stat span { color: rgba(255,255,255,.68); font-size: .85rem; }

/* About / two-col */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li { padding-left: 32px; position: relative; margin-bottom: 13px; font-weight: 600; color: var(--navy); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; background: var(--green); color: #fff; border-radius: 50%; font-size: .72rem; display: flex; align-items: center; justify-content: center; }
html[dir="rtl"] .check-list li { padding-left: 0; padding-right: 32px; }
html[dir="rtl"] .check-list li::before { left: auto; right: 0; }

/* CTA band */
.cta-band {
	background: var(--navy);
	color: var(--white); text-align: center; padding: 72px 40px; border-radius: var(--radius-lg);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.72); }

/* Page banner (interior pages) */
.page-banner {
	background: var(--navy);
	color: var(--white); padding: 64px 24px 56px; text-align: center;
}
.page-banner h1 { color: var(--white); margin-bottom: 8px; font-size: clamp(1.9rem,3.4vw,2.6rem); }
.page-banner .breadcrumb { color: rgba(255,255,255,.55); font-size: .82rem; margin-bottom: 12px; }
.page-banner .breadcrumb a { color: rgba(255,255,255,.75); }

/* Entry content (generic pages: About, Privacy) */
.entry-content { max-width: 820px; margin: 0 auto; padding: 70px 24px; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-lg); margin: 1.5em 0; }
.entry-content ul { color: var(--text-muted); }
.entry-content p { color: var(--text); }

/* Accordion (FAQ) */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; transition: border-color .25s ease; }
.accordion-item.is-open { border-color: var(--blue); }
.accordion-question {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px 24px; cursor: pointer; background: var(--white); font-weight: 700; color: var(--navy);
}
.accordion-question .icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; transition: all .3s ease; font-weight: 700; color: var(--blue); }
.accordion-item.is-open .accordion-question .icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.accordion-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; background: var(--surface); }
.accordion-answer-inner { padding: 0 24px 20px; color: var(--text-muted); }
.accordion-item.is-open .accordion-answer { max-height: 400px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .ico { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); font-size: 1.15rem; }
.contact-info-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p { margin: 0; font-size: .92rem; }
.contact-form { background: var(--surface); padding: 36px; border-radius: var(--radius-lg); }
.contact-form label { color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 8px; }
.form-group input, .form-group textarea {
	width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
	font-family: var(--font); font-size: .95rem; background: var(--white); color: var(--text);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; font-size: .9rem; }
.form-notice.success { background: rgba(114,184,74,.12); color: var(--green-dark); border: 1px solid rgba(114,184,74,.3); }
.form-notice.error { background: rgba(178,60,60,.1); color: #b23c3c; border: 1px solid rgba(178,60,60,.25); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: .95rem; margin-bottom: 20px; }
.footer-brand img { height: 36px; margin-bottom: 16px; background: var(--white); padding: 8px 14px; border-radius: var(--radius-sm); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid a { color: rgba(255,255,255,.65); font-size: .92rem; }
.footer-grid a:hover { color: var(--green); }
.footer-bottom { text-align: center; padding: 24px; font-size: .85rem; color: rgba(255,255,255,.45); }

/* Product catalog */
.product-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 50px; }
.tab-btn {
	background: var(--white); border: 1px solid var(--border); color: var(--text);
	padding: 10px 20px; border-radius: 30px; font-weight: 600; font-size: .85rem; cursor: pointer; transition: all .2s ease;
}
.tab-btn .count { color: var(--text-muted); font-weight: 500; }
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tab-btn.is-active .count { color: rgba(255,255,255,.6); }

.product-group { margin-bottom: 56px; scroll-margin-top: 90px; }
.product-group.is-hidden { display: none; }
.product-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.product-group-head h2 { margin: 0; font-size: 1.3rem; }
.product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--blue); }
.product-card-media { position: relative; height: 190px; background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 14px; border-bottom: 1px solid var(--border); }
.pdf-badge {
	position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--navy); color: var(--white);
	font-size: .68rem; font-weight: 800; letter-spacing: .03em; padding: 4px 8px; border-radius: 4px;
}
html[dir="rtl"] .pdf-badge { right: auto; left: 10px; }
.product-card-media .frame {
	width: 100%; height: 100%; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
	display: flex; align-items: center; justify-content: center; overflow: hidden; transition: border-color .3s ease;
}
.product-card:hover .product-card-media .frame { border-color: var(--blue-light); }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .45s cubic-bezier(.2,.8,.3,1); }
.product-card:hover .product-card-media img { transform: scale(1.08); }
.product-card-body { padding: 16px 18px; display: flex; flex-direction: column; flex-grow: 1; }
.product-card-body h4 { font-size: .95rem; margin: 0 0 8px; color: var(--navy); line-height: 1.35; }
.product-card-body .product-desc {
	font-size: .82rem; color: var(--text-muted); line-height: 1.55; margin: 0 0 14px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1;
}
.product-card-body a { font-size: .78rem; font-weight: 700; color: var(--blue); margin-top: auto; }
.js-product-card { cursor: pointer; }

/* Quick view modal */
.product-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
.product-modal.is-open { visibility: visible; opacity: 1; }
.product-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 50, 74, .55); backdrop-filter: blur(2px); }
.product-modal-dialog {
	position: relative; background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
	display: grid; grid-template-columns: 1fr 1fr; max-width: 880px; width: 100%; max-height: 88vh;
	box-shadow: var(--shadow-hover); transform: scale(.94) translateY(10px); transition: transform .3s ease;
}
.product-modal.is-open .product-modal-dialog { transform: scale(1) translateY(0); }
@media (max-width: 720px) { .product-modal-dialog { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; } }
.product-modal-media { background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 30px; }
.product-modal-media img { max-width: 100%; max-height: 60vh; object-fit: contain; }
.product-modal-body { padding: 40px 36px; overflow-y: auto; }
.product-modal-body h3 { margin-bottom: 16px; }
.product-modal-body p { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.product-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-modal-close {
	position: absolute; top: 16px; right: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
	background: var(--white); border: 1px solid var(--border); font-size: 1.3rem; line-height: 1; color: var(--navy);
	cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.product-modal-close:hover { background: var(--surface); }
html[dir="rtl"] .product-modal-close { right: auto; left: 16px; }
body.modal-open, body.nav-open { overflow: hidden; }

/* WhatsApp floating button */
.whatsapp-float {
	position: fixed; bottom: 26px; right: 26px; z-index: 150;
	width: 58px; height: 58px; border-radius: 50%; background: #25D366;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
	transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float::before {
	content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
	animation: whatsapp-pulse 2.4s ease-out infinite; z-index: -1;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37, 211, 102, .55); }
html[dir="rtl"] .whatsapp-float { right: auto; left: 26px; }
@media (max-width: 600px) { .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; } }
@keyframes whatsapp-pulse {
	0% { transform: scale(1); opacity: .55; }
	100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float::before { animation: none; } }

/* ============ MOBILE REFINEMENTS ============ */
@media (max-width: 640px) {
	.stats { gap: 20px 28px; }
	.stats .stat strong { font-size: 1.7rem; }
	.stats .stat span { font-size: .74rem; }
	.cta-band { padding: 44px 22px; }
	.section-dark p, .section-dark[style] p { font-size: 1.05rem !important; }
	.page-banner { padding: 48px 20px 40px; }
	.page-banner h1 { font-size: 1.5rem; }
	.contact-form { padding: 24px; }
	.two-col { gap: 24px; }
	.card, .card-media .body { padding: 22px 20px; }
	.footer-grid { text-align: start; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }
