/* =============================================================================
   Home Page Styles — Madar Al-Mimar
   Overrides and additions to madar-tokens.css & madar-components.css
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. Hero — Home specific
   --------------------------------------------------------------------------- */

.home-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: var(--green-900); /* solid placeholder until video ready */
  overflow: hidden;
}

.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, #0f110f 0%, rgba(35,45,34,0.75) 50%, rgba(35,45,34,0.4) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: 110px var(--gutter) var(--space-12);
  max-width: 100%;
}

.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 200px);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--madar-white);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.orbit-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--madar-yellow);
  height: 1em;
  width: 1em;
}

.orbit-mark svg {
  width: 1em;
  height: 1em;
  display: block;
}

@keyframes orbitDot {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.home-hero__subtitle {
  font-family: var(--font-body-ar);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: rgba(249,249,249,0.8);
  max-width: 600px;
  margin: 0;
}

.home-hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.btn--ghost-light {
  color: var(--madar-white);
  border-color: var(--madar-white);
}
.btn--ghost-light:hover {
  background: var(--madar-white);
  color: var(--madar-green);
}

.btn--accent {
  background: var(--madar-yellow);
  color: var(--madar-green);
}
.btn--accent:hover {
  background: var(--yellow-600);
}

.home-hero__stats {
  position: relative;
  bottom: auto;
  inset-inline: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.15);
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  color: var(--madar-white);
}

.stat__lbl {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.stat__sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

.m-nav.is-scrolled {
  border-bottom-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}

/* Home transparent nav — fixed over hero */
.m-nav.is-home {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.m-nav.is-home .m-brand {
  color: var(--madar-white);
}
.m-nav.is-home .m-brand img {
  filter: brightness(0) invert(1);
}
.m-nav.is-home .m-nav-links a {
  color: rgba(255, 255, 255, 0.85);
}
.m-nav.is-home .m-nav-links a.active {
  color: var(--madar-white);
}
.m-nav.is-home .m-lang {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--madar-white);
}
.m-nav.is-home .m-lang:hover {
  background: var(--madar-white);
  color: var(--madar-green);
  border-color: var(--madar-white);
}
.m-nav.is-home .m-nav-toggle span {
  background: var(--madar-white);
}
.m-nav.is-home.is-home-scrolled {
  background: rgba(15, 17, 15, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------------------------
   2. About Teaser
   --------------------------------------------------------------------------- */

.m-about-teaser {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: var(--madar-white);
}

.m-about-teaser__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
}

.m-about-teaser__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.m-about-teaser__text .m-section-title {
  font-size: clamp(32px, 4vw, 56px);
}

.m-about-teaser__orbit {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.about-orbit {
  --orbit-size: min(280px, 62vw);
  --orbit-r: calc(var(--orbit-size) / 2 - 8px);
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  display: grid;
  place-items: center;
}

.about-orbit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--green-200);
  animation: madarOrbit 30s linear infinite;
}

.about-orbit__dot {
  position: absolute;
  top: calc(50% - 5px);
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--madar-yellow);
  transform-origin: center;
}

.about-orbit__dot--1 { animation: dot1Orbit 20s linear infinite; }
.about-orbit__dot--2 { animation: dot2Orbit 25s linear infinite; }
.about-orbit__dot--3 { animation: dot3Orbit 18s linear infinite; }

.about-orbit__logo {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

@keyframes dot1Orbit {
  from { transform: rotate(0deg)   translateX(var(--orbit-r)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--orbit-r)) rotate(-360deg); }
}
@keyframes dot2Orbit {
  from { transform: rotate(90deg)  translateX(var(--orbit-r)) rotate(-90deg); }
  to   { transform: rotate(450deg) translateX(var(--orbit-r)) rotate(-450deg); }
}
@keyframes dot3Orbit {
  from { transform: rotate(180deg) translateX(var(--orbit-r)) rotate(-180deg); }
  to   { transform: rotate(540deg) translateX(var(--orbit-r)) rotate(-540deg); }
}

