/* Garage Go — Ads landing (RTL-first, light/dark, mobile-first) */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-ar: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-en: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI",
    sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0f14;
  --surface: #151a22;
  --surface-elevated: #1a222d;
  --text: #f2f4f8;
  --muted: #9aa3b2;
  --accent: #22c55e;
  --whatsapp: #25d366;
  --border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --tap-accent: rgba(34, 197, 94, 0.25);
  --toggle-active-bg: rgba(34, 197, 94, 0.15);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-elevated: #e2e8f0;
  --text: #0f1419;
  --muted: #5a6578;
  --accent: #0066e6;
  --whatsapp: #25d366;
  --border: rgba(15, 20, 25, 0.12);
  --card-shadow: 0 8px 32px rgba(15, 20, 25, 0.1);
  --tap-accent: rgba(0, 102, 230, 0.22);
  --toggle-active-bg: rgba(0, 102, 230, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

[dir="ltr"] body,
body.is-en {
  font-family: var(--font-en);
}

a {
  color: var(--accent);
  text-decoration: none;
  -webkit-tap-highlight-color: var(--tap-accent);
}

a:active {
  opacity: 0.92;
}

.skip-link {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  clip: rect(1px, 1px, 1px, 1px); /* احتياط لمتصفحات قديمة */
  white-space: nowrap !important;
  border: 0 !important;
  visibility: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  visibility: visible;
  clip-path: none !important;
  clip: auto;
  position: fixed;
  z-index: 99;
  top: var(--safe-top);
  inset-inline-start: 0.5rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0.5rem;
  overflow: visible;
}

.wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 2.25rem;
}

header.top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 1.5rem;
  direction: ltr;
  width: 100%;
}

.header-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.header-logo-link {
  line-height: 0;
  flex-shrink: 0;
  align-self: flex-start;
}

.header-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-start;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav {
  width: 100%;
  margin-top: 1.1rem;
  padding: 1rem clamp(0.15rem, 2.5vw, 1.75rem) 0;
  border-top: 1px solid var(--border);
  direction: rtl;
}

body.is-en .site-nav {
  direction: ltr;
}

.site-nav ul.site-nav-list {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  padding-inline-start: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem clamp(0.9rem, 3.2vw, 2.25rem);
  row-gap: 0.65rem;
}

.site-nav ul.site-nav-list > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.2rem;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--accent);
}

.site-nav-link[aria-current="page"] {
  color: var(--accent);
}

.brand-text {
  direction: rtl;
  text-align: right;
  width: auto;
  max-width: 100%;
  align-self: flex-end;
  flex-shrink: 0;
}

body.is-en .brand-text {
  direction: ltr;
  text-align: left;
  align-self: flex-end;
}

.brand-logo {
  height: 3.5rem;
  width: auto;
  max-width: min(14rem, 58vw);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  align-self: flex-start;
}

.brand-text .brand-name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.15rem;
}

.lang-toggle,
.theme-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-toggle button,
.theme-toggle .theme-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle .theme-btn {
  padding: 0.5rem 0.7rem;
}

.lang-toggle button[aria-pressed="true"],
.theme-toggle .theme-btn[aria-pressed="true"] {
  background: var(--toggle-active-bg);
  color: var(--accent);
}

.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.content-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 1.35rem 1.2rem 1.45rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .content-panel {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.section-heading {
  margin: 0 0 0.75rem;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

[dir="rtl"] .section-heading,
[dir="rtl"] .section-lead,
[dir="rtl"] .section-note,
[dir="rtl"] .muted-note {
  text-align: right;
}

[dir="ltr"] .section-heading,
[dir="ltr"] .section-lead,
[dir="ltr"] .section-note,
[dir="ltr"] .muted-note {
  text-align: left;
}

.section-lead {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.62;
  color: var(--muted);
}

.section-note {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--muted);
}

.section-note.muted-note {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.pricing-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
}

.pricing-compare-list > li {
  margin: 0;
  padding: 1rem 1.08rem;
  border: 1px solid var(--border);
  border-radius: 0.92rem;
  background: linear-gradient(
    155deg,
    var(--surface-elevated) 0%,
    var(--surface) 100%
  );
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.pricing-compare-list strong {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 1.025rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.015em;
}

[dir="rtl"] .pricing-compare-list > li {
  text-align: right;
}

[dir="ltr"] .pricing-compare-list > li {
  text-align: left;
}

.service-cards {
  display: grid;
  gap: 0.95rem;
}

.service-card {
  background: linear-gradient(
    155deg,
    var(--surface-elevated) 0%,
    var(--surface) 100%
  );
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
}

a.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.service-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: var(--card-shadow);
}

a.service-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a.service-card:active {
  opacity: 0.97;
}

.service-card-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  box-sizing: border-box;
  background: rgba(37, 211, 102, 0.06);
  border-bottom: 1px solid var(--border);
}

