@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  --bg: #070a12;
  --surface: #0d1422;
  --surface-2: #111b2d;
  --text: #f7f8fb;
  --muted: #aeb7c8;
  --line: rgba(255, 255, 255, .12);
  --accent: #61e8d6;
  --accent-2: #8e7cff;
  --hot: #ff6b8a;
  --radius: 22px;
  --wrap: min(1160px, calc(100% - 32px));
  --shadow: 0 24px 90px rgba(0, 0, 0, .3);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(97, 232, 214, .18), transparent 34rem),
    radial-gradient(circle at 85% 4%, rgba(142, 124, 255, .22), transparent 32rem),
    linear-gradient(180deg, #070a12 0%, #09101c 48%, #06080f 100%);
  font-family: Cairo, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body[dir="rtl"] {
  text-align: right;
}

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

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  gap: 18px;
  background: #070a12;
  transition: opacity .35s ease, visibility .35s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  width: 58px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.loader-lines {
  display: grid;
  gap: 8px;
  width: 180px;
}

.loader-lines span,
.skeleton-card span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.18), rgba(255,255,255,.08));
  background-size: 220% 100%;
  animation: skeleton 1.25s ease-in-out infinite;
}

.loader-lines span:nth-child(2) {
  width: 72%;
}

.loader-lines span:nth-child(3) {
  width: 48%;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes skeleton {
  to { background-position: -220% 0; }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: var(--wrap);
  min-height: 78px;
  margin: 14px auto 0;
  padding: 8px 10px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(7, 10, 18, .72);
  box-shadow: 0 16px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 124px;
}

.brand img {
  width: 148px;
  height: 64px;
  object-fit: contain;
}

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

.nav-links a,
.lang-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #dce2ee;
  font-size: 14px;
  font-weight: 750;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.lang-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061019 !important;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.page-band {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.page-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
}

.hero {
  min-height: 760px;
  display: grid;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 8% 5% auto auto;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(97,232,214,.28), rgba(142,124,255,.24)),
    radial-gradient(circle at 34% 32%, rgba(255,255,255,.5), transparent 12%);
  filter: blur(.2px);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translate3d(0, -22px, 0) scale(1.02); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: 96px 0 80px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -.045em;
  line-height: 1.03;
}

h1 {
  max-width: 880px;
  font-size: clamp(44px, 8vw, 96px);
}

h2 {
  font-size: clamp(32px, 5vw, 58px);
}

h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.lead {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 21px);
}