/* ---------------------------------------------------------------------------
   3. Services — large panel + pill cards
   --------------------------------------------------------------------------- */

.m-services {
  overflow: hidden;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-8) var(--gutter) var(--space-16);
}

.m-services__track {
  display: block;
  height: auto;
  min-height: auto;
}

.service-layout {
  display: flex;
  gap: var(--space-4);
  height: clamp(420px, 55vh, 560px);
}

/* Large active panel */
.service-panel {
  position: relative;
  flex: 0 0 58%;
  border-radius: var(--r-xl);
  overflow: hidden;
}

.service-panel__media {
  position: absolute;
  inset: 0;
}

.service-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
}

.service-panel__img.is-active {
  opacity: 1;
  transform: scale(1);
}

.service-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,17,15,0.92) 0%, rgba(15,17,15,0.35) 50%, rgba(15,17,15,0.1) 100%);
  z-index: 1;
}

.service-panel__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: var(--space-8);
}

.service-panel__text {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  left: var(--space-8);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

[dir="rtl"] .service-panel__text {
  text-align: right;
}

.service-panel__text.is-active {
  opacity: 1;
  transform: translateY(0);
}

.service-panel__text h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  color: var(--madar-white);
}

.service-panel__text p {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin-bottom: var(--space-4);
  max-width: 440px;
}

/* Pill cards */
.service-pills {
  flex: 1 1 auto;
  display: flex;
  gap: var(--space-3);
}

.service-pill {
  position: relative;
  flex: 1 1 0;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50px;
  overflow: hidden;
  outline: none;
  opacity: 0.55;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.service-pill:hover,
.service-pill.is-active {
  opacity: 1;
  transform: scale(1.02);
}

.service-pill.is-active {
  box-shadow: 0 0 0 2px var(--madar-yellow);
}

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

.service-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,17,15,0.55) 0%, rgba(15,17,15,0.15) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.service-pill__icon {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(249,249,249,0.92);
  color: var(--madar-green);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: var(--shadow-2);
}

/* ---------------------------------------------------------------------------
   4. Process — Home vertical timeline override
   --------------------------------------------------------------------------- */

.home-process {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}

.home-process__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: stretch;
}

.home-process__text {
  max-width: 640px;
}

.home-process .m-section-head {
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-8);
}

.home-process__title {
  white-space: nowrap;
  font-size: clamp(28px, 4vw, 56px);
}

.home-process__list {
  margin-inline: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Visual column */
.home-process__visual {
  display: flex;
  flex-direction: column;
}

.home-process__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 480px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--madar-green);
}

.home-process__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.home-process__img.is-active {
  opacity: 1;
  transform: scale(1);
}

.home-process__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15,17,15,0.55) 0%,
    rgba(15,17,15,0.25) 60%,
    rgba(15,17,15,0.55) 100%
  );
  z-index: 1;
}

.home-process__orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.home-process__ring {
  position: absolute;
  border: 1px solid rgba(214, 199, 158, 0.35);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.home-process__ring.r1 { width: 30%; aspect-ratio: 1; animation: madarOrbit 24s linear infinite; }
.home-process__ring.r2 { width: 55%; aspect-ratio: 1; animation: madarSlow 36s linear infinite; }
.home-process__ring.r3 { width: 82%; aspect-ratio: 1; animation: madarOrbit 60s linear infinite; }

.home-process__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--madar-yellow);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(214, 199, 158, 0.15);
}

.home-process__counter {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--madar-yellow);
  letter-spacing: 0.1em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

[dir="rtl"] .home-process__counter { right: auto; left: 28px; }

.home-process__counter-current {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  color: var(--madar-white);
}

.home-process__counter-sep {
  opacity: 0.45;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-8) 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), padding var(--dur-fast) var(--ease-out);
  text-align: right;
}

.process-step:last-child {
  border-bottom: none;
}

.process-step:hover,
.process-step.is-active {
  background: rgba(255, 255, 255, 0.04);
  padding-inline: var(--space-4);
  border-radius: var(--r-md);
}

