﻿:root {
  --ink: #17140f;
  --brown: #563f32;
  --brown-deep: #13110c;
  --gold: #dba729;
  --gold-dark: #b78325;
  --paper: #fbfaf6;
  --white: #ffffff;
  --muted: #7a7068;
  --line: #e8ded4;
  --shadow: 0 18px 48px rgba(19, 17, 12, 0.14);
  --soft-shadow: 0 8px 26px rgba(19, 17, 12, 0.09);
  --radius: 8px;
  --container: 1120px;
  --font-ar: "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ar);
  line-height: 1.75;
  overflow-x: hidden;
}

html[dir="ltr"] body {
  font-family: var(--font-en);
}

body.modal-open {
  overflow: hidden;
}

body.is-loading * {
  transition: none !important;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sprite {
  display: none;
}

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.808);
  border-bottom: 1px solid rgba(90, 64, 50, .08);
  transition: box-shadow .25s ease, transform .25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.897);
  box-shadow: 0 10px 26px rgba(97, 84, 74, 0.08);
}

.header-shell {
  min-height: 90px;
  width: min(1380px, calc(100% - 70px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
  transition: min-height .25s ease;
}

.site-header.is-scrolled .header-shell {
  min-height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.logo-stack,
.rahabah-brand {
  flex-direction: column;
  gap: 5px;
}

.brand-tagline {
  display: block;
  width: 100%;
  color: #9CA3AF;
  font-family: var(--font-ar);
  font-size: clamp(0.75rem, 0.8vw, 0.875rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.owner-brand {
  justify-self: start;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--brown);
  font-weight: 800;
  font-size: .82rem;
}

.owner-brand img {
  width: 100px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
}

.project-brand img {
  width: 250px;
  max-height: 70px;
  object-fit: contain;
}

.header-side {
  justify-self: end;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "logo cta" "logo lang";
  align-items: center;
  gap: 10px 22px;
}

.rahabah-brand {
  grid-area: logo;
  width: 190px;
  justify-content: center;
  overflow: visible;
}

.rahabah-brand img {
  width: 150px;
  height: 54px;
  object-fit: contain;
  object-position: center;

  transform-origin: right center;
}

.top-contact {
  grid-area: cta;
  max-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 12px;
  background: var(--brown);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  box-shadow: var(--soft-shadow);
  transition: transform .22s ease, background .22s ease;
}

.top-contact:hover {
  transform: translateY(-2px);
  background: var(--brown-deep);
}

.lang-switch {
  grid-area: lang;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--brown);
  width: 42px;
  height: 25px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.lang-switch button.is-active {
  background: var(--brown);
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brown);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, min-height .25s ease;
}

.site-header:hover .main-nav,
.main-nav.is-open {
  min-height: 44px;

}

.main-nav a {
  position: relative;
  color: var(--brown);
  font-weight: 800;
  padding: 7px 2px 12px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(50%);
  transition: width .24s ease;
}

/* RTL */
html[dir="rtl"] .main-nav a::after {
  transform: translateX(50%);
}

/* LTR */
html[dir="ltr"] .main-nav a::after {
  transform: translateX(-50%);
}

.nav-lang-switch {
  display: none;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, .98), rgba(251, 250, 246, .96)),
    var(--paper);
}

.hero-bg {

  width: min(63vw, 920px);
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* RTL */
html[dir="rtl"] .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
}

html[dir="rtl"] .hero-bg::after {

  background:
    linear-gradient(-90deg, var(--paper) 0%, rgba(251, 250, 246, .92) 7%, rgba(251, 250, 246, .38) 22%, rgba(251, 250, 246, 0) 42%),
    linear-gradient(0deg, rgba(251, 250, 246, .2), rgba(255, 255, 255, 0));

}

/* LTR */
html[dir="ltr"] .hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
}

