/* ==========================================================================
   بستان النَّماء — شركة تنسيق الحدائق
   Main stylesheet | RTL Arabic
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --font-body: "Tajawal", "Cairo", system-ui, sans-serif;
  --font-display: "Cairo", "Tajawal", system-ui, sans-serif;

  --bg: #f6f8f4;
  --bg-alt: #eef2ea;
  --surface: #ffffff;
  --surface-2: #f1f5ee;
  --text: #10201a;
  --muted: #5b6d63;
  --heading: #0c1a14;
  --primary: #1f7a4c;
  --primary-600: #175f3c;
  --primary-300: #6fd3a0;
  --primary-soft: rgba(31, 122, 76, 0.1);
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.14);
  --border: rgba(16, 32, 26, 0.11);
  --border-strong: rgba(16, 32, 26, 0.2);
  --shadow-sm: 0 4px 16px rgba(16, 32, 26, 0.06);
  --shadow-md: 0 14px 40px rgba(16, 32, 26, 0.09);
  --shadow-lg: 0 30px 70px rgba(16, 32, 26, 0.14);
  --hero-veil: linear-gradient(
    105deg,
    rgba(6, 22, 16, 0.92) 0%,
    rgba(6, 22, 16, 0.72) 45%,
    rgba(6, 22, 16, 0.35) 100%
  );
  --header-bg: rgba(246, 248, 244, 0.82);
  --grid-line: rgba(16, 32, 26, 0.05);
  --ring: rgba(31, 122, 76, 0.35);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --container: 1220px;
  --gap: clamp(48px, 7vw, 96px);
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

html[data-theme="dark"] {
  --bg: #070d0a;
  --bg-alt: #0b1310;
  --surface: #0f1a15;
  --surface-2: #132019;
  --text: #dce9e2;
  --muted: #8fa398;
  --heading: #eefaf3;
  --primary: #34c77b;
  --primary-600: #23a866;
  --primary-300: #7ee7b4;
  --primary-soft: rgba(52, 199, 123, 0.14);
  --accent: #e4c158;
  --accent-soft: rgba(228, 193, 88, 0.16);
  --border: rgba(220, 233, 226, 0.12);
  --border-strong: rgba(220, 233, 226, 0.24);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(7, 13, 10, 0.78);
  --grid-line: rgba(220, 233, 226, 0.05);
  --ring: rgba(52, 199, 123, 0.4);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16.5px;
  overflow-x: hidden;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

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

/* scrollbar */
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border: 3px solid var(--bg-alt);
  border-radius: 20px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--gap);
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
}

.section--tint {
  background: var(--surface);
}

.section--pad-sm {
  padding-block: clamp(36px, 5vw, 64px);
}

.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
}

/* section heading */
.s-head {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.s-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-transform: uppercase;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.s-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.28;
}

.s-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17.5px);
}

.hl {
  position: relative;
  isolation: isolate;
  color: var(--primary);
  white-space: nowrap;
}

.hl::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--accent-soft);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.9s var(--ease) 0.35s;
}

.is-visible .hl::after,
.hl.is-visible::after {
  transform: scaleX(1);
}

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 15.5px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.35s var(--ease), color 0.35s var(--ease);
  box-shadow: 0 10px 26px rgba(31, 122, 76, 0.24);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary-600);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(31, 122, 76, 0.32);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn:active {
  transform: translateY(-1px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--heading);
  border: 1.6px solid var(--border-strong);
  box-shadow: none;
}

.btn--ghost::before {
  background: var(--heading);
}

.btn--ghost:hover {
  color: var(--bg);
  box-shadow: var(--shadow-md);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: #0c1a14;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.btn--light::before {
  background: var(--accent);
}

.btn--light:hover {
  color: #0c1a14;
}

.btn--sm {
  padding: 11px 22px;
  font-size: 14.5px;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
}

.btn__ico {
  width: 18px;
  height: 18px;
  flex: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
}

.link-arrow svg {
  transition: transform 0.35s var(--ease);
}

.link-arrow::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -3px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.link-arrow:hover::after {
  transform: scaleX(1);
}