.process-step__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1;
  color: var(--madar-yellow);
  opacity: 0.55;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.process-step:hover .process-step__num,
.process-step.is-active .process-step__num {
  opacity: 1;
}

.process-step__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.process-step__body strong {
  font-family: var(--font-body-ar);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--madar-white);
}

.process-step__body p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   5. Turnkey Banner
   --------------------------------------------------------------------------- */

.m-turnkey-banner {
  padding: 100px var(--gutter);
  background: var(--madar-black);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.m-turnkey-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1600&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.m-turnkey-banner__line,
.m-turnkey-banner h2,
.m-turnkey-banner p,
.m-turnkey-banner .btn {
  position: relative;
  z-index: 1;
}

.m-turnkey-banner__line {
  width: 60px;
  height: 2px;
  background: var(--madar-yellow);
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.m-turnkey-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--madar-white);
  margin-bottom: var(--space-4);
}

.m-turnkey-banner p {
  font-size: var(--fs-lead);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-6);
}

/* ---------------------------------------------------------------------------
   6. Why Madar
   --------------------------------------------------------------------------- */

.m-why {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: var(--bg-alt);
}

.m-why .m-section-head {
  text-align: center;
  margin-inline: auto;
}

.m-why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: var(--container);
  margin-inline: auto;
}

.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.principle-card h3 {
  font-family: var(--font-body-ar);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--madar-green);
  margin: 0;
}

.principle-card p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   7. Featured Project
   --------------------------------------------------------------------------- */

.m-featured-project {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.m-featured-project__bg {
  position: absolute;
  inset: 0;
  background: url('../images/featured-project.jpg') center/cover no-repeat fixed;
  z-index: 0;
}

.m-featured-project__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10, 13, 10, 0.92) 0%,
    rgba(10, 13, 10, 0.55) 45%,
    rgba(10, 13, 10, 0.15) 100%
  );
}

.m-featured-project__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--madar-white);
  max-width: 680px;
  padding: var(--gutter);
}

.m-featured-project__content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--madar-white);
  margin-bottom: var(--space-4);
}

.m-featured-project__content p {
  font-size: var(--fs-lead);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-6);
}

/* ---------------------------------------------------------------------------
   8. Testimonials
   --------------------------------------------------------------------------- */

.m-testimonials {
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: var(--madar-white);
  text-align: center;
}

.m-testimonials .m-section-head {
  margin-inline: auto;
  max-width: 640px;
}

.testimonials-swiper {
  padding-bottom: var(--space-10);
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}

.testimonial-card__quote {
  font-family: var(--font-body-ar);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.8;
  font-style: normal;
  color: var(--fg);
  margin: 0;
}

.testimonial-card__divider {
  width: 40px;
  height: 2px;
  background: var(--madar-yellow);
}

.testimonial-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: auto;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--madar-green);
  display: grid;
  place-items: center;
  font-family: var(--font-body-ar);
  font-size: var(--fs-small);
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-card__meta div strong {
  display: block;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--fg-strong);
}

.testimonial-card__meta div span {
  display: block;
  font-size: var(--fs-small);
  color: var(--fg-muted);
}

.testimonials-swiper .swiper-pagination-progressbar {
  background: var(--border-strong);
}
.testimonials-swiper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: var(--madar-green);
}

/* ---------------------------------------------------------------------------
   9. Final CTA
   --------------------------------------------------------------------------- */

.m-cta-final {
  padding: clamp(80px, 10vw, 120px) var(--gutter);
  background: var(--madar-green);
  text-align: center;
}

.m-cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--madar-white);
  margin-bottom: var(--space-3);
}

.m-cta-final p {
  font-size: var(--fs-lead);
  color: var(--madar-yellow);
  margin-bottom: var(--space-8);
}

.m-cta-final__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------------
   10. Utilities / Misc
   --------------------------------------------------------------------------- */

.m-link-arrow--light {
  color: var(--madar-white);
  border-bottom-color: var(--madar-white);
}

