:root {
  --forest: #122621;
  --ivory: #fff3e2;
  --ivory-soft: #fff3e2;
  --ivory-muted: rgba(255, 243, 226, 0.66);
  --ivory-faint: rgba(255, 243, 226, 0.10);
  --ivory-line: rgba(255, 243, 226, 0.14);
  --shadow: 0 18px 54px rgba(18, 38, 33, 0.28);
  --radius: 18px;
  --bg-parallax-y: 0px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--forest);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  font-family: "Frutiger LT", Frutiger, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Kufi Arabic", "Noto Sans Arabic", Arial, sans-serif;
  text-align: center;
  background: var(--forest);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -180px 0;
  pointer-events: none;
  background-image: url("./assets/watar-bg-desktop.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(0, calc(var(--bg-parallax-y) * -1), 0);
  will-change: transform;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(18, 38, 33, 0.58) 0%,
    rgba(18, 38, 33, 0.68) 52%,
    rgba(18, 38, 33, 0.78) 100%
  );
  z-index: 1;
}

button,
a { font: inherit; }

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

.page-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 22px 56px;
  position: relative;
  z-index: 2;
}

.language-switch {
  position: relative;
  unicode-bidi: isolate;
  direction: ltr;
  flex-direction: row;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--ivory-line);
  border-radius: 999px;
  background: rgba(18, 38, 33, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ivory-muted);
}

.language-switch .lang-btn[data-lang="en"] { order: 1; }
.language-switch span { order: 2; }
.language-switch .lang-btn[data-lang="ar"] { order: 3; }

.lang-btn {
  border: 0;
  padding: 0;
  color: var(--ivory-muted);
  background: transparent;
  cursor: pointer;
  transition: color 220ms ease, opacity 220ms ease;
}

.lang-btn:hover,
.lang-btn.active { color: var(--ivory); }

.hero {
  --logo-display-width: min(500px, 76vw);
  --slogan-align-offset: 0px;
  min-height: min(60vh, 620px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px 0 36px;
}

.brand-logo {
  width: var(--logo-display-width);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 52px rgba(0,0,0,.16));
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(.99);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hero {
  --hero-progress: 0;
  --hero-opacity: 1;
}

.hero .brand-logo,
.hero .slogan {
  will-change: transform, opacity;
}

.hero.scrolled .brand-logo,
.hero.scrolled .slogan {
  opacity: var(--hero-opacity);
}

.hero.scrolled .brand-logo {
  transform: translate3d(0, calc(-64px * var(--hero-progress)), 0);
}

.hero.scrolled .slogan {
  transform: translate3d(var(--slogan-align-offset), calc(-64px * var(--hero-progress)), 0);
}


.brand-name {
  margin: 18px auto 0;
  color: var(--ivory-muted);
  font-size: clamp(.92rem, 1.6vw, 1.08rem);
  font-weight: 650;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(8px);
  animation: riseIn 760ms cubic-bezier(.22,.8,.22,1) forwards 0.38s;
}

.slogan {
  margin: clamp(-92px, -7vw, -56px) auto 0;
  max-width: 900px;
  font-size: clamp(1.55rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--ivory-soft);
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(var(--slogan-align-offset), 10px, 0);
}

@keyframes logoRiseIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero.intro-start .brand-logo {
  animation: logoRiseIn 1200ms cubic-bezier(.22,.8,.22,1) forwards 0.12s;
}

.hero.intro-start .slogan {
  animation: sloganRiseIn 1200ms cubic-bezier(.22,.8,.22,1) forwards 0.12s;
}

@keyframes sloganRiseIn {
  to { opacity: 1; transform: translate3d(var(--slogan-align-offset), 0, 0); }
}

.hero.intro-complete .brand-logo,
.hero.intro-complete .slogan {
  animation: none;
  opacity: 1;
}

.hero.intro-complete .brand-logo {
  transform: translate3d(0, 0, 0);
}

.hero.intro-complete .slogan {
  transform: translate3d(var(--slogan-align-offset), 0, 0);
}

.hero.intro-complete.scrolled .brand-logo,
.hero.intro-complete.scrolled .slogan {
  opacity: var(--hero-opacity);
}

.hero.intro-complete.scrolled .brand-logo {
  transform: translate3d(0, calc(-64px * var(--hero-progress)), 0);
}

.hero.intro-complete.scrolled .slogan {
  transform: translate3d(var(--slogan-align-offset), calc(-64px * var(--hero-progress)), 0);
}

.content-card {
  border: 1px solid var(--ivory-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 38, 33, 0.34), rgba(18, 38, 33, 0.24));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.content-card {
  padding: clamp(32px, 5vw, 54px) clamp(22px, 6vw, 68px);
  margin: 22px auto;
}

h1,
h2,
h3,
p { margin: 0; }

h1,
h2,
h3 {
  color: var(--ivory-soft);
  font-weight: 700;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(1.7rem, 3.8vw, 2.55rem); }
h2 { font-size: clamp(1.14rem, 2.2vw, 1.45rem); }

.services-list {
  margin: 30px auto 0;
  display: grid;
  gap: 24px;
  max-width: 660px;
}

.service-item h3 {
  font-size: clamp(1.08rem, 2.3vw, 1.42rem);
  line-height: 1.55;
}

.service-item p {
  margin-top: 4px;
  color: var(--ivory-muted);
  font-size: clamp(.98rem, 1.9vw, 1.18rem);
  line-height: 1.75;
}

.contact-section {
  padding-top: clamp(30px, 5vw, 48px);
  padding-bottom: clamp(30px, 5vw, 48px);
}

.phone-link {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  margin-top: 16px;
  font-size: clamp(1.25rem, 3.2vw, 2.05rem);
  font-weight: 750;
  letter-spacing: 0.025em;
  color: var(--ivory-soft);
  transition: transform 220ms ease, opacity 220ms ease;
}

.phone-link:hover { transform: translateY(-2px); opacity: .86; }

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 22px auto;
}