.link-arrow:hover svg {
  transform: translateX(-6px);
}

/* ---------- 5. Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: #07120d;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader__mark {
  width: 76px;
  height: 76px;
  color: #34c77b;
  animation: leafFloat 2.4s ease-in-out infinite;
}

.preloader__bar {
  width: 190px;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  overflow: hidden;
}

.preloader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #34c77b, #e4c158);
  border-radius: 20px;
  animation: load 1.25s ease-in-out infinite;
}

.preloader__name {
  color: #dce9e2;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.24em;
  font-size: 14px;
}

@keyframes load {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@keyframes leafFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}

/* ---------- 6. Scroll progress + cursor ---------- */
.progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  z-index: 1200;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px var(--primary);
  transition: width 0.1s linear;
}

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s, width 0.28s var(--ease), height 0.28s var(--ease),
    background 0.28s;
}

.cursor {
  width: 34px;
  height: 34px;
  border: 1.6px solid #fff;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transform: translate(-50%, -50%);
}

body.has-cursor .cursor,
body.has-cursor .cursor-dot {
  opacity: 1;
}

body.cursor-hover .cursor {
  width: 62px;
  height: 62px;
  background: rgba(255, 255, 255, 0.9);
  border-color: transparent;
}

/* ---------- 7. Header ---------- */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  padding-block: 18px;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
    box-shadow 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  padding-block: 10px;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

body.is-locked .header.is-stuck {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header.is-hidden {
  transform: translateY(-115%);
}

/* header sits over the dark hero (not stuck yet): keep brand + icons white */
body:not(.is-locked) .header:not(.is-stuck) .brand__text strong {
  color: #fff;
}
body:not(.is-locked) .header:not(.is-stuck) .brand__text small {
  color: rgba(255, 255, 255, 0.72);
}
body:not(.is-locked) .header:not(.is-stuck) .burger {
  border-color: rgba(255, 255, 255, 0.42);
}
body:not(.is-locked) .header:not(.is-stuck) .burger span {
  background: #fff;
}
body:not(.is-locked) .header:not(.is-stuck) .theme-toggle {
  border-color: rgba(255, 255, 255, 0.42);
}
body:not(.is-locked) .header:not(.is-stuck) .theme-toggle .ico-moon {
  color: #fff;
}

@media (min-width: 961px) {
  body:not(.is-locked) .header:not(.is-stuck) .nav a {
    color: rgba(255, 255, 255, 0.86);
  }
  body:not(.is-locked) .header:not(.is-stuck) .nav a:hover {
    color: #fff;
  }
  body:not(.is-locked) .header:not(.is-stuck) .nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
  }
}

.header {
  transition: transform 0.45s var(--ease), padding 0.4s var(--ease),
    background 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-end: auto;
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--primary), var(--primary-600));
  box-shadow: 0 10px 24px rgba(31, 122, 76, 0.3);
  flex: none;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-12deg) scale(1.06);
}

.brand__mark svg {
  width: 26px;
  height: 26px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--heading);
}

.brand__text small {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 961px) {
  .nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 86px;
    z-index: 1001;
  }
}

.nav a {
  position: relative;
  padding: 9px 15px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--muted);
  border-radius: 100px;
  transition: color 0.3s, background 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 15px;
  bottom: 4px;
  height: 2px;
  background: var(--primary);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}

.nav a:hover {
  color: var(--heading);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* theme toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}

.theme-toggle:hover {
  transform: rotate(25deg);
  border-color: var(--primary);
}

.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform 0.55s var(--ease), opacity 0.4s;
}

.theme-toggle .ico-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
  color: var(--accent);
}

.theme-toggle .ico-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
  color: var(--heading);
}

html[data-theme="dark"] .theme-toggle .ico-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html[data-theme="dark"] .theme-toggle .ico-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border-strong);
  border-radius: 13px;
  place-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--heading);
  border-radius: 4px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 140px 90px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -8% 0 0;
  z-index: -3;
}

