/* =========================================================
   VoltFlow — Electrical & Plumbing, Riyadh
   Global stylesheet · mobile-first · design tokens
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors */
  --navy:        #0A2540;
  --navy-700:    #0E3357;
  --navy-800:    #0B2A49;
  --blue:        #0F6FBE;   /* plumbing / water */
  --blue-700:    #0A5596;
  --blue-900:    #0A3D6E;
  --blue-tint:   #E7F1FA;
  --amber:       #F59E0B;   /* electric / power */
  --amber-600:   #E08900;
  --amber-tint:  #FEF3DC;
  --emergency:   #DC2F35;
  --emergency-700:#B71F26;
  --wa:          #1FA855;   /* whatsapp action (accessible) */
  --wa-700:      #17853F;
  --success:     #12A150;

  /* Neutrals / surfaces */
  --bg:          #F5F8FB;
  --surface:     #FFFFFF;
  --surface-alt: #EDF3F9;
  --heading:     #0A2540;
  --body:        #4B5B6B;
  --muted:       #6B7C8C;
  --border:      #DCE6EF;
  --border-2:    #C9D8E6;

  /* Radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(10,37,64,.06);
  --sh-sm: 0 2px 8px rgba(10,37,64,.07);
  --sh-md: 0 10px 30px rgba(10,37,64,.10);
  --sh-lg: 0 22px 50px rgba(10,37,64,.16);
  --sh-blue: 0 12px 28px rgba(15,111,190,.28);
  --sh-amber: 0 12px 26px rgba(245,158,11,.30);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --sec-y: clamp(3rem, 8vw, 6rem);

  /* Type */
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color:#fff; padding: 10px 16px; border-radius: var(--r-xs);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.25rem); }
.section--alt { background: var(--surface-alt); }
.section--cta { padding-top: clamp(1.25rem, 3vw, 2rem); }
#plumbing-services { padding-bottom: clamp(1.75rem, 4vw, 2.75rem); }
#electrical-services { padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.ic { width: 1.15em; height: 1.15em; fill: none; flex: none; }

/* ---------- Section headings ---------- */
.sec-head { max-width: 620px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue-700); background: var(--blue-tint);
  padding: .4rem .8rem; border-radius: var(--r-pill); margin-bottom: 1rem;
}
.eyebrow .ic { color: var(--amber); }
.sec-head h2 { font-size: clamp(1.6rem, 4.6vw, 2.6rem); font-weight: 800; }
.sec-head p { margin-top: .85rem; font-size: clamp(1rem, 2.5vw, 1.075rem); color: var(--muted); }
.hl--amber { color: var(--amber-600); }
.hl--blue { color: var(--blue); }
.inline-link, .contact__list a strong { color: var(--blue-700); }
.inline-link { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  --cta-fill: var(--blue-700); --cta-fg: #fff; --cta-hover: var(--blue);
  display: inline-flex; align-items: stretch; justify-content: center; gap: 5px;
  font-family: var(--font-head); font-weight: 600; font-size: .975rem;
  padding: 4px; border: 1px solid var(--cta-fill); border-radius: var(--r-pill);
  background: transparent; color: var(--cta-fg);
  box-shadow: none; line-height: 1.1; text-align: center;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 54px; white-space: nowrap; vertical-align: middle;
}
.btn__label,
.btn__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; background: var(--cta-fill); color: var(--cta-fg);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn__label { flex: 1 1 auto; padding: .7rem 1.25rem; border-radius: var(--r-pill); }
.btn__arrow { flex: 0 0 44px; width: 44px; border-radius: 50%; font-size: 1.35rem; line-height: 1; }
.btn__phone { display: none; width: 20px; height: 20px; fill: none; }
.btn:hover { transform: translateY(-2px); border-color: var(--cta-hover); box-shadow: var(--sh-sm); }
.btn:hover .btn__label, .btn:hover .btn__arrow { background: var(--cta-hover); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn--lg { font-size: 1.02rem; min-height: 60px; }
.btn--lg .btn__label, .btn--lg .btn__arrow { min-height: 50px; }
.btn--lg .btn__arrow { flex-basis: 50px; width: 50px; }
.btn--block { width: 100%; }

.btn--primary, .btn[data-variant="primary"] { --cta-fill: var(--blue-700); --cta-fg: #fff; --cta-hover: var(--blue); }
.btn--outline, .btn--ghost, .btn--light, .btn[data-variant="secondary"] { --cta-fill: var(--navy); --cta-fg: #fff; --cta-hover: var(--navy-700); }
.btn.btn--whatsapp { --cta-fill: var(--wa-700); --cta-fg: #fff; --cta-hover: var(--wa); }
.btn--emergency, .btn[data-variant="accent"] { --cta-fill: var(--amber-600); --cta-fg: var(--navy); --cta-hover: var(--amber); }

/* Subtle pulse for hero primary CTA */
.btn--pulse { position: relative; }
.btn--pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(15,111,190,.45); animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(15,111,190,.45);} 70%{box-shadow:0 0 0 16px rgba(15,111,190,0);} 100%{box-shadow:0 0 0 0 rgba(15,111,190,0);} }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy); color: #cfe0f0; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: .7rem; min-height: 40px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__item .ic { color: var(--amber); width: 1em; height: 1em; }
.topbar__dot { width: 4px; height: 4px; border-radius: 50%; background: #43597a; }
.topbar__phone { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: #fff; }
.topbar__phone .ic { color: var(--amber); }
.topbar__phone:hover { color: var(--amber); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 0 rgba(53,208,127,.6); animation: live 1.8s infinite; flex: none; }
.live-dot--amber { background: var(--amber); box-shadow: 0 0 0 0 rgba(245,158,11,.6); }
@keyframes live { 0%{box-shadow:0 0 0 0 rgba(53,208,127,.5);} 70%{box-shadow:0 0 0 7px rgba(53,208,127,0);} 100%{box-shadow:0 0 0 0 rgba(53,208,127,0);} }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.is-stuck { box-shadow: var(--sh-sm); border-color: var(--border); }
.header__inner { display: flex; align-items: center; gap: 1rem; min-height: 56px; }

.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 800; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 4px 8px rgba(10,37,64,.18)); }
.brand__name { font-size: 1.35rem; color: var(--navy); letter-spacing: -.02em; }
.brand__name span { color: var(--blue); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__name span { color: var(--amber); }

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav__link {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--navy);
  padding: .55rem .7rem; border-radius: var(--r-xs); position: relative; transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link::after { content:""; position:absolute; left:.7rem; right:.7rem; bottom:.35rem; height:2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); border-radius:2px; }
.nav__link:hover { color: var(--blue-700); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: .4rem; }
.nav__close { display: none; }

.header__actions { display: flex; align-items: center; gap: .6rem; }
.header__call { padding: 4px; }
.nav .btn.nav__cta { display: none; }

/* Hamburger */
.hamburger { display: none; width: 44px; height: 44px; border-radius: var(--r-xs); position: relative; background: var(--surface-alt); }
.hamburger span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease); }
.hamburger span:nth-child(1){ top: 15px; }
.hamburger span:nth-child(2){ top: 21px; }
.hamburger span:nth-child(3){ top: 27px; }
.hamburger[aria-expanded="true"] span:nth-child(1){ top:21px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ top:21px; transform: rotate(-45deg); }

