/* DAR FINITION — feuille de style principale (FR / AR, responsive) */
:root {
  --ivory: #f8f5ef;
  --sand: #efe8dc;
  --card: #fcfaf6;
  --charcoal: #2b2723;
  --ink: #3a342e;
  --muted: #776d62;
  --line: #e2d9cb;
  --bronze: #b08d57;
  --bronze-dark: #8e6f3f;
  --terracotta: #9c4f2e;
  --terracotta-dark: #7f3f24;
  --wa: #1f9e55;
  --wa-dark: #178246;
  --radius: 2px;
  --shadow: 0 20px 50px -24px rgba(43, 39, 35, .35);
  --container: 1240px;
  --header-h: 76px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
.lang-ar {
  --font-display: "Amiri", "Times New Roman", serif;
  --font-body: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--font-body); font-weight: 400; font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.lang-ar body, body.lang-ar { font-size: 1.04rem; line-height: 1.85; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--charcoal); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
.lang-ar h1, .lang-ar h2, .lang-ar h3 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
::selection { background: var(--bronze); color: #fff; }
svg { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.narrow { max-width: 900px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--charcoal); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { top: 12px; }

.eyebrow { font-family: var(--font-body); font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--bronze-dark); margin: 0 0 .9rem; }
.lang-ar .eyebrow { letter-spacing: 0; font-size: .9rem; font-weight: 700; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .8rem 1.6rem; border: 1px solid transparent; border-radius: var(--radius); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2; text-align: center; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); white-space: nowrap; }
.lang-ar .btn { letter-spacing: 0; font-size: .95rem; font-weight: 700; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--charcoal); }
.btn-outline { border-color: var(--line); color: var(--charcoal); background: transparent; }
.btn-outline:hover { border-color: var(--bronze); color: var(--terracotta); }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--charcoal); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .7rem; }
.btn-lg { min-height: 56px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin-top: 1.2rem; }
.lang-ar .link-arrow { letter-spacing: 0; font-size: .95rem; font-weight: 700; }
.link-arrow .ic-arrow { transition: transform .25s var(--ease); }
.link-arrow:hover .ic-arrow { transform: translateX(4px); }
[dir="rtl"] .ic-arrow { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .ic-arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 245, 239, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.header-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; justify-self: start; line-height: 1; }
.brand-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 600; letter-spacing: .2em; color: var(--charcoal); white-space: nowrap; }
.brand-sub { margin-top: .35rem; font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--bronze-dark); white-space: nowrap; }
.lang-ar .brand-sub { letter-spacing: 0; font-size: .78rem; }
.main-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(.9rem, 1.6vw, 1.9rem); list-style: none; margin: 0; padding: 0; }
.main-nav a { position: relative; display: block; padding: .5rem 0; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); white-space: nowrap; transition: color .2s; }
.lang-ar .main-nav a { letter-spacing: 0; font-size: .98rem; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--bronze); transform: scaleX(0); transition: transform .3s var(--ease); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--terracotta); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; justify-self: end; }
.lang { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 500; letter-spacing: .1em; }
.lang span { color: var(--line); }
.lang a { padding: .35rem .3rem; color: var(--muted); transition: color .2s; font-family: var(--font-body); }
.lang a[lang="ar"] { font-family: "Tajawal", system-ui, sans-serif; letter-spacing: 0; }
.lang a[aria-current="true"] { color: var(--charcoal); font-weight: 600; border-bottom: 1px solid var(--bronze); }
.lang a:hover { color: var(--terracotta); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius); position: relative; }
.burger span { position: absolute; inset-inline-start: 12px; width: 18px; height: 1.5px; background: var(--charcoal); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--ivory); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-menu ul { list-style: none; margin: 0; padding: .5rem clamp(18px, 4vw, 40px); }
.mobile-menu li a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.45rem; color: var(--charcoal); }
.mobile-menu li a[aria-current="page"] { color: var(--terracotta); }
.mobile-menu-foot { display: grid; gap: .8rem; padding: 1.2rem clamp(18px, 4vw, 40px) 2rem; }
.mobile-menu-foot .lang { justify-content: center; font-size: 1rem; padding-bottom: .4rem; }