.hero__bg img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 16s ease-out forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hero-veil);
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero__inner {
  position: relative;
  max-width: 780px;
  z-index: 2;
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.22;
  font-weight: 900;
}

.hero h1.hero__title--long {
  font-size: clamp(26px, 3.9vw, 46px);
  line-height: 1.38;
  font-weight: 800;
  max-width: 640px;
}

.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero h1 .word i {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
  animation: wordUp 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.075s + 0.25s);
}

@keyframes wordUp {
  to {
    transform: translateY(0);
  }
}

.hero__lead {
  margin-top: 24px;
  font-size: clamp(16px, 1.9vw, 19.5px);
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease) 0.75s forwards;
}

.hero__cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s var(--ease) 0.95s forwards;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.15s forwards;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c77b;
  box-shadow: 0 0 0 0 rgba(52, 199, 123, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(52, 199, 123, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 199, 123, 0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* hero stats card */
.hero__stats {
  position: relative;
  margin-top: 46px;
  width: fit-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px;
  padding: 18px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  z-index: 3;
  animation: fadeUp 1s var(--ease) 1.15s both;
}

.hero__stats div {
  padding-inline: 18px;
  text-align: center;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__stats div:first-child {
  border-inline-start: 0;
}

.hero__stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
}

.hero__stats span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}

/* floating leaves */
.leaf {
  position: absolute;
  z-index: -1;
  color: rgba(110, 211, 160, 0.35);
  animation: drift 18s ease-in-out infinite;
  filter: blur(0.4px);
}

.leaf svg {
  width: 100%;
  height: 100%;
}

.leaf--1 {
  width: 74px;
  height: 74px;
  top: 18%;
  inset-inline-start: 6%;
  animation-duration: 16s;
}
.leaf--2 {
  width: 46px;
  height: 46px;
  top: 62%;
  inset-inline-start: 22%;
  animation-duration: 22s;
  animation-delay: -4s;
  color: rgba(228, 193, 88, 0.32);
}
.leaf--3 {
  width: 96px;
  height: 96px;
  top: 28%;
  inset-inline-end: 8%;
  animation-duration: 26s;
  animation-delay: -8s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(28px, -34px) rotate(18deg);
  }
  66% {
    transform: translate(-22px, 22px) rotate(-14deg);
  }
}

.scroll-hint {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 26px;
  transform: translateX(50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-hint i {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 50%;
  background: #fff;
  animation: scrollLine 1.9s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(220%);
  }
}

/* page hero (inner pages) */
.p-hero {
  position: relative;
  padding-block: clamp(150px, 20vh, 210px) clamp(70px, 9vw, 110px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.p-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.p-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    rgba(5, 20, 14, 0.94),
    rgba(5, 20, 14, 0.66)
  );
}

.p-hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
}

.p-hero p {
  margin-top: 16px;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15.5px, 1.7vw, 18px);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 20px;
  font-weight: 600;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs span {
  color: var(--accent);
}

/* ---------- 9. Marquee ---------- */
.marquee {
  background: linear-gradient(90deg, var(--primary), var(--primary-600));
  color: #fff;
  padding-block: 16px;
  overflow: hidden;
  position: relative;
}

.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  direction: ltr;
  animation: marq 32s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 2vw, 19px);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.marquee__track span::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

@keyframes marq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 10. Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s;
}

.card::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::after {
  transform: scaleX(1);
}

.card__ico {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 20px;
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s;
}

.card:hover .card__ico {
  transform: rotate(-10deg) scale(1.08);
  background: var(--primary);
  color: #fff;
}

.card__ico svg {
  width: 30px;
  height: 30px;
}

.card h3 {
  font-size: 20.5px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
}

.card .num {
  position: absolute;
  inset-inline-end: 20px;
  top: 14px;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.07;
  line-height: 1;
}

/* service card with image */
.svc {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.svc:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.svc__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.svc:hover .svc__media img {
  transform: scale(1.09);
}

.svc__tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgba(7, 18, 13, 0.78);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
}

.svc__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.svc__body h3 {
  font-size: 19.5px;
}

.svc__body p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}

.svc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.svc__list li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 100px;
}