.nav-scrim { position: fixed; inset: 0; background: rgba(10,37,64,.5); z-index: 98; opacity: 0; transition: opacity .3s var(--ease); }
.nav-scrim.is-open { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; padding-top: clamp(.5rem, 1.5vh, 1.5rem); padding-bottom: clamp(.75rem, 2vh, 1.5rem); background:
  radial-gradient(1200px 600px at 85% -10%, rgba(15,111,190,.10), transparent 60%),
  radial-gradient(900px 500px at 0% 10%, rgba(245,158,11,.09), transparent 55%);
}
.hero__glow { position: absolute; inset: 0; pointer-events: none; }
.hero__inner { flex: 1; display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; grid-template-columns: 1fr; padding-block: clamp(.5rem, 1.5vh, 1.25rem); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  background: #fff; color: var(--navy); padding: .5rem .85rem; border-radius: var(--r-pill);
  box-shadow: var(--sh-sm); border: 1px solid var(--border);
}
.hero h1 { font-size: clamp(2.05rem, 8.5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; margin-top: 1rem; }
.hero .hl { position: relative; white-space: nowrap; }
.hero .hl--amber { color: var(--amber-600); }
.hero .hl--blue { color: var(--blue); }
.hero__sub { margin-top: 1rem; font-size: clamp(1rem, 3vw, 1.15rem); color: var(--muted); max-width: 42ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero__cta .btn { flex: 1 1 auto; min-width: 150px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.4rem; }
.hero__chips li { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 500; color: var(--navy); }
.hero__chips .ic { color: var(--success); width: 1.05em; height: 1.05em; }

/* Hero visual */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero__photo { position: relative; width: min(100%, 430px); aspect-ratio: 1/1.06; display: grid; place-items: center; }
.hero__blob {
  position: absolute; inset: 6% 4% 0 4%; border-radius: 44% 56% 55% 45% / 55% 50% 50% 45%;
  background: linear-gradient(160deg, var(--blue-tint), #d6ebff);
  box-shadow: inset 0 0 60px rgba(15,111,190,.10);
  animation: blobMorph 12s ease-in-out infinite;
}
@keyframes blobMorph { 0%,100%{ border-radius: 44% 56% 55% 45% / 55% 50% 50% 45%; } 50%{ border-radius: 56% 44% 43% 57% / 45% 55% 45% 55%; } }
/* Cutout hero photo floating over a layered abstract shape */
.hero__photo--cutout { aspect-ratio: 6 / 7; place-items: end center; }
/* Flat SVG blob (inline in the HTML) — reset the painted-blob styles */
.hero__photo--cutout { width: min(100%, 470px); }
/* .hero__photo--cutout .hero__blob {
  inset: 6% 0 0 0;
  background: none; border-radius: 0; box-shadow: none; animation: none; display: block;
} */
.hero__photo--cutout .hero__blob {
  width: 95%;
  height: 85%;
  inset: auto;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  background: none;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  display: block;
}

.hero__cutout-wrap {
  position: absolute;
  z-index: 2;
  width: 85%;
  height: 112%;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  clip-path: url(#heroBottomClip);
  -webkit-clip-path: url(#heroBottomClip);
}


/* Floating trade icons around the hero photo — mobile-first sizing */
.hero__ico {
  position: absolute; z-index: 3; width: clamp(44px, 13vw, 56px); height: auto;
  filter: drop-shadow(0 6px 12px rgba(10, 37, 64, .18));
  animation: icoFloat 5.5s ease-in-out infinite;
}
.hero__ico--valve { top: -4%; right: 2%; }
.hero__ico--bulb  { width: clamp(32px, 9vw, 42px); top: 5%; left: 2%; animation-delay: 1.8s; }
.hero__ico--tools { bottom: 7%; left: 3%; animation-delay: .9s; }
@keyframes icoFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}
@media (min-width: 900px) {
  .hero__ico { width: 64px; }
  .hero__ico--valve { top: 0; right: -2%; }
  .hero__ico--bulb  { width: 52px; top: 4%; left: -9%; }
  .hero__ico--tools { bottom: 6%; left: -14%; }
}

.hero__cutout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Real photo frame (hero + about) */
.hero__frame { position: relative; z-index: 2; width: 86%; aspect-ratio: 4/4.7; border-radius: 24px 24px 24px 86px; overflow: hidden; border: 5px solid #fff; box-shadow: var(--sh-lg); background: var(--surface-alt); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.about__frame { border-radius: 24px 24px 86px 24px; }
.about__frame img { object-position: center; }

/* Icon color utilities */
.ic--amber { color: var(--amber); }
.ic--blue { color: var(--blue); }

.floatcard {
  position: absolute; z-index: 4; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--sh-md); padding: .7rem .85rem; display: flex; gap: .6rem; align-items: center;
  border: 1px solid var(--border); animation: floaty 5s ease-in-out infinite;
}
.floatcard strong { display: block; font-family: var(--font-head); font-size: .84rem; color: var(--navy); line-height: 1.2; }
.floatcard span { font-size: .74rem; color: var(--muted); }
.floatcard--rating { top: 6%; left: -2%; flex-direction: column; align-items: flex-start; gap: .15rem; }
.floatcard--rating .floatcard__stars { color: var(--amber); display: flex; }
.floatcard--rating .floatcard__stars .ic { width: .85em; height: .85em; }
.floatcard--eta { bottom: 16%; right: -3%; animation-delay: -2.5s; }
.floatcard__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.floatcard__ic .ic { width: 1.2em; height: 1.2em; }
.floatcard__ic--blue { background: var(--blue-tint); color: var(--blue-700); }
.floatcard__ic--green { background: #e3f7ec; color: var(--success); }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-9px); } }

.hero__badge { position: absolute; z-index: 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color:#fff; box-shadow: var(--sh-md); animation: floaty 6s ease-in-out infinite; }
.hero__badge .ic { width: 1.5em; height: 1.5em; }
.hero__badge--bolt { top: 12%; right: 4%; background: linear-gradient(150deg, var(--amber), var(--amber-600)); animation-delay: -1s; }
.hero__badge--drop { bottom: 26%; left: 0%; background: linear-gradient(150deg, var(--blue), var(--blue-700)); animation-delay: -3s; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(1rem, 3vw, 1.6rem); box-shadow: var(--sh-sm); margin-top: 1rem;
}
.stat { text-align: center; padding: .5rem; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.3rem, 5vw, 1.9rem); color: var(--navy); line-height: 1.1; }
.stat__label { font-size: .82rem; color: var(--muted); margin-top: .25rem; display: block; }

/* ---------- Services ---------- */
.svc-group { margin-bottom: 1.1rem; }
.svc-group__title { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.2rem, 3.5vw, 1.5rem); font-weight: 700; color: var(--navy); }
.svc-group__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; box-shadow: var(--sh-sm); }
.svc-group__ic .ic { width: 1.4em; height: 1.4em; }
.svc-group__ic--amber { background: linear-gradient(150deg, var(--amber), var(--amber-600)); }
.svc-group__ic--blue { background: linear-gradient(150deg, var(--blue), var(--blue-700)); }

.cards { display: grid; grid-template-columns: 1fr; gap: clamp(.8rem, 2.5vw, 1.2rem); }
.card {
  --card-pad: clamp(1.2rem, 3vw, 1.6rem);
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--card-pad); box-shadow: var(--sh-xs); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
/* Photo media at top of a service card (full-bleed) */
.card__media {
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) var(--card-pad);
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-alt);
}
.card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s var(--ease); }
.card:hover .card__img { transform: scale(1.07); }
/* Entrance animation: fade + rise + subtle zoom (staggered via data-d) */
.cards .card.reveal { transform: translateY(26px) scale(.97); }
.cards .card.reveal.in { transform: none; }
.card::before { content:""; position: absolute; left:0; top:0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--amber), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; margin-bottom: 1rem; transition: transform .3s var(--ease); }
.card__ic .ic { width: 1.7em; height: 1.7em; }
.card__ic--amber { background: var(--amber-tint); color: var(--amber-600); }
.card__ic--blue { background: var(--blue-tint); color: var(--blue-700); }
.card__ic--img { width: 62px; height: 62px; background: none; overflow: visible; }
.card__ic-img { width: 54px; height: 54px; display: block; object-fit: contain; object-position: center; }
@media (max-width: 640px) {
  .card__ic--img { width: 56px; height: 56px; }
  .card__ic-img { width: 48px; height: 48px; }
}
.card:hover .card__ic { transform: scale(1.08) rotate(-4deg); }
.card h4 { font-size: 1.12rem; margin-bottom: .45rem; }
.card p { font-size: .93rem; color: var(--muted); }
.card__link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.15rem;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  padding: .55rem 1.05rem; border-radius: var(--r-pill);
  color: var(--blue-700); background: var(--blue-tint);
  box-shadow: inset 0 0 0 1.5px rgba(15,111,190,.18);
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .18s var(--ease);
}
.card__link .ic { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.card__link:hover {
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-700));
  box-shadow: 0 8px 18px rgba(15,111,190,.30);
  transform: translateY(-2px);
}
.card__link:hover .ic { transform: translate(3px,-3px); }
.card__link:active { transform: translateY(0) scale(.97); }
.card__link:focus-visible { outline: 3px solid rgba(15,111,190,.35); outline-offset: 2px; }
.card__call { width: min(100%, 280px); margin-top: 1.15rem; }

