/* ==========================================================================
   Design tokens — Alaseel Phone visual system, adapted to the AEPainter brand
   Dark base, radiant sky-blue primary (from the AE logo), warm orange accent,
   and a rainbow of card accents echoing the paint-roller logo mark.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #12141a;
  --bg-2: #16181f;
  --surface: #1c1f27;
  --surface-2: #21252e;
  --ink: #f4f6f9;
  --muted: #9aa2ae;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* brand */
  --primary: #0ea5e9;          /* AE cyan-blue */
  --primary-300: #56ccff;
  --primary-600: #0784bd;
  --accent: #f98b13;           /* warm orange (CTA highlights) */
  --accent-300: #ffb057;
  --green: #2ecc71;
  --purple: #a78bfa;
  --red: #ef4444;

  /* semantic */
  --success: #2ecc71;
  --warning: #f98b13;
  --danger: #ef4444;

  /* shape & elevation */
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  --glow: 0 0 24px rgba(14, 165, 233, 0.35);
  --glow-accent: 0 0 30px rgba(249, 139, 19, 0.4);

  /* type */
  --font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --h1: clamp(1.9rem, 4.4vw, 3.1rem);
  --h2: clamp(1.45rem, 3vw, 2.05rem);
  --h3: clamp(1.1rem, 2vw, 1.3rem);

  /* layout */
  --container: 1160px;
  --header-h: 68px;
  --topbar-h: 38px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.68, 0.35, 1);
  --fast: 0.18s;
  --med: 0.28s;
}

/* ==========================================================================
   Base — reset, typography, containers, buttons, chips, forms, motion
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-2);
  color: var(--ink);
  line-height: 1.9;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--primary); color: #fff; }

img { max-width: 100%; display: block; }

/* Brand watermark (mark) on all content images, top-left + soft colored glow.
   Applied server-side by content.mjs / templates via the .wm-mark wrapper.  */
.wm-wrap { position: relative; max-inline-size: max-content; }
.wm-wrap > img { display: block; }
.wm-mark {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 3;
  pointer-events: none;
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(0.62rem, 1.4vw, 0.8rem);
  color: #eaf6ff;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.4);
  border: 1px solid rgba(120, 190, 255, 0.5);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 16px rgba(14, 165, 233, 0.9);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.5), inset 0 0 10px rgba(14, 165, 233, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
/* tiny animated rainbow glow ring behind the mark (like footer dev badge) */
.wm-mark::before {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 12px;
  padding: 2px;
  background: conic-gradient(from var(--wm-ang, 0deg),
    #22d3ee, #0ea5e9 28%, #a78bfa 52%, #f98b13 74%, #f5c56b 90%, #22d3ee);
  filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: wmOrbit 6s linear infinite;
}
@property --wm-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes wmOrbit { to { --wm-ang: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .wm-mark::before { animation: none; }
}

a { color: var(--primary-300); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.4;
  font-weight: 900;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
}

p { margin: 0 0 1em; }

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

.skip-link {
  position: fixed;
  top: -60px;
  inset-inline-start: 12px;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }

/* -------------------------------- layout --------------------------------- */

.container { width: min(var(--container), 92%); margin-inline: auto; }
.container-narrow { width: min(820px, 92%); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }

.section { padding: 68px 0; position: relative; }
.section-tight { padding-top: 26px; }
.section-alt {
  background: var(--bg);
  border-block: 1px solid var(--line);
}

.section-head { text-align: center; margin-bottom: 38px; max-width: 780px; margin-inline: auto; }
.section-title { font-size: var(--h2); margin: 0 0 10px; }
.section-sub { color: var(--muted); margin: 0; font-size: 1.02rem; }

.eyebrow {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(249, 139, 19, 0.12);
  border: 1px solid rgba(249, 139, 19, 0.45);
  color: var(--accent-300);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

/* -------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
    background var(--fast) var(--ease), border-color var(--fast) var(--ease), filter var(--fast);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: 0 0 auto; }

.btn-primary {
  background: linear-gradient(150deg, #22b8f5, var(--primary-600));
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { filter: brightness(1.08); color: #fff; }

.btn-whatsapp {
  background: linear-gradient(150deg, #35e07d, #128c47);
  color: #fff;
  box-shadow: 0 0 24px rgba(46, 204, 113, 0.38);
}
.btn-whatsapp:hover { filter: brightness(1.07); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-300); }

.btn-lg { padding: 14px 30px; font-size: 1.03rem; border-radius: 14px; }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }

.btn[disabled], .btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-spinner {
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------- chips / badges ------------------------------ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: var(--fast) var(--ease);
  text-decoration: none;
  cursor: pointer;
}
a.chip:hover { color: var(--primary-300); border-color: var(--primary); text-decoration: none; transform: translateY(-1px); }
.chip-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--glow); }
.chip-static { cursor: default; }

.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-primary {
  background: rgba(14, 165, 233, 0.16);
  color: var(--primary-300);
  border: 1px solid rgba(14, 165, 233, 0.4);
}

/* --------------------------------- forms --------------------------------- */

.form-label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: #c7d3e8; }
.req { color: var(--danger); }

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(13, 21, 38, 0.85);
  color: var(--ink);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.form-input::placeholder { color: #5f7392; }
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}
.form-input[aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.form-field { margin-bottom: 16px; }
.field-error {
  margin: 6px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--danger);
}
.form-status { min-height: 24px; font-weight: 700; margin: 10px 0 0; font-size: 0.9rem; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

.cf-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------ scroll reveal ---------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ambient background (paint-themed, Alaseel bg-fx pattern) */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(720px 430px at 88% -6%, rgba(14, 165, 233, 0.14), transparent 62%),
    radial-gradient(620px 420px at 8% 108%, rgba(249, 139, 19, 0.08), transparent 62%);
}
.bg-fx::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 38%, #000 40%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 38%, #000 40%, transparent 100%);
}
.bg-fx .fx-glyph {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0.12;
  user-select: none;
  animation: glyphDrift 16s ease-in-out infinite;
}
.bg-fx .fx-glyph:nth-child(even) { animation-duration: 21s; }
.bg-fx .fx-glyph:nth-child(3n) { animation-duration: 26s; animation-delay: -6s; }
.bg-fx .fx-glyph:nth-child(1) { top: 12%; right: 8%; }
.bg-fx .fx-glyph:nth-child(2) { top: 30%; left: 6%; }
.bg-fx .fx-glyph:nth-child(3) { top: 55%; right: 14%; }
.bg-fx .fx-glyph:nth-child(4) { top: 72%; left: 12%; }
.bg-fx .fx-glyph:nth-child(5) { top: 20%; left: 30%; }
.bg-fx .fx-glyph:nth-child(6) { top: 46%; right: 40%; }
.bg-fx .fx-glyph:nth-child(7) { top: 84%; right: 26%; }
.bg-fx .fx-glyph:nth-child(8) { top: 62%; left: 34%; }
@keyframes glyphDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.14; }
  50% { transform: translateY(-26px) rotate(6deg); opacity: 0.05; }
}

/* misc utilities */
.gallery-more { margin-top: 30px; }
.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

/* ==========================================================================
   Layout — topbar, header, navigation, hero, footer, mobile action bar
   ========================================================================== */

/* --------------------------------- topbar -------------------------------- */

.topbar {
  background: linear-gradient(90deg, #0b1524, #101a2c, #0b1524);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--topbar-h);
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: #b9c6e4; font-weight: 700; }
.topbar a:hover { color: var(--primary-300); text-decoration: none; }
.topbar svg { width: 14px; height: 14px; }
.topbar-wa { color: #6ee7a0 !important; }
.topbar-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .topbar-note { display: none; } }

/* -------------------------------- header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 18, 24, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--med) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-badge {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 5px 9px;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35), 0 0 18px rgba(14, 165, 233, 0.35);
  transition: box-shadow var(--fast);
}
.brand:hover .brand-badge { box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.6), 0 0 26px rgba(14, 165, 233, 0.55); }
.brand-badge img { height: 34px; width: auto; }
.brand-stack { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-size: 1.08rem; font-weight: 900; color: #fff; }
.brand-tagline { font-size: 0.68rem; color: #aebdd8; font-weight: 600; }
@media (max-width: 420px) { .brand-stack { display: none; } }

/* --------------------------------- nav ----------------------------------- */

.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  color: #c6ccd6;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: color var(--fast), background var(--fast);
  text-decoration: none;
}
.nav-link:hover { color: var(--primary-300); background: rgba(14, 165, 233, 0.07); text-decoration: none; }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  inset-inline: 13px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--primary-300);
  box-shadow: 0 0 10px rgba(86, 204, 255, 0.8);
}
.nav-ico { font-size: 0.95rem; opacity: 0.9; }
.nav-caret { display: inline-flex; width: 12px; transition: transform var(--fast); }
.nav-caret svg { width: 12px; height: 12px; }