/* ---------- 11. Why / features ---------- */
.why {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(34px, 5vw, 66px);
  align-items: center;
}

.why__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
}

.why__media > img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}

.why__float {
  position: absolute;
  inset-inline-start: -20px;
  bottom: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  animation: floatY 5s ease-in-out infinite;
  max-width: 74%;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

.why__float b {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--primary);
  font-weight: 900;
  line-height: 1;
}

.why__float span {
  font-size: 13.5px;
  color: var(--muted);
  display: block;
}

.why__float .badge {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.check-list {
  display: grid;
  gap: 15px;
  margin-top: 26px;
}

.check-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.check-list i {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 4px;
}

.check-list i svg {
  width: 14px;
  height: 14px;
}

.check-list b {
  display: block;
  color: var(--heading);
  font-size: 16.5px;
}

.check-list p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 12. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  text-align: center;
  padding: 34px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.stat:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
}

.stat::before {
  content: "";
  position: absolute;
  inset-inline-end: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- 13. Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 24px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.45s var(--ease), box-shadow 0.45s,
    background 0.45s;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.step::before {
  counter-increment: step;
  content: counter(step, arabic-indic);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--primary);
  opacity: 0.5;
  display: block;
  margin-bottom: 14px;
  transition: opacity 0.4s, color 0.4s;
}

.step:hover::before {
  opacity: 1;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 9px;
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: -22px;
  width: 22px;
  height: 1.5px;
  background: repeating-linear-gradient(
    90deg,
    var(--border-strong) 0 5px,
    transparent 5px 10px
  );
}

/* ---------- 14. Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 30px;
  padding-inline-start: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--primary), var(--accent));
  opacity: 0.4;
}

.tl-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.tl-item:hover {
  transform: translateX(-8px);
  box-shadow: var(--shadow-md);
}

.tl-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -34px;
  top: 28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--primary);
}

.tl-item b {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 14.5px;
  letter-spacing: 0.08em;
}

.tl-item h3 {
  font-size: 20px;
  margin-block: 5px 7px;
}

.tl-item p {
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- 15. Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.member {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.member__img {
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
}

.member__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.8s var(--ease), filter 0.5s;
}

.member:hover .member__img img {
  transform: scale(1.07);
  filter: saturate(1.1);
}

.member__body {
  padding: 20px 20px 24px;
  text-align: center;
}

.member__body h3 {
  font-size: 18.5px;
}

.member__body span {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.member__social {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  display: grid;
  gap: 8px;
  opacity: 0;
  transform: translateX(14px);
  transition: 0.45s var(--ease);
}

.member:hover .member__social {
  opacity: 1;
  transform: none;
}

.member__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #0c1a14;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.member__social a:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.12);
}

.member__social svg {
  width: 16px;
  height: 16px;
}

/* ---------- 16. Tabs (services page) ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.tab {
  padding: 11px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--border-strong);
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  transition: 0.35s var(--ease);
}

.tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 122, 76, 0.28);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: panelIn 0.55s var(--ease);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* detail layout */
.detail {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
}

.detail__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.detail__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

.detail__media .pill {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 18px;
  background: var(--surface);
  border-radius: 100px;
  padding: 10px 20px;
  font-weight: 800;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: var(--shadow-md);
}

.detail__media .pill b {
  color: var(--primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.feature-grid li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
}

.feature-grid svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--primary);
  margin-top: 3px;
}

