/*!
Theme Name: HM Parging
Theme URI: https://hmparging.ca
Author: HM Parging
Author URI: https://hmparging.ca
Description: Custom, trilingual (EN/FR/AR) brochure theme for HM Parging — a parging & foundation-coating company serving Ottawa, Gatineau and surrounding cities. Clean, premium, subtle construction vibe. Self-contained JS i18n layer, no page builder, no paid plugins.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hmparging
Tags: business, custom-colors, custom-menu, translation-ready, rtl-language-support
*/

/* =========================================================================
   Design tokens
   ====================================================================== */
:root {
	--gold: #F2A81D;
	--gold-dark: #C98A10;
	--charcoal: #141414;
	--ink: #1F1F1F;
	--cement: #9B9B93;
	--cement-dark: #6E6E68;
	--line: #E7E7E4;
	--paper: #F4F3F0;
	--white: #FFFFFF;
	--wa: #25D366;
	--wa-dark: #1EA952;

	--font-head: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

	--maxw: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 4px;
	--shadow-sm: 0 1px 3px rgba(20, 20, 20, .08);
	--shadow-md: 0 8px 30px rgba(20, 20, 20, .10);
	--shadow-lg: 0 20px 60px rgba(20, 20, 20, .22);
	--sticky-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

html[lang="ar"] {
	--font-head: 'Cairo', system-ui, sans-serif;
	--font-body: 'Cairo', system-ui, sans-serif;
}

/* =========================================================================
   Reset / base
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--white);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 .4em;
	color: var(--charcoal);
	letter-spacing: .01em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.hmp-no-scroll { overflow: hidden; }

.hmp-skip {
	position: absolute; inset-inline-start: -9999px; top: 0; z-index: 2000;
	background: var(--gold); color: var(--charcoal);
	padding: 12px 20px; font-weight: 700; font-family: var(--font-head);
}
.hmp-skip:focus { inset-inline-start: 12px; top: 12px; }

/* Visible, consistent focus states everywhere. */
:where(a, button, [tabindex], input, iframe):focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
	border-radius: 2px;
}

.hmp-container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* =========================================================================
   Hazard-stripe accent (subtle construction vibe)
   ====================================================================== */
.hmp-hazard {
	height: 6px;
	background-image: repeating-linear-gradient(
		45deg, var(--gold) 0, var(--gold) 14px,
		var(--charcoal) 14px, var(--charcoal) 28px
	);
}
.hmp-hazard--thin { height: 5px; opacity: .95; }

/* Faint concrete/noise texture — only on dark bands. */
.hmp-hero__noise, .hmp-process__noise {
	position: absolute; inset: 0; pointer-events: none; opacity: .06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================================
   Buttons
   ====================================================================== */
.hmp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--font-head); font-weight: 600; font-size: 16px;
	letter-spacing: .03em; text-transform: uppercase;
	padding: 13px 24px; border: 2px solid transparent; border-radius: var(--radius);
	background: var(--gold); color: var(--charcoal);
	transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .1s var(--ease);
	line-height: 1.1; text-align: center;
}
.hmp-btn:hover { transform: translateY(-1px); }
.hmp-btn:active { transform: translateY(0); }
.hmp-btn .hmp-icon { width: 20px; height: 20px; }
.hmp-btn--gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.hmp-btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.hmp-btn--wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.hmp-btn--wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.hmp-btn--outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.hmp-btn--outline:hover { background: var(--charcoal); color: #fff; }
.hmp-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hmp-btn--outline-light:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.hmp-btn--lg { padding: 16px 30px; font-size: 17px; }
.hmp-btn--block { width: 100%; }

/* =========================================================================
   Header
   ====================================================================== */
.hmp-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 900;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
/* Header is fixed (overlays the dark hero/pagehead for the transparent effect),
   so the first section clears it via top padding = header height + spacing. */
.hmp-main > .hmp-section:first-child { padding-top: calc(var(--sticky-h) + clamp(40px, 6vw, 72px)); }
/* Keep anchor targets clear of the fixed header. */
section[id] { scroll-margin-top: calc(var(--sticky-h) + 12px); }
/* Subtle top scrim so white nav text stays legible over the dark hero. */
.hmp-header::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 200%;
	pointer-events: none; z-index: -1; opacity: 1; transition: opacity .3s var(--ease);
	background: linear-gradient(to bottom, rgba(0,0,0,.38), rgba(0,0,0,0));
}
.hmp-header.is-stuck {
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(6px);
	border-bottom-color: var(--line);
	box-shadow: var(--shadow-md);
}
.hmp-header.is-stuck::before { opacity: 0; }