.service-cards .service-card-thumb {
  aspect-ratio: 4 / 3;
  min-height: 13rem;
  padding: 0.5rem 0.65rem;
}

[data-theme="light"] .service-card-thumb {
  background: linear-gradient(
    155deg,
    #f8fafc 0%,
    #eff3f9 52%,
    #e8f1fb 100%
  );
  border-bottom-color: rgba(15, 20, 25, 0.08);
}

.service-card-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0;
}

.service-card-title {
  margin: 0.95rem 1rem 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
}

[dir="rtl"] .service-card-title,
[dir="rtl"] .service-card-text {
  text-align: right;
}

[dir="ltr"] .service-card-title,
[dir="ltr"] .service-card-text {
  text-align: left;
}

.service-card-text {
  margin: 0;
  padding: 0 1rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--muted);
}

.service-detail-nav {
  font-size: 0.94rem;
  font-weight: 600;
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.service-detail-nav a {
  color: var(--accent);
}

.service-detail-nav a:hover,
.service-detail-nav a:focus-visible {
  text-decoration: underline;
}

.service-detail-hero {
  display: grid;
  gap: 1.35rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.service-detail-hero > * {
  min-width: 0;
  min-height: 0;
}

.service-detail-hero > .service-detail-intro {
  min-width: 0;
}

.service-detail-hero .service-card-thumb {
  position: relative;
  display: block;
  width: 100%;
  align-self: stretch;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: min(40vh, 21rem);
  padding: 0;
  margin: 0;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(37, 211, 102, 0.06);
  box-sizing: border-box;
}

.service-detail-hero .service-card-thumb img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  max-width: calc(100% - 1.6rem);
  max-height: calc(100% - 1.3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0;
}

@media (max-width: 639px) {
  .service-detail-hero .service-card-thumb {
    min-height: 10rem;
    max-height: min(56vw, 22rem);
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 640px) {
  .service-detail-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
    gap: clamp(1.35rem, 4vw, 2.25rem);
    align-items: start;
  }

  .service-detail-hero .service-card-thumb {
    max-height: min(36vh, 20rem);
  }
}

.service-detail-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.service-detail-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.service-detail-body h2 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.service-detail-body p {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.service-detail-body p:last-child {
  margin-bottom: 0;
}

.service-detail-cta {
  margin-top: 1.5rem;
}

.hero-card {
  background: linear-gradient(
    145deg,
    var(--surface) 0%,
    var(--surface-elevated) 100%
  );
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem 1.35rem 1.65rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
}

.hero-h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
}

[dir="rtl"] .hero-h1 {
  text-align: right;
}

[dir="ltr"] .hero-h1 {
  text-align: left;
}

.hero-h1-primary {
  display: block;
  margin: 0 0 0.65rem;
  font-weight: 800;
  color: var(--text);
}

.hero-h1-sub {
  display: block;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--muted);
}

.hero-h1-accent {
  color: var(--whatsapp);
}

[dir="rtl"] .hero-h1-sub {
  text-align: right;
}

[dir="ltr"] .hero-h1-sub {
  text-align: left;
}

.hero-card p.lead {
  margin: 0 0 1.35rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
}

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  font-weight: 800;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 58px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-whatsapp {
  background: linear-gradient(180deg, #39f07e 0%, var(--whatsapp) 42%, #15803d 100%);
  color: #fff;
  box-shadow: 0 12px 48px rgba(37, 211, 102, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.16) inset;
  padding: 1.62rem 1.4rem;
  font-size: 1.6rem;
  min-height: 88px;
  line-height: 1.12;
  text-decoration: none;
  border-radius: 1.2rem;
  letter-spacing: -0.018em;
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.btn-whatsapp svg {
  width: 2.72rem;
  height: 2.72rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.btn-whatsapp:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.cta-tagline {
  margin: 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.45;
}

[data-theme="light"] .cta-tagline {
  color: var(--accent);
}

.company-blurb {
  margin: 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}

.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.75rem;
}

.price-table {
  width: 100%;
  min-width: min(17.5rem, 100%);
  border-collapse: collapse;
  font-size: 0.95rem;
}

.price-table thead {
  background: rgba(37, 211, 102, 0.12);
}

[data-theme="light"] .price-table thead {
  background: rgba(0, 102, 230, 0.08);
}

.price-table th,
.price-table td {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

.price-table th {
  font-weight: 800;
  color: var(--text);
}

.price-table tbody td:last-child {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

[dir="rtl"] .price-table th,
[dir="rtl"] .price-table td {
  text-align: right;
}

[dir="ltr"] .price-table th,
[dir="ltr"] .price-table td {
  text-align: left;
}

.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.why-item {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  padding: 1rem 1rem 1.05rem;
}

.why-icon {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(37, 211, 102, 0.14);
  color: var(--whatsapp);
  margin-bottom: 0.65rem;
}

[data-theme="light"] .why-icon {
  background: rgba(0, 102, 230, 0.12);
  color: var(--accent);
}

.why-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.why-title {
  margin: 0 0 0.4rem;
  font-size: 1.03rem;
  font-weight: 800;
}

.why-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--muted);
}

[dir="rtl"] .why-title,
[dir="rtl"] .why-text {
  text-align: right;
}

[dir="ltr"] .why-title,
[dir="ltr"] .why-text {
  text-align: left;
}

.reviews-wa-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.2rem;
  padding-inline: 0.5rem;
}

.reviews-wa-cta-wrap .btn-whatsapp {
  width: auto;
  max-width: none;
  align-self: center;
}

.reviews-wa-tagline {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.reviews-grid {
  display: grid;
  gap: 0.9rem;
}

.review-card {
  margin: 0;
  background: linear-gradient(
    155deg,
    var(--surface-elevated) 0%,
    var(--surface) 100%
  );
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.05rem 1.05rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
}

.review-avatar {
  grid-row: span 3;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--whatsapp), #059669);
  flex-shrink: 0;
}

.review-quote {
  margin: 0;
  grid-column: 2;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text);
}

.review-meta {
  grid-column: 2;
  margin: 0;
  font-size: 0.845rem;
  font-weight: 700;
  color: var(--muted);
}

[dir="rtl"] .review-quote,
[dir="rtl"] .review-meta {
  text-align: right;
}

[dir="ltr"] .review-quote,
[dir="ltr"] .review-meta {
  text-align: left;
}

.footer-company-name {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.footer-phone-line {
  display: block;
}

.footer-address-line {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.898rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 22rem;
  margin-inline-start: auto;
  margin-inline-end: auto;
}

.site-footer {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.footer-links-row a {
  color: var(--muted);
}

.footer-links-row a:hover,
.footer-links-row a:focus-visible {
  color: var(--accent);
}

.footer-social {
  margin: 0 0 1rem;
}

.footer-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: var(--surface);
}

.footer-social-icon {
  width: 1.28rem;
  height: 1.28rem;
  flex-shrink: 0;
}

.footer-inline-links + .footer-social {
  margin-top: 0.85rem;
}

.footer-sep {
  color: var(--muted);
  user-select: none;
}

.footer-contact {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1rem;
}

.footer-contact a {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.powered-by {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.powered-by a {
  color: var(--muted);
  font-weight: 600;
}

.powered-by a:hover,
.powered-by a:focus-visible {
  color: var(--accent);
}

.footer-app-row {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-app-label {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.footer-app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  justify-content: center;
  align-items: center;
}

.footer-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.5rem 1rem;
  font-size: 0.878rem;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-elevated);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-app-link:hover,
.footer-app-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

[dir="rtl"] .footer-app-link {
  text-align: center;
}

.locale-hidden {
  display: none !important;
}

[dir="ltr"] .btn {
  text-align: left;
}

[dir="rtl"] .btn {
  text-align: right;
}

@media (min-width: 480px) {
  body {
    font-size: 1.125rem;
  }

  .hero-h1 {
    font-size: 1.5rem;
  }

  .hero-card p.lead {
    font-size: 1.3rem;
  }

  .hero-h1-sub {
    font-size: 1.1rem;
  }

  .btn-whatsapp {
    padding: 1.75rem 1.7rem;
    font-size: 1.68rem;
    min-height: 96px;
    border-radius: 1.25rem;
  }

  .btn-whatsapp svg {
    width: 2.82rem;
    height: 2.82rem;
  }

  .cta-tagline {
    font-size: 1.22rem;
  }

  .company-blurb {
    font-size: 1.08rem;
  }
}

@media (max-width: 579px) {
  .service-cards .service-card-thumb {
    min-height: 14rem;
    aspect-ratio: 4 / 3;
    padding: 0.65rem 0.85rem;
  }
}

@media (min-width: 580px) {
  .service-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }

  /* شبكة الأعمدة الثلاثة — مساحة أطول للصورة مع object-fit: contain */
  .service-cards .service-card-thumb {
    min-height: 11rem;
    aspect-ratio: 3 / 4;
    padding: 0.4rem 0.35rem;
    max-height: none;
  }

  .service-card-title {
    font-size: 1rem;
  }

  .service-card-text {
    font-size: 0.895rem;
    padding-bottom: 0.95rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

@media (min-width: 640px) {
  .wrap {
    max-width: 40rem;
  }
}

@media (min-width: 768px) {
  .wrap {
    max-width: 48rem;
    padding-inline: clamp(1.25rem, 4vw, 2rem);
  }

  .content-panel {
    padding: 1.5rem 1.45rem 1.55rem;
  }

  .section-heading {
    font-size: 1.4rem;
  }
}

@media (min-width: 900px) {
  .wrap {
    max-width: 56rem;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .why-item {
    padding: 1.1rem;
  }

  .price-table {
    font-size: 1rem;
  }

  .price-table th,
  .price-table td {
    padding: 0.85rem 1rem;
  }
}

@media (min-width: 980px) {
  .hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 22rem);
    grid-template-rows: auto auto auto;
    column-gap: clamp(1.5rem, 3vw, 2.75rem);
    row-gap: 0.85rem;
    align-items: start;
    padding: 1.75rem 2rem 2rem;
  }

  .hero-h1 {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0.5rem;
  }

  .hero-card > p.lead {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
  }

  .hero-card .cta-block {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-bottom: 0;
  }

  .hero-card > .company-blurb {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0.5rem;
  }
}

@media (min-width: 1100px) {
  .wrap {
    max-width: 62rem;
  }

  .service-cards {
    gap: 1.15rem;
  }

  .service-cards .service-card-thumb {
    min-height: 12rem;
    aspect-ratio: 4 / 3;
    padding: 0.55rem 0.65rem;
    max-height: none;
  }

  .service-card-title {
    font-size: 1.12rem;
  }

  .service-card-text {
    font-size: 0.98rem;
    padding-bottom: 1.15rem;
  }
}

@media (min-width: 1280px) {
  .wrap {
    max-width: 75rem;
    padding-inline: clamp(2rem, 5vw, 3.5rem);
    padding-block-start: 1.5rem;
    padding-block-end: 3rem;
  }

  header.top {
    margin-bottom: 2rem;
  }

  .content-panel {
    padding: 1.65rem 1.85rem 1.75rem;
    margin-bottom: 1.35rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .hero-card {
    padding: 2rem 2.35rem 2.15rem;
  }

  .hero-h1 {
    font-size: 1.65rem;
  }
}

@media (max-width: 420px) {
  header.top {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .brand-logo {
    height: 2.85rem;
    max-width: min(11.5rem, 46vw);
  }

  .brand-text .brand-name {
    font-size: 1.25rem;
  }

  .brand-text span {
    font-size: 0.78rem;
  }

  .header-tools {
    gap: 0.35rem;
  }

  .lang-toggle button,
  .theme-toggle .theme-btn {
    padding: 0.42rem 0.6rem;
    min-height: 46px;
    min-width: 46px;
    font-size: 0.8125rem;
  }
}

/* Privacy / legal short page (about.html etc.) */
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.15rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.legal-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--text);
}

.legal-card.about-content h2 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.08rem;
}

.legal-card.about-content h2:first-of-type {
  margin-top: 1.1rem;
}

.legal-card.about-content h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.legal-card.about-content > p {
  margin: 0 0 0.95rem;
}

.legal-card.about-content > p:last-child {
  margin-bottom: 0;
}

.legal-card p {
  margin: 0 0 0.85rem;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
