/* =========================================================
   Aletijah Air Conditioning — site styles
   ========================================================= */
:root {
  --red: #b3121b;
  --red-700: #930f17;
  --red-50: #fbeeee;
  --ink: #1d1f23;
  --text: #464a51;
  --muted: #72767e;
  --beige: #efe4d6;
  --beige-50: #f8f3ec;
  --line: #e9e3db;
  --dark: #1c1d20;
  --white: #fff;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(28, 20, 12, .06), 0 2px 8px rgba(28, 20, 12, .04);
  --shadow: 0 18px 40px -18px rgba(40, 24, 10, .28);
  --container: 1200px;
  --section: clamp(64px, 8vw, 104px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Tajawal", system-ui, sans-serif;
  font-size: 17px; line-height: 1.75; color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; font-weight: 800; }
bdi { direction: ltr; unicode-bidi: isolate; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.skip { position: fixed; top: -60px; right: 16px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.dot { color: var(--red); }
.ico { width: 26px; height: 26px; color: var(--red); flex: none; }
.ico.wa { color: #1faa53; }
.topbar .ico.wa, .footer .ico.wa { color: #4ee38a; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 1.5px solid transparent; border-radius: var(--r-sm);
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(-3px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); box-shadow: 0 10px 22px -10px rgba(179, 18, 27, .7); }
.btn-outline { border-color: var(--red); color: var(--red); background: var(--white); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-link { padding: 0; min-height: 0; color: var(--red); border: 0; }
.btn-link:hover { color: var(--red-700); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--dark); color: #d8d9dc; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 14px; height: 14px; color: #fff; }
a.topbar-item { font-weight: 700; color: #fff; }
a.topbar-item:hover { color: #ffb3b6; }

.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
  transition: box-shadow .35s var(--ease), background .35s; }
.header .container { display: flex; align-items: center; gap: 36px; min-height: 84px; transition: min-height .35s var(--ease); }
.header.scrolled { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); box-shadow: 0 10px 30px -18px rgba(30, 20, 10, .35); }
.header.scrolled .container { min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--red); flex: none; }
.brand-logo { width: 50px; height: auto; transition: transform .5s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-5deg); }
.brand-name { display: block; font-weight: 800; font-size: 21px; line-height: 1.2; }
.brand-sub { display: block; font-size: 12px; color: var(--muted); }

.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { position: relative; padding: 10px 14px; font-weight: 500; color: var(--ink); border-radius: var(--r-sm); transition: color .2s, background .2s; }
.nav a:hover { color: var(--red); background: var(--beige-50); }
.nav a.active { color: var(--red); font-weight: 700; }
.nav a.active::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--red); }
.header-actions { display: flex; gap: 10px; margin-inline-start: auto; }

.menu-toggle { display: none; width: 44px; height: 44px; margin-inline-start: auto; border: 0; background: none; cursor: pointer; border-radius: var(--r-sm); }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer, .drawer-backdrop { display: none; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(40px, 5vw, 64px); }
.tint { background: var(--beige-50); }
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--red); font-weight: 700; font-size: 14px; letter-spacing: .2px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.sec-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.title { font-size: clamp(28px, 3.4vw, 42px); }
.lead { margin-top: 12px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.body-lg { font-size: 18px; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-row .sec-head { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--beige); min-height: clamp(520px, 44vw, 640px); display: flex; align-items: center; }
.hero-media { position: absolute; z-index: -1; inset-block: 0; left: 0; height: 100%; aspect-ratio: 1264 / 848; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 40% 30%; animation: kenburns 26s ease-in-out infinite alternate; }
.hero .container { padding-block: 72px 110px; }
.hero-content { max-width: 640px; }
.hero h1 .line > span { white-space: nowrap; }
.hero-kicker { display: inline-block; padding: 6px 14px; margin-bottom: 18px; border-radius: 99px; background: rgba(255, 255, 255, .65); color: var(--ink); font-weight: 700; font-size: 14px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.18; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { margin-top: 18px; font-size: clamp(19px, 2vw, 24px); font-weight: 500; color: var(--ink); }
.hero-types { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; font-size: 18px; color: var(--text); }
.hero-types li + li::before { content: "•"; margin-inline-end: 10px; color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.airflow { position: absolute; left: 30.5%; top: 25.5%; width: 16.5%; height: 22%; overflow: visible; pointer-events: none; }
.airflow path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 24 150; opacity: 0;
  filter: drop-shadow(0 0 4px rgba(150, 210, 255, .8)); animation: air 3.8s linear var(--d) infinite; }

/* pillars card overlapping the hero */
.pillars-wrap { position: relative; z-index: 2; margin-top: -64px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.pillar { display: flex; align-items: center; gap: 16px; padding: 26px 28px; }
.pillar + .pillar { border-inline-start: 1px solid var(--line); }
.pillar .ico { width: 54px; height: 54px; padding: 13px; border-radius: 14px; background: var(--red-50); transition: transform .4s var(--ease); }
.pillar:hover .ico { transform: translateY(-3px); }
.pillar h3 { font-size: 20px; }
.pillar p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Home system cards ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sys-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.sys-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.sys-media { overflow: hidden; aspect-ratio: 16 / 7; }
.sys-media img, .svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sys-card:hover img, .svc-card:hover img { transform: scale(1.05); }
.sys-body { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px 24px; }
.sys-body h3 { font-size: 21px; transition: color .25s; }
.sys-body p { margin-top: 4px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.tags { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--red); }
.sys-card .arrow { width: 44px; height: 44px; padding: 12px; flex: none; border: 1.5px solid var(--line); border-radius: 50%; color: var(--red);
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease); }
.sys-card:hover h3 { color: var(--red); }
.sys-card:hover .arrow { background: var(--red); border-color: var(--red); color: #fff; transform: translateX(-4px); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 6vw, 80px); }
.split-media { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.split-media.wide { aspect-ratio: 16 / 9; }
.split-text .sec-head { margin-bottom: 24px; }

.check-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.check-list li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 700; font-size: 15px; color: var(--ink); }
.check-list .check { width: 20px; height: 20px; color: var(--red); }
.type-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.type-chips li { padding: 8px 18px; border-radius: 99px; background: var(--red-50); color: var(--red); font-weight: 700; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.why .ico, .phase .ico { width: 56px; height: 56px; padding: 14px; margin-bottom: 20px; border-radius: 14px; background: var(--red-50); }
.why h3 { font-size: 19px; }
.why p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ---------- Phases (about) ---------- */
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.phase { padding: 34px 30px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.phase:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.phase h3 { font-size: 22px; }
.phase p { margin-top: 8px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps::before { content: ""; position: absolute; top: 36px; inset-inline: 16%; height: 2px; background: repeating-linear-gradient(to left, #d8cbbb 0 8px, transparent 8px 16px); transform-origin: right; transition: transform 1.4s var(--ease) .2s; }
.js .steps.rv::before { transform: scaleX(0); }
.js .steps.rv.in::before { transform: scaleX(1); }
.step { position: relative; text-align: center; }
.step-mark { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line); color: var(--red); font-weight: 800; font-size: 22px; box-shadow: 0 0 0 8px var(--white);
  transition: background .35s, color .35s, border-color .35s, transform .45s var(--ease); }
.tint .step-mark { box-shadow: 0 0 0 8px var(--beige-50); }
.step-mark .ico { width: 30px; height: 30px; color: currentColor; }
.step:hover .step-mark { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.step h3 { font-size: 20px; }
.step p { max-width: 280px; margin: 6px auto 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Shop box ---------- */
.shop-box { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; padding: 36px 44px; border-radius: var(--r-lg); background: var(--beige); }
.shop-box::after { content: ""; position: absolute; inset-inline-end: -80px; top: -120px; width: 300px; height: 300px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .28); pointer-events: none; }
.shop-icon { display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 18px; background: #fff; }
.shop-icon .ico { width: 38px; height: 38px; }
.shop-box:hover .shop-icon .ico { animation: swing .9s var(--ease); transform-origin: 50% 10%; }
.shop-text h2 { font-size: clamp(22px, 2.4vw, 28px); }
.shop-text p { color: var(--text); }
.shop-box .btn { position: relative; z-index: 1; margin-inline-start: auto; }
.shop-box.has-photo { padding-block: 0; padding-inline-end: 0; min-height: 220px; }
.shop-box.has-photo .shop-text { padding-block: 36px; }
.shop-photo { order: 3; align-self: stretch; width: 42%; object-fit: cover; object-position: left center; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--red); color: #fff; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta::before { width: 560px; height: 560px; left: -180px; top: -320px; border: 64px solid rgba(255, 255, 255, .07); animation: float 14s ease-in-out infinite; }
.cta::after { width: 320px; height: 320px; right: 12%; bottom: -240px; background: rgba(0, 0, 0, .08); animation: float 11s ease-in-out infinite reverse; }
.cta .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 52px; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.2vw, 40px); }
.cta .btn { min-width: 190px; min-height: 54px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #b7b9bf; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer .brand { color: #fff; }
.footer .brand-sub { color: #9a9ca3; }
.footer-brand p { max-width: 320px; margin-top: 18px; line-height: 1.8; }
.footer h3 { margin-bottom: 16px; color: #fff; font-size: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-contact li, .footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; color: #fff; }
.footer-contact bdi { font-weight: 700; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px; font-size: 13.5px; }

/* ---------- Page head ---------- */
.page-head { position: relative; overflow: hidden; background: var(--beige); padding-block: clamp(48px, 6vw, 80px); }
.page-head::before { content: ""; position: absolute; left: -8%; top: -70%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 80px solid rgba(255, 255, 255, .25); animation: drift 18s ease-in-out infinite; pointer-events: none; }
.page-head .container { position: relative; }
.crumbs { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--red); font-weight: 700; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.2; }
.page-head p { margin-top: 8px; font-size: clamp(18px, 2vw, 22px); color: var(--text); }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; scroll-margin-top: 110px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.svc-card:hover, .svc-card:target { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:target { outline: 2px solid var(--red); outline-offset: 3px; }
.svc-media { overflow: hidden; aspect-ratio: 1.08 / 1; }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 22px 20px 20px; }
.svc-body h3 { font-size: 21px; }
.svc-body p { flex: 1; margin: 6px 0 20px; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
a.info-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.info-card .ico { width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: var(--red-50); }
.info-card strong { display: block; color: var(--ink); }
.info-card bdi { display: block; color: var(--red); font-weight: 800; font-size: 18px; }
.info-card span { color: var(--muted); }

.form { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form h2 { grid-column: 1 / -1; font-size: 26px; }
.form-lead { grid-column: 1 / -1; margin-top: -12px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; color: var(--ink); }
.field label b { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--beige-50); font-size: 16px; color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s; }
.field input::placeholder, .field textarea::placeholder { color: #a3a6ad; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(179, 18, 27, .1); }
.field textarea { min-height: 130px; resize: vertical; }
.field.invalid input { border-color: var(--red); animation: shake .4s; }
.field .err { color: var(--red); font-size: 13px; }
.form > .btn { grid-column: 1 / -1; justify-self: start; }
.btn.loading { pointer-events: none; color: transparent; position: relative; }
.btn.loading svg { opacity: 0; }
.btn.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.form-success { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 30px; text-align: center; background: #fff; animation: rise .6s var(--ease) both; }
.form-success[hidden] { display: none; }
.form-success svg { width: 76px; height: 76px; fill: none; stroke: #1f7a3a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) .1s forwards; }
.form-success path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .7s forwards; }
.form-success h3 { font-size: 24px; }
.form-success p { max-width: 380px; color: var(--muted); margin-bottom: 8px; }
.form-success .btn-primary { background: #1faa53; }
.form-success .btn-primary:hover { background: #178a43; box-shadow: none; }
.form-success .ico.wa { width: 18px; height: 18px; color: #fff; }
.form-success [data-reset] { min-height: 40px; border: 0; background: none; color: var(--muted); text-decoration: underline; }
.form-note { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
.form-error { grid-column: 1 / -1; color: var(--red); font-weight: 700; }

/* ---------- Floating ---------- */
.to-top { position: fixed; z-index: 60; left: 22px; bottom: 22px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .35); cursor: pointer;
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease), background .25s, color .25s; }
.to-top svg { position: relative; width: 20px; height: 20px; }
.to-top::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(var(--red) calc(var(--p, 0) * 1turn), transparent 0);
  -webkit-mask: radial-gradient(closest-side, transparent 89%, #000 90%); mask: radial-gradient(closest-side, transparent 89%, #000 90%); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: #fff; }
.mobile-bar { display: none; }

/* =========================================================
   Motion
   ========================================================= */
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.08); } }
@keyframes air { 0% { stroke-dashoffset: 30; opacity: 0; } 15% { opacity: .75; } 70% { opacity: .35; } 100% { stroke-dashoffset: -150; opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 50% { transform: translate(36px, 26px) scale(1.05); } }
@keyframes drift { 50% { transform: translate(-24px, 18px) rotate(6deg); } }
@keyframes swing { 25% { transform: rotate(9deg); } 50% { transform: rotate(-7deg); } 75% { transform: rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 25% { transform: translateX(6px); } 50% { transform: translateX(-5px); } 75% { transform: translateX(3px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* hero intro */
.js .hero-media { animation: fade 1.1s ease both; }
.js .hero-kicker, .js .hero-lead, .js .hero-types, .js .hero-actions, .js .js .hero h1 .line > span { animation: line-up .9s var(--ease) both; }
.js .hero-kicker { animation-delay: .1s; }
.js .hero h1 .line:nth-child(1) > span { animation-delay: .18s; }
.js .hero h1 .line:nth-child(2) > span { animation-delay: .3s; }
.js .hero-lead { animation-delay: .45s; }
.js .hero-types { animation-delay: .52s; }
.js .hero-actions { animation-delay: .6s; }
.js .js .pillars { animation-delay: .5s; }
.page-head .crumbs, .page-head h1, .page-head p { animation: rise .8s var(--ease) both; }
.page-head h1 { animation-delay: .08s; }
.page-head p { animation-delay: .16s; }

/* scroll reveal — only applied by JS to elements that start below the fold */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .steps.rv { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .header .container { gap: 20px; }
  .nav a { padding: 10px 10px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body { padding-bottom: 64px; }
  .container { width: min(var(--container), 100% - 32px); }
  .topbar { display: none; }
  .header .container { min-height: 68px; }
  .header.scrolled .container { min-height: 62px; }
  .brand-logo { width: 42px; }
  .brand-name { font-size: 19px; }
  .nav, .header-actions { display: none; }
  .menu-toggle { display: block; position: relative; z-index: 101; }

  .drawer, .drawer-backdrop { display: block; }
  .drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(20, 20, 22, .45); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .drawer { position: fixed; z-index: 90; top: 0; bottom: 0; right: 0; width: min(340px, 86vw); padding: 92px 24px 24px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 24px; background: #fff; transform: translateX(105%); transition: transform .5s var(--ease); }
  .menu-open .drawer { transform: none; box-shadow: -20px 0 60px rgba(0, 0, 0, .2); }
  .menu-open .drawer-backdrop { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .drawer-nav { display: flex; flex-direction: column; }
  .drawer-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 21px; font-weight: 800; color: var(--ink); opacity: 0; transform: translateX(24px); transition: opacity .35s, transform .45s var(--ease); }
  .drawer-nav a.active { color: var(--red); }
  .menu-open .drawer-nav a { opacity: 1; transform: none; }
  .menu-open .drawer-nav a:nth-child(2) { transition-delay: .06s; }
  .menu-open .drawer-nav a:nth-child(3) { transition-delay: .12s; }
  .menu-open .drawer-nav a:nth-child(4) { transition-delay: .18s; }
  .drawer-actions { display: grid; gap: 10px; margin-top: auto; }
  .drawer-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; font-weight: 800; color: var(--ink); }
  .drawer-phone svg { width: 15px; height: 15px; color: var(--red); }

  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; width: 100%; height: auto; }
  .hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, var(--beige)); }
  .hero .container { position: relative; margin-top: -56px; padding-block: 0 96px; }
  .hero-actions .btn { flex: 1 1 160px; }

  .pillar { padding: 20px 16px; flex-direction: column; text-align: center; gap: 10px; }
  .pillar p { display: none; }
  .pillar .ico { width: 48px; height: 48px; padding: 12px; }
  .pillar h3 { font-size: 17px; }

  .sec-row { flex-direction: column; align-items: flex-start; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 36px; bottom: 36px; inset-inline: auto; right: 35px; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, #d8cbbb 0 8px, transparent 8px 16px); transform-origin: top; }
  .js .steps.rv::before { transform: scaleY(0); }
  .js .steps.rv.in::before { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; text-align: start; align-items: center; }
  .step-mark { grid-row: span 2; margin: 0; }
  .step h3 { align-self: end; }
  .step p { align-self: start; margin: 2px 0 0; max-width: none; }

  .phase-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .shop-box { flex-wrap: wrap; padding: 28px; }
  .shop-box .btn { margin-inline-start: 0; }
  .shop-box.has-photo { padding: 0 28px 28px; }
  .shop-photo { order: -1; width: calc(100% + 56px); max-width: none; height: 180px; margin-inline: -28px; }
  .shop-box.has-photo .shop-text { padding-block: 22px 0; width: 100%; }
  .cta .container { flex-direction: column; align-items: flex-start; padding-block: 44px; }

  .mobile-bar { position: fixed; z-index: 70; inset: auto 0 0; display: grid; grid-template-columns: 1fr 46px 1.25fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transition: transform .35s var(--ease); }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: var(--r-sm); font-weight: 800; }
  .mobile-bar svg { width: 16px; height: 16px; }
  .mobile-bar-call { border: 1.5px solid var(--red); color: var(--red); }
  .mobile-bar-wa { background: #1faa53; color: #fff; }
  .mobile-bar-wa .ico.wa { width: 18px; height: 18px; color: #fff; }
  .mobile-bar-quote { background: var(--red); color: #fff; }
  .menu-open .mobile-bar { transform: translateY(110%); }
  .to-top { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards-2, .svc-grid, .why-grid { grid-template-columns: 1fr; }
  .sys-media { aspect-ratio: 16 / 8; }
  .svc-media { aspect-ratio: 16 / 10; }
  .form { grid-template-columns: 1fr; }
  .form > .btn { justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 48px 32px; }
  .footer-bottom .container { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .airflow { display: none; }
}

/* =========================================================
   WordPress additions
   ========================================================= */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
.admin-bar .drawer { top: 46px; }

/* soft fade so any uploaded hero photo blends into the beige */
.hero-custom .hero-media::after { content: ""; position: absolute; inset-block: 0; right: 0; width: 40%; background: linear-gradient(to left, var(--beige), rgba(239, 228, 214, 0)); }
@media (max-width: 900px) { .hero-custom .hero-media::after { inset: auto 0 0; width: auto; height: 45%; background: linear-gradient(transparent, var(--beige)); } }

/* editor content */
.entry { color: var(--text); }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: 30px; margin-top: 1.4em; }
.entry h3 { font-size: 22px; margin-top: 1.2em; }
.entry a { color: var(--red); text-decoration: underline; }
.entry ul, .entry ol { padding-inline-start: 1.4em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry img { height: auto; border-radius: var(--r); }
.entry blockquote { padding: 16px 20px; border-inline-start: 4px solid var(--red); background: var(--beige-50); border-radius: var(--r-sm); }
.contact-extra { margin-top: 20px; }
.post-row { padding-block: 22px; border-bottom: 1px solid var(--line); }
.post-row h2 { font-size: 22px; }
.post-row a { color: var(--ink); text-decoration: none; }
.post-row a:hover { color: var(--red); }
.form-success .btn-outline { min-height: 42px; }

/* footer: socials + labelled contact list */
.footer .socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; color: #fff; transition: background .25s, border-color .25s, transform .3s var(--ease); }
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-info { display: grid; gap: 14px; }
.footer-info dt { font-size: 12.5px; color: #8d9097; margin-bottom: 2px; }
.footer-info dd { color: #e4e5e8; line-height: 1.7; }
.footer-info bdi { font-weight: 700; }
.info-card .ico.wa { color: #1faa53; }
.footer-contact .ico, .footer .ico.wa { width: 16px; height: 16px; }

/* header hardening: keep one line, immune to plugin/global link & button styles */
.header .container { flex-wrap: nowrap; }
.brand-text, .nav a, .header-actions .btn { white-space: nowrap; }
.header a, .drawer a, .footer a { text-decoration: none; }
.header img.brand-logo, .footer img.brand-logo { max-width: none; height: auto; }
.menu-toggle { padding: 0; line-height: 0; box-shadow: none; min-height: 0; }
.nav { min-width: 0; }