html[dir="ltr"] .hero-bg::after {

  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(251, 250, 246, .92) 7%, rgba(251, 250, 246, .38) 22%, rgba(251, 250, 246, 0) 42%),
    linear-gradient(0deg, rgba(251, 250, 246, .2), rgba(255, 255, 255, 0));

}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.06) contrast(1.03) sepia(.06) brightness(1.03);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(52vw, 720px);
  z-index: 1;
  opacity: .38;
  background-image:
    linear-gradient(135deg, rgba(219, 167, 41, .14) 1px, transparent 1px),
    linear-gradient(45deg, rgba(86, 63, 50, .08) 1px, transparent 1px);
  background-size: 58px 58px, 82px 82px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .72) 42%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1260px, calc(100% - 88px));
  min-height: 560px;
  margin-inline: auto;
  padding-block: 118px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--ink);
}

.hero-content h1 {
  margin: 0 0 20px;
  max-width: 620px;
  color: #2b0805;
  font-size: clamp(2.35rem, 4.15vw, 4.45rem);
  line-height: 1.34;
  font-weight: 900;
  letter-spacing: 0;
  text-align: right;
}

.hero-content h1 span,
.hero-content h1 strong {
  display: inline;
}

.hero-content h1 span:first-child::after {
  content: "\A";
  white-space: pre;
}

