:root {
  --forest: #10241f;
  --forest-mid: #1a3a32;
  --forest-soft: #2c5349;
  --gold: #d4b484;
  --gold-deep: #b8955a;
  --ivory: #f7f2e9;
  --cream: #fbf8f3;
  --sand: #e7ddd0;
  --ink: #1b1815;
  --muted: #6d6760;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 36, 31, 0.14);
  --radius: 22px;
  --header: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--gold);
  color: var(--forest);
}

body.site-body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Outfit", "IBM Plex Sans Arabic", sans-serif;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

html[lang="ar"] body.site-body {
  font-family: "IBM Plex Sans Arabic", "Outfit", sans-serif;
}

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

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

h1,
h2,
h3,
.brand-copy strong,
.footer-brand {
  font-family: "Cormorant Garamond", "IBM Plex Sans Arabic", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .brand-copy strong,
html[lang="ar"] .footer-brand {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0.06em;
  text-transform: none;
}

.eyebrow.light {
  color: var(--gold);
}

.section {
  padding: 96px 0;
}

.section-muted {
  background: linear-gradient(180deg, #f3ece1 0%, var(--ivory) 100%);
}

.section-dark {
  background:
    radial-gradient(circle at top, rgba(212, 180, 132, 0.16), transparent 42%),
    var(--forest);
  color: var(--ivory);
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head.light h2 {
  color: var(--white);
}

.section-head h2,
.about-copy h2,
.contact-grid h2,
.cta-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.section-head-centered {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 48px;
  text-align: center;
}

.section-copy,
.about-copy p,
.cta-inner p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-copy {
  color: rgba(247, 242, 233, 0.72);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--forest);
}

.btn-gold:hover {
  background: #e2c69a;
}

.btn-ghost {
  border-color: rgba(247, 242, 233, 0.45);
  color: var(--ivory);
}

.btn-ghost:hover {
  background: rgba(247, 242, 233, 0.1);
}

.btn-dark {
  background: var(--forest);
  color: var(--ivory);
}

.btn-compact {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.text-link {
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  height: var(--header);
  color: var(--ivory);
  background: linear-gradient(to bottom, rgba(16, 36, 31, 0.5), rgba(16, 36, 31, 0));
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(16, 36, 31, 0.94);
  box-shadow: 0 10px 30px rgba(16, 36, 31, 0.18);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark svg {
  width: 44px;
  height: 44px;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 1.15rem;
}

.brand-copy small {
  color: var(--gold);
  font-size: 0.72rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline-start: auto;
  font-size: 0.95rem;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  border: 1px solid rgba(212, 180, 132, 0.45);
  color: var(--gold);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ivory);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: var(--ivory);
  overflow: hidden;
  padding-top: var(--header);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(16, 36, 31, 0.28) 0%, rgba(16, 36, 31, 0.18) 38%, rgba(16, 36, 31, 0.78) 100%),
    linear-gradient(90deg, rgba(16, 36, 31, 0.55), transparent 58%);
}

html[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(180deg, rgba(16, 36, 31, 0.28) 0%, rgba(16, 36, 31, 0.18) 38%, rgba(16, 36, 31, 0.78) 100%),
    linear-gradient(270deg, rgba(16, 36, 31, 0.55), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 72px;
  max-width: none;
  min-width: 0;
  justify-self: center;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .lede,
.hero-content .hero-actions {
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  color: var(--white);
  text-shadow: 0 10px 30px rgba(16, 36, 31, 0.35);
  overflow-wrap: break-word;
}

.lede {
  max-width: 560px;
  color: rgba(247, 242, 233, 0.86);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.stats {
  background: var(--forest);
  color: var(--ivory);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stats-grid article {
  padding: 8px 10px;
  border-inline-start: 1px solid rgba(212, 180, 132, 0.35);
}

.stats-grid strong {
  display: block;
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.stats-grid span {
  color: rgba(247, 242, 233, 0.72);
  font-size: 0.92rem;
}

.service-grid,
.gallery-grid,
.process-grid,
.contact-cards,
.footer-grid,
.team-grid {
  display: grid;
  gap: 20px;
}

.team-grid {
  grid-template-columns: repeat(3, 1fr);
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(16, 36, 31, 0.16);
}

.team-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #d8d8d8;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card h3 {
  margin: 0;
  padding: 20px 16px 22px;
  font-size: 1.35rem;
  color: var(--forest);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-image {
  height: 210px;
  overflow: hidden;
}

.service-image img,
.gallery-item img,
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service-card:hover img,
.gallery-item:hover img {
  transform: scale(1.06);
}

.service-body {
  padding: 22px;
}

.service-body h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.service-body p {
  margin: 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-image {
  height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.check-list li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

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

.gallery-item {
  position: relative;
  height: 250px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--forest);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 2;
  height: 320px;
}

.gallery-item span {
  position: absolute;
  inset-inline: 16px 16px;
  bottom: 16px;
  color: var(--ivory);
  font-weight: 500;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.lightbox {
  margin: 0;
  padding: 24px;
  border: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgba(16, 36, 31, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: relative;
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  padding: 52px 20px 20px;
  background: var(--forest);
  border: 1px solid rgba(212, 180, 132, 0.22);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: auto;
}

.lightbox-figure {
  margin: 0;
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: min(72vh, 680px);
  object-fit: contain;
  border-radius: 12px;
  background: #0a1210;
}

.lightbox figcaption {
  color: var(--ivory);
  text-align: center;
  margin: 14px 0 0;
  font-size: 1rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--forest);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.05);
  background: var(--gold);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

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

.process-card {
  padding: 24px;
  border: 1px solid rgba(212, 180, 132, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.process-card span {
  color: var(--gold);
  font-family: "Outfit", "IBM Plex Sans Arabic", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.process-card h3 {
  margin: 10px 0 8px;
}

.process-card p {
  margin: 0;
  color: rgba(247, 242, 233, 0.72);
}

.cta-band {
  background: var(--gold);
  color: var(--forest);
  padding: 56px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-inner p {
  color: var(--forest-mid);
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-cards {
  grid-template-columns: 1fr;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.contact-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-card strong {
  font-size: 1.08rem;
  word-break: break-word;
}

.site-footer {
  background: var(--forest);
  color: var(--ivory);
  padding: 48px 0 24px;
}

.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: 28px;
  padding-inline-end: 88px;
}

.footer-brand {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.footer-blurb,
.footer-base {
  color: rgba(247, 242, 233, 0.68);
}

.footer-label {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(212, 180, 132, 0.18);
  padding-top: 18px;
  font-size: 0.9rem;
}

.float-contacts {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  box-shadow: 0 12px 28px rgba(16, 36, 31, 0.28);
  transition: transform 0.25s var(--ease);
}

.float-btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.float-btn svg {
  width: 28px;
  height: 28px;
}

.float-whatsapp {
  background: #25d366;
}

.float-call {
  background: var(--forest-mid);
  border: 1px solid var(--gold);
}

#services,
#about,
#team,
#gallery,
#contact,
#process {
  scroll-margin-top: 96px;
}

@media (max-width: 980px) {
  .service-grid,
  .process-grid,
  .stats-grid,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: span 1;
    height: 220px;
  }

  .nav {
    display: none;
  }

  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: var(--header) 16px auto;
    background: var(--forest);
    padding: 18px;
    border-radius: 16px;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }

  .header-actions .btn-compact {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .about-image {
    height: 360px;
  }

  .cta-inner,
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, calc(100% - 32px));
  }

  .section {
    padding: 72px 0;
  }

  .stats-grid,
  .service-grid,
  .process-grid,
  .footer-grid,
  .contact-grid,
  .about-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 88vh;
    align-items: end;
    overflow: hidden;
  }

  .hero-content {
    padding-bottom: 36px;
    width: min(1180px, calc(100% - 32px));
  }

  .hero-content .eyebrow,
  .hero-content h1,
  .hero-content .lede,
  .hero-content .hero-actions {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .lede {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-inline-end: 76px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .text-link {
    align-self: flex-start;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-mark svg {
    width: 36px;
    height: 36px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-copy small {
    display: none;
  }

  .stats {
    padding-inline-end: 88px;
  }

  .header-actions .lang-switch {
    padding: 7px 10px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 48px 14px 16px;
    border-radius: 16px;
  }

  .lightbox img {
    max-height: min(58vh, 520px);
  }

  .lightbox-close {
    top: 10px;
    inset-inline-end: 10px;
    width: 36px;
    height: 36px;
  }
}