/* ---------- 17. Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
  overflow: hidden;
}

.plan:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.plan--featured {
  background: linear-gradient(160deg, var(--primary), var(--primary-600));
  border-color: transparent;
  color: #fff;
  transform: translateY(-14px);
  box-shadow: 0 30px 60px rgba(31, 122, 76, 0.34);
}

.plan--featured:hover {
  transform: translateY(-22px);
}

.plan--featured h3,
.plan--featured .plan__price b {
  color: #fff;
}

.plan--featured p,
.plan--featured li {
  color: rgba(255, 255, 255, 0.9);
}

.plan__flag {
  position: absolute;
  top: 18px;
  inset-inline-end: -34px;
  background: var(--accent);
  color: #17110a;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 40px;
  transform: rotate(45deg);
}

.plan h3 {
  font-size: 21px;
}

.plan__price {
  margin-block: 16px 6px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.plan__price b {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.plan__price span {
  color: var(--muted);
  font-size: 14.5px;
}

.plan > p {
  color: var(--muted);
  font-size: 15px;
  min-height: 48px;
}

.plan ul {
  margin-block: 20px 26px;
  display: grid;
  gap: 12px;
}

.plan li {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 15.2px;
  color: var(--muted);
}

.plan li svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--primary);
}

.plan--featured li svg {
  color: var(--accent);
}

/* ---------- 18. Gallery ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 38px;
}

.filter {
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--border-strong);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
  transition: 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.filter:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gal__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
  transition: opacity 0.4s, transform 0.4s var(--ease),
    filter 0.4s var(--ease);
}

.gal__item.is-hidden {
  display: none;
}

.gal__item.is-fade {
  opacity: 0;
  transform: scale(0.94);
}

.gal__item img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
}

.gal__item--tall img {
  aspect-ratio: 4 / 5.4;
}

.gal__item:hover img {
  transform: scale(1.08);
}

.gal__ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 20, 14, 0.92),
    rgba(5, 20, 14, 0.06) 55%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.gal__item:hover .gal__ov {
  opacity: 1;
}

.gal__ov h4 {
  color: #fff;
  font-size: 18.5px;
  transform: translateY(14px);
  transition: transform 0.45s var(--ease) 0.05s;
}

.gal__ov span {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  transform: translateY(14px);
  transition: transform 0.45s var(--ease) 0.1s;
}

.gal__item:hover .gal__ov h4,
.gal__item:hover .gal__ov span {
  transform: none;
}

.gal__zoom {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0c1a14;
  display: grid;
  place-items: center;
  transform: scale(0) rotate(-40deg);
  transition: transform 0.45s var(--ease);
}

.gal__item:hover .gal__zoom {
  transform: scale(1) rotate(0);
}

/* lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 12, 9, 0.94);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.lb.is-open {
  opacity: 1;
  visibility: visible;
}

.lb__fig {
  max-width: min(1080px, 92vw);
  transform: scale(0.94);
  transition: transform 0.45s var(--ease);
  text-align: center;
}

.lb.is-open .lb__fig {
  transform: scale(1);
}

.lb__fig img {
  max-height: 76vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--r-md);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.lb__fig figcaption {
  color: #fff;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}

.lb__fig figcaption small {
  display: block;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.lb__btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  display: grid;
  place-items: center;
  transition: 0.3s;
}

.lb__btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.lb__close {
  top: 26px;
  inset-inline-end: 26px;
}
.lb__prev {
  inset-inline-start: 26px;
  top: 50%;
  transform: translateY(-50%);
}
.lb__next {
  inset-inline-end: 26px;
  top: 50%;
  transform: translateY(-50%);
}

/* before / after */
.ba {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  user-select: none;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__after {
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.ba__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.ba__knob {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: #0c1a14;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  direction: ltr;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.ba__label {
  position: absolute;
  bottom: 16px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(5, 20, 14, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.ba__label--b {
  inset-inline-start: 16px;
}
.ba__label--a {
  inset-inline-end: 16px;
}

/* ---------- 19. Testimonials ---------- */
.slider {
  position: relative;
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform 0.7s var(--ease);
}

.slide {
  flex: 0 0 100%;
  padding-inline: 10px;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(30px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.quote::before {
  content: "\201D";
  position: absolute;
  inset-inline-start: 26px;
  top: -14px;
  font-family: Georgia, serif;
  font-size: 130px;
  color: var(--primary);
  opacity: 0.12;
  line-height: 1;
}

.stars {
  display: flex;
  gap: 5px;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.stars svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.quote p {
  font-size: clamp(16.5px, 2vw, 21px);
  line-height: 1.95;
  color: var(--heading);
  font-weight: 500;
}

.quote__who {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.quote__who img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.quote__who b {
  display: block;
  font-family: var(--font-display);
  color: var(--heading);
}

.quote__who span {
  font-size: 13.5px;
  color: var(--muted);
}

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.slider__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--heading);
  transition: 0.35s var(--ease);
}

.slider__arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.08);
}

.slider__dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 100px;
  background: var(--border-strong);
  transition: 0.4s var(--ease);
}

.dot.is-active {
  width: 30px;
  background: var(--primary);
}

/* ---------- 20. FAQ ---------- */
.faq {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin-inline: auto;
}

.acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.4s, border-color 0.4s;
}

.acc.is-open {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.acc__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: start;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--heading);
  transition: color 0.3s;
}

.acc.is-open .acc__q {
  color: var(--primary);
}

.acc__q .sign {
  margin-inline-start: auto;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease), background 0.3s, color 0.3s;
}