.arabic-line {
  margin: 18px 0 0;
  color: #d9fff8;
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn,
.price-card a,
.mini-package a,
.panel-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover,
.price-card a:hover,
.mini-package a:hover,
.panel-link:hover {
  transform: translateY(-2px);
  border-color: rgba(97,232,214,.45);
}

.btn.primary,
.price-card a,
.mini-package a,
.panel-link {
  border-color: transparent;
  color: #061019;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn.ghost {
  background: rgba(255,255,255,.06);
}

.hero-panel,
.price-card,
.mini-package,
.benefit,
.service-card,
.blog-card,
.cms-feature,
.process-card,
.contact-card,
.quote-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 26px;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-top span,
.tag {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.panel-top strong {
  font-size: 20px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.metric-row div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}

.metric-row b,
.metric-row span {
  display: block;
}

.metric-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.skeleton-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.skeleton-card span:nth-child(2) { width: 74%; }
.skeleton-card span:nth-child(3) { width: 54%; }

.section {
  padding: clamp(68px, 9vw, 118px) 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.package-strip,
.service-links,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mini-package,
.service-card,
.process-card {
  padding: 24px;
}

.mini-package span,
.service-card span,
.blog-card span,
.cms-feature span,
.process-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(97,232,214,.28);
  border-radius: 16px;
  color: #061019;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  box-shadow: 0 14px 40px rgba(97,232,214,.12);
}

.icon.dark {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.mini-package h3 {
  margin-top: 12px;
}

.mini-package p,
.benefit span,
.service-card small,
.process-card p,
.price-card p,
.contact-card p {
  color: var(--muted);
}

.mini-package a,
.price-card a {
  width: 100%;
  margin-top: 22px;
}

.split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  align-items: start;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.benefit {
  padding: 22px;
}

.benefit b,
.benefit span {
  display: block;
}

.benefit span {
  margin-top: 8px;
}

.service-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card b {
  display: block;
  margin-top: 18px;
  font-size: 24px;
}

.service-card small {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

.subhero {
  padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 9vw, 100px);
}

.subhero .wrap {
  position: relative;
  z-index: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-grid .price-card:nth-child(4) {
  grid-column: span 1;
}

.price-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.price-card.featured {
  border-color: rgba(97,232,214,.48);
  background:
    radial-gradient(circle at 50% 0, rgba(97,232,214,.18), transparent 20rem),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
}

.price-card h3 {
  margin-top: 14px;
}

.price-card strong {
  display: block;
  margin: 22px 0;
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1;
  letter-spacing: -.045em;
}

.price-card ul {
  display: grid;
  gap: 11px;
  min-height: 152px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.price-card li {
  display: flex;
  gap: 9px;
  color: #dfe5ef;
}

.price-card li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-grid,
.cms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-card,
.cms-feature {
  min-height: 260px;
  padding: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-card h2,
.cms-feature h2 {
  margin-top: 16px;
  font-size: clamp(24px, 3vw, 34px);
}

.blog-card p,
.cms-feature p {
  color: var(--muted);
}

.blog-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 900;
}

.post-body {
  margin-top: 14px;
  color: #dfe7f4;
}

.admin-login-screen {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: clamp(42px, 8vw, 96px) 16px;
}

.admin-login-screen .quote-form {
  width: min(460px, 100%);
}

.admin-login-screen h1 {
  font-size: clamp(36px, 6vw, 58px);
}

.admin-login-screen .lead {
  margin-top: 8px;
  font-size: 16px;
}

.cms-admin-shell {
  padding-top: clamp(42px, 6vw, 74px);
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(97,232,214,.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(97,232,214,.12), rgba(142,124,255,.12)),
    rgba(255,255,255,.04);
}

.admin-toolbar h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.admin-toolbar .lead {
  margin-top: 10px;
  font-size: 16px;
}

.admin-toolbar-actions,
.form-actions,
.admin-item-actions,
.list-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}

.admin-stats span,
.admin-stats b {
  display: block;
}

.admin-stats span {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1;
}

.admin-stats b {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.cms-admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 18px;
  align-items: start;
}

.admin-editor,
.admin-side .contact-card {
  border-radius: 20px;
}

.admin-side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 110px;
}

.form-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 8px;
}

.form-header h2,
.admin-side h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.form-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

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

.cms-admin textarea {
  min-height: 132px;
}

.cms-admin textarea[name="body"] {
  min-height: 240px;
}

.btn.compact {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 13px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status[data-type="success"] { color: var(--accent); }
.form-status[data-type="error"] { color: #ff91a7; }
.form-status[data-type="info"] { color: #b8c6ff; }

.admin-help ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.seo-preview-card h2 {
  overflow-wrap: anywhere;
}

.seo-preview-card p {
  overflow-wrap: anywhere;
  color: var(--accent);
}

.seo-preview-card small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

.seo-checks {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.seo-checks li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.seo-checks span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.seo-checks li.is-good {
  color: #e9fff9;
}

.seo-checks li.is-good span,
.status-pill.is-good {
  background: var(--accent);
}

.list-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
}

.admin-item b,
.admin-item span {
  display: block;
}

.admin-item b {
  overflow-wrap: anywhere;
}

.admin-item span {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  min-height: 28px;
  display: inline-flex !important;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff !important;
  background: rgba(255,255,255,.14);
  font-size: 12px !important;
  font-weight: 900;
  text-transform: uppercase;
}

.process-card h2 {
  margin-top: 24px;
  font-size: clamp(24px, 3vw, 34px);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 78px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(97,232,214,.24);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(97,232,214,.16), rgba(142,124,255,.13)),
    rgba(255,255,255,.035);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: #dce3ef;
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  color: #fff;
  background: rgba(255,255,255,.06);
  font: inherit;
}

.quote-form select {
  appearance: none;
  min-height: 56px;
  padding-right: 48px;
  cursor: pointer;
}

.select-shell {
  position: relative;
  display: block;
}

.select-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.package-field {
  gap: 10px;
}

.package-summary {
  display: block;
  min-height: 24px;
  padding: 10px 12px;
  border: 1px solid rgba(97,232,214,.22);
  border-radius: 12px;
  color: #d9fff8;
  background: rgba(97,232,214,.08);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.quote-form optgroup,
.quote-form option {
  color: #07101c;
  background: #fff;
}

.quote-form textarea {
  resize: vertical;
}

.contact-card {
  padding: 24px;
}

.contact-card h2 {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 42px);
}

.contact-card img {
  width: 100%;
  margin-top: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.whatsapp-float {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 80;
  width: 74px;
  height: 74px;
  display: block;
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: 0;
  font-weight: 950;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 28px rgba(18, 140, 74, .34));
  transition: transform .2s ease, filter .2s ease;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -2;
  border-radius: inherit;
  border: 2px solid rgba(255,255,255,.9);
  background:
    radial-gradient(circle at 40% 32%, rgba(255,255,255,.3), transparent 17px),
    linear-gradient(145deg, #29e56b 0%, #22c55e 56%, #128c4a 100%);
  box-shadow:
    0 0 0 10px rgba(37, 211, 102, .12),
    inset 0 1px 0 rgba(255,255,255,.32);
  animation: whatsappPulse 2.4s ease-out infinite;
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 34px;
  height: 34px;
  background: url("assets/icons/whatsapp.svg") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px) scale(1.04);
  filter: saturate(1.08) drop-shadow(0 22px 34px rgba(18, 140, 74, .46));
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(255,255,255,.92);
  outline-offset: 4px;
}

@keyframes whatsappPulse {
  0% {
    box-shadow:
      0 0 0 8px rgba(37, 211, 102, .16),
      inset 0 1px 0 rgba(255,255,255,.32);
  }
  70%,
  100% {
    box-shadow:
      0 0 0 18px rgba(37, 211, 102, 0),
      inset 0 1px 0 rgba(255,255,255,.32);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 1120px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 94px;
    right: 16px;
    left: 16px;
    display: grid;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(7,10,18,.95);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  body.nav-open .nav-links {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .hero-grid,
  .split,
  .cms-admin,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    max-width: 560px;
  }

  .package-strip,
  .service-links,
  .pricing-grid,
  .blog-grid,
  .cms-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    max-width: 520px;
  }

  .admin-side {
    position: static;
  }

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

  .form-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --wrap: min(100% - 24px, 1160px);
  }

  .topbar {
    min-height: 70px;
    border-radius: 16px;
  }

  .brand img {
    width: 118px;
    height: 52px;
  }

  .hero-grid {
    padding-top: 58px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-actions,
  .final-cta,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .panel-link {
    width: 100%;
  }

  .metric-row,
  .package-strip,
  .service-links,
  .pricing-grid,
  .blog-grid,
  .cms-grid,
  .process-grid,
  .benefit-grid,
  .admin-stats,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .form-header,
  .admin-item {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-toolbar-actions .btn,
  .form-actions .btn,
  .admin-item-actions .btn {
    width: 100%;
  }

  .price-card ul {
    min-height: 0;
  }

  .whatsapp-float {
    width: 68px;
    height: 68px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