/* ---------------------------------------------------------------------------
   11. Mobile nav toggle & drawer
   --------------------------------------------------------------------------- */

.m-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.m-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--madar-green);
  border-radius: 1px;
  transition: transform var(--dur-fast) var(--ease-orbit), opacity var(--dur-fast) var(--ease-orbit);
}

.m-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.m-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.m-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.m-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(15, 17, 15, 0.45);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-orbit);
}

.m-nav-backdrop.is-visible {
  display: block;
  opacity: 1;
}

/* ---------------------------------------------------------------------------
   12. Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 900px) {
  /* Mobile nav drawer */
  .m-nav-toggle {
    display: flex;
  }

  .m-nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 80vw);
    background: var(--madar-white);
    z-index: 51;
    padding: calc(72px + var(--space-6)) var(--space-6) var(--space-6);
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-orbit);
    box-shadow: var(--shadow-3);
  }

  .m-nav-links.is-open {
    transform: translateX(0);
  }

  .m-nav-links a {
    padding: var(--space-4) 0;
    font-size: var(--fs-body);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
  }

  .m-nav-links a.active::after {
    display: none;
  }

  .m-nav-links a.active {
    color: var(--madar-green);
    background: var(--green-50);
    margin: 0 calc(-1 * var(--space-6));
    padding-inline: var(--space-6);
  }

  /* Hero */
  .home-hero__stats {
    position: relative;
    bottom: auto;
    margin-top: var(--space-8);
    padding: 0 var(--gutter);
  }

  .stat__sep { display: none; }

  /* About */
  .m-about-teaser__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Why */
  .m-why__grid {
    grid-template-columns: 1fr;
  }

  /* Featured project */
  .m-featured-project__bg {
    background-attachment: scroll;
  }

  /* Process */
  .home-process__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .home-process__text {
    max-width: 100%;
  }

  .home-process__visual {
    position: relative;
    top: auto;
    order: -1;
  }

  .home-process__media {
    min-height: 280px;
  }

  .home-process__list {
    gap: var(--space-4);
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: var(--space-6) 0;
  }

  .process-step__num {
    font-size: clamp(36px, 8vw, 56px);
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--space-6) var(--space-5);
  }

  /* Touch target fixes */
  .m-lang {
    width: 44px;
    height: 44px;
  }

  .m-cta-pill {
    padding: 15px 18px;
    font-size: 12px;
  }

  .m-footer-cols a {
    padding: 10px 0;
  }

  /* Final CTA */
  .m-cta-final__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-inline: auto;
  }

  .m-cta-final__actions .btn {
    width: 100%;
    padding: 16px 26px;
  }
}

@media (max-width: 768px) {
  /* Services */
  .service-layout {
    flex-direction: column;
    height: auto;
    gap: var(--space-4);
  }

  .service-panel {
    flex: none;
    height: 320px;
    width: 100%;
  }

  .service-pills {
    flex: none;
    height: 120px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .service-pills::-webkit-scrollbar {
    display: none;
  }

  .service-pill {
    flex: 0 0 72px;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .home-hero__title {
    font-size: clamp(32px, 10vw, 56px);
  }

  .home-hero__cta {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .home-hero__cta .btn {
    width: 100%;
    padding: 16px 26px;
  }

  .home-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    text-align: center;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
  }

  .stat {
    align-items: center;
  }

  .about-orbit {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 480px) {
  .home-hero__title {
    font-size: clamp(28px, 11vw, 44px);
  }

  .m-cta-pill {
    display: none;
  }

  .home-hero__subtitle {
    font-size: 15px;
  }



  .m-turnkey-banner h2 {
    font-size: clamp(22px, 6vw, 32px);
  }

  .m-turnkey-banner p {
    font-size: 15px;
  }

  .m-featured-project__content h2 {
    font-size: clamp(24px, 7vw, 36px);
  }

  .m-featured-project__content p {
    font-size: 15px;
  }

  .m-cta-final h2 {
    font-size: clamp(24px, 7vw, 40px);
  }

  .m-cta-final p {
    font-size: 16px;
  }
}