/* Keep the home service cards compact without changing service-page cards. */
:is(#services, .service-catalog) .cards--svc {
  width: 100%; max-width: 1100px; margin-inline: auto;
  column-gap: clamp(1.25rem, 2.5vw, 1.75rem);
  row-gap: clamp(1.25rem, 3vw, 1.75rem);
}
:is(#services, .service-catalog) .cards--svc .card {
  --card-pad: clamp(1.1rem, 2vw, 1.3rem);
  display: flex; flex-direction: column;
  padding-bottom: .55rem;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #F59E0B 0%, #0F6FBE 55%, #0A2540 100%) border-box;
  box-shadow: 0 7px 20px rgba(10, 37, 64, .11);
}
:is(#services, .service-catalog) .cards--svc .card::before {
  height: 3px; transform: scaleX(0); transform-origin: left;
  transition: transform .75s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(.25s + var(--d, 0) * 110ms);
}
:is(#services, .service-catalog) .cards--svc .card.reveal.in::before { transform: scaleX(1); }
:is(#services, .service-catalog) .cards--svc .card__media { aspect-ratio: 16 / 9; }
:is(#services, .service-catalog) .cards--svc .card p { margin-bottom: .85rem; }
:is(#services, .service-catalog) .cards--svc .card__call { align-self: center; margin-top: auto; }
.service-catalog .cards--svc .service-card__wa {
  align-self: center;
  margin-right: auto;
  margin-left: auto;
}

/* Clear one-time entrance: perspective spring, image settle, border draw and sheen. */
:is(#services, .service-catalog) .cards--svc .card.reveal:not(.in) {
  opacity: 0; transform: perspective(900px) translateY(48px) rotateX(9deg) scale(.9);
  transform-origin: center bottom;
}
@media (prefers-reduced-motion: no-preference) {
  :is(#services, .service-catalog) .cards--svc .card.reveal.in {
    animation: serviceCardEnter .9s cubic-bezier(.16,.8,.24,1) calc(var(--d, 0) * 110ms) backwards;
  }
  :is(#services, .service-catalog) .cards--svc .card.reveal:not(.in) .card__img { transform: scale(1.14); }
  :is(#services, .service-catalog) .cards--svc .card.reveal.in .card__img {
    animation: serviceImageSettle 1.05s cubic-bezier(.16,.8,.24,1) calc(.08s + var(--d, 0) * 110ms) backwards;
  }
  :is(#services, .service-catalog) .cards--svc .card::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.48) 48%, transparent 70%);
    opacity: 0; transform: translateX(-115%);
  }
  :is(#services, .service-catalog) .cards--svc .card.reveal.in::after {
    animation: serviceCardShine .95s var(--ease) calc(.42s + var(--d, 0) * 110ms) both;
  }
}
@keyframes serviceCardEnter {
  0% { opacity: 0; transform: perspective(900px) translateY(48px) rotateX(9deg) scale(.9); }
  62% { opacity: 1; transform: perspective(900px) translateY(-8px) rotateX(-1.5deg) scale(1.015); }
  82% { opacity: 1; transform: perspective(900px) translateY(3px) rotateX(.5deg) scale(.996); }
  100% { opacity: 1; transform: perspective(900px) translateY(0) rotateX(0) scale(1); }
}
@keyframes serviceImageSettle {
  0% { transform: scale(1.14) translateY(8px); }
  68% { transform: scale(.985) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}
@keyframes serviceCardShine {
  0% { opacity: 0; transform: translateX(-115%); }
  22% { opacity: .7; }
  100% { opacity: 0; transform: translateX(115%); }
}

.sec-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.6rem, 4vw, 2.4rem); justify-content: center; }

/* ---------- How it works / premium process timeline ---------- */
#how {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 35%, rgba(245,158,11,.08), transparent 24%),
    radial-gradient(circle at 82% 55%, rgba(15,111,190,.09), transparent 27%),
    var(--surface-alt);
}
#how .sec-head { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.steps {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  max-width: 1040px; margin-inline: auto; padding: 0; position: relative;
  list-style: none;
}
.step {
  position: relative; z-index: 1; padding: .25rem clamp(1rem, 4vw, 2rem);
  text-align: center; background: transparent; border: 0; box-shadow: none;
}
.step__ic {
  display: grid; place-items: center; width: clamp(104px, 28vw, 124px); aspect-ratio: 1;
  margin: 0 auto 1.15rem; border: 2px dashed rgba(15,111,190,.32); border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 14px 34px rgba(10,37,64,.12), inset 0 0 0 8px rgba(231,241,250,.72);
}
.step__ic img {
  width: 72%; height: 72%; object-fit: contain;
  filter: drop-shadow(0 7px 9px rgba(10,37,64,.18));
  animation: processIconFloat 4.5s ease-in-out infinite;
}
.step:nth-child(2) .step__ic img { animation-delay: -1.5s; }
.step:nth-child(3) .step__ic img { animation-delay: -3s; }
.step__num {
  position: absolute; z-index: 3; top: -7px; left: calc(50% - clamp(52px, 14vw, 62px));
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: .78rem;
  color: #fff; background: linear-gradient(145deg, var(--amber), var(--amber-600));
  border: 3px solid #fff; box-shadow: 0 5px 13px rgba(224,137,0,.28);
}
.step h3 { font-size: clamp(1.05rem, 3vw, 1.2rem); margin-bottom: .55rem; }
.step p { max-width: 31ch; margin-inline: auto; font-size: .9rem; color: var(--muted); }
.steps .step.reveal { transform: translateY(24px) scale(.94); }
.steps .step.reveal.in { transform: none; }
@keyframes processIconFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem); }
  .step:not(:last-child)::after {
    content: ""; position: absolute; z-index: -1;
    top: 48px; left: calc(50% + 70px); width: calc(100% - 92px); height: 44px;
    border-top: 2px dashed rgba(10,37,64,.42); border-radius: 50%;
    transform: rotate(8deg);
  }
  .step:nth-child(2)::after { top: 70px; transform: rotate(-8deg); }
}

