/* ============================================================
   Lamset Mas Decoration — Luxury one-page website
   Theme: crimson red + deep black
   Includes RTL/Arabic support ([dir="rtl"])
   ============================================================ */

:root {
  --bg: #faf5f2;
  --surface: #ffffff;
  --ink: #1d1315;
  --ink-soft: #63504f;
  --ink-faint: #8d7674;

  --dark: #0e0a0a;
  --dark-2: #181212;
  --dark-3: #221818;
  --line-red: rgba(217, 46, 68, 0.28);

  --red: #b01527;
  --red-2: #d92e44;
  --red-deep: #8a1020;
  --red-bright: #e5485f;

  --success: #4d7c5f;

  --font-display: "Jost", "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --font-display-ar: "Tajawal", "Times New Roman", serif;
  --font-body-ar: "Tajawal", "Segoe UI", sans-serif;

  --shadow-lg: 0 30px 60px -18px rgba(14, 10, 10, 0.4);
  --shadow-md: 0 18px 40px -20px rgba(14, 10, 10, 0.5);
  --radius: 4px;

  --header-h: 105px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: rgba(217, 46, 68, 0.32);
}

:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 3px;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 130px) 0;
}

.section-dark {
  background: var(--dark);
  color: #f5ebe7;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

[dir="rtl"] .skip-link:focus {
  left: auto;
  right: 0;
}

/* ---------- Type ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 14px;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.section-title em {
  font-style: italic;
  color: var(--red);
}

.section-sub {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 560px;
}

.section-dark .section-sub {
  color: rgba(245, 235, 231, 0.65);
}

.section-dark .section-title em {
  color: var(--red-bright);
}

.section-dark .kicker {
  color: var(--red-bright);
}

.section-dark .kicker::before {
  background: var(--red-bright);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.35s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-red {
  background: linear-gradient(135deg, var(--red-2), var(--red) 55%, var(--red-deep));
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(176, 21, 39, 0.7);
}

.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(176, 21, 39, 0.85);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--red-bright);
  color: var(--red-bright);
}

.btn-ghost-light {
  border-color: var(--line-red);
  color: #f5ebe7;
}

.btn-ghost-light:hover {
  border-color: var(--red-bright);
  color: var(--red-bright);
}

.btn-block {
  width: 100%;
}

.link-btn {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  border-bottom: 1px solid var(--line-red);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.link-btn:hover {
  color: var(--ink);
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-red);
  color: #f5ebe7;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lang-toggle:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.lang-toggle .lang-globe {
  width: 15px;
  height: 15px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header-inner {
  width: min(1280px, 94%);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #f7ece8;
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid var(--line-red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red-bright);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

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

.brand:hover .brand-mark {
  transform: rotate(8deg);
  border-color: var(--red-2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f7ece8;
  text-transform: uppercase;
}

.brand-sub {
  /* font-size: 0.6rem; */
  /* letter-spacing: 0.46em; */
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-top: 3px;
  padding-inline-start: 2px;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.nav-link {
  position: relative;
  font-size: 1.0rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 236, 232, 0.85);
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.nav-link:hover {
  color: var(--red-bright);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--red-bright);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-red);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red-bright);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-cta svg {
  width: 15px;
  height: 15px;
}

.nav-cta:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Header scrolled state */
.site-header.is-scrolled {
  background: rgba(14, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(217, 46, 68, 0.2);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}

.nav-toggle span {
  width: 26px;
  height: 1.6px;
  background: #f7ece8;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.25s ease, background 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  background: var(--dark);
  overflow: hidden;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transition: transform 7.5s linear;
}

.hero-slide.is-active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 10, 10, 0.66) 0%, rgba(14, 10, 10, 0.3) 42%, rgba(14, 10, 10, 0.78) 100%),
    radial-gradient(ellipse at 22% 60%, rgba(90, 8, 20, 0.35), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1280px, 94%);
  margin-inline: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  max-width: 760px;
}

.hero-slide .hero-content {
  padding-inline-start: max(3vw, calc((100vw - 1280px) / 2));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--red-bright);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--red-bright);
}