@media (max-width: 1240px) {
  .main-nav { display: none; }
  .header-grid { grid-template-columns: 1fr auto; }
  .burger { display: inline-block; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .header-cta { display: none; }
  .header-actions { gap: .6rem; }
  .header-actions > .lang a { padding: .4rem .25rem; }
  .brand-name { font-size: 1.12rem; letter-spacing: .14em; }
  .brand-sub { font-size: .52rem; letter-spacing: .18em; }
  .mobile-menu-foot .lang { display: none; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(92vh, 860px); min-height: 560px; overflow: hidden; background: var(--charcoal); color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease), visibility 0s; z-index: 1; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { background-size: cover; background-position: center; }
.hero-bg img { object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hero-slide.is-active .hero-bg img { transform: scale(1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,22,19,.82) 0%, rgba(25,22,19,.55) 45%, rgba(25,22,19,.15) 100%), linear-gradient(0deg, rgba(25,22,19,.55), transparent 40%); }
[dir="rtl"] .hero-bg::after { background: linear-gradient(270deg, rgba(25,22,19,.82) 0%, rgba(25,22,19,.55) 45%, rgba(25,22,19,.15) 100%), linear-gradient(0deg, rgba(25,22,19,.55), transparent 40%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 70px; }
.hero-content > * { max-width: 680px; }
.hero .eyebrow { color: #e3c89b; }
.hero-title { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 500; }
.hero-text { color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 560px; }
.hero-slide .eyebrow, .hero-slide .hero-title, .hero-slide .hero-text, .hero-slide .btn-row { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-slide.is-active .eyebrow { opacity: 1; transform: none; transition-delay: .25s; }
.hero-slide.is-active .hero-title { opacity: 1; transform: none; transition-delay: .4s; }
.hero-slide.is-active .hero-text { opacity: 1; transform: none; transition-delay: .55s; }
.hero-slide.is-active .btn-row { opacity: 1; transform: none; transition-delay: .7s; }
.hero-controls { position: absolute; z-index: 3; bottom: 34px; inset-inline: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero-dots { display: flex; gap: .6rem; }
.hero-dots button { width: 54px; height: 24px; padding: 0; background: none; border: 0; display: flex; align-items: center; }
.hero-dots span { display: block; width: 100%; height: 2px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero-dots span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero-dots span::after { transform-origin: right; }
.hero-dots button[aria-selected="true"] span::after { animation: dot-fill var(--hero-delay, 6.5s) linear forwards; }
.hero.is-paused .hero-dots button[aria-selected="true"] span::after { animation-play-state: paused; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: .5rem; }
.hero-arrow { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.15); color: #fff; display: grid; place-items: center; border-radius: 50%; transition: background .25s, border-color .25s; }
.hero-arrow:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
@media (max-width: 700px) {
  .hero { height: 88svh; min-height: 540px; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(25,22,19,.88) 15%, rgba(25,22,19,.45) 70%, rgba(25,22,19,.25)); }
  [dir="rtl"] .hero-bg::after { background: linear-gradient(0deg, rgba(25,22,19,.88) 15%, rgba(25,22,19,.45) 70%, rgba(25,22,19,.25)); }
  .hero-content { justify-content: flex-end; padding-bottom: 110px; }
  .hero-arrows { display: none; }
  .hero-dots button { width: 38px; }
  .hero .btn { flex: 1 1 auto; }
}

/* ---------- Trust bar ---------- */
.trust { background: var(--charcoal); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.6rem .5rem; border-inline-start: 1px solid rgba(255,255,255,.1); }
.trust-grid > div:first-child { border-inline-start: 0; }
.trust strong { font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: #e3c89b; line-height: 1.1; }
.trust span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.lang-ar .trust span { letter-spacing: 0; font-size: .95rem; }
@media (max-width: 700px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } .trust-grid > div:nth-child(3) { border-inline-start: 0; } .trust-grid > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--sand); }
.section-dark { background: var(--charcoal); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #e3c89b; }
.section-dark .lead { color: rgba(255,255,255,.7); }
.section-dark .card { background: #35302b; border-color: #47403a; }
.section-dark .card p { color: rgba(255,255,255,.72); }
.section-dark .tag { background: rgba(255,255,255,.08); color: #e3c89b; }
.section-dark .link-arrow { color: #e3c89b; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-row .section-head { margin-bottom: 0; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-media img { aspect-ratio: 4 / 3; } }
.prose p { color: var(--muted); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.card:hover { border-color: var(--bronze); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-num { position: absolute; top: 14px; inset-inline-end: 14px; background: rgba(43,39,35,.85); color: #fff; padding: .25rem .6rem; font-size: .7rem; letter-spacing: .18em; }
.card-body { padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .6rem; }
.card-body h3 a:hover { color: var(--terracotta); }
.card-body p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.card-body .link-arrow { margin-top: auto; padding-top: 1.2rem; }
.card-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
.card-foot .link-arrow { margin-top: 0; padding-top: 0; }
.price { font-family: var(--font-display); font-size: 1.15rem; color: var(--terracotta); margin: 0; }
.product-card .card-media img { aspect-ratio: 5 / 4; }
.project-card .card-media img { aspect-ratio: 4 / 3; }
.tag { display: inline-block; margin-top: 1rem !important; align-self: flex-start; background: var(--sand); color: var(--bronze-dark) !important; padding: .3rem .7rem; font-size: .78rem !important; }
.specs-mini { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.1rem 0 0; }
.specs-mini dt { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lang-ar .specs-mini dt { letter-spacing: 0; font-size: .82rem; }
.specs-mini dd { margin: .15rem 0 0; font-size: .9rem; color: var(--charcoal); }
.subtype-card .card-media img { aspect-ratio: 16 / 9; }
.subtype-card .link-arrow { color: var(--wa-dark); }

/* ---------- Lists, steps, features ---------- */
.check-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list svg { color: var(--bronze); margin-top: .25em; }
.num-list { counter-reset: n; list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1rem; }
.num-list li { counter-increment: n; display: flex; gap: .9rem; align-items: flex-start; }
.num-list li::before { content: counter(n); flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(176,141,87,.16); color: var(--bronze-dark); display: grid; place-items: center; font-size: .8rem; font-weight: 600; margin-top: .1em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { background: var(--ivory); padding: clamp(24px, 3vw, 38px); }
.section-alt .steps li { background: var(--card); }
.step-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--bronze); line-height: 1; display: block; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.feature { padding: 1.8rem 0 0; border-top: 1px solid var(--line); }
.feature-mark { display: block; width: 26px; height: 26px; margin-bottom: 1.2rem; background: var(--bronze); clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%); }
.feature p { color: var(--muted); font-size: .96rem; }

/* ---------- Page hero / breadcrumb ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); background: var(--card); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero-grid > div:only-child { grid-column: 1 / -1; max-width: 820px; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.6rem; padding: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lang-ar .breadcrumb ol { letter-spacing: 0; font-size: .9rem; }
.breadcrumb li + li::before { content: "/"; color: var(--bronze); margin-inline-end: .4rem; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb [aria-current] { color: var(--charcoal); }

/* ---------- Service detail ---------- */
.service-overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .service-overview { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); margin-top: 1.6rem; }
.panel h3 { margin-bottom: .4rem; }
.panel-accent { border-color: rgba(176,141,87,.5); background: #f6efe3; position: sticky; top: calc(var(--header-h) + 20px); margin-top: 0; }
.panel-accent .btn { margin-top: 1.4rem; }
.service-pager { padding-block: 40px; border-top: 1px solid var(--line); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.pager-link { display: flex; flex-direction: column; }
.pager-link .eyebrow { margin-bottom: .2rem; }
.pager-link strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--charcoal); }
.pager-link:hover strong { color: var(--terracotta); }
.pager-next { text-align: end; }
@media (max-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } .pager .btn { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.gallery-item { margin: 0; }
.gallery-item.wide { grid-column: span 2; grid-row: span 2; }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; background: var(--sand); overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item.wide img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.gallery-item.wide button { height: calc(100% - 2.2rem); }
.gallery-item button:hover img { transform: scale(1.04); }
.gallery-item figcaption { font-size: .82rem; color: var(--muted); padding-top: .5rem; min-height: 2.2rem; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery-item.wide { grid-column: 1 / -1; grid-row: auto; } .gallery-item.wide img { aspect-ratio: 16 / 10; } .gallery-item.wide button { height: auto; } }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,18,16,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 150px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.82); margin-top: 1rem; text-align: center; font-size: .95rem; }
.lb-close { position: absolute; top: 14px; inset-inline-end: 18px; width: 48px; height: 48px; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-prev { inset-inline-start: 14px; } .lb-next { inset-inline-end: 14px; }
@media (max-width: 700px) { .lightbox { padding: 60px 12px 90px; } .lb-nav { top: auto; bottom: 20px; transform: none; } }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--charcoal); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--terracotta); }
.faq-icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px; background: var(--bronze); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { padding: 0 0 1.4rem; color: var(--muted); max-width: 72ch; }
.faq-answer p { margin: 0; }
.faq-group { margin-bottom: 3.5rem; }
.faq-group h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.faq-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.faq-toc a { border: 1px solid var(--line); padding: .45rem .9rem; font-size: .85rem; background: var(--card); transition: border-color .2s, color .2s; }
.faq-toc a:hover { border-color: var(--bronze); color: var(--terracotta); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--terracotta-dark), var(--terracotta)); color: #fff; padding-block: clamp(48px, 6vw, 80px); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Zellige universes ---------- */
.univers-list { display: grid; gap: clamp(48px, 7vw, 96px); }
.univers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.univers:nth-child(even) .univers-media { order: 2; }
.univers-media { position: relative; }
.univers-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.univers p { color: var(--muted); }
@media (max-width: 900px) { .univers { grid-template-columns: 1fr; } .univers:nth-child(even) .univers-media { order: 0; } }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product-gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; }
.product-main img { width: 100%; aspect-ratio: 1 / .85; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.product-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.specs { margin: 1.6rem 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.lang-ar .specs dt { letter-spacing: 0; font-size: .9rem; }
.specs dd { margin: 0; color: var(--charcoal); }
@media (max-width: 480px) { .specs div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Projects filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.filters button { border: 1px solid var(--line); background: var(--card); padding: .55rem 1.1rem; font-size: .8rem; letter-spacing: .08em; transition: all .2s; }
.lang-ar .filters button { letter-spacing: 0; font-size: .95rem; }
.filters button:hover { border-color: var(--bronze); }
.filters button[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.project-card[hidden] { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.8rem; background: var(--card); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
a.contact-card:hover { border-color: var(--bronze); box-shadow: var(--shadow); }
.contact-card > svg { width: 28px; height: 28px; color: var(--bronze); margin-bottom: .8rem; }
.contact-card .eyebrow { margin: 0; }
.contact-card strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--charcoal); word-break: break-word; }
.contact-card span:last-child { color: var(--muted); font-size: .9rem; }
.info-cards .panel { margin-top: 0; }
.info-cards p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Quote form ---------- */
.quote-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-form { margin-top: 0; display: grid; gap: 1.2rem; }
.quote-aside { display: grid; gap: 1.2rem; }
.quote-aside .panel-accent { position: static; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field[hidden] { display: none; }
.field label { font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.lang-ar .field label { letter-spacing: 0; font-size: .95rem; }
.field label span { color: var(--terracotta); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; color: var(--charcoal); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23776d62' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 12px center; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: left 12px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
.field.has-error input, .field.has-error select { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .82rem; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }

/* ---------- Footer ---------- */
.site-footer { background: #221f1b; color: rgba(255,255,255,.7); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #fff; display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; }
.footer-title { font-family: var(--font-body); font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #e3c89b; margin-bottom: 1.2rem; }
.lang-ar .footer-title { letter-spacing: 0; font-size: .95rem; font-weight: 700; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.footer-list a:hover { color: #fff; }
.contact-list li { display: flex; align-items: center; gap: .65rem; }
.contact-list svg { color: #e3c89b; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(40px, 5vw, 64px); padding-block: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; z-index: 90; bottom: 22px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(23,130,70,.6); transition: transform .25s var(--ease), background .25s; }
.wa-float svg { width: 30px; height: 30px; }
.menu-open .wa-float { display: none; }
.wa-float:hover { transform: scale(1.07); background: var(--wa-dark); }

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: flex; align-items: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