/* ---------- About / Why ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
.about__photo { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 4/4.6; display: grid; place-items: center; }
.about__blob { position: absolute; inset: 4% 6% 0 6%; border-radius: 46% 54% 50% 50% / 55% 55% 45% 45%; background: linear-gradient(160deg, #F59E0B, #E08900); animation: blobMorph 14s ease-in-out infinite; }
.feature-list { display: grid; gap: 1rem; margin-top: .5rem; }
.feature { display: flex; gap: .85rem; align-items: flex-start; }
.feature__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.feature__ic .ic { width: 1.4em; height: 1.4em; }
.feature__ic--asset { background: var(--surface-alt); box-shadow: inset 0 0 0 1px rgba(15,111,190,.12); }
.feature__ic--asset img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(10,37,64,.13)); }
.feature__ic--amber { background: var(--amber-tint); color: var(--amber-600); }
.feature__ic--blue { background: var(--blue-tint); color: var(--blue-700); }
.feature__ic--green { background: #e3f7ec; color: var(--success); }
.feature h4 { font-size: 1.03rem; margin-bottom: .2rem; }
.feature p { font-size: .9rem; color: var(--muted); }
.about__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* ---------- Service areas ---------- */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.area {
  display: flex; align-items: center; justify-content: center; gap: .5rem; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .8rem 1rem; font-weight: 500; font-size: .92rem; color: var(--navy);
  box-shadow: var(--sh-xs); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.area .ic { color: var(--blue); width: 1.15em; height: 1.15em; }
.area:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--sh-sm); }
/* "Your area?" — an open slot in the grid, clickable through to WhatsApp */
.area--more { padding: 0; background: var(--blue-tint); border: 1.5px dashed rgba(15,111,190,.45); }
.area--more:hover { border-color: var(--wa); border-style: solid; background: #fff; }
.area__ask {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  width: 100%; padding: .8rem 1rem; border-radius: inherit;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--blue-900);
}
.area__ask strong { color: var(--blue-700); font-weight: 700; }
.area__ask .ic--wa { color: var(--wa); width: 1.25em; height: 1.25em; }
.area__ask .area__arrow { color: var(--blue-700); width: .95em; height: .95em; transition: transform .25s var(--ease); }
.area--more:hover .area__arrow { transform: translate(2px,-2px); }

/* ---------- Testimonials ---------- */
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(86%, 1fr); gap: 1rem;
  overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory;
  padding: .35rem .15rem 1rem; scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews-carousel { position: relative; }
.reviews__controls { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.reviews__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; pointer-events: auto;
  color: #fff; background: var(--navy); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--navy), 0 8px 18px rgba(10,37,64,.18);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.reviews__arrow--prev { left: -58px; }
.reviews__arrow--next { right: -58px; }
.reviews__arrow .ic { width: 1.2rem; height: 1.2rem; }
.reviews__arrow--prev .ic { transform: rotate(90deg); }
.reviews__arrow--next .ic { transform: rotate(-90deg); }
.reviews__arrow:active { transform: translateY(-50%) scale(.92); }
@media (hover: hover) { .reviews__arrow:hover { background: var(--blue); transform: translateY(-50%) scale(1.05); } }
@media (max-width: 1279px) {
  .reviews__arrow--prev { left: 5px; }
  .reviews__arrow--next { right: 5px; }
}
@media (max-width: 599px) {
  .reviews__arrow { width: 42px; height: 42px; }
  .reviews__arrow--prev { left: 5px; }
  .reviews__arrow--next { right: 5px; }
}
.review {
  position: relative; scroll-snap-align: center;
  border: 2px solid transparent; border-radius: var(--r-lg);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(140deg, rgba(245,158,11,.9), rgba(15,111,190,.75), rgba(10,37,64,.85)) border-box;
  padding: clamp(1.35rem, 4vw, 1.9rem); box-shadow: 0 10px 28px rgba(10,37,64,.11); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.review::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--amber), var(--blue), var(--navy)); }
@media (hover: hover) { .review:hover { transform: translateY(-4px); box-shadow: var(--sh-md); } }
.review__quote { position: absolute; right: 1rem; bottom: .55rem; color: #E08900; opacity: .2; }
.review__quote .ic { width: 3.2em; height: 3.2em; }
.review__stars { display: flex; gap: .15rem; color: var(--amber); margin-bottom: .7rem; }
.review__stars .ic { width: 1.05em; height: 1.05em; }
.review p { position: relative; z-index: 1; color: var(--navy); font-size: .96rem; }
.review__by { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; }
.avatar {
  display: block; width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; outline: 2px solid rgba(224,137,0,.75);
  box-shadow: 0 7px 16px rgba(10,37,64,.18);
}
.review__by strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--navy); }
.review__by span { font-size: .82rem; color: var(--muted); }
.reviews .review.reveal { transform: translateY(26px) scale(.95) rotate(.35deg); }
.reviews .review.reveal.in { transform: none; }