.nav-sub-toggle[aria-expanded='true'] .nav-caret { transform: rotate(180deg); }

.nav-sub {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #14171e;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), var(--glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast);
  z-index: 60;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub,
.nav-item.has-sub.is-open .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-sub a {
  display: block;
  padding: 9px 13px;
  border-radius: 9px;
  color: #c6ccd6;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--fast);
}
.nav-sub a:hover, .nav-sub a.is-active {
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary-300);
  text-decoration: none;
}

.nav-cta {
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 800;
}

/* burger + drawer */
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.nav-burger svg { width: 22px; height: 22px; }
.nav-burger .burger-close { display: none; }
.nav-burger[aria-expanded='true'] .burger-open { display: none; }
.nav-burger[aria-expanded='true'] .burger-close { display: block; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 44;
}

@media (max-width: 960px) {
  .nav-burger { display: grid; }
  .site-nav {
    /* absolute (not fixed): the header's backdrop-filter creates a containing
       block, so the drawer is anchored to the sticky header instead.
       Anchored to the RIGHT edge (inline-start in RTL) and pushed OUT to the
       right when closed: in RTL the scrollable overflow only extends to the
       LEFT, so a right-side offscreen drawer never widens the page (no
       phantom desktop-zoom on phones). */
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    height: calc(100dvh - var(--header-h) - var(--topbar-h));
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    background: #12141b;
    border-top: 1px solid var(--line-strong);
    border-inline-start: 1px solid var(--line-strong);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    transform: translateX(110%);
    transition: transform var(--med) var(--ease);
    overflow-y: auto;
    z-index: 45;
  }
  .site-nav.is-open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { width: 100%; justify-content: flex-start; font-size: 1rem; padding: 12px 14px; }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: rgba(14, 165, 233, 0.12); color: var(--primary-300); }

  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    display: none;
    margin-top: 4px;
    min-width: 0;
  }
  .nav-item.has-sub.is-open .nav-sub { display: block; }
  .nav-item.has-sub:hover .nav-sub { display: none; }
  .nav-item.has-sub.is-open:hover .nav-sub { display: block; }
  .nav-cta { justify-content: center; margin-top: 8px; }
}