.qr-card {
  margin: 0;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
}

.qr-frame {
  display: block;
  cursor: default;
}

.qr-card img {
  width: min(260px, 60vw);
  aspect-ratio: 1;
  display: block;
  border-radius: 18px;
  padding: 10px;
  background: var(--ivory-soft);
}

.location {
  margin-top: -6px;
  color: var(--ivory-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.footer-contact {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.footer-contact > a {
  color: var(--ivory-muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  transition: color 220ms ease;
}

.footer-contact > a:hover { color: var(--ivory-soft); }

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.social-links a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ivory-line);
  border-radius: 999px;
  color: var(--ivory-muted);
  background: rgba(18, 38, 33, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(18, 38, 33, 0.36);
  color: var(--ivory-soft);
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.site-footer {
  margin: 34px 0 0;
  color: rgba(255, 243, 226, 0.56);
  font-size: 0.94rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.section-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  will-change: opacity, transform;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-reveal.exiting {
  opacity: 0;
  transform: translateY(-18px);
}

.section-reveal:not(.hero) {
  opacity: var(--section-opacity, 0);
  transform: translate3d(0, var(--section-y, 18px), 0);
}

html[lang="en"] body {
  font-family: "Frutiger LT", Frutiger, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
}

html[lang="en"] .services-list {
  line-height: 1.62;
}

html[lang="en"] .slogan {
  font-size: clamp(1.55rem, 3.3vw, 2.55rem);
}

.mobile-action {
  display: none;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  place-items: center;
  color: var(--forest);
  background: var(--ivory-soft);
  box-shadow: 0 16px 44px rgba(18, 38, 33, 0.22);
}

.mobile-action svg {
  width: 72px;
  height: 72px;
  fill: currentColor;
}

.whatsapp-action > .whatsapp-mark {
  width: 52%;
  height: 52%;
  color: #122621;
  fill: #122621;
}

.qr-card {
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .qr-card { cursor: default; }
}

@media (max-width: 720px) {
  body::before {
    background-image: url("./assets/watar-bg-mobile.webp");
    background-position: center center;
    background-size: cover;
    transform: none;
    will-change: auto;
  }
  .page-shell { padding-inline: 16px; }
  .hero {
    --logo-display-width: min(420px, 86vw);
    min-height: 48vh;
    padding: 46px 0 28px;
  }
  .brand-logo { width: var(--logo-display-width); }
  .slogan {
    white-space: nowrap;
    font-size: clamp(1.25rem, 6.2vw, 2.3rem);
    max-width: 100%;
  }
  .content-card { margin: 16px auto; border-radius: 16px; }
  .qr-grid { grid-template-columns: 1fr; gap: 16px; margin: 16px auto; }
  .qr-card { margin: 0; border-radius: 16px; cursor: pointer; }
  .qr-frame { display: none; }
  .mobile-action { display: grid; }
  .qr-card img { width: min(245px, 68vw); }
}

@media (orientation: portrait) and (max-width: 820px) {
  body::before {
    background-image: url("./assets/watar-bg-mobile.webp");
    background-position: center center;
    background-size: cover;
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 420px) {
  .brand-name { font-size: .86rem; }
  .services-list { gap: 20px; }
  .phone-link { letter-spacing: .01em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  body::before {
    transform: translate3d(0, 0, 0);
    will-change: auto;
  }
  .hero.intro-start .brand-logo,
  .hero.intro-complete .brand-logo {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  .hero.intro-start .slogan,
  .hero.intro-complete .slogan {
    opacity: 1;
    transform: translate3d(var(--slogan-align-offset), 0, 0);
  }
}