@media (max-width: 599px) and (prefers-reduced-motion: no-preference) {
  .review::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.62) 49%, transparent 70%);
    opacity: 0; transform: translateX(-120%);
  }
  .review.reveal.in::after { animation: reviewShine .85s var(--ease) calc(.2s + var(--d, 0) * 100ms) both; }
  .review.reveal.in .avatar { animation: avatarPop .65s cubic-bezier(.2,.8,.2,1) calc(.18s + var(--d, 0) * 100ms) both; }
}
@keyframes reviewShine { 0% { opacity: 0; transform: translateX(-120%); } 25% { opacity: .75; } 100% { opacity: 0; transform: translateX(120%); } }
@keyframes avatarPop { 0% { opacity: 0; transform: scale(.72); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr; gap: clamp(1.2rem, 4vw, 2.5rem); align-items: start; }
.faq { display: grid; gap: .7rem; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-xs); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.faq__item.is-open { border-color: var(--blue); box-shadow: var(--sh-sm); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--navy);
  padding: 1.05rem 1.15rem; line-height: 1.35;
}
.faq__chev { color: var(--blue); transition: transform .3s var(--ease); width: 1.3em; height: 1.3em; flex: none; }
.faq__item.is-open .faq__chev { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > p { overflow: hidden; padding: 0 1.15rem; color: var(--muted); font-size: .93rem; transition: padding .32s var(--ease); }
.faq__item.is-open .faq__a > p { padding-bottom: 1.1rem; }
.section#faq { padding-bottom: .75rem; }
.section--finalcta { padding-top: .75rem; }

/* Premium services-page closing CTA */
.services-final { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.services-final__card {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1100px; margin-inline: auto; padding: clamp(2rem, 6vw, 4.25rem) clamp(1rem, 5vw, 4rem);
  text-align: center; border: 1px solid rgba(15,111,190,.22); border-radius: clamp(24px, 4vw, 38px);
  background:
    radial-gradient(circle at 50% 0%, rgba(15,111,190,.13), transparent 42%),
    linear-gradient(145deg, #fff 0%, #f5faff 56%, #fff8f0 100%);
  box-shadow: 0 24px 60px rgba(10,37,64,.13), inset 0 1px 0 rgba(255,255,255,.9);
}
.services-final__card::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(15,111,190,.32) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.services-final__glow { position: absolute; z-index: -1; width: 190px; aspect-ratio: 1; border-radius: 50%; filter: blur(4px); opacity: .16; }
.services-final__glow--one { left: -70px; bottom: -90px; background: var(--amber); }
.services-final__glow--two { right: -75px; top: -85px; background: var(--blue); }
.services-final__icon {
  position: relative; display: grid; place-items: center; width: 82px; aspect-ratio: 1; margin: 0 auto 1rem;
  color: #fff; border: 6px solid rgba(255,255,255,.86); border-radius: 25px;
  background: linear-gradient(145deg, var(--navy), var(--blue-700));
  box-shadow: 0 14px 30px rgba(10,37,64,.22), 0 0 0 1px rgba(15,111,190,.2);
  transform: rotate(-4deg);
}
.services-final__icon > .ic { width: 38px; height: 38px; }
.services-final__icon span {
  position: absolute; right: -10px; bottom: -10px; display: grid; place-items: center;
  width: 34px; aspect-ratio: 1; color: var(--navy); background: var(--amber); border: 3px solid #fff; border-radius: 50%;
}
.services-final__icon span .ic { width: 17px; height: 17px; }
.services-final__eyebrow { margin-bottom: .8rem; }
.services-final h2 { max-width: 760px; margin-inline: auto; font-size: clamp(1.7rem, 4vw, 2.8rem); }
.services-final p { max-width: 670px; margin: .75rem auto 0; color: var(--muted); font-size: clamp(.95rem, 2vw, 1.08rem); }
.services-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.6rem; }
.services-final__actions .btn { width: min(100%, 210px); }
@media (prefers-reduced-motion: no-preference) {
  .services-final__card.in .services-final__icon { animation: servicesCtaIcon .85s cubic-bezier(.16,.8,.24,1) .15s both; }
  .services-final__card.in .services-final__glow { animation: servicesCtaGlow 5s ease-in-out infinite alternate; }
}
@keyframes servicesCtaIcon {
  from { opacity: 0; transform: translateY(24px) rotate(-12deg) scale(.72); }
  to { opacity: 1; transform: translateY(0) rotate(-4deg) scale(1); }
}
@keyframes servicesCtaGlow { to { transform: translate3d(16px,-10px,0) scale(1.1); } }

/* Keep the services-page ending compact around testimonials, CTA and footer. */
.services-page #reviews { padding-bottom: clamp(1rem, 2.5vw, 1.75rem); }
.services-page .services-final { padding-top: .65rem; padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.services-page .footer { padding-top: clamp(1.75rem, 4vw, 2.75rem); }
.services-page .footer__inner { padding-bottom: 1.1rem; }
.services-page .footer__bottom { padding-block: .65rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.contact__list { display: grid; gap: .7rem; margin-top: .5rem; }
.contact__row a, .contact__row > div { display: flex; align-items: center; gap: .85rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: .9rem 1rem; box-shadow: var(--sh-xs); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.contact__row a:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--sh-sm); }
.contact__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; flex: none; }
.contact__ic .ic { width: 1.45em; height: 1.45em; }
.contact__ic--amber { background: var(--amber-tint); color: var(--amber-600); }
.contact__ic--green { background: #e3f7ec; color: var(--wa-700); }
.contact__ic--blue { background: var(--blue-tint); color: var(--blue-700); }
.contact__ic--navy { background: #eef1f6; color: var(--navy); }
.contact__row strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--navy); }
.contact__row span span, .contact__row > div span span { color: var(--muted); font-size: .88rem; }

.hours { margin-top: 1.2rem; background: var(--surface-alt); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.hours h3 { font-size: 1rem; margin-bottom: .6rem; }
.hours ul { display: grid; gap: .5rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--navy); padding-bottom: .5rem; border-bottom: 1px dashed var(--border); }
.hours li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours--emg span:last-child { display: inline-flex; align-items: center; gap: .4rem; color: var(--emergency); font-weight: 700; }

/* Availability badge (replaces working-hours for a 24/7 service) */
.avail { display: flex; align-items: center; gap: .85rem; margin-top: 1.2rem; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.2rem; }
.avail__dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(31,168,85,.16); }
.avail strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1rem; }
.avail > div span { color: var(--muted); font-size: .88rem; }

/* Form */
.contact__form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.3rem, 4vw, 2rem); box-shadow: var(--sh-md); }
.form__header { display: grid; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.form__title { font-size: 1.35rem; }
.form__lead { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }
.form__lead a { color: var(--blue-700); font-weight: 600; text-decoration: underline; }
.form__wa { margin: 0; justify-self: start; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .88rem; color: var(--navy); margin-bottom: .4rem; }
.field label span { color: var(--emergency); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--border-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--navy); font-size: .95rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa8b6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(15,111,190,.14); transform: translateY(-1px); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--emergency); box-shadow: 0 0 0 4px rgba(220,47,53,.12); }
.field__err { display: none; color: var(--emergency); font-size: .78rem; margin-top: .35rem; }
.field.is-invalid .field__err { display: block; }
.form__note { margin-top: .9rem; font-size: .9rem; font-weight: 600; text-align: center; }
.form__note.is-ok { color: var(--wa-700); }
.form__note.is-err { color: var(--emergency); }
.form__note:empty { display: none; }