/* --------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(900px 480px at 12% 18%, rgba(14, 165, 233, 0.24), transparent 62%),
    radial-gradient(700px 420px at 30% 96%, rgba(124, 58, 237, 0.2), transparent 65%),
    radial-gradient(560px 340px at 96% 40%, rgba(14, 116, 144, 0.22), transparent 60%),
    linear-gradient(135deg, #05070d 0%, #081018 46%, #06263a 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset-inline-end: -180px;
  bottom: -260px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(14, 165, 233, 0.26), rgba(16, 8, 60, 0.2) 60%, transparent);
  border: 1.5px solid rgba(120, 190, 255, 0.2);
}
.hero::after {
  content: '';
  position: absolute;
  inset-inline-end: -60px;
  bottom: -160px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(63, 32, 148, 0.3), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(9, 16, 42, 0.75);
  border: 1.5px solid var(--primary);
  color: #bfe6ff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.45), inset 0 0 12px rgba(14, 165, 233, 0.15);
  margin-bottom: 20px;
}
.hb-bolt { color: #ffd166; }

.hero-title {
  font-size: var(--h1);
  margin: 0 0 16px;
  line-height: 1.35;
  font-weight: 900;
  color: #fff;
}
.hero-hl {
  color: var(--primary-300);
  text-shadow: 0 0 26px rgba(86, 204, 255, 0.45);
}
.hero-sub { color: #b9c6e4; font-size: 1.05rem; max-width: 52ch; line-height: 2; }

.hero-actions { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.hero-btn-main {
  padding: 15px 30px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(160deg, #22b8f5, var(--primary-600));
  border: 1px solid rgba(140, 210, 255, 0.55);
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.5), 0 10px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.hero-btn-main:hover { filter: brightness(1.1); text-decoration: none; color: #fff; }
.hero-btn-outline {
  padding: 15px 26px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #d9fbe6;
  background: rgba(8, 32, 20, 0.55);
  border: 1.5px solid #25d366;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.32), inset 0 0 10px rgba(37, 211, 102, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.hero-btn-outline:hover { background: rgba(37, 211, 102, 0.14); color: #fff; text-decoration: none; }
.hero-btn-outline svg { width: 1.1em; height: 1.1em; }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

/* hero art */
.hero-art { position: relative; min-height: 400px; display: grid; place-items: center; }
.hero-frame {
  position: relative;
  width: min(430px, 92%);
  animation: heroFloat 8s ease-in-out infinite;
}
/* hero watermark: centered at the top of the main art frame */
.hero-frame > .wm-mark {
  top: 12px;
  inset-inline-start: 50%;
  translate: 50% 0;
  background: rgba(8, 12, 20, 0.55);
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
}
.hero-img-main {
  width: 100%;
  border-radius: 22px;
  border: 2px solid rgba(140, 190, 255, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 34px rgba(14, 165, 233, 0.4);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-img-sub {
  position: absolute;
  width: 44%;
  bottom: -42px;
  inset-inline-start: -34px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 26px rgba(249, 139, 19, 0.35);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.9), rgba(7, 132, 189, 0.92));
  border: 1.5px solid rgba(140, 210, 255, 0.6);
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.5), inset 0 0 12px rgba(255, 255, 255, 0.18);
  animation: chipFloat 6s ease-in-out infinite;
}
.hero-chip svg { width: 26px; height: 26px; }
.hc-1 { top: 6%; inset-inline-end: 6%; }
.hc-2 {
  top: 38%;
  inset-inline-end: -4%;
  background: linear-gradient(160deg, rgba(37, 211, 102, 0.92), rgba(18, 140, 71, 0.95));
  border-color: rgba(160, 255, 200, 0.55);
  box-shadow: 0 0 22px rgba(37, 211, 102, 0.45);
  animation-delay: 1.1s;
}
.hc-3 {
  bottom: 12%;
  inset-inline-end: 8%;
  background: linear-gradient(160deg, rgba(249, 139, 19, 0.92), rgba(196, 96, 6, 0.95));
  border-color: rgba(255, 210, 150, 0.55);
  box-shadow: 0 0 22px rgba(249, 139, 19, 0.45);
  animation-delay: 2s;
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero-float {
  position: absolute;
  bottom: -30px;
  inset-inline-start: 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(165deg, rgba(16, 26, 58, 0.94), rgba(9, 14, 34, 0.96));
  border: 1.5px solid rgba(120, 190, 255, 0.45);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(14, 165, 233, 0.3);
  backdrop-filter: blur(6px);
  animation: chipFloat 7s ease-in-out infinite;
  animation-delay: 0.5s;
}
.hero-float-title { font-size: 1.02rem; font-weight: 900; color: #fff; line-height: 1.4; }
.hero-float-sub { font-size: 0.78rem; color: #9fb0d8; font-weight: 700; }
.hero-float-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #34d27b, #1f9d55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.3rem;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.55);
}

.hero-waves { position: absolute; inset-inline: 0; bottom: -2px; z-index: 0; pointer-events: none; }
.hero-waves svg { display: block; width: 100%; height: 110px; }

@media (max-width: 960px) {
  .hero { padding: 56px 0 76px; }
  .hero-inner { grid-template-columns: 1fr; gap: 54px; }
  .hero-art { min-height: 330px; margin-top: 10px; }
  .hero-frame { width: min(340px, 86%); }
  .hero-img-sub { bottom: -30px; inset-inline-start: -18px; }
  .hero-chip { width: 48px; height: 48px; font-size: 1.15rem; }
  .hero-chip svg { width: 22px; height: 22px; }
  .hero-float { bottom: -26px; padding: 9px 13px; }
}

/* -------------------------------- footer --------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 85% 0%, rgba(14, 165, 233, 0.1), transparent 62%),
    radial-gradient(700px 340px at 12% 100%, rgba(249, 139, 19, 0.07), transparent 62%),
    linear-gradient(180deg, #14161c, #101216);
  color: #aab2bd;
  padding: 58px 0 0;
  border-top: 1px solid var(--line-strong);
}
.footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px 240px at 50% 118%, rgba(14, 165, 233, 0.12), transparent 70%);
}
.site-footer > .container, .footer-bottom { position: relative; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.9fr 1.1fr;
  gap: 22px;
  padding: 8px 0 34px;
}
@media (max-width: 1020px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-card {
  --fc-accent: var(--primary);
  --fc-accent-2: var(--accent);
  position: relative;
  background: linear-gradient(170deg, var(--fc-bg1, rgba(34, 39, 48, 0.92)), var(--fc-bg2, rgba(22, 25, 31, 0.96)));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38), 0 0 26px color-mix(in srgb, var(--fc-accent) 16%, transparent);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), border-color var(--fast);
}
.footer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.6px;
  background: linear-gradient(140deg,
    color-mix(in srgb, var(--fc-accent) 92%, #fff) 0%,
    rgba(255, 255, 255, 0.3) 24%,
    color-mix(in srgb, var(--fc-accent-2) 88%, transparent) 58%,
    color-mix(in srgb, var(--fc-accent) 55%, transparent) 82%,
    rgba(255, 255, 255, 0.12) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.footer-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 18%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--fc-accent), transparent);
  opacity: 0.85;
  filter: drop-shadow(0 0 6px var(--fc-accent));
}
.footer-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--fc-accent) 60%, transparent);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.45), 0 0 34px color-mix(in srgb, var(--fc-accent) 24%, transparent);
}

.fc-brand {
  --fc-accent: var(--primary);
  --fc-accent-2: #f5c56b;
  --fc-bg1: rgba(23, 44, 82, 0.55);
  --fc-bg2: rgba(13, 20, 34, 0.93);
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.fc-contact {
  --fc-accent: #25d366;
  --fc-accent-2: #9ff0c8;
  --fc-bg1: rgba(18, 52, 38, 0.55);
  --fc-bg2: rgba(11, 24, 19, 0.94);
}
.fc-links {
  --fc-accent: #f98b13;
  --fc-accent-2: #ffe08a;
  --fc-bg1: rgba(74, 43, 12, 0.5);
  --fc-bg2: rgba(31, 20, 9, 0.94);
}
.fc-services {
  --fc-accent: #a78bfa;
  --fc-accent-2: #f0abfc;
  --fc-bg1: rgba(48, 36, 84, 0.52);
  --fc-bg2: rgba(20, 15, 36, 0.94);
}

.footer-logo-frame {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 8px 12px;
  margin-bottom: 14px;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3), 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(14, 165, 233, 0.4);
  overflow: hidden;
}
.footer-logo-frame img { width: 108px; height: auto; }

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  margin: 0 0 14px;
  font-size: 1.05rem;
}
.footer-title svg { width: 16px; height: 16px; }
.ft-ico {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--fc-accent) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--fc-accent) 45%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--fc-accent) 30%, transparent);
}

.footer-links { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-links-2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .footer-links-2col { grid-template-columns: 1fr; } }
.footer-links a, .fl-static {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #c3cbd6;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
  transition: var(--fast);
}
.footer-links a:hover {
  color: #fff;
  text-decoration: none;
  background: color-mix(in srgb, var(--fc-accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--fc-accent) 55%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--fc-accent) 25%, transparent);
  transform: translateX(-3px);
}
.footer-links svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: 0.85; }
.fl-static { cursor: default; }
.fc-brand .brand-name { color: #fff; font-weight: 800; font-size: 1.15rem; }
.fc-brand .brand-latin { color: var(--primary-300); letter-spacing: 0.5px; margin: 4px 0 10px; font-size: 0.82rem; }
.fc-brand .muted { color: #9fb0c8; font-size: 0.9rem; }

.footer-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-bottom: 34px;
}
.footer-keywords .chip { font-size: 0.78rem; padding: 4px 13px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 0.85rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
}
.footer-bottom-inner { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.footer-bottom-inner p { margin: 0; }
.dev-credit { color: var(--accent-300); font-weight: 700; font-size: 0.8rem; display: inline-block; }
.dev-credit a { color: var(--accent-300); }
/* Hidden credit link: accessible for assistive tech but visually tucked under the rule */
.footer-bottom .dev-credit a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  /* Hidden visually but still real content — credit tucked under the rule */
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* WhatsApp mark tucked under the footer rule: a small glowing square badge
   for the designer (الأصيل_فون) WhatsApp — colorful animated border. */
.dev-wa-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 4px auto 0;
  border-radius: 12px;
  color: #25d366;
  background:
    linear-gradient(145deg, rgba(37, 211, 102, 0.18), rgba(10, 14, 22, 0.9) 55%, rgba(245, 197, 107, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(37, 211, 102, 0.35),
    inset 0 0 8px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Rotating rainbow glow ring */
.dev-wa-mark::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  padding: 2.5px;
  background: conic-gradient(from var(--wa-ang, 0deg),
    #25d366, #1d73ee 30%, #a78bfa 55%, #f98b13 78%, #f5c56b, #25d366);
  filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: waOrbit 5s linear infinite;
  pointer-events: none;
}
@property --wa-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes waOrbit { to { --wa-ang: 360deg; } }
/* Gentle float + sheen so it feels alive but subtle */
.dev-wa-mark::after {
  content: '';
  position: absolute;
  top: -60%;
  inset-inline-start: -80%;
  width: 70%;
  height: 220%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: waShine 4.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}
@keyframes waShine {
  0%, 55% { inset-inline-start: -80%; }
  85%, 100% { inset-inline-start: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .dev-wa-mark::before { animation: none; }
  .dev-wa-mark::after { animation: none; }
}
.dev-wa-mark svg { width: 21px; height: 21px; position: relative; z-index: 1; }
.dev-wa-mark:hover,
.dev-wa-mark:focus-visible {
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(37, 211, 102, 0.55),
    inset 0 0 10px rgba(255, 255, 255, 0.12);
}
@media (max-width: 640px) { .dev-wa-mark { width: 34px; height: 34px; } .dev-wa-mark svg { width: 18px; height: 18px; } }
@media (max-width: 640px) { .footer-bottom .dev-credit { font-size: 0.75rem; } }

/* -------------------------- mobile action bar ---------------------------- */

.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 48;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 16, 22, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-strong);
}
.mobile-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
}
.mobile-bar svg { width: 18px; height: 18px; }
.mb-call { background: linear-gradient(150deg, #22b8f5, var(--primary-600)); box-shadow: var(--glow); }
.mb-wa { background: linear-gradient(150deg, #35e07d, #128c47); box-shadow: 0 0 18px rgba(46, 204, 113, 0.35); }

@media (max-width: 960px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* ==========================================================================
   Components — cards, stats, about, gallery, breadcrumb, page hero,
   contact panel & form, blog layout, sidebar, empty states, lightbox
   ========================================================================== */

/* ------------------------------- page hero ------------------------------- */

.page-hero { padding: 46px 0 6px; }
.page-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0 0 8px; }

.breadcrumb { padding-top: 22px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: '‹'; opacity: 0.6; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-300); text-decoration: none; }
.breadcrumb [aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
  max-width: min(46ch, 60vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subcat-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 18px; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

/* --------------------------------- cards --------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 22px;
}
.services-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.posts-grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  --acc: var(--primary);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink); /* cards can be <a>; don't inherit link colour */
  background: linear-gradient(165deg, var(--surface-2), #171a20);
  border: 1px solid color-mix(in srgb, var(--acc) 28%, var(--line-strong));
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 26px color-mix(in srgb, var(--acc) 5%, transparent);
  transition: border-color var(--med) var(--ease), transform var(--med) var(--ease),
    box-shadow var(--med) var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0.85;
  z-index: 2;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(150px 95px at 100% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 72%),
    radial-gradient(150px 95px at 0% 100%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 72%);
}
.card:hover {
  border-color: color-mix(in srgb, var(--acc) 55%, transparent);
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 34px color-mix(in srgb, var(--acc) 24%, transparent),
    inset 0 0 34px color-mix(in srgb, var(--acc) 9%, transparent);
}
.card:nth-child(5n+2) { --acc: var(--accent); }
.card:nth-child(5n+3) { --acc: var(--green); }
.card:nth-child(5n+4) { --acc: var(--purple); }
.card:nth-child(5n+5) { --acc: #22d3ee; }

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
  flex: 1;
}
.card-body .muted { font-size: 0.92rem; margin: 0; flex: 1; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--primary-300);
}
.card-link svg { width: 14px; height: 14px; transition: transform var(--fast); }
.card:hover .card-link svg { transform: translateX(-4px); }

/* service cards */
.service-thumb {
  position: relative;
  height: 172px;
  overflow: hidden;
  background: #14161c;
}
.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--med) var(--ease);
}
.card:hover .service-thumb img { transform: scale(1.06); }
.service-index {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid color-mix(in srgb, var(--acc) 60%, transparent);
  color: #fff;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 2px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.service-title { margin: 0; font-size: 1.12rem; }

/* showcase cards */
.showcase-card { min-height: 300px; }
.showcase-thumb { position: absolute; inset: 0; }
.showcase-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--med) var(--ease); }
.showcase-card::after {
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.05) 20%, rgba(8, 10, 16, 0.88) 78%);
}
.showcase-card:hover .showcase-thumb img { transform: scale(1.07); }
.showcase-thumb > .wm-mark { z-index: 4; }
.showcase-overlay {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.showcase-overlay h3 { margin: 0; font-size: 1.15rem; color: #fff; }
.showcase-overlay .card-link { color: #cfe9ff; }

/* post cards */
.post-thumb {
  display: block;
  height: 175px;
  background: #14161c;
  overflow: hidden;
}
.post-thumb { position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--med) var(--ease); }
.post-thumb > .wm-mark { z-index: 4; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.thumb-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 2.4rem;
  background:
    radial-gradient(160px 100px at 70% 20%, rgba(14, 165, 233, 0.25), transparent 70%),
    radial-gradient(160px 100px at 20% 90%, rgba(249, 139, 19, 0.2), transparent 70%),
    linear-gradient(165deg, #1b2130, #14171e);
}
.post-title { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--primary-300); text-decoration: none; }
.post-meta { display: flex; gap: 14px; color: var(--muted); font-size: 0.82rem; flex-wrap: wrap; }
.post-meta .meta-item, .post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 13px; height: 13px; }

/* -------------------------------- stats ---------------------------------- */

.stats-belt { padding: 30px 0 64px; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1020px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats-row { grid-template-columns: 1fr; } }

.stat-card {
  --sc: var(--primary);
  --sc-glow: rgba(14, 165, 233, 0.42);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 16px 20px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(165deg, rgba(14, 20, 42, 0.8), rgba(7, 11, 26, 0.88));
  backdrop-filter: blur(8px);
  border: 1.5px solid color-mix(in srgb, var(--sc) 60%, transparent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 26px var(--sc-glow),
    inset 0 0 22px color-mix(in srgb, var(--sc) 10%, transparent);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -40%;
  inset-inline: 20%;
  height: 80%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sc) 26%, transparent), transparent);
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48), 0 0 38px var(--sc-glow),
    inset 0 0 26px color-mix(in srgb, var(--sc) 14%, transparent);
}
.stat-card.sc-orange { --sc: var(--accent); --sc-glow: rgba(249, 139, 19, 0.48); }
.stat-card.sc-green { --sc: var(--green); --sc-glow: rgba(46, 204, 113, 0.44); }
.stat-card.sc-purple { --sc: var(--purple); --sc-glow: rgba(167, 139, 250, 0.46); }
.stat-ico {
  font-size: 1.9rem;
  line-height: 1.2;
  filter: grayscale(0.2) drop-shadow(0 0 10px var(--sc-glow));
}
.stat-line { display: flex; align-items: baseline; gap: 4px; direction: ltr; justify-content: center; }
.counter-value, .counter-suffix {
  font-weight: 900;
  direction: ltr;
  color: var(--sc);
  text-shadow: 0 0 18px var(--sc-glow);
}
.counter-value { font-size: 2.5rem; line-height: 1.2; }
.counter-suffix { font-size: 1.7rem; }
.stat-label { color: #c7d3e8; font-weight: 700; font-size: 0.95rem; }

/* -------------------------------- about ---------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 30px; } }

.about-media { position: relative; }
.about-media > .wm-mark { z-index: 4; }
.about-media > img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 40px rgba(14, 165, 233, 0.18);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-media-badge {
  position: absolute;
  bottom: -22px;
  inset-inline-end: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(165deg, rgba(16, 26, 58, 0.96), rgba(9, 14, 34, 0.97));
  border: 1.5px solid rgba(249, 139, 19, 0.55);
  border-radius: 16px;
  padding: 11px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), var(--glow-accent);
}
.amb-icon { font-size: 1.6rem; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
@media (max-width: 560px) { .check-list { grid-template-columns: 1fr; } }
.check-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--fast);
}
.check-list li:hover { border-color: rgba(14, 165, 233, 0.5); color: var(--primary-300); }
.check-list svg { width: 14px; height: 14px; color: var(--primary); flex: 0 0 auto; }
.check-list a { color: inherit; }
.check-list a:hover { text-decoration: none; }

/* -------------------------------- offer ---------------------------------- */

.offer-section { padding-top: 0; }
.offer-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  background:
    radial-gradient(420px 240px at 90% -20%, rgba(249, 139, 19, 0.14), transparent 65%),
    radial-gradient(420px 260px at 0% 120%, rgba(14, 165, 233, 0.16), transparent 65%),
    linear-gradient(165deg, #101826, #0c1119);
  border: 1px solid rgba(80, 150, 220, 0.32);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow), inset 0 0 60px rgba(14, 165, 233, 0.05);
  position: relative;
  overflow: hidden;
}
.offer-panel::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 12%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.8;
}
.offer-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(14, 165, 233, 0.2), rgba(249, 139, 19, 0.18));
  border: 1px solid rgba(140, 200, 255, 0.4);
  box-shadow: 0 0 26px rgba(14, 165, 233, 0.3);
}
.offer-body .section-title { margin-bottom: 6px; }
.offer-body .section-sub { font-size: 0.98rem; line-height: 2; margin: 0; }
@media (max-width: 860px) {
  .offer-panel { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ----------------------------- contact band ------------------------------ */

.contact-band {
  background:
    radial-gradient(560px 300px at 50% 0%, rgba(14, 165, 233, 0.1), transparent 70%),
    var(--bg);
  border-block: 1px solid var(--line);
}
.contact-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.contact-chip {
  --cc: var(--primary);
  --cc-2: #f5c56b;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 18px;
  border-radius: 16px;
  border: 2px solid transparent;
  text-decoration: none;
  background:
    linear-gradient(165deg, rgba(23, 34, 56, 0.92), rgba(12, 18, 32, 0.95)) padding-box,
    linear-gradient(140deg,
      color-mix(in srgb, var(--cc) 92%, #fff),
      rgba(255, 255, 255, 0.35) 30%,
      color-mix(in srgb, var(--cc) 72%, transparent) 64%,
      color-mix(in srgb, var(--cc-2) 88%, transparent)) border-box;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35),
    0 0 20px color-mix(in srgb, var(--cc) 20%, transparent),
    inset 0 0 14px color-mix(in srgb, var(--cc) 9%, transparent);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.contact-chip:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42), 0 0 30px color-mix(in srgb, var(--cc) 34%, transparent);
}
.cc-wa { --cc: #25d366; --cc-2: #a7f3d0; }
.cc-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--cc) 80%, #fff), var(--cc) 60%, color-mix(in srgb, var(--cc) 55%, #000));
  color: #fff;
  box-shadow: 0 0 14px color-mix(in srgb, var(--cc) 55%, transparent), inset 0 0 6px rgba(255, 255, 255, 0.3);
}
.cc-ico svg { width: 18px; height: 18px; }
.cc-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-align: start; line-height: 1.45; }
.cc-label { color: #aebdd8; font-size: 0.72rem; font-weight: 800; }
.cc-value { color: #fff; font-weight: 800; font-size: 1.02rem; direction: ltr; }

/* -------------------------------- gallery -------------------------------- */

.gallery-masonry {
  columns: 3 260px;
  column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 16px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #14161c;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), border-color var(--fast);
}
.gallery-item:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(14, 165, 233, 0.22);
}
.gallery-item > .wm-mark {
  transform: scale(0.86);
  transform-origin: top right;
  font-size: 0.6rem;
  padding: 3px 8px;
}
.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.gallery-open img { width: 100%; height: auto; transition: transform var(--med) var(--ease), filter var(--med); }
.gallery-item:hover .gallery-open img { transform: scale(1.04); filter: brightness(1.06); }
.gallery-item figcaption {
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c7d3e8;
  background: rgba(10, 13, 20, 0.85);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(4, 6, 10, 0.9);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(14, 165, 233, 0.25);
  animation: lbIn 0.25s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.lightbox-caption {
  position: absolute;
  bottom: 3vh;
  inset-inline: 0;
  text-align: center;
  color: #c7d3e8;
  font-weight: 700;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(20, 23, 30, 0.9);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-close:hover { border-color: var(--primary); color: var(--primary-300); }

/* ------------------------------ post article ----------------------------- */

.post-article { padding-bottom: 40px; }
.post-hero { padding-top: 20px; }
.post-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.post-h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.5; margin: 0 0 14px; }
.post-meta-row { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }
.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-item svg { width: 15px; height: 15px; color: var(--primary); }
.post-featured { margin: 0 0 28px; }
.post-featured img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 34px rgba(14, 165, 233, 0.15);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.related-section .posts-grid { margin-top: 0; }

/* ----------------------------- contact section --------------------------- */

.contact-section {
  background:
    radial-gradient(500px 280px at 50% 0%, rgba(14, 165, 233, 0.07), transparent 70%),
    var(--bg);
}
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info, .contact-form {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(420px 260px at 85% -10%, rgba(14, 165, 233, 0.16), transparent 65%),
    radial-gradient(380px 240px at 0% 110%, rgba(14, 165, 233, 0.1), transparent 62%),
    linear-gradient(165deg, #0d1526, #0a1020 60%, #0c1222);
  border: 1px solid rgba(80, 140, 220, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 60px rgba(14, 165, 233, 0.05);
  padding: 28px;
}
.contact-info::before, .contact-form::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -3px;
  padding: 2px;
  border-radius: calc(var(--radius) + 3px);
  pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg),
    rgba(14, 165, 233, 0.9), rgba(249, 139, 19, 0.8), rgba(46, 204, 113, 0.7),
    rgba(167, 139, 250, 0.8), rgba(14, 165, 233, 0.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.85;
  animation: orbitGlow 9s linear infinite;
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes orbitGlow { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .contact-info::before, .contact-form::before { animation: none; }
}

.ci-head { margin-bottom: 18px; }
.contact-panel-title { font-size: 1.12rem; margin: 0 0 6px; line-height: 1.8; text-align: center; }
.ci-sub { margin: 0; color: #93a5c4; font-size: 0.88rem; font-weight: 600; line-height: 1.9; text-align: center; }

.contact-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .contact-boxes { grid-template-columns: 1fr; } }
.contact-box {
  --ba: var(--primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(160deg, rgba(30, 44, 72, 0.55), rgba(15, 22, 38, 0.6));
  backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--ba) 38%, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 16px color-mix(in srgb, var(--ba) 14%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--ba) 7%, transparent);
  transition: transform var(--fast) var(--ease), border-color var(--fast), box-shadow var(--fast);
}
.contact-box:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ba) 60%, transparent);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35), 0 0 22px color-mix(in srgb, var(--ba) 26%, transparent);
}
.cb-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--ba) 85%, #fff), var(--ba) 55%, color-mix(in srgb, var(--ba) 60%, #000));
  color: #fff;
  box-shadow: 0 0 16px color-mix(in srgb, var(--ba) 55%, transparent), inset 0 0 8px rgba(255, 255, 255, 0.25);
}
.cb-icon svg { width: 19px; height: 19px; }
.cb-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cb-label { color: #aebdd8; font-size: 0.78rem; font-weight: 800; }
.cb-value { color: #fff; font-weight: 800; font-size: 0.95rem; overflow-wrap: anywhere; }
a.cb-value:hover { text-decoration: underline; }

.ci-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: #8fa3c5;
  font-size: 0.8rem;
  font-weight: 700;
}
.ci-divider::before, .ci-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(90, 150, 220, 0.4), transparent);
}
.contact-services { margin: 0; }