/* Top (not-yet-scrolled) state: light chrome over the dark hero. */
.hmp-header:not(.is-stuck) .hmp-nav__list a { color: #fff; }
.hmp-header:not(.is-stuck) .hmp-burger span { background: #fff; }
.hmp-header:not(.is-stuck) .hmp-langdd__toggle { color: #fff; border-color: rgba(255,255,255,.4); }
.hmp-header:not(.is-stuck) .hmp-langdd__toggle:hover { color: var(--gold); border-color: rgba(255,255,255,.7); }
.hmp-header__inner {
	display: flex; align-items: center; gap: 20px;
	min-height: var(--sticky-h);
}
.hmp-logo { display: flex; align-items: center; flex: 0 0 auto; }
.hmp-logo__img { height: 46px; width: auto; }

.hmp-nav { margin-inline-start: auto; }
.hmp-nav__list { display: flex; gap: 28px; }
.hmp-nav__list a {
	font-family: var(--font-head); font-weight: 500; text-transform: uppercase;
	font-size: 15px; letter-spacing: .04em; color: var(--charcoal);
	padding: 6px 0; position: relative;
}
.hmp-nav__list a::after {
	content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 100%; bottom: -2px;
	height: 3px; background: var(--gold); transition: inset-inline-end .2s var(--ease);
}
.hmp-nav__list a:hover::after, .hmp-nav__list a:focus-visible::after { inset-inline-end: 0; }

.hmp-header__actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.hmp-header__quote { white-space: nowrap; }

/* Language dropdown (custom control) */
.hmp-langdd { position: relative; display: inline-block; }
.hmp-langdd__toggle {
	display: inline-flex; align-items: center; gap: 7px; line-height: 1;
	background: none; border: 1px solid var(--line); padding: 7px 11px;
	border-radius: var(--radius); font-family: var(--font-head); font-weight: 600;
	font-size: 14px; letter-spacing: .05em; color: inherit;
	transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.hmp-langdd__toggle:hover { color: var(--gold-dark); border-color: var(--gold); }
.hmp-langdd__globe { width: 18px; height: 18px; flex: 0 0 auto; }
.hmp-langdd__chev { width: 13px; height: 13px; flex: 0 0 auto; transition: transform .2s var(--ease); }
.hmp-langdd.is-open .hmp-langdd__chev { transform: rotate(180deg); }
.hmp-langdd__current { min-width: 1.3em; text-align: center; }

.hmp-langdd__menu {
	position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
	min-width: 172px; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 6px;
	display: flex; flex-direction: column; gap: 2px;
	animation: hmp-fade .14s var(--ease);
}
.hmp-langdd__menu[hidden] { display: none; }
.hmp-langdd__menu .hmp-lang__btn {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	width: 100%; background: none; border: 0; padding: 9px 12px; border-radius: 3px;
	text-align: start; color: var(--ink);
	transition: background .12s var(--ease), color .12s var(--ease);
}
.hmp-lang__btn-code {
	font-family: var(--font-head); font-weight: 600; font-size: 13px;
	letter-spacing: .06em; color: var(--cement-dark); flex: 0 0 auto;
}
.hmp-lang__btn-label { font-family: var(--font-body); font-weight: 500; font-size: 15px; }
.hmp-lang__btn[lang="ar"] .hmp-lang__btn-code { font-size: 17px; }
.hmp-langdd__menu .hmp-lang__btn:hover { background: rgba(242,168,29,.12); color: var(--charcoal); }
.hmp-langdd__menu .hmp-lang__btn:hover .hmp-lang__btn-code { color: var(--gold-dark); }
.hmp-langdd__menu .hmp-lang__btn.is-active,
.hmp-langdd__menu .hmp-lang__btn[aria-selected="true"] { background: var(--charcoal); color: #fff; }
.hmp-langdd__menu .hmp-lang__btn.is-active .hmp-lang__btn-code,
.hmp-langdd__menu .hmp-lang__btn[aria-selected="true"] .hmp-lang__btn-code { color: var(--gold); }

/* Dark-context triggers (footer, drawer, links). */
.hmp-langdd--footer .hmp-langdd__toggle,
.hmp-langdd--drawer .hmp-langdd__toggle,
.hmp-langdd--links .hmp-langdd__toggle { color: #cfcfca; border-color: rgba(255,255,255,.2); }
.hmp-langdd--footer .hmp-langdd__toggle:hover,
.hmp-langdd--drawer .hmp-langdd__toggle:hover,
.hmp-langdd--links .hmp-langdd__toggle:hover { color: var(--gold); border-color: rgba(255,255,255,.45); }
/* Footer sits at the bottom — open the menu upward. */
.hmp-langdd--footer .hmp-langdd__menu { top: auto; bottom: calc(100% + 8px); }
/* Drawer/links triggers stretch full width for easy tapping. */
.hmp-langdd--drawer, .hmp-langdd--links { display: block; }
.hmp-langdd--drawer .hmp-langdd__toggle,
.hmp-langdd--links .hmp-langdd__toggle { width: 100%; justify-content: center; }

/* Burger */
.hmp-burger { display: none; width: 42px; height: 42px; background: none; border: 0; padding: 9px; }
.hmp-burger span { display: block; height: 2px; background: var(--charcoal); margin: 5px 0; transition: transform .2s var(--ease), opacity .2s var(--ease); }

/* Mobile drawer */
.hmp-drawer {
	position: fixed; top: 0; inset-inline-end: 0; height: 100dvh; width: min(84vw, 340px);
	background: var(--charcoal); z-index: 1200; padding: 88px 28px 32px;
	transform: translateX(100%); transition: transform .28s var(--ease);
	overflow-y: auto;
}
html[dir="rtl"] .hmp-drawer { transform: translateX(-100%); }
.hmp-drawer.is-open { transform: translateX(0); }
.hmp-drawer__nav { display: flex; flex-direction: column; gap: 6px; }
.hmp-drawer__nav a {
	font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em;
	color: #fff; font-size: 20px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.hmp-drawer__nav a:hover { color: var(--gold); }
.hmp-drawer__quote { margin-top: 18px; }
.hmp-drawer .hmp-langdd { margin-top: 22px; }
.hmp-drawer__scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1100; }

/* =========================================================================
   Sections & shared heads
   ====================================================================== */
.hmp-section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.hmp-section--paper { background: var(--paper); }
.hmp-section--dark { background: var(--charcoal); color: #E9E9E6; }
.hmp-section--dark .hmp-sec-title,
.hmp-section--dark h1, .hmp-section--dark h2, .hmp-section--dark h3 { color: #fff; }

.hmp-sec-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.hmp-eyebrow {
	font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
	letter-spacing: .18em; font-size: 14px; color: var(--gold-dark); margin: 0 0 12px;
}
.hmp-section--dark .hmp-eyebrow { color: var(--gold); }
.hmp-eyebrow--hazard { display: inline-flex; align-items: center; gap: 12px; }
.hmp-eyebrow--hazard::before {
	content: ""; width: 34px; height: 6px; border-radius: 1px;
	background-image: repeating-linear-gradient(45deg, var(--gold) 0, var(--gold) 6px, var(--charcoal) 6px, var(--charcoal) 12px);
}
.hmp-section--dark .hmp-eyebrow--hazard::before {
	background-image: repeating-linear-gradient(45deg, var(--gold) 0, var(--gold) 6px, #000 6px, #000 12px);
}
.hmp-sec-title { font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; text-transform: uppercase; }
.hmp-sec-intro { color: var(--cement-dark); font-size: 18px; margin: 0; }
.hmp-section--dark .hmp-sec-intro { color: #b9b9b3; }
.hmp-sec-head--light .hmp-sec-intro { color: #b9b9b3; }
.hmp-sec-cta { text-align: center; margin-top: 44px; }
.hmp-mt { margin-top: clamp(48px, 7vw, 84px); text-align: center; }

/* Grids */
.hmp-grid { display: grid; gap: 24px; }
.hmp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hmp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hmp-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================================
   Hero
   ====================================================================== */
.hmp-hero { position: relative; background: var(--charcoal); color: #EDEDEA; overflow: hidden; }
.hmp-hero__grid {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px);
	align-items: center;
	padding-top: calc(var(--sticky-h) + clamp(28px, 5vw, 64px));
	padding-bottom: clamp(56px, 9vw, 120px);
}
.hmp-hero__title {
	color: #fff; font-weight: 700; text-transform: uppercase;
	font-size: clamp(38px, 6vw, 68px); line-height: .98; margin: 14px 0 18px;
}
.hmp-hero__sub { color: #c7c7c1; font-size: clamp(17px, 2vw, 20px); max-width: 44ch; }
.hmp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hmp-hero__badges { display: flex; flex-wrap: wrap; gap: 22px; }
.hmp-hero__badges li { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15px; color: #e3e3df; }
.hmp-hero__badges .hmp-icon { width: 22px; height: 22px; color: var(--gold); flex: 0 0 auto; }

.hmp-hero__visual { position: relative; }
.hmp-hero__img {
	width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
	border: 1px solid rgba(255,255,255,.08); aspect-ratio: 4/3; object-fit: cover;
}
.hmp-hero__ba { position: absolute; inset: 0; }
.hmp-ba-tag {
	position: absolute; top: 14px; font-family: var(--font-head); font-weight: 600;
	text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
	padding: 5px 12px; border-radius: 2px;
}
.hmp-ba-tag--before { inset-inline-start: 14px; background: rgba(20,20,20,.82); color: #fff; }
.hmp-ba-tag--after { inset-inline-end: 14px; background: var(--gold); color: var(--charcoal); }

/* =========================================================================
   Service cards
   ====================================================================== */
.hmp-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px 28px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.hmp-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.hmp-card__icon, .hmp-why__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: var(--radius);
	background: rgba(242,168,29,.12); color: var(--gold-dark); margin-bottom: 18px;
}
.hmp-card__icon .hmp-icon, .hmp-why__icon .hmp-icon { width: 30px; height: 30px; }
.hmp-card__title { font-size: 21px; text-transform: uppercase; letter-spacing: .01em; }
.hmp-card__desc { color: var(--cement-dark); margin: 0; font-size: 16px; }

/* =========================================================================
   Process steps
   ====================================================================== */
.hmp-process { overflow: hidden; }
.hmp-process .hmp-container { position: relative; z-index: 1; }
.hmp-steps { display: grid; gap: 0; max-width: 900px; margin: 0 auto; counter-reset: step; }
.hmp-step {
	display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px);
	padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.12); align-items: start;
}
.hmp-step:last-child { border-bottom: 0; }
.hmp-step__n {
	font-family: var(--font-head); font-weight: 700; font-size: clamp(44px, 7vw, 72px);
	line-height: 1; color: var(--gold); min-width: 1.6em;
}
.hmp-step__title { color: #fff; font-size: clamp(20px, 2.6vw, 26px); text-transform: uppercase; margin-bottom: 8px; }
.hmp-step__desc { color: #bfbfb9; margin: 0; }

/* =========================================================================
   Work photo boxes / galleries
   ====================================================================== */
.hmp-box { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hmp-box__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease); }
.hmp-box:hover .hmp-box__img { transform: scale(1.04); }
.hmp-box__cap {
	display: block; padding: 12px 14px; font-family: var(--font-head); font-weight: 500;
	text-transform: uppercase; letter-spacing: .03em; font-size: 13px; color: var(--cement-dark);
}

/* Before / after */
.hmp-ba__pair { margin: 0; }
.hmp-ba__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hmp-ba__side, .hmp-ba__split { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hmp-ba__side .hmp-ba-tag, .hmp-ba__split .hmp-ba-tag { position: absolute; top: 12px; }
.hmp-ba__split .hmp-ba-tag--before { inset-inline-start: 12px; }
.hmp-ba__split .hmp-ba-tag--after { inset-inline-end: 12px; }

/* Gallery (Our Work) */
.hmp-gallery__item {
	display: block; padding: 0; border: 1px solid var(--line); background: #fff;
	border-radius: var(--radius); overflow: hidden; text-align: start; width: 100%;
	transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.hmp-gallery__item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.hmp-gallery__cap { display: block; padding: 12px 14px; font-size: 14px; color: var(--cement-dark); }

/* =========================================================================
   Why HM Parging
   ====================================================================== */
.hmp-why__item { text-align: center; padding: 20px; }
.hmp-why__icon { margin-inline: auto; }
.hmp-why__title { font-size: 20px; text-transform: uppercase; }
.hmp-why__desc { color: var(--cement-dark); font-size: 16px; margin: 0; }

/* =========================================================================
   Service area + map
   ====================================================================== */
.hmp-areas__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.hmp-areas__copy .hmp-sec-title { text-align: start; }
.hmp-areas__list {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin-top: 22px;
}
.hmp-areas__list li {
	position: relative; padding-inline-start: 20px; color: var(--ink); font-size: 15px;
}
.hmp-areas__list li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .62em;
	width: 8px; height: 8px; background: var(--gold); border-radius: 1px; transform: rotate(45deg);
}
.hmp-map {
	position: relative; width: 100%; aspect-ratio: 16/11;
	border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
	box-shadow: var(--shadow-md); background: var(--paper);
}
.hmp-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================================
   Contact CTA band
   ====================================================================== */
.hmp-cta-band { text-align: center; }
.hmp-cta-band .hmp-hazard { position: absolute; top: 0; left: 0; right: 0; }
.hmp-cta-band__inner { max-width: 760px; margin: 0 auto; }
.hmp-cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* =========================================================================
   Footer
   ====================================================================== */
.hmp-footer { background: var(--charcoal); color: #c9c9c4; position: relative; }
.hmp-footer .hmp-hazard { position: absolute; top: 0; left: 0; right: 0; }
.hmp-footer__grid {
	display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 40px;
	padding: clamp(48px, 6vw, 76px) var(--gutter) 40px;
}
.hmp-footer__logo-img { height: 54px; width: auto; margin-bottom: 16px; }
.hmp-footer__tag { color: #b0b0aa; max-width: 30ch; }
.hmp-footer__h { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.hmp-footer__links li { margin-bottom: 10px; }
.hmp-footer__links a { color: #c1c1bc; display: inline-flex; align-items: center; gap: 10px; transition: color .15s var(--ease); }
.hmp-footer__links a:hover { color: var(--gold); }
.hmp-footer__contact .hmp-icon { width: 18px; height: 18px; color: var(--gold); }
.hmp-footer__social { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.hmp-social { display: inline-flex; align-items: center; gap: 9px; color: #c1c1bc; transition: color .15s var(--ease); }
.hmp-social:hover { color: var(--gold); }
.hmp-social .hmp-icon { width: 22px; height: 22px; }
.hmp-social--icon { padding: 4px; }
.hmp-footer__col--lang { display: flex; align-items: flex-start; }
.hmp-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px var(--gutter); }
.hmp-footer__bottom p { margin: 0; font-size: 14px; color: #8f8f8a; }

/* =========================================================================
   Floating WhatsApp FAB
   ====================================================================== */
.hmp-fab {
	position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 950;
	width: 60px; height: 60px; border-radius: 50%; border: 0;
	background: var(--gold); color: var(--charcoal); box-shadow: var(--shadow-lg);
	display: inline-flex; align-items: center; justify-content: center;
	transition: transform .18s var(--ease), background .18s var(--ease);
	animation: hmp-fab-in .4s var(--ease) both;
}
.hmp-fab:hover { background: var(--gold-dark); transform: scale(1.06); }
.hmp-fab .hmp-icon { width: 30px; height: 30px; }
.hmp-fab::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(242, 168, 29, .5); animation: hmp-pulse 2.4s infinite;
}
@keyframes hmp-pulse { 0% { box-shadow: 0 0 0 0 rgba(242,168,29,.45); } 70% { box-shadow: 0 0 0 16px rgba(242,168,29,0); } 100% { box-shadow: 0 0 0 0 rgba(242,168,29,0); } }
@keyframes hmp-fab-in { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }

/* =========================================================================
   Contact modal
   ====================================================================== */
.hmp-modal { position: fixed; inset: 0; z-index: 1500; display: none; }
.hmp-modal.is-open { display: block; }
.hmp-modal__scrim { position: absolute; inset: 0; background: rgba(15,15,15,.62); backdrop-filter: blur(2px); animation: hmp-fade .2s var(--ease); }
.hmp-modal__box {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(94vw, 440px); background: #fff; border-radius: var(--radius);
	box-shadow: var(--shadow-lg); overflow: hidden; animation: hmp-pop .22s var(--ease);
}
.hmp-modal__box .hmp-hazard { height: 5px; }
.hmp-modal__body { padding: 30px 28px 26px; text-align: center; }
.hmp-modal__title { font-size: 26px; text-transform: uppercase; margin-bottom: 6px; }
.hmp-modal__sub { color: var(--cement-dark); margin-bottom: 22px; }
.hmp-modal__actions { display: grid; gap: 12px; }
.hmp-modal__actions .hmp-btn { justify-content: flex-start; }
.hmp-modal__phone { margin: 18px 0 0; font-size: 15px; color: var(--cement-dark); }
.hmp-modal__phone a { color: var(--charcoal); font-weight: 600; }
.hmp-modal__close {
	position: absolute; top: 8px; inset-inline-end: 12px; z-index: 2;
	background: none; border: 0; font-size: 30px; line-height: 1; color: var(--cement-dark);
	width: 40px; height: 40px; border-radius: 3px;
}
.hmp-modal__close:hover { color: var(--charcoal); }
@keyframes hmp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hmp-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* =========================================================================
   Lightbox
   ====================================================================== */
.hmp-lb { position: fixed; inset: 0; z-index: 1600; display: none; }
.hmp-lb.is-open { display: block; }
.hmp-lb__scrim { position: absolute; inset: 0; background: rgba(10,10,10,.9); }
.hmp-lb__fig { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5vw; gap: 14px; }
.hmp-lb__img { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hmp-lb__cap { color: #e6e6e2; font-size: 14px; text-align: center; }
.hmp-lb__close { position: absolute; top: 18px; inset-inline-end: 22px; z-index: 2; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; width: 52px; height: 52px; }

/* =========================================================================
   Page heads (inner pages)
   ====================================================================== */
.hmp-pagehead { position: relative; padding: calc(var(--sticky-h) + clamp(32px, 5vw, 56px)) 0 clamp(40px, 6vw, 64px); }
.hmp-pagehead .hmp-hazard { position: absolute; top: 0; left: 0; right: 0; }
.hmp-pagehead__title { color: #fff; font-size: clamp(32px, 5vw, 52px); text-transform: uppercase; font-weight: 700; }
.hmp-pagehead__intro { color: #b9b9b3; font-size: 19px; max-width: 60ch; margin: 0; }

/* =========================================================================
   Services detail rows
   ====================================================================== */
.hmp-svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; padding: clamp(30px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.hmp-svc-row:last-child { border-bottom: 0; }
.hmp-svc-row--flip .hmp-svc-row__media { order: 2; }
.hmp-svc-row__media .hmp-box__img { border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); aspect-ratio: 4/3; }
.hmp-svc-row__title { font-size: clamp(24px, 3.2vw, 32px); text-transform: uppercase; }
.hmp-svc-row__desc { font-size: 18px; color: var(--ink); }
.hmp-svc-row__reassure { color: var(--cement-dark); font-size: 15.5px; border-inline-start: 3px solid var(--gold); padding-inline-start: 16px; margin: 18px 0 24px; }

/* =========================================================================
   About
   ====================================================================== */
.hmp-about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.hmp-about__media .hmp-box__img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.hmp-prose p { font-size: 18px; color: var(--ink); }
.hmp-about__values { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 20px; color: var(--gold-dark); margin: 6px 0 24px; }

/* =========================================================================
   FAQ accordion
   ====================================================================== */
.hmp-faq__wrap { max-width: 820px; margin: 0 auto; }
.hmp-acc { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.hmp-acc.is-open { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.hmp-acc__head { margin: 0; }
.hmp-acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; background: none; border: 0; text-align: start; }
.hmp-acc__q { font-family: var(--font-head); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .01em; color: var(--charcoal); }
.hmp-acc__icon { flex: 0 0 auto; color: var(--gold-dark); display: inline-flex; transition: transform .25s var(--ease); }
.hmp-acc__icon .hmp-icon { width: 22px; height: 22px; }
.hmp-acc.is-open .hmp-acc__icon { transform: rotate(45deg); }
.hmp-acc__panel { padding: 0 22px 22px; }
.hmp-acc__a { margin: 0; color: var(--cement-dark); font-size: 16.5px; }

/* =========================================================================
   Contact page
   ====================================================================== */
.hmp-contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.hmp-contact__actions { display: grid; gap: 14px; }
.hmp-contact__card {
	display: flex; align-items: center; gap: 18px; padding: 20px 22px;
	border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.hmp-contact__card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hmp-contact__ic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: var(--radius); background: rgba(242,168,29,.12); color: var(--gold-dark); display: inline-flex; align-items: center; justify-content: center; }
.hmp-contact__card--wa .hmp-contact__ic { background: rgba(37,211,102,.14); color: var(--wa-dark); }
.hmp-contact__ic .hmp-icon { width: 26px; height: 26px; }
.hmp-contact__meta { display: flex; flex-direction: column; }
.hmp-contact__label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--cement-dark); }
.hmp-contact__val { font-size: 19px; font-weight: 600; color: var(--charcoal); }
.hmp-contact__area { padding: 20px 22px; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 4px; }

/* =========================================================================
   Links / Linktree page
   ====================================================================== */
.hmp-links-body { background: var(--charcoal); }
.hmp-links { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 64px 20px; position: relative; overflow: hidden; }
/* Construction accent kept subtle: thin hazard bands top & bottom only
   (no more full-page diagonal stripe competing with the buttons). */
.hmp-links::before, .hmp-links::after {
	content: ""; position: absolute; left: 0; right: 0; height: 6px; z-index: 1; pointer-events: none;
	background-image: repeating-linear-gradient(45deg, var(--gold) 0, var(--gold) 14px, var(--charcoal) 14px, var(--charcoal) 28px);
}
.hmp-links::before { top: 0; }
.hmp-links::after { bottom: 0; }
.hmp-links__inner { position: relative; z-index: 2; width: 100%; max-width: 440px; text-align: center; }
.hmp-links__lang { display: flex; justify-content: center; margin-bottom: 26px; }
.hmp-links__logo-img { height: 92px; width: auto; margin: 0 auto 14px; }
.hmp-links__tag { color: #b6b6b0; font-size: 15px; margin-bottom: 30px; }
.hmp-links__stack { display: grid; gap: 13px; }

/* Every button shares shape, height and padding. Icon pinned to the
   inline-start, label optically centred. */
.hmp-linkbtn {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100%; min-height: 62px; padding: 12px 58px; border-radius: var(--radius);
	border: 1px solid transparent; background: #fff; color: var(--charcoal);
	font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
	letter-spacing: .04em; font-size: 16px; line-height: 1.2;
	box-shadow: 0 3px 0 rgba(0,0,0,.28), 0 6px 16px rgba(0,0,0,.22);
	transition: transform .12s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), filter .18s var(--ease);
}
.hmp-linkbtn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0,0,0,.28), 0 11px 24px rgba(0,0,0,.32); }
.hmp-linkbtn:active { transform: translateY(0); box-shadow: 0 2px 0 rgba(0,0,0,.28), 0 4px 10px rgba(0,0,0,.22); }
.hmp-linkbtn__ic { position: absolute; inset-inline-start: 18px; display: inline-flex; align-items: center; }
.hmp-linkbtn__ic .hmp-icon { width: 24px; height: 24px; }
.hmp-linkbtn__ic--gold { color: var(--gold-dark); }
.hmp-brandicon { display: block; }

/* Two hero actions. */
.hmp-linkbtn--gold { background: var(--gold); color: var(--charcoal); }
.hmp-linkbtn--gold:hover { background: var(--gold-dark); }
.hmp-linkbtn--wa { background: var(--wa); color: #fff; }
.hmp-linkbtn--wa .hmp-linkbtn__ic { color: #fff; }
.hmp-linkbtn--wa:hover { background: var(--wa-dark); }
/* Cream cards with a coloured icon. */
.hmp-linkbtn--card { background: #fff; color: var(--charcoal); }
.hmp-linkbtn--card:hover { filter: brightness(.97); }

.hmp-links__copy { margin: 30px 0 0; color: #7f7f7a; font-size: 13px; }

/* index / prose fallback */
.hmp-prose { max-width: 760px; }
.hmp-entry { margin-bottom: 40px; }

/* =========================================================================
   Sliders / carousels (effect sliders)
   ====================================================================== */
.hmp-slider { position: relative; }
.hmp-slider__viewport { overflow: hidden; border-radius: var(--radius); }
.hmp-slider__track {
	display: flex; margin: 0; padding: 0; list-style: none;
	transition: transform .6s var(--ease); will-change: transform;
	/* Keep slide order stable regardless of page direction — the JS drives
	   position with translateX and must not be flipped by RTL. Arabic caption
	   text direction is restored per-slide in rtl.css. */
	direction: ltr;
}
.hmp-slider.is-dragging .hmp-slider__track { transition: none; }
.hmp-slider__slide { position: relative; flex: 0 0 100%; overflow: hidden; }
.hmp-slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hmp-slider__cap {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 22px 18px; color: #fff;
	font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; font-size: 15px;
	background: linear-gradient(to top, rgba(10,10,10,.75), rgba(10,10,10,0));
}
.hmp-slider__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 48px; height: 48px; border-radius: 50%; border: 0;
	background: var(--gold); color: var(--charcoal);
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-md); transition: background .18s var(--ease), transform .12s var(--ease);
}
.hmp-slider__arrow:hover { background: var(--gold-dark); }
.hmp-slider__arrow:active { transform: translateY(-50%) scale(.94); }
.hmp-slider__arrow .hmp-icon { width: 24px; height: 24px; }
.hmp-slider__arrow--prev { inset-inline-start: 14px; }
.hmp-slider__arrow--prev .hmp-icon { transform: rotate(180deg); }
.hmp-slider__arrow--next { inset-inline-end: 14px; }
.hmp-slider__dots { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.hmp-slider__dot {
	width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	background: var(--line); transition: background .2s var(--ease), transform .2s var(--ease);
}
.hmp-slider__dot.is-active { background: var(--gold); transform: scale(1.3); }
.hmp-section--dark .hmp-slider__dot { background: rgba(255,255,255,.3); }
.hmp-section--dark .hmp-slider__dot.is-active { background: var(--gold); }
/* Ken Burns on the active slide. */
@media (prefers-reduced-motion: no-preference) {
	.hmp-slider__slide.is-active img { animation: hmp-kenburns 7s ease-out both; }
}
@keyframes hmp-kenburns { from { transform: scale(1.001); } to { transform: scale(1.08); } }

/* Hero variant fills the hero visual with a 4:3 rotating carousel. */
.hmp-slider--hero .hmp-slider__viewport { box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.hmp-slider--hero .hmp-slider__slide { aspect-ratio: 4/3; }

/* Showcase variant: wide banner carousel with captions + controls. */
.hmp-slider--showcase { max-width: 1000px; margin-inline: auto; }
.hmp-slider--showcase .hmp-slider__viewport { box-shadow: var(--shadow-md); }
.hmp-slider--showcase .hmp-slider__slide { aspect-ratio: 16/9; }

/* No-JS / crawler fallback: horizontal snap-scroll, hide controls. */
html:not(.hmp-js) .hmp-slider__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
html:not(.hmp-js) .hmp-slider__slide { scroll-snap-align: center; }
html:not(.hmp-js) .hmp-slider__arrow,
html:not(.hmp-js) .hmp-slider__dots { display: none; }

/* =========================================================================
   Scroll-reveal effects
   ====================================================================== */
.hmp-js [data-reveal] {
	opacity: 0; transform: translateY(26px);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.hmp-js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.hmp-js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
	.hmp-slider__track { transition: none; }
}

/* =========================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1024px) {
	.hmp-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.hmp-footer__grid { grid-template-columns: 1fr 1fr; }
	.hmp-footer__col--lang { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.hmp-nav, .hmp-header__quote { display: none; }
	.hmp-burger { display: block; }
	.hmp-header__actions { margin-inline-start: auto; gap: 8px; }
	.hmp-logo__img { height: 42px; }
	/* Compact, globe-only language control in the header on mobile
	   (full labels remain in the drawer + footer switchers). */
	.hmp-header .hmp-langdd__current,
	.hmp-header .hmp-langdd__chev { display: none; }
	.hmp-header .hmp-langdd__toggle { padding: 9px; }
	.hmp-header .hmp-langdd__menu { min-width: 150px; }
	.hmp-hero__grid { grid-template-columns: 1fr; padding-top: calc(var(--sticky-h) + clamp(20px, 6vw, 40px)); padding-bottom: clamp(40px, 12vw, 72px); }
	.hmp-hero__visual { order: -1; }
	.hmp-areas__grid, .hmp-contact__grid, .hmp-about__grid { grid-template-columns: 1fr; }
	.hmp-svc-row, .hmp-svc-row--flip { grid-template-columns: 1fr; }
	.hmp-svc-row--flip .hmp-svc-row__media { order: -1; }
	.hmp-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
	body { font-size: 16px; }
	:root { --sticky-h: 64px; }
	.hmp-grid--2, .hmp-grid--3, .hmp-grid--4 { grid-template-columns: 1fr; }
	.hmp-ba__imgs { grid-template-columns: 1fr 1fr; }
	.hmp-footer__grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
	.hmp-footer__tag { margin-inline: auto; }
	.hmp-social, .hmp-footer__links a { justify-content: center; }
	.hmp-footer__col--lang { justify-content: center; }
	.hmp-hero__actions { flex-direction: column; }
	.hmp-hero__actions .hmp-btn, .hmp-cta-band__actions .hmp-btn { width: 100%; }
	.hmp-hero__badges { gap: 14px 20px; }
	.hmp-cta-band__actions { flex-direction: column; }
	.hmp-areas__list { grid-template-columns: 1fr 1fr; }
	.hmp-fab { bottom: 18px; inset-inline-end: 18px; width: 54px; height: 54px; }
	.hmp-fab .hmp-icon { width: 26px; height: 26px; }
	.hmp-step { grid-template-columns: auto 1fr; gap: 4px 16px; }
	.hmp-step__n { font-size: 40px; }
	.hmp-slider__arrow { width: 40px; height: 40px; }
	.hmp-slider__arrow .hmp-icon { width: 20px; height: 20px; }
	.hmp-slider--showcase .hmp-slider__slide { aspect-ratio: 4/3; }
	.hmp-slider__cap { font-size: 13px; padding: 34px 16px 14px; }
	.hmp-logo__img { height: 38px; }
	.hmp-modal__body { padding: 26px 20px 22px; }
	.hmp-contact__card { padding: 16px 18px; gap: 14px; }
}
@media (max-width: 420px) {
	.hmp-areas__list { grid-template-columns: 1fr; }
	.hmp-ba__imgs { grid-template-columns: 1fr; }
	.hmp-hero__badges { flex-direction: column; gap: 10px; }
}

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