/* Compact desktop contact form so both contact columns finish together. */
@media (min-width: 900px) {
  .contact-page .contact__form-wrap { padding: 1.35rem 1.5rem; }
  .contact-page .form__header { gap: .85rem; margin-bottom: 1rem; }
  .contact-page .form__lead { font-size: .86rem; line-height: 1.45; }
  .contact-page .field { margin-bottom: .7rem; }
  .contact-page .field-row { gap: .85rem; }
  .contact-page .field label { margin-bottom: .3rem; }
  .contact-page .field input,
  .contact-page .field select,
  .contact-page .field textarea { padding: .68rem .82rem; }
  .contact-page .field textarea { min-height: 76px; }
  .contact-page .form .btn--lg { min-height: 54px; }
  .contact-page .form .btn--lg .btn__label,
  .contact-page .form .btn--lg .btn__arrow { min-height: 44px; }
  .contact-page .form .btn--lg .btn__arrow { width: 44px; flex-basis: 44px; }
}

/* ---------- Final CTA ---------- */
.finalcta {
  position: relative; overflow: hidden;
  display: grid; gap: 1.2rem; align-items: center; text-align: center;
  background: linear-gradient(135deg, #fff, var(--blue-tint)); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: var(--sh-md);
}
.finalcta h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); font-weight: 800; }
.finalcta p { color: var(--muted); margin-top: .6rem; }
.finalcta__body { display: grid; gap: 1rem; }
.finalcta__media { display: none; }
.finalcta__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.finalcta__actions .btn { flex: 1 1 auto; min-width: 160px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9cadd; padding-top: clamp(2.5rem, 6vw, 4rem); margin-bottom: 72px; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer__brand p { margin-top: .9rem; font-size: .92rem; max-width: 34ch; }
.footer__trust { display: grid; gap: .5rem; margin-top: 1.1rem; }
.footer__trust li { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.footer__trust .ic { color: var(--amber); }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: .6rem; }
.footer__col a, .footer__contact span { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: #b9cadd; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer__col a:hover { color: #fff; padding-left: 3px; }
.footer__contact .ic { color: var(--amber); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; padding-block: 1.3rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer__made { color: #8ea3ba; }

/* ---------- Sticky mobile CTA bar ---------- */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  padding: 8px calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
  border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(10,37,64,.10);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.mobilebar.is-visible { transform: translateY(0); }
.mobilebar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 600; font-size: .74rem; min-height: 52px; color: #fff; transition: transform .15s var(--ease), filter .2s var(--ease); }
.mobilebar__btn .ic { width: 1.35em; height: 1.35em; }
.mobilebar__btn:active { transform: scale(.95); }
.mobilebar__btn--call { background: var(--blue); }
.mobilebar__btn--wa { background: var(--wa); }
.mobilebar__btn--book { background: var(--navy); }

/* ---------- Floating WhatsApp (desktop) ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  display: none; align-items: center; gap: 0; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(145deg, #29c063, #1fa855); color: #fff;
  box-shadow: 0 6px 18px rgba(31,168,85,.34), 0 2px 6px rgba(10,37,64,.16);
  justify-content: flex-start; overflow: hidden;
  transition: width .35s var(--ease), border-radius .35s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  padding-left: 15px;
}
.wa-float .ic { width: 30px; height: 30px; flex: none; }
.wa-float__tip { white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: .88rem; letter-spacing: .01em; opacity: 0; max-width: 0; transition: opacity .25s var(--ease), max-width .35s var(--ease), margin .25s var(--ease); }
.wa-float:hover { width: 178px; border-radius: var(--r-pill); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(31,168,85,.42), 0 4px 10px rgba(10,37,64,.18); }
.wa-float:hover .wa-float__tip { opacity: 1; max-width: 130px; margin-left: 9px; }
.wa-float::after { content:""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(31,168,85,.38); animation: pulse-wa 3.4s ease-out infinite; }
@keyframes pulse-wa { 0%{box-shadow:0 0 0 0 rgba(31,168,85,.38);} 70%{box-shadow:0 0 0 9px rgba(31,168,85,0);} 100%{box-shadow:0 0 0 0 rgba(31,168,85,0);} }

/* =========================================================
   Scroll-reveal animation
   ========================================================= */
[data-d="1"] { --d: 1; }
[data-d="2"] { --d: 2; }
[data-d="3"] { --d: 3; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Contact page ---------- */
.contact-methods { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: clamp(1.4rem, 4vw, 2.2rem); }
.cmethod {
  position: relative; display: flex; flex-direction: column; gap: .45rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.4rem; box-shadow: var(--sh-xs);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cmethod:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--sh-md); }
.cmethod__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: .35rem; }
.cmethod__ic .ic { width: 1.6em; height: 1.6em; }
.cmethod h3 { font-size: 1.05rem; }
.cmethod__val { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.02rem; word-break: break-word; }
.cmethod__meta { color: var(--muted); font-size: .85rem; }
.cmethod__go { margin-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--blue-700); font-size: .9rem; }
.cmethod__go .ic { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.cmethod:hover .cmethod__go .ic { transform: translate(2px, -2px); }

/* Map embed */
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--sh-sm); line-height: 0; }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.12); }

/* =========================================================
   Responsive — mobile-first up
   ========================================================= */
@media (min-width: 480px) {
  .areas { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-auto-columns: calc((100% - 1rem) / 2); }
  .contact-methods { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .form__header { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.25rem; }
  .form__wa { justify-self: end; white-space: nowrap; }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
  .footer { margin-bottom: 0; }
  .mobilebar { display: none; }
  .areas { grid-template-columns: repeat(4, 1fr); }
  .finalcta { grid-template-columns: 260px 1fr; text-align: left; }
  .finalcta__media { display: block; position: relative; align-self: stretch; }
  .finalcta__media img { width: 100%; height: 220px; min-height: 0; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-md); }
  .finalcta__badge { position: absolute; top: -12px; left: -12px; width: 48px; height: 48px; overflow: hidden; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, var(--amber), var(--amber-600)); color: #fff; box-shadow: var(--sh-md); }
  .finalcta__badge .ic { width: 1.55em; height: 1.55em; }
  .finalcta__media > .finalcta__badge > img {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 36px; height: 36px; min-height: 0; max-height: none;
    object-fit: contain; border-radius: 0; box-shadow: none;
  }
  .finalcta__actions { flex-wrap: nowrap; justify-content: flex-start; }
  .finalcta__actions .btn { min-width: 0; }
}