.hero-content h1 strong {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 900;
  letter-spacing: .03em;
  background: linear-gradient(135deg, #f5d779 0%, #dba729 34%, #a9741f 68%, #f1d06d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(80, 48, 10, .18);
}

html[dir="rtl"] .hero-content h1 strong {
  font-family: "Traditional Arabic", "Arabic Typesetting", "Amiri", "Times New Roman", serif;
  font-size: 1.12em;
  font-weight: 700;
  letter-spacing: 0;
}

html[dir="ltr"] .hero-content h1 strong {
  font-family: "Cinzel", "Trajan Pro", "Trajan Pro 3", "Times New Roman", Georgia, serif;
  font-size: .92em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-variant: small-caps;
}

.project-logo {
  display: inline-block;
  vertical-align: middle;
  height: 1.05em;
  margin-inline-start: .12em;
  width: auto;
  max-width: 300px
}

.project-logo-en {
  display: none;
}

html[lang="en"] .project-logo-ar {
  display: none;
}

html[lang="en"] .project-logo-en {
  display: inline-block;
}

.project-logo-ar {
  display: inline-block;
  vertical-align: middle;
  height: 1.05em;
  width: auto;
  margin-inline-start: .12em;
}

/* English: hide the image, show the text */
html[lang="en"] .project-logo-ar {
  display: none;
}

/* Arabic: hide the text version */
html[lang="ar"] .project-logo-en {
  display: none;
}





.hero-content p {
  max-width: 610px;
  margin: 0 0 44px;
  color: #330c09;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 2.05;
  font-weight: 750;
  text-align: right;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  direction: ltr;
  justify-content: flex-start;
}

.hero-actions .btn {
  border-radius: 8px;
  direction: rtl;
  box-shadow: 0 14px 28px rgba(19, 17, 12, .12);
}

.hero-actions .btn-light {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(86, 63, 50, .28);
  box-shadow: none;
}

.hero-actions .btn-gold {
  background: linear-gradient(135deg, #c59645, var(--gold-dark));
}

html[dir="rtl"] .hero-content {
  align-items: flex-start;
}

html[dir="ltr"] .hero-content {
  text-align: left;
  align-items: flex-start;
}

html[dir="ltr"] .hero-content h1,
html[dir="ltr"] .hero-content p {
  margin-left: 0;
  text-align: left;
}

@media (min-width: 600px) {
  html[dir="ltr"] .hero-content h1 {
    margin-right: 300px;
  }
}

html[dir="ltr"] .hero-actions {
  justify-content: flex-start;
  direction: ltr;
}

html[dir="ltr"] .hero-actions .btn {
  direction: ltr;
}

.btn {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 850;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-light {
  background: rgba(255, 255, 255, .96);
  color: var(--brown);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: 0 16px 34px rgba(181, 129, 50, .3);
}

.btn-dark {
  background: linear-gradient(135deg, #6a5041, var(--brown-deep));
  color: #fff;
  box-shadow: 0 16px 34px rgba(47, 39, 33, .28);
}

.btn-outline {
  background: transparent;
  color: var(--brown);
  border-color: var(--gold);
}

.btn[disabled] {
  cursor: wait;
  opacity: .78;
  transform: none;
}

.section {
  padding-block: 62px;
  position: relative;
}

.section-title {
  margin: 0 0 48px;
  color: var(--brown);
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.2;
  font-weight: 900;
}

.section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin: 13px auto 0;
  background: var(--gold);
  box-shadow: 12px 0 0 rgba(208, 160, 74, .25), -12px 0 0 rgba(208, 160, 74, .25);
}

.services {
  background: radial-gradient(circle at center top, #fff 0, var(--paper) 76%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  max-width: 900px;
  margin-inline: auto;
}

.service-card {
  min-height: 300px;
  padding: 52px 44px 44px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 10px 24px rgba(90, 64, 50, .04);
  transition: transform .24s ease, box-shadow .24s ease;
}

.service-card:hover,
.choice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.round-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.round-icon svg {
  width: 44px;
  height: 44px;
}

.round-icon.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.round-icon.brown {
  background: var(--brown);
}

.service-card h3,
.choice-card h3 {
  color: var(--brown);
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 900;
}

.service-card p,
.choice-card p,
.why-item p {
  color: #51463f;
  margin: 0;
  font-weight: 650;
}

.why {
  padding-top: 20px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1080px;
  margin-inline: auto;
}

.why-item {
  min-height: 150px;
  padding: 8px 18px;
  text-align: center;
  border-inline-start: 1px solid var(--line);
}

.why-item:first-child {
  border-inline-start: 0;
}

.why-item svg {
  width: 44px;
  height: 44px;
  color: var(--brown);
  margin-bottom: 14px;
}

.why-item h3 {
  margin: 0 0 6px;
  color: var(--brown);
  font-size: 1rem;
  font-weight: 900;
}

.why-item p {
  font-size: .88rem;
}

.choose {
  padding-top: 34px;
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
  max-width: 1010px;
  margin-inline: auto;
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 330px;
  padding: 34px 24px 26px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform .24s ease, box-shadow .24s ease;
}

.outline-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--brown);
}

.outline-icon svg {
  width: 38px;
  height: 38px;
}

.choice-card .btn {
  width: 100%;
  min-height: 56px;
  margin-top: auto;
  padding-inline: 18px;
}

.guide {
  padding-block: 24px 52px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1080px;
  margin-inline: auto;
  align-items: stretch;
}

.guide-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 18px 18px 26px;
  border: 1px solid rgba(232, 222, 212, .9);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(251, 250, 246, .92));
  color: var(--brown);
  box-shadow: var(--soft-shadow);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.guide-card:hover {
  transform: translateY(-5px);
  border-color: rgba(219, 167, 41, .45);
  box-shadow: 0 22px 54px rgba(19, 17, 12, 0.14);
}

.guide-card::after {
  content: "";
  position: absolute;
  inset-inline-end: 18px;
  bottom: -35px;
  width: 132px;
  height: 210px;
  background: url("assets/images/pattern-corner.png") center/contain no-repeat;
  opacity: .08;
  pointer-events: none;
}

.guide-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  opacity: .95;
}

.guide-visual {
  position: relative;
  z-index: 1;
  height: 168px;
  min-height: 168px;
  margin-bottom: 24px;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(86, 63, 50, .09), rgba(219, 167, 41, .16));
  box-shadow: 0 16px 34px rgba(19, 17, 12, .12);
}

.guide-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .32s ease;
}

.guide-card:hover .guide-visual img,
.guide-card:hover .guide-pdf-mockup {
  transform: scale(1.045);
}