.hero-content h1,
.hero-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 600;
  line-height: 1.06;
  color: #fff;
  letter-spacing: 0.01em;
  max-width: 13ch;
}

.hero-content h1 em,
.hero-content h2 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(105deg, #ff93a3, var(--red-bright) 55%, var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red-bright);
}

.hero-sub {
  margin-top: 22px;
  max-width: 520px;
  color: rgba(247, 236, 232, 0.82);
  font-weight: 300;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* Staggered entrance */
.hero-eyebrow,
.hero-content h1,
.hero-content h2,
.hero-sub,
.hero-actions {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-slide.is-active .hero-eyebrow {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

.hero-slide.is-active .hero-content h1,
.hero-slide.is-active .hero-content h2 {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

.hero-slide.is-active .hero-sub {
  opacity: 1;
  transform: none;
  transition-delay: 0.55s;
}

.hero-slide.is-active .hero-actions {
  opacity: 1;
  transform: none;
  transition-delay: 0.7s;
}

/* Arrows (logical properties: flip automatically in RTL) */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(14, 10, 10, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: #fff;
  transition: all 0.3s ease;
}

.hero-arrow svg {
  width: 22px;
  height: 22px;
}

.hero-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.hero-prev {
  inset-inline-start: clamp(16px, 3vw, 44px);
}

.hero-next {
  inset-inline-end: clamp(16px, 3vw, 44px);
}

/* Dots */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s ease;
}

.hero-dot.is-active {
  background: var(--red-bright);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Counter */
.hero-counter {
  position: absolute;
  inset-inline-end: clamp(16px, 3vw, 44px);
  bottom: 30px;
  z-index: 6;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.hero-counter-sep {
  color: var(--red-bright);
  font-size: 0.9em;
}

#hero-total {
  opacity: 0.5;
  font-size: 0.85em;
}

/* Progress bar */
.hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.08);
}

#hero-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
  transition: width 0.25s linear;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.about-media {
  position: relative;
  padding-bottom: 56px;
}

.about-photo {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.about-photo:hover img {
  transform: scale(1.04);
}

.about-photo.main {
  width: 86%;
  aspect-ratio: 4 / 5;
  margin-inline-end: auto;
}

.about-photo.small {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 1 / 1;
  border: 8px solid var(--bg);
}

.about-badge {
  position: absolute;
  inset-inline-start: -8px;
  bottom: 12px;
  z-index: 3;
  background: linear-gradient(140deg, var(--red-2), var(--red) 55%, var(--red-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 20px 40px -16px rgba(138, 16, 32, 0.6);
}

.badge-years {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.badge-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 6px;
}

.about-copy .section-title {
  margin-bottom: 22px;
}

.about-copy .lead {
  margin-bottom: 16px;
}

.about-points {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.about-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}

.point-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line-red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  background: #fff;
}

.point-icon svg {
  width: 18px;
  height: 18px;
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.sig-line {
  width: 56px;
  height: 1px;
  background: var(--red);
}

.sig-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--red);
}

/* ============================================================
   SERVICES (dark)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.service-card {
  position: relative;
  background: var(--dark-2);
  border: 1px solid rgba(217, 46, 68, 0.16);
  border-radius: var(--radius);
  padding: 38px 30px 32px;
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red-bright), var(--red-deep));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(217, 46, 68, 0.45);
  background: var(--dark-3);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line-red);
  display: grid;
  place-items: center;
  color: var(--red-bright);
  margin-bottom: 22px;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card:hover .service-icon {
  background: var(--red);
  color: #fff;
  transform: rotate(-6deg);
}

.service-num {
  position: absolute;
  inset-inline-end: 26px;
  top: 26px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
  color: rgba(229, 72, 95, 0.18);
  line-height: 1;
  transition: color 0.4s ease;
}

.service-card:hover .service-num {
  color: rgba(229, 72, 95, 0.5);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #f5ebe7;
  margin-bottom: 12px;
  min-height: 3.6em;
}

.service-card p {
  color: rgba(245, 235, 231, 0.62);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.service-link span {
  transition: transform 0.3s ease;
}

.service-link:hover span {
  transform: translateX(5px);
}

[dir="rtl"] .service-link:hover span {
  transform: translateX(-5px);
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.profile-copy .lead {
  margin-bottom: 16px;
}

.profile-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 18px;
  border-top: 1px solid rgba(29, 19, 21, 0.12);
  padding-top: 30px;
}

.profile-stats li {
  display: flex;
  flex-direction: column;
}

.stat-num,
.stat-plus {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.stat-plus {
  color: var(--red);
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
  font-weight: 600;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.profile-note {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.profile-media {
  position: relative;
}

.profile-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.profile-photo:hover img {
  transform: scale(1.04);
}

.profile-quote {
  position: relative;
  margin: -64px 18px 0;
  background: var(--dark);
  color: #f5ebe7;
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  border-inline-start: 3px solid var(--red);
  box-shadow: var(--shadow-lg);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--red-bright);
  display: block;
  margin-bottom: 8px;
}

.profile-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
}

.profile-quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
}

/* ============================================================
   GALLERY (dark)
   ============================================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(217, 46, 68, 0.3);
  color: rgba(245, 235, 231, 0.75);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--red-bright);
  color: var(--red-bright);
}

.filter-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
  filter: saturate(0.94);
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 42px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(14, 10, 10, 0.9));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.gallery-item figcaption h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.gallery-item figcaption p {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-top: 3px;
}

.gallery-item::after {
  content: "+";
  position: absolute;
  top: 14px;
  inset-inline-end: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.07);
  filter: saturate(1.05);
}

.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption {
  opacity: 1;
  transform: none;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-more {
  text-align: center;
  margin-top: 44px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.contact-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid rgba(29, 19, 21, 0.09);
  border-radius: var(--radius);
  padding: 26px 26px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 46, 68, 0.45);
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(176, 21, 39, 0.14), rgba(176, 21, 39, 0.04));
  border: 1px solid var(--line-red);
  display: grid;
  place-items: center;
  color: var(--red);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.contact-card p {
  color: var(--ink-soft);
  margin-top: 4px;
}

.contact-card p a:hover {
  color: var(--red);
}

.contact-card .link-btn {
  margin-top: 10px;
}

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid rgba(29, 19, 21, 0.09);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
  position: relative;
}

.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  background: #faf5f2;
  border: 1px solid rgba(29, 19, 21, 0.16);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(176, 21, 39, 0.16);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-field select {
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 19px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--ink-soft);
  border-bottom: 1.6px solid var(--ink-soft);
  transform: rotate(45deg);
  pointer-events: none;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.is-ok {
  color: var(--success);
}

.form-status.is-error {
  color: #b01527;
}

/* Map */
.map-wrap {
  margin-top: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(29, 19, 21, 0.1);
  box-shadow: var(--shadow-md);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(0.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(245, 235, 231, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(56px, 7vw, 84px) 0 48px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #f5ebe7;
  margin-bottom: 8px;
}

.footer-col a,
.footer-col span {
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--red-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(217, 46, 68, 0.18);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(245, 235, 231, 0.5);
}

.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 5, 5, 0.95);
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  grid-template-rows: 1fr;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  text-align: center;
  padding: 24px;
  max-width: 1100px;
  margin-inline: auto;
  width: 100%;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.8);
}

.lightbox-figure figcaption {
  margin-top: 16px;
  color: rgba(245, 235, 231, 0.85);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 26px;
  font-size: 2.4rem;
  line-height: 1;
  color: #f5ebe7;
  font-weight: 300;
  transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
  color: var(--red-bright);
  transform: rotate(90deg);
}

.lightbox-arrow {
  width: 52px;
  height: 52px;
  margin-inline: auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: #fff;
  transition: all 0.3s ease;
}

.lightbox-arrow svg {
  width: 20px;
  height: 20px;
}

.lightbox-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* ============================================================
   RTL / ARABIC
   ============================================================ */
[dir="rtl"] body,
[dir="rtl"] .btn,
[dir="rtl"] .nav-link,
[dir="rtl"] .nav-cta,
[dir="rtl"] .filter-btn,
[dir="rtl"] .service-link,
[dir="rtl"] .link-btn,
[dir="rtl"] .form-field label,
[dir="rtl"] .profile-note,
[dir="rtl"] .stat-label,
[dir="rtl"] .badge-label,
[dir="rtl"] .kicker,
[dir="rtl"] .hero-eyebrow,
[dir="rtl"] .footer-col a,
[dir="rtl"] .footer-col span,
[dir="rtl"] .lang-toggle {
  letter-spacing: 0;
}

[dir="rtl"] body {
  font-family: var(--font-body-ar);
}

[dir="rtl"] .section-title,
[dir="rtl"] .hero-content h1,
[dir="rtl"] .hero-content h2,
[dir="rtl"] .service-card h3,
[dir="rtl"] .contact-card h3,
[dir="rtl"] .footer-col h4,
[dir="rtl"] .brand-name,
[dir="rtl"] .stat-num,
[dir="rtl"] .stat-plus,
[dir="rtl"] .badge-years,
[dir="rtl"] .sig-text,
[dir="rtl"] .profile-quote blockquote,
[dir="rtl"] .lightbox-figure figcaption,
[dir="rtl"] .gallery-item figcaption h3,
[dir="rtl"] .hero-counter,
[dir="rtl"] .quote-mark,
[dir="rtl"] .footer-tag,
[dir="rtl"] .about-signature .sig-text {
  font-family: var(--font-display-ar);
}

[dir="rtl"] .hero-content h1 em,
[dir="rtl"] .hero-content h2 em,
[dir="rtl"] .section-title em {
  font-style: normal;
}

[dir="rtl"] .hero-content h1,
[dir="rtl"] .hero-content h2 {
  line-height: 1.25;
  max-width: 16ch;
}

[dir="rtl"] .section-title {
  line-height: 1.3;
}

[dir="rtl"] .service-card h3 {
  line-height: 1.45;
}

[dir="rtl"] .hero-eyebrow::before,
[dir="rtl"] .kicker::before {
  order: 2;
}

[dir="rtl"] .hero-arrow svg {
  transform: scaleX(-1);
}

[dir="rtl"] .lightbox-arrow svg {
  transform: scaleX(-1);
}

[dir="rtl"] .service-link span {
  transform: scaleX(-1);
}

[dir="rtl"] .service-link:hover span {
  transform: scaleX(-1) translateX(5px);
}

[dir="rtl"] .about-points li {
  flex-direction: row;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background: rgba(14, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 105;
    /* Ensures it stays above all other content */
    overflow-y: auto;
    /* Allows scrolling if menu items overflow the screen */
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
  }


  .main-nav .nav-link {
    font-size: 1.05rem;
    letter-spacing: 0.28em;
  }

  [dir="rtl"] .main-nav .nav-link {
    letter-spacing: 0;
  }

  .main-nav .nav-cta,
  .main-nav .lang-toggle {
    margin-top: 8px;
  }

  .about-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 560px;
  }

  .profile-media {
    max-width: 560px;
  }

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

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

  .hero-content h1,
  .hero-content h2 {
    max-width: none;
  }

  [dir="rtl"] .hero-content h1,
  [dir="rtl"] .hero-content h2 {
    max-width: none;
  }
}

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

  .hero-arrow {
    display: none;
  }

  .hero-counter {
    display: none;
  }

  .hero-dots {
    bottom: 26px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 14px;
  }

  .stat-num,
  .stat-plus {
    font-size: 2.1rem;
  }

  .profile-quote {
    margin: -40px 10px 0;
    padding: 24px;
  }

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

  .gallery-item {
    aspect-ratio: 4 / 2.8;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-reveal],
  .hero-slide .hero-content * {
    opacity: 1 !important;
    transform: none !important;
  }
}