@media (min-width: 900px) {
  /* Full hero in one viewport: 100svh minus the sticky header (~60px) */
  .hero { min-height: calc(100svh - 60px); }
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .hero__visual {
    left: clamp(12px, 2vw, 32px);
    top: clamp(32px, 5vh, 60px);
  }
  .hero__photo--cutout { width: min(100%, 430px); }
  .hero h1 { font-size: clamp(3rem, 4.2vw, 3.5rem); }
  .hero__sub { font-size: 1.22rem; }
  .about { grid-template-columns: 1fr 1.15fr; }
  .about__photo { margin-inline: 0; }
  .faq-wrap { grid-template-columns: .9fr 1.1fr; }
  .contact { grid-template-columns: 1fr 1.1fr; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-auto-columns: calc((100% - 2rem) / 3); }
  .wa-float { display: flex; }
}

@media (min-width: 1024px) {
  .header__inner { min-height: 60px; }
}

/* Short laptop screens: tighten hero rhythm so it still fits one viewport */
@media (min-width: 900px) and (max-height: 820px) {
  .hero h1 { font-size: clamp(2.6rem, 6.2vh, 3.3rem); margin-top: .8rem; }
  .hero__sub { margin-top: .9rem; font-size: 1.18rem; }
  .hero__cta { margin-top: 1.4rem; }
  .hero__chips { margin-top: 1.2rem; }
  .hero__photo--cutout { width: min(100%, 400px); }
}

@media (max-width: 360px) {
  .hero__cutout { object-position: center top; }
}

/* ---------- Mobile navigation drawer ---------- */
@media (max-width: 899px) {
  .header {
    background: rgba(255,255,255,.96);
    border-bottom-color: rgba(15,111,190,.13);
    box-shadow: 0 5px 18px rgba(10,37,64,.07);
  }
  .header__inner { min-height: 64px; gap: .65rem; }
  .header__actions { margin-left: auto; gap: .5rem; }
  .brand { gap: .45rem; }
  .brand__mark svg { width: 32px; height: 32px; }
  .brand__name { font-size: 1.25rem; }
  .hamburger {
    display: block; width: 46px; height: 46px; border-radius: 13px;
    background: var(--blue-tint); box-shadow: inset 0 0 0 1px rgba(15,111,190,.08);
  }
  .header__call .btn__label { display: none; }
  .header__call { width: 46px; min-height: 46px; padding: 3px; border-color: rgba(10,37,64,.18); }
  .header__call .btn__arrow { flex: 0 0 38px; width: 38px; min-height: 38px; font-size: 0; }
  .header__call .btn__phone { display: block; }

  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { flex-wrap: nowrap; gap: .5rem; }
  .hero__cta .btn { flex: 1 1 0; min-width: 0; font-size: clamp(.72rem, 3.2vw, .9rem); white-space: nowrap; }
  .hero__cta .btn__label { min-width: 0; padding: .65rem .35rem; }
  .hero__cta .btn__arrow {
    flex: 0 0 42px; width: 42px; height: 42px; min-height: 42px; max-height: 42px;
    align-self: center; aspect-ratio: 1; border-radius: 50%;
  }
  .hero__visual { min-height: 330px; margin-top: clamp(2rem, 8vw, 3rem); }
  .hero__photo--cutout { width: min(88vw, 400px); }
  .hero__cutout-wrap { height: 104%; bottom: 2%; }

  .about__actions { flex-wrap: nowrap; gap: .5rem; }
  .about__actions .btn { flex: 1 1 0; min-width: 0; font-size: clamp(.7rem, 3vw, .86rem); }
  .about__actions .btn__label { min-width: 0; padding: .65rem .25rem; }
  .about__actions .btn__arrow {
    flex: 0 0 38px; width: 38px; height: 38px; min-height: 38px; max-height: 38px;
    align-self: center; aspect-ratio: 1; border-radius: 50%;
  }
  .nav {
    position: fixed; top: 0; right: 0; z-index: 99; height: 100dvh; width: min(82vw, 340px);
    background: #fff; flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 4.5rem 1.5rem 2rem; box-shadow: -18px 0 50px rgba(10,37,64,.2);
    /* Hidden state stays IN-BOUNDS (no translateX beyond viewport) so it never
       creates horizontal overflow — which would otherwise require clipping the
       root and break the sticky header. Slide-in comes from the scrim + fade. */
    opacity: 0; visibility: hidden; transform: scale(.97); transform-origin: top right; pointer-events: none;
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.is-open {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s;
  }
  .nav__link { font-size: 1.05rem; padding: .85rem .6rem; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav .btn.nav__cta { display: inline-flex; margin-top: 1rem; margin-left: 0; }
  .nav__close { display: block; position: absolute; top: 1rem; right: 1.2rem; font-size: 2rem; line-height: 1; color: var(--navy); width: 40px; height: 40px; }
}

/* Prevent body scroll when drawer open */
body.nav-open { overflow: hidden; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 0; transform: none; transition: opacity .2s linear 0ms !important; }
  .reveal.in { opacity: 1; transform: none; }
  .floatcard, .hero__badge, .hero__blob, .hero__ico, .about__blob, .live-dot, .btn--pulse::after, .wa-float::after { animation: none !important; }
}

/* =========================================================
   Services structure (home section + services page)
   ========================================================= */
.sec-head--wide { max-width: 1000px; }
.sec-head--wide h2 { max-width: 780px; margin-inline: auto; }

/* "Available across Riyadh" area pill */
.svc-area {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--blue-700); background: var(--blue-tint);
  padding: .45rem 1rem; border-radius: var(--r-pill);
}
.svc-area .ic { width: 1em; height: 1em; }

/* Service cards use H3 headings for SEO — match the H4 card style */
.card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.card__ic--green { background: #e3f7ec; color: var(--success); }

/* Subtle border glow on hover (soft lift + shadow come from .card:hover) */
.cards--svc .card:hover { box-shadow: var(--sh-lg), 0 0 0 4px rgba(15, 111, 190, .10); }

/* Deep links from the home page land on individual cards */
.card[id] { scroll-margin-top: 110px; }
.card:target { border-color: var(--blue); box-shadow: var(--sh-lg), 0 0 0 4px rgba(15, 111, 190, .14); }

/* Services grid: 1 column mobile / 2 tablet / 3 desktop */
@media (min-width: 900px) { .cards--svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--svc { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Services page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(1.75rem, 4.5vw, 3.25rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(15,111,190,.10), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(245,158,11,.09), transparent 55%);
}
.page-hero h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; max-width: 740px; }
.page-hero .lead { margin-top: 1rem; max-width: 780px; color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.1rem); }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.page-hero--center .crumbs, .page-hero--center .page-hero__cta { justify-content: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; text-align: center; }

@media (min-width: 768px) {
  .page-hero--services {
    display: flex; align-items: center;
    min-height: calc(100vh - 60px); min-height: calc(100svh - 60px);
  }
  .page-hero--services .container { width: 100%; }
}

/* Page hero fills one viewport (sticky header ≈ 72px) */
.page-hero--full { display: flex; align-items: center; min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); }
.page-hero--full .container { width: 100%; }