.guide-visual-pdf {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 18% 18%, rgba(219, 167, 41, .2), transparent 34%), linear-gradient(135deg, rgba(86, 63, 50, .08), rgba(255, 255, 255, .72));
}

.guide-pdf-mockup {
  width: min(178px, 62%);
  aspect-ratio: 4 / 5;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 11px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(232, 222, 212, .95);
  box-shadow: 0 18px 34px rgba(19, 17, 12, .16);
  transition: transform .32s ease;
}

.guide-pdf-label {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-family: var(--font-en);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.guide-pdf-line {
  width: 64%;
  height: 4px;
  border-radius: 999px;
  background: rgba(86, 63, 50, .2);
}

.guide-pdf-line.short {
  width: 42%;
  background: rgba(219, 167, 41, .32);
}

.guide-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding-inline: 10px;
}

.guide-copy h2 {
  margin: 0 0 8px;
  color: var(--brown);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.25;
}

.guide-copy p {
  margin: 0 0 24px;
  color: #51463f;
  font-weight: 650;
}

.guide-copy .btn {
  margin-top: auto;
  min-height: 56px;
  padding-inline: 22px;
}

.contact {
  padding-top: 16px;
}

.contact-card {
  display: grid;
  grid-template-columns: .58fr 1fr;
  gap: 36px;
  max-width: 1080px;
  margin-inline: auto;
  padding: 24px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(90, 64, 50, .04);
}

.contact-list {
  display: grid;
  gap: 15px;
  align-content: center;
  margin: 0;
  font-style: normal;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-weight: 750;
}

.contact-list svg {
  color: var(--brown);
}

.map-wrap {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #efe8df;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 230px;
  border: 0;
  filter: sepia(.18) saturate(.78) contrast(.94);
}

.map-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--brown);
  font-weight: 900;
  text-align: center;
  pointer-events: none;
}

.map-badge svg {
  width: 54px;
  height: 54px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--gold-dark);
  box-shadow: var(--soft-shadow);
}

.site-footer {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--brown-deep), #5e4336);
  text-align: center;
  font-weight: 750;
}

.site-footer p {
  margin: 0;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 22px;
}

.modal-root.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 28, 23, .72);
  backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 34px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .3);
}

.modal[hidden] {
  display: none;
}

.modal h2 {
  margin: 0 0 22px;
  color: var(--brown);
  font-size: 1.8rem;
}

.modal-close {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brown);
  cursor: pointer;
}

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

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--brown);
  font-weight: 850;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(208, 160, 74, .18);
}

.lead-form textarea,
.lead-form .full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--brown);
  font-weight: 800;
}

.form-note.success {
  color: #2e6c48;
}

.form-note.error {
  color: #9a322b;
}

.field-error {
  min-height: 1.1rem;
  color: #9a322b;
  font-size: .82rem;
  line-height: 1.3;
}

.lead-form input[aria-invalid="true"],
.lead-form textarea[aria-invalid="true"] {
  border-color: #9a322b;
  box-shadow: 0 0 0 4px rgba(154, 50, 43, .12);
}

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

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

html[dir="ltr"] .owner-brand {
  align-items: flex-start;
}

html[dir="ltr"] .brand-tagline {
  font-family: var(--font-ar);

}

html[dir="ltr"] .hero-actions svg,
html[dir="ltr"] .choice-card .btn svg {
  transform: scaleX(-1);
}

html[dir="ltr"].main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%) !important;
  transition: width .24s ease;
}

@media (max-width: 1100px) {
  .header-shell {
    width: calc(100% - 34px);
    gap: 18px;
  }

  .owner-brand img {
    width: 138px;
  }

  .project-brand img {
    width: 205px;
  }

  .rahabah-brand {
    width: 150px;
  }

  .rahabah-brand img {
    width: 150px;
    height: 50px;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 28px;
  }

  .why-item:nth-child(4) {
    border-inline-start: 0;
  }

  .hero-content p {
    max-width: 500px;
  }
}