.acc.is-open .sign {
  transform: rotate(135deg);
  background: var(--primary);
  color: #fff;
}

.acc__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.acc__a p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15.7px;
}

/* ---------- 21. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 4vw, 54px);
  align-items: start;
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s,
    border-color 0.4s;
}

.info-card + .info-card {
  margin-top: 14px;
}

.info-card:hover {
  transform: translateX(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.info-card__ico {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: 0.4s var(--ease);
}

.info-card:hover .info-card__ico {
  background: var(--primary);
  color: #fff;
  transform: rotate(-8deg);
}

.info-card h4 {
  font-size: 16.5px;
  margin-bottom: 3px;
}

.info-card p,
.info-card a {
  color: var(--muted);
  font-size: 15.3px;
}

.info-card a:hover {
  color: var(--primary);
}

/* form */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.5vw, 42px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.form::before {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--primary-soft);
  pointer-events: none;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  position: relative;
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 15.5px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: var(--surface);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #e35d5d;
  box-shadow: 0 0 0 4px rgba(227, 93, 93, 0.14);
}

.field__err {
  display: none;
  font-size: 12.8px;
  color: #e35d5d;
  margin-top: 6px;
  font-weight: 600;
}

.field.has-error .field__err {
  display: block;
}

.form__ok {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--primary-soft);
  border: 1px dashed var(--primary);
  color: var(--primary);
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}

.form__ok.is-shown {
  display: flex;
  animation: panelIn 0.4s var(--ease);
}

/* map */
.map {
  margin-top: 30px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  filter: saturate(0.9);
  box-shadow: var(--shadow-md);
}

.map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

html[data-theme="dark"] .map iframe {
  filter: invert(0.9) hue-rotate(180deg) contrast(0.9);
}

/* ---------- 22. CTA band ---------- */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(44px, 6vw, 76px);
  color: #fff;
  isolation: isolate;
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    rgba(6, 40, 26, 0.94),
    rgba(6, 40, 26, 0.72)
  );
}

.cta h2 {
  color: #fff;
  font-size: clamp(26px, 4vw, 44px);
}

.cta p {
  max-width: 620px;
  margin: 16px auto 32px;
  color: rgba(255, 255, 255, 0.85);
}

.cta__btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 23. Footer ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: clamp(50px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset-inline-start: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--primary-soft);
  filter: blur(10px);
}

.f-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 34px;
  padding-bottom: 46px;
}

.footer h4 {
  color: var(--heading);
  font-size: 17.5px;
  margin-bottom: 20px;
  position: relative;
  padding-inline-start: 14px;
}

.footer h4::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--primary);
}

.footer p {
  color: var(--muted);
  font-size: 15.3px;
}

.f-links {
  display: grid;
  gap: 11px;
}

.f-links a {
  color: var(--muted);
  font-size: 15.3px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color 0.3s, transform 0.3s var(--ease);
}

.f-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transition: 0.3s;
}

.f-links a:hover {
  color: var(--primary);
  transform: translateX(-6px);
}

.f-links a:hover::before {
  background: var(--primary);
  transform: scale(1.5);
}

.f-contact li {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 15.3px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.f-contact svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--primary);
  margin-top: 5px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: 0.35s var(--ease);
}

.socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-5px);
}

.socials svg {
  width: 17px;
  height: 17px;
}

.f-bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14.3px;
  color: var(--muted);
  position: relative;
}

.f-bottom a:hover {
  color: var(--primary);
}

/* ---------- 24. Floating buttons ---------- */
.fab {
  position: fixed;
  inset-inline-end: 22px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 0.4s var(--ease), opacity 0.4s, visibility 0.4s;
}

.fab svg {
  width: 27px;
  height: 27px;
}

.fab-stack {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 92px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.fab-stack .fab {
  position: static;
}

.fab--wa {
  background: #25d366;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
  animation: floatY 4s ease-in-out infinite;
}

.fab--wa.is-shown {
  opacity: 1;
  visibility: visible;
}

.fab--call {
  background: var(--primary);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s, transform 0.4s var(--ease);
}

.fab--call.is-shown {
  opacity: 1;
  visibility: visible;
}

.fab--call:hover {
  transform: scale(1.1);
  background: var(--primary-600);
}

.fab--top {
  bottom: 26px;
  background: var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
}

.fab--top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fab:hover {
  transform: scale(1.1);
}

.fab__tip {
  position: absolute;
  inset-inline-end: 68px;
  white-space: nowrap;
  background: var(--heading);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: 0.35s var(--ease);
  pointer-events: none;
}

.fab:hover .fab__tip {
  opacity: 1;
  transform: none;
}

/* ---------- 25. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal--right {
  transform: translateX(-44px);
}
.reveal--left {
  transform: translateX(44px);
}
.reveal--zoom {
  transform: scale(0.92);
}
.reveal--blur {
  filter: blur(8px);
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.split-line {
  display: block;
  overflow: hidden;
}

/* magnetic */
.magnetic {
  display: inline-block;
  will-change: transform;
}

/* ---------- 26. Utilities ---------- */
.text-center {
  text-align: center;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stats--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1080px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .stats--2 {
    grid-template-columns: 1fr;
  }
}

.mt-0 {
  margin-top: 0;
}
.mt-4 {
  margin-top: 20px;
}
.mt-6 {
  margin-top: 34px;
}
.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.img-fallback {
  background: linear-gradient(135deg, var(--primary-600), var(--accent));
  position: relative;
}

/* ---------- 27. Responsive ---------- */
@media (max-width: 1080px) {
  .stats,
  .process,
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:not(:last-child)::after {
    display: none;
  }
  .f-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(340px, 84vw);
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 100px 24px 40px;
    transform: translateX(-105%);
    transition: transform 0.5s var(--ease);
    box-shadow: 30px 0 70px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: none;
  }

  .nav a {
    padding: 15px 18px;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav a::after {
    display: none;
  }

  .burger {
    display: flex;
    z-index: 1002;
    position: relative;
  }

  .header__actions .btn {
    display: none;
  }

  .why,
  .detail,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pricing {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .plan--featured {
    transform: none;
  }
  .plan--featured:hover {
    transform: translateY(-8px);
  }

  .hero__stats {
    position: static;
    margin-top: 42px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
  }

  .why__float {
    inset-inline-start: 14px;
    bottom: 14px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .gal {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }
  .stat {
    padding: 24px 12px;
  }
  .feature-grid,
  .form__row {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-block: 130px 70px;
  }
  .scroll-hint {
    display: none;
  }
}

@media (max-width: 560px) {
  .process,
  .team,
  .gal,
  .f-grid {
    grid-template-columns: 1fr;
  }
  .brand__text small {
    display: none;
  }
  .btn {
    padding: 14px 24px;
  }
  .hero__cta {
    flex-direction: column;
    gap: 12px;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .hero__stats {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    padding: 14px 8px;
  }
  .hero__stats div {
    padding-inline: 6px;
  }
  .plan__flag {
    inset-inline-end: -24px;
    padding: 5px 34px;
  }
  .gal__item--tall img {
    aspect-ratio: 4 / 3.4;
  }
  .fab {
    width: 50px;
    height: 50px;
  }
}

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