/* Contact hero: fit breadcrumb, heading, lead and all three method cards
   inside one viewport so the whole section is visible without scrolling */
.page-hero--contact { padding-top: clamp(.5rem, 2vw, 1.25rem); padding-bottom: clamp(.5rem, 2vw, 1.25rem); }
.page-hero--contact .lead { margin-top: .7rem; }
.page-hero--contact .contact-methods { margin-top: clamp(1rem, 2.6vw, 1.75rem); }
.page-hero--contact .cmethod { padding: 1.15rem 1.2rem; gap: .3rem; }
.page-hero--contact .cmethod__ic { width: 46px; height: 46px; margin-bottom: .2rem; }
.page-hero--contact .cmethod__go { margin-top: .35rem; }

/* ---------- About page: Our Story ---------- */
.story { display: grid; gap: clamp(1.8rem, 5vw, 3.5rem); align-items: start; margin-top: clamp(1.6rem, 4vw, 2.6rem); }
@media (min-width: 940px) {
  .story { grid-template-columns: .85fr 1.15fr; }
  .story__visual { position: sticky; top: 110px; }
}
.story__copy > p { font-size: 1.02rem; }

/* The service line: a pipe (blue) that becomes a wire (amber) — the brand's own story */
.storyline { position: relative; display: grid; gap: 1.5rem; margin-top: 1.9rem; }
.storyline::before {
  content: ""; position: absolute; left: 20px; top: 12px; bottom: 12px; width: 4px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue) 42%, var(--amber) 72%, var(--amber) 100%);
}
.chapter { position: relative; display: flex; gap: 1.05rem; align-items: flex-start; }
.chapter__node { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; }
.chapter--blue .chapter__node { background: var(--blue-tint); color: var(--blue-700); box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 5px var(--surface-alt); }
.chapter--amber .chapter__node { background: var(--amber-tint); color: var(--amber-600); box-shadow: inset 0 0 0 2px var(--amber), 0 0 0 5px var(--surface-alt); }
.chapter__node .ic { width: 1.3em; height: 1.3em; }
.chapter__node img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(10,37,64,.14)); }
.chapter h3 { font-size: 1.06rem; margin-bottom: .25rem; }
.chapter p { font-size: .93rem; color: var(--muted); max-width: 54ch; }
.story__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { display: inline-flex; align-items: center; gap: .35rem; color: var(--blue-700); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .ic { width: .9em; height: .9em; }
.crumbs__sep { color: var(--border); }

/* Section headings with raster trade icons */
.svc-h2 { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.45rem, 4vw, 2.1rem); font-weight: 800; }
.svc-h2__img { width: 52px; height: 52px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 8px rgba(10,37,64,.14)); }
.sec-head--center .svc-h2 { justify-content: center; }
.sec-head--center .svc-intro { margin-inline: auto; }

/* Inline icon before a page/hero heading (matches the section-heading style) */
.title-ic { display: inline-block; vertical-align: middle; width: clamp(42px, 6vw, 58px); height: clamp(42px, 6vw, 58px); object-fit: contain; margin-right: .6rem; margin-top: -.35rem; filter: drop-shadow(0 4px 8px rgba(10,37,64,.14)); }
.svc-intro { margin-top: .6rem; max-width: 720px; color: var(--muted); }

/* =========================================================
   Blog (listing + articles)
   ========================================================= */

/* ----- Listing cards ----- */
.post-card { display: flex; flex-direction: column; }
.post-card__media {
  position: relative; overflow: hidden; height: 180px;
  border-radius: var(--r-md); background: var(--surface-alt); margin-bottom: 1.1rem;
}
.post-card__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(10,37,64,.08); border-radius: inherit; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.045); }
.post-card__cat {
  position: absolute; top: .75rem; left: .75rem;
  font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-xs);
}
.post-card__cat--emergency { color: var(--emergency-700); }
.post-card__cat--electrical { color: var(--amber-600); }
.post-card__cat--plumbing { color: var(--blue-700); }
.post-card__date { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.post-card > p:not(.post-card__date) { flex: 1; }
.post-card .card__link { position: relative; width: 100%; justify-content: center; text-align: center; }
.post-card .card__link .ic { position: absolute; right: 1rem; }

/* ----- Article page ----- */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.post-meta strong { color: var(--heading); font-weight: 600; }
.post-hero-media { overflow: hidden; margin-top: 1.6rem; padding: 0; aspect-ratio: 3 / 2; border-radius: var(--r-lg); background: var(--surface-alt); box-shadow: var(--sh-md); }
.post-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-wrap { max-width: 800px; margin-inline: auto; }
.post-note {
  display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.6rem;
  background: var(--amber-tint); border: 1px solid rgba(224,137,0,.25); border-radius: var(--r-md);
  padding: .9rem 1.1rem; font-size: .9rem; color: var(--heading);
}
.post-note .ic { color: var(--amber-600); width: 1.3em; height: 1.3em; flex: none; margin-top: .15em; }

.toc { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.1rem 1.3rem; margin-top: 1.8rem; box-shadow: var(--sh-xs); }
.toc h2 { font-size: 1rem; margin-bottom: .6rem; }
.toc ul { display: grid; gap: .35rem; }
@media (min-width: 700px) { .toc ul { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.toc a { display: inline-flex; gap: .45rem; font-size: .9rem; font-weight: 500; color: var(--blue-700); }
.toc a:hover { text-decoration: underline; }
.toc .ic { width: .95em; height: .95em; margin-top: .3em; flex: none; color: var(--blue); }

.post { margin-top: .5rem; }
.post h2 { font-size: clamp(1.3rem, 3vw, 1.55rem); margin: 2.4rem 0 .8rem; scroll-margin-top: 110px; }
.post h3 { font-size: 1.12rem; margin: 1.7rem 0 .5rem; }
.post p { margin: .85rem 0; }
.post ul, .post ol { margin: .9rem 0; padding-left: 1.35rem; display: grid; gap: .45rem; }
.post ul { list-style: disc; }
.post ol { list-style: decimal; }
.post ul ::marker, .post ol ::marker { color: var(--blue); font-weight: 600; }
.post a:not(.btn) { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(15,111,190,.4); text-underline-offset: 2px; }
.post a:not(.btn):hover { text-decoration-color: var(--blue-700); }

.post-cta {
  position: relative; overflow: hidden; margin-top: 2.6rem; padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: var(--r-lg); background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #DCE9F5;
}
.post-cta h2 { color: #fff; margin: 0 0 .6rem; }
.post-cta p { color: #C6D8E8; }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }

.related { margin-top: 2.6rem; }
.related h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.related-grid { display: grid; gap: .9rem; }
@media (min-width: 700px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card {
  display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .9rem 1.05rem; box-shadow: var(--sh-xs);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.related-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--sh-sm); }
.related-card img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.related-card strong { font-family: var(--font-head); font-size: .95rem; color: var(--heading); line-height: 1.35; }