@media (max-width: 940px) {
  .hero-content p {
    max-width: 400px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 0;
  }

  .header-shell {
    min-height: 98px;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }

  .site-header.is-scrolled .header-shell {
    min-height: 84px;
  }

  .top-contact span {
    display: none;
  }

  .owner-brand img {
    width: 95px;
    height: 42px;
  }

  .project-brand img {
    width: 150px;
  }

  .header-side {
    grid-template-columns: auto auto;
    grid-template-areas: "logo menu" "lang lang";
    gap: 4px 8px;
  }

  .rahabah-brand {
    width: 112px;
  }

  .rahabah-brand img {
    width: 112px;
    height: 38px;
  }

  .brand-tagline {
    font-size: clamp(0.58rem, 1.55vw, 0.72rem);
    white-space: normal;
  }

  .top-contact {
    display: none;
  }

  .menu-toggle {
    grid-area: menu;
    display: grid;
    place-items: center;
    justify-self: end;
    align-self: center;
  }

  .menu-toggle[aria-expanded="true"] {
    background: var(--brown);
    color: #fff;
    border-color: var(--brown);
  }

  .main-nav {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    display: none;
    max-height: none;
    min-height: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 16px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 34px rgba(19, 17, 12, .12);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 10px;
    border-bottom: 1px solid rgba(90, 64, 50, .08);
  }

  .hero-bg::after {
    background: linear-gradient(0deg, var(--paper) 0%, rgba(122, 122, 121, 0.589) 18%, rgba(204, 204, 203, 0.08) 58%);
  }

  .hero::before {
    width: 100%;
    opacity: .28;
    mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 100%);
  }

  .hero-content {
    width: min(100% - 34px, 680px);
    min-height: 70px;
    padding-top: 20px
  }

  .hero-content h1 {
    font-size: clamp(1.95rem, 4.15vw, 3.45rem);
  }

  .hero-content p {
    font-size: clamp(.95rem, 1.2vw, 1.18rem);
    margin-bottom: 25px;
  }

  .hero-content h1,
  .hero-content p {
    max-width: 100%;
  }

  .hero-actions,
  html[dir="ltr"] .hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .service-grid,
  .choose-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .choose-grid {
    gap: 22px;
  }

  .guide-grid {
    gap: 18px;
  }

  .guide-card {
    min-height: 420px;
    padding: 16px 16px 24px;
    text-align: center;
  }

  .guide-visual {
    height: 150px;
    min-height: 150px;
    margin-bottom: 20px;
  }

  .guide-copy {
    align-items: center;
  }

  .hero-content p {
    max-width: 300px;
  }

  .btn {
    min-height: 4px;
    font-size: clamp(.95rem, 1.2vw, 1.18rem);
    font-weight: 700;
    gap: 8px;
    padding: 3px 8px;
  }

  .header-side {
    grid-template-columns: auto auto;
    grid-template-areas: "logo menu";
  }

  .lang-switch:not(.nav-lang-switch) {
    display: none;
  }

  .nav-lang-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(90, 64, 50, .08);
  }
}


@media (max-width: 566px) {

  .container {
    width: min(100% - 28px, var(--container));
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .header-shell {
    width: calc(100% - 20px);
  }

  .owner-brand img {
    width: 74px;
  }

  .project-brand img {
    width: 118px;
  }

  .rahabah-brand img {
    width: 150px;
    height: 54px;
  }

  .brand-tagline {
    font-size: clamp(0.52rem, 1.9vw, 0.66rem);
  }

  .lang-switch button {
    width: 34px;
    height: 30px;
    font-size: .78rem;
  }

  .hero {
    max-height: fit-content;
  }

  .hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.35;
  }

  .hero-content p {
    font-size: .96rem;
    line-height: 1.85;
  }

  .section {
    padding-block: 48px;
  }

  .service-card,
  .choice-card {
    padding: 30px 20px;
  }

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

  .why-item,
  .why-item:nth-child(4) {
    border-inline-start: 0;
  }

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

  .hero-content {
    width: min(100% - 34px, 680px);
    min-height: 70px;
    padding-top: 10px
  }

  .hero-content h1 {
    font-size: clamp(1rem, 4.15vw, 3.45rem);
  }

  .hero-content p {
    font-size: clamp(.75rem, 1.2vw, 1.18rem);
    margin-bottom: 25px;
    max-width: 250px;
  }

  .btn {
    font-size: clamp(.75rem, 1vw, 1rem);
  }

}