/* --------------------------------- blog ---------------------------------- */

.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .blog-layout { grid-template-columns: 1fr; } }

.side-widget {
  background: linear-gradient(165deg, var(--surface-2), #171a20);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.side-title svg { width: 16px; height: 16px; color: var(--primary); }

.side-cats, .side-posts, .side-subcats { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.side-cats > li > a, .side-subcats a, .side-posts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #c3cbd6;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--fast);
}
.side-cats > li > a:hover, .side-subcats a:hover, .side-posts a:hover {
  color: #fff;
  text-decoration: none;
  border-color: rgba(14, 165, 233, 0.5);
  background: rgba(14, 165, 233, 0.1);
}
.side-subcats { margin-top: 6px; padding-inline-start: 14px; gap: 5px; }
.side-subcats a { font-size: 0.84rem; padding: 6px 10px; background: rgba(255, 255, 255, 0.02); }
.side-count {
  background: rgba(14, 165, 233, 0.16);
  color: var(--primary-300);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 8px;
}
.side-posts li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.side-posts li:last-child { border-bottom: none; }
.side-posts a { background: none; border: none; padding: 0; justify-content: flex-start; line-height: 1.7; }
.side-date { color: var(--muted); font-size: 0.75rem; }
.side-actions { display: grid; gap: 10px; margin-top: 14px; }
.side-contact { border-color: rgba(14, 165, 233, 0.4); }

/* ------------------------------ empty state ------------------------------ */

.empty-state {
  text-align: center;
  padding: 56px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}
.empty-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-state h2 { font-size: 1.2rem; }

/* --------------------------- 404 / not found ----------------------------- */

.notfound { padding: 90px 0; }

/* ------------------------------ loading state ---------------------------- */

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------ web search ------------------------------- */

.search-form { margin-bottom: 12px; }
.search-row { display: flex; gap: 10px; align-items: stretch; }
.search-row .form-input { flex: 1; min-width: 0; }
.search-row .btn { white-space: nowrap; }

.search-results { margin-top: 4px; }
.results-list { display: grid; gap: 14px; }

.result-card .card-body { gap: 6px; }
.result-title { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.result-title a { color: var(--ink); }
.result-title a:hover { color: var(--primary-300); }
.result-url { font-size: 0.76rem; color: var(--muted); word-break: break-all; }
.result-snippet { margin: 0; font-size: 0.9rem; line-height: 1.8; color: #c7d3e8; }
.result-snippet + .result-snippet { border-top: 1px dashed var(--line); padding-top: 6px; }
.result-meta { font-size: 0.75rem; color: var(--muted); }
.result-card .card-link { margin-top: 4px; }

.skeleton-line { height: 12px; margin: 5px 0; }
.skeleton-title { height: 18px; width: 62%; }
.skeleton-short { width: 38%; }

.search-note {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.search-note svg { width: 16px; height: 16px; }
.search-note a { color: var(--primary-300); font-weight: 700; }

@media (max-width: 620px) {
  .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; }
}

/* ==========================================================================
   Content — typography for imported WordPress article HTML (entry-content)
   The original content is preserved verbatim; this restyles it to the
   new design system without altering the markup.
   ========================================================================== */

.entry-content {
  font-size: 1.02rem;
  line-height: 2.1;
  color: #dde3ec;
}
.entry-content > * + * { margin-top: 1em; }

.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  color: #fff;
  line-height: 1.6;
  margin-top: 1.6em;
  margin-bottom: 0.55em;
}
.entry-content h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.entry-content h2 { font-size: clamp(1.28rem, 2.6vw, 1.65rem); }
.entry-content h3 { font-size: clamp(1.12rem, 2.2vw, 1.38rem); }
.entry-content h4, .entry-content h5, .entry-content h6 { font-size: 1.08rem; }

.entry-content h2:first-child, .entry-content h1:first-child { margin-top: 0; }

/* accent bar beside headings (matches the card top-line motif) */
.entry-content h2 {
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--primary);
}
.entry-content h3 { color: #eaf6ff; }

.entry-content p { margin: 0 0 1.05em; }
.entry-content p:last-child { margin-bottom: 0; }

.entry-content a {
  color: var(--primary-300);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(86, 204, 255, 0.4);
}
.entry-content a:hover { text-decoration-color: var(--primary-300); }

.entry-content strong, .entry-content b { color: #fff; }
.entry-content em { color: var(--accent-300); }

.entry-content ul, .entry-content ol { padding-inline-start: 26px; margin: 1em 0; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content li::marker { color: var(--primary); }

.entry-content blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  background: rgba(14, 165, 233, 0.07);
  border-inline-start: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #cfe0f2;
  font-style: normal;
}

.entry-content hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

/* images & figures */
.entry-content img {
  border-radius: var(--radius-sm);
  margin: 1.2em auto;
  border: 1px solid var(--line);
  height: auto;
}
.entry-content figure {
  margin: 1.4em 0;
  text-align: center;
}
.entry-content figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}
.entry-content .aligncenter { display: block; margin-inline: auto; text-align: center; }
.entry-content .alignleft { float: inline-start; margin: 0.4em 1.2em 0.8em 0; }
.entry-content .alignright { float: inline-end; margin: 0.4em 0 0.8em 1.2em; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
@media (max-width: 700px) {
  .entry-content .alignleft, .entry-content .alignright { float: none; display: block; margin-inline: auto; }
}

/* WP / Kadence galleries */
.entry-content .wp-block-gallery,
.entry-content .wp-block-image__gallery,
.entry-content figure.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 1.4em 0;
}
.entry-content .wp-block-gallery figure, .entry-content .wp-block-gallery .wp-block-image { margin: 0 !important; }
.entry-content .wp-block-gallery img { margin: 0; width: 100%; height: 100%; object-fit: cover; }

.entry-content .kb-gallery-ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px !important;
  list-style: none;
  padding: 0;
  margin: 1.4em 0;
}
.entry-content .kb-gallery-ul li { margin: 0; }
.entry-content .kb-gallery-ul img { width: 100%; height: 100%; object-fit: cover; margin: 0; }

/* tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.94rem;
  display: block;
  overflow-x: auto;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--line-strong);
  padding: 10px 14px;
  text-align: start;
}
.entry-content th { background: rgba(14, 165, 233, 0.12); color: #fff; font-weight: 800; }
.entry-content tr:nth-child(even) td { background: rgba(255, 255, 255, 0.025); }

/* Kadence info boxes / icon lists inside posts */
.entry-content .kt-info-box { margin: 1.2em 0; }
.entry-content .kt-svg-icon-list-items { list-style: none; padding: 0; }
.entry-content .kt-svg-icon-list-item { display: flex; gap: 10px; align-items: flex-start; }

/* buttons from the original content */
.entry-content .wp-block-button__link,
.entry-content .kb-button,
.entry-content input[type='submit'],
.entry-content button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(150deg, #22b8f5, var(--primary-600));
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--fast);
  box-shadow: var(--glow);
}
.entry-content .wp-block-button__link:hover,
.entry-content .kb-button:hover,
.entry-content input[type='submit']:hover,
.entry-content button:hover { filter: brightness(1.1); text-decoration: none; }

/* forms embedded in imported content */
.entry-content input[type='text'],
.entry-content input[type='email'],
.entry-content input[type='tel'],
.entry-content input[type='search'],
.entry-content input[type='url'],
.entry-content textarea,
.entry-content select {
  width: 100%;
  max-width: 460px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(13, 21, 38, 0.85);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.entry-content input:focus, .entry-content textarea:focus, .entry-content select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}
.entry-content label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: 6px; }

/* responsive media (video etc.) */
.entry-content iframe {
  max-width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  margin: 1.2em 0;
}

/* clear floats after content */
.entry-content::after { content: ''; display: table; clear: both; }

/* show-more blocks (Kadence) — expand naturally in the new layout */
.entry-content .kb-block-show-more-container.kb-show-more-content { display: block !important; }
.entry-content .kb-block-show-more-container .kb-block-show-more-trigger { display: none !important; }