@media (max-width: 480px) {
  .project-brand img {
    max-height: 45px;
    object-fit: contain;
  }

  .project-logo-ar,
  .project-logo-en {
    display: inline-block;
    line-height: 1;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(19, 17, 12, 0.445);
    backdrop-filter: blur(8px);
  }

  .project-logo-en {
    padding: 6px 14px;
  }

  .project-logo-ar {
    padding: 3px 5px;

    height: auto;
    width: 130px;
  }

  .btn {
    font-size: clamp(.65rem, 1vw, 1rem);
  }

  .hero {
    background-image: linear-gradient(to bottom, rgba(172, 171, 170, 0.98), rgba(114, 113, 111, 0.96));
  }

  .hero-bg {
    width: max(63vw, 920px);
  }

  .hero-content h1,
  .hero-content p {
    color: white;
  }

  .hero-content h1 strong {
    color: var(--gold);
  }

}



@media (max-width: 430px) {

  .btn {
    font-size: clamp(.55rem, 1vw, 1rem);
  }
}

@media (max-width: 400px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center !important;
    text-align: center !important;
    margin-inline: auto;
  }

  html[dir="rtl"] .hero-content h1,
  html[dir="ltr"] .hero-content h1,
  html[dir="rtl"] .hero-content p,
  html[dir="ltr"] .hero-content p {
    text-align: center !important;
    margin-inline: auto !important;
  }

  .hero-content h1 {
    font-size: clamp(0.8rem, 5vw, 1.8rem);
    margin-right: 0;
    margin-left: 0;
  }

  .hero-content p {
    font-size: clamp(0.35rem, 3.5vw, 0.95rem);
    margin-bottom: 25px;
  }

  .hero-actions,
  html[dir="ltr"] .hero-actions {
    width: 100%;
    justify-content: center !important;
    align-items: center;
    gap: 12px;
  }

  .hero-actions .btn-dark,
  html[dir="ltr"] .hero-actions .btn-dark {
    width: 50%;
    min-width: 0;
    justify-content: center !important;
    text-align: center;
  }
}
















































/* The round wooden background table plate */
.brochure {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1 / 1;
  /* Forces it to be a perfect circle */
  border-radius: 50%;
  overflow: visible;
  /* Allows the tilted book edges to look natural */
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.25);
  background: rgb(230, 213, 213) url("assets/images/pattern-corner.png") center/contain no-repeat;
  /* Mimics the wooden/warm tone plate texture */
  display: grid;
  place-items: center;
  transform: none;
  /* Removed the old horizontal compression skew */
}

/* The rectangular book containing your actual project image */
.brochure img {
  width: 72%;
  height: 76%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow:
    -8px 12px 24px rgba(0, 0, 0, 0.35),
    inset 1px 0 2px rgba(255, 255, 255, 0.2);
  /* This creates the exact dimensional perspective tilt seen in the main design */
  transform: rotate(-16deg) perspective(800px) rotateX(12deg) rotateY(4deg);
  transition: transform .3s ease;
}

html[dir="rtl"] .brochure img {
  transform: rotate(16deg) perspective(800px) rotateX(12deg) rotateY(-4deg);
}

/* Subtle interactive hover effect */
html[dir="ltr"] .guide-card:hover .brochure img {
  transform: rotate(14deg) perspective(800px) rotateX(8deg) rotateY(-2deg) translateY(-4px);
}

html[dir="rtl"] .guide-card:hover .brochure img {
  transform: rotate(-14deg) perspective(800px) rotateX(8deg) rotateY(2deg) translateY(-4px);
}