/* ===== Arredamenti — Fer forgé & meubles ===== */
:root {
  --oxblood: #6E1E16;
  --oxblood-deep: #4F140E;
  --gold: #A8761E;
  --gold-light: #C99A4B;
  --iron: #1B1715;
  --iron-2: #26201D;
  --parchment: #F6F1E8;
  --stone: #ECE4D6;
  --ink: #2A2320;
  --muted: #554B44;
  --line: rgba(42, 35, 32, .14);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Gill Sans", "Futura", system-ui, sans-serif;
  --ar: "Tajawal", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --ar-display: "El Messiri", "Tajawal", "Geeza Pro", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--parchment); color: var(--ink);
  font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

/* bilingual: show only the active language */
html[data-lang="ar"] [lang="en"], html[data-lang="en"] [lang="ar"] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 4.4vw, 60px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
em { font-style: italic; }
p { margin: 0 0 1em; }

.eyebrow {
  font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 22px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--gold-light); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border: 1px solid transparent; border-radius: 0;
  font: 500 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-light { background: var(--parchment); color: var(--iron); }
.btn-light:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(246, 241, 232, .55); color: var(--parchment); }
.btn-ghost:hover { background: rgba(246, 241, 232, .12); border-color: var(--parchment); }
.btn-dark { background: var(--oxblood); color: var(--parchment); }
.btn-dark:hover { background: var(--oxblood-deep); }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad); color: var(--parchment);
  --mark-main: var(--parchment); --mark-accent: var(--gold-light);
  transition: background .35s, padding .35s, color .35s, box-shadow .35s;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(246, 241, 232, .96); color: var(--ink); padding-block: 12px;
  --mark-main: var(--oxblood); --mark-accent: var(--gold);
  box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 500 22px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; }
.brand-tag { font: 400 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; margin-top: 7px; color: var(--gold-light); }
.scrolled .brand-name, .menu-open .brand-name { color: var(--oxblood); }
.scrolled .brand-tag, .menu-open .brand-tag { color: var(--gold); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav a {
  font: 400 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 8px 0; position: relative;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover::after { transform: scaleX(1); }
.nav-cta { border: 1px solid currentColor; padding: 11px 18px !important; }
.nav-cta:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--parchment); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-toggle { background: none; border: 0; padding: 8px; font: 500 12px/1 var(--sans); letter-spacing: .14em; }
.lang-toggle span { opacity: .5; }
.lang-toggle .sep { margin: 0 4px; }
html[data-lang="ar"] .lang-toggle [data-l="ar"], html[data-lang="en"] .lang-toggle [data-l="en"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.menu-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 24px; }
.menu-open .menu-toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 84svh; display: flex; align-items: flex-end;
  color: var(--parchment); background: var(--iron); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: heroZoom 18s ease-out both; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 15, 13, .88) 0%, rgba(20, 15, 13, .55) 45%, rgba(20, 15, 13, .1) 80%),
    linear-gradient(0deg, rgba(20, 15, 13, .7) 0%, transparent 45%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { position: relative; padding: 140px var(--pad) clamp(70px, 12vh, 130px); max-width: 900px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: 1.0; margin-bottom: 30px; }
.hero h1 em { color: var(--gold-light); }
.hero-lede { font-size: clamp(17px, 1.4vw, 20px); max-width: 560px; color: rgba(246, 241, 232, .9); margin-bottom: 38px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-caption {
  position: absolute; right: var(--pad); bottom: 34px; margin: 0;
  font: 400 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(246, 241, 232, .6);
  writing-mode: vertical-rl; transform: rotate(180deg);
}

/* ===== Figures ===== */
.figures {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--oxblood); color: var(--parchment);
}
.figure { padding: 42px var(--pad) 40px; border-left: 1px solid rgba(246, 241, 232, .14); display: flex; flex-direction: column; gap: 10px; }
.figure:first-child { border-left: 0; }
.figure strong { font: 500 clamp(40px, 4vw, 58px)/1 var(--serif); color: var(--parchment); }
.figure span { font-size: 14px; letter-spacing: .04em; color: rgba(246, 241, 232, .75); }

/* ===== Sections ===== */
.section { padding: clamp(80px, 12vw, 160px) var(--pad); }
.section > * { max-width: var(--max); margin-inline: auto; }
.section.dark { background: var(--iron); color: var(--parchment); }
.section-head { margin-bottom: clamp(44px, 6vw, 80px); }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head.row > div { max-width: 720px; }
.section-lede { max-width: 440px; color: var(--muted); margin: 0; font-size: 17px; }
.dark .section-lede { color: rgba(246, 241, 232, .82); }
.craft .section-head .section-lede { margin-top: 28px; max-width: 620px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split.reverse .split-text { order: 2; }
.split-text h2 { margin-bottom: 34px; }
.split-text p { color: var(--muted); }
.dark .split-text p { color: rgba(246, 241, 232, .84); }

.split-media.stack { position: relative; margin: 0; padding: 0 0 18% 14%; }
.split-media.stack img:first-child { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split-media.stack img:last-child {
  position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 4/3; object-fit: cover;
  border: 10px solid var(--parchment);
}

/* ===== Craft ===== */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(246, 241, 232, .16); }
.steps li { padding: 34px 28px 10px 0; border-right: 1px solid rgba(246, 241, 232, .1); margin-right: 28px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.step-n { font: italic 400 15px/1 var(--serif); color: var(--gold-light); display: block; margin-bottom: 26px; }
.steps h3 { margin-bottom: 14px; }
.steps p { color: rgba(246, 241, 232, .82); font-size: 15.5px; }
.norms { margin-top: 56px !important; padding-top: 28px; border-top: 1px solid rgba(246, 241, 232, .16); color: rgba(246, 241, 232, .6); font-size: 14px; }
.norms strong { color: var(--parchment); font-weight: 500; }

/* ===== Collection ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button {
  background: transparent; border: 1px solid var(--line); padding: 12px 18px;
  font: 400 13px/1 var(--sans); letter-spacing: .08em; transition: all .2s;
}
.filters button sup { font-size: 10px; margin-left: 6px; color: var(--gold); }
.filters button:hover { border-color: var(--oxblood); }
.filters button[aria-selected="true"] { background: var(--oxblood); border-color: var(--oxblood); color: var(--parchment); }
.filters button[aria-selected="true"] sup { color: var(--gold-light); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 34px 24px; }
.product { display: flex; flex-direction: column; text-align: start; background: none; border: 0; padding: 0; animation: fadeUp .5s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.product-img { display: block; background: #fff; aspect-ratio: 1; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.product.pe .product-img img, .product.pb .product-img img { padding: 18px 30%; object-fit: cover; }
.product.po .product-img img { padding: 0; object-fit: cover; }
.product-img::after {
  content: "+"; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px;
  display: grid; place-items: center; background: var(--oxblood); color: var(--parchment);
  font: 300 22px/1 var(--sans); opacity: 0; transform: translateY(6px); transition: all .3s;
}
.product:hover .product-img img { transform: scale(1.05); }
.product:hover .product-img::after, .product:focus-visible .product-img::after { opacity: 1; transform: none; }
.product-meta { display: flex; flex-direction: column; padding-top: 16px; }
.product-cat { font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.product-ref { font: 500 26px/1.1 var(--serif); color: var(--oxblood); margin-top: 10px; }
.product-name { font-size: 15px; color: var(--ink); margin-top: 4px; }
.product-spec { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ===== Projects ===== */
.projects { background: var(--stone); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 340px; gap: 16px; }
.project {
  position: relative; overflow: hidden; border: 0; padding: 0; background: var(--iron); text-align: start; color: var(--parchment);
}
.project.featured { grid-column: span 2; grid-row: span 2; }
.project:nth-child(2).featured { grid-column: 3; grid-row: span 2; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity .4s; opacity: .9; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 13, 11, .9) 0%, rgba(18, 13, 11, .15) 55%, transparent 80%); }
.project:hover img { transform: scale(1.06); opacity: 1; }
.project-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.project-place { font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
.project-title { font: 500 24px/1.2 var(--serif); }
.project.featured .project-title { font-size: clamp(26px, 2.6vw, 38px); }
.project-desc { font-size: 14.5px; color: rgba(246, 241, 232, .78); max-width: 460px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s, opacity .4s; }
.project.featured .project-desc, .project:hover .project-desc, .project:focus-visible .project-desc { max-height: 80px; opacity: 1; }
.project-count { font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin-top: 8px; color: rgba(246, 241, 232, .65); }

.before-after { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 5vw, 80px); align-items: center; margin-top: clamp(70px, 9vw, 120px); }
.ba-text h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 20px; color: var(--oxblood); }
.ba-text p { color: var(--muted); }
.ba { position: relative; aspect-ratio: 3/2; overflow: hidden; user-select: none; background: var(--iron); }
.ba > img, .ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--parchment); transform: translateX(-1px); pointer-events: none; }
.ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--parchment); color: var(--oxblood);
  display: grid; place-items: center; font: 400 18px/1 var(--sans); letter-spacing: 2px;
}
.ba-label { position: absolute; top: 16px; z-index: 1; padding: 7px 12px; background: rgba(20, 15, 13, .7); color: var(--parchment); font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; pointer-events: none; }
.ba-label.l { left: 16px; } .ba-label.r { right: 16px; }

/* ===== Showroom ===== */
.info { margin: 34px 0 38px; display: grid; gap: 22px; }
.info div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(246, 241, 232, .16); }
.info.dark-text div { border-color: var(--line); }
.info dt { font: 500 11px/1.8 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.info.dark-text dt { color: var(--gold); }
.info dd { margin: 0; }
.info dd.todo { color: var(--muted); font-style: italic; }
.showroom-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 10px; }
.showroom-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.showroom-mosaic img:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 4; }
.showroom-mosaic img:nth-child(2) { grid-column: 5 / 7; grid-row: 1 / 4; }
.showroom-mosaic img:nth-child(3) { grid-column: 1 / 3; grid-row: 4 / 6; }
.showroom-mosaic img:nth-child(4) { grid-column: 3 / 5; grid-row: 4 / 6; }
.showroom-mosaic img:nth-child(5) { grid-column: 5 / 7; grid-row: 4 / 6; }

/* ===== Contact ===== */
.contact .split { align-items: start; }
.quote-form { display: grid; gap: 18px; background: #fff; padding: clamp(26px, 4vw, 48px); box-shadow: 0 30px 60px -40px rgba(42, 35, 32, .35); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: grid; gap: 8px; }
.quote-form label > span { font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.quote-form input, .quote-form select, .quote-form textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--parchment);
  border: 1px solid transparent; border-bottom-color: var(--line); padding: 13px 14px; border-radius: 0; width: 100%;
}
.quote-form :is(input, select, textarea):focus { outline: none; border-color: var(--oxblood); background: #fff; }
.quote-form.tried :invalid { border-color: #b3261e; }
.quote-form .btn { justify-self: start; margin-top: 6px; }
.form-status { margin: 0; font-size: 14px; color: var(--oxblood); min-height: 1.4em; }

/* ===== Footer ===== */
.site-footer { background: var(--iron); color: rgba(246, 241, 232, .7); padding: 80px var(--pad) 36px; }
.site-footer > * { max-width: var(--max); margin-inline: auto; }
.footer-logo { width: min(420px, 90%); margin-bottom: 54px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; font-size: 15px; padding-bottom: 50px; border-bottom: 1px solid rgba(246, 241, 232, .12); }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--gold-light); }
.copy { font-size: 12.5px; letter-spacing: .06em; margin-top: 26px !important; color: rgba(246, 241, 232, .45); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(16, 12, 10, .96);
  display: grid; grid-template-columns: 70px 1fr 70px; align-items: center;
  animation: fade .25s;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; padding: 60px 0 30px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; }
.lightbox[data-mode="sheet"] img { background: #fff; }
.lb-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 18px; padding: 0 12px; }
.lightbox figcaption { color: rgba(246, 241, 232, .8); font-size: 14px; letter-spacing: .04em; text-align: center; }
.lb-ask {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px;
  background: #1f8f4e; color: #fff; text-decoration: none; font: 500 14px/1 var(--sans); letter-spacing: .03em;
  transition: background .2s, transform .2s;
}
.lb-ask:hover { background: #17733e; transform: translateY(-1px); }
.lb-ask svg { width: 18px; height: 18px; }
html[data-lang="ar"] .lb-ask { font-family: var(--ar); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.showroom-mosaic img { cursor: zoom-in; transition: opacity .3s; }
.showroom-mosaic img:hover { opacity: .85; }
.lightbox button { background: none; border: 0; color: var(--parchment); font: 200 46px/1 var(--sans); padding: 10px; opacity: .7; }
.lightbox button:hover { opacity: 1; }
.lb-close { position: absolute; top: 12px; right: 18px; font-size: 40px !important; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { visibility: hidden; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.steps li.reveal:nth-child(2) { transition-delay: .1s; }
.steps li.reveal:nth-child(3) { transition-delay: .2s; }
.steps li.reveal:nth-child(4) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: 70px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--parchment); color: var(--ink); padding: 10px var(--pad) 28px;
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .3s;
  }
  .menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 18px; text-align: center; border: 1px solid var(--oxblood) !important; color: var(--oxblood); }
  .menu-toggle { display: block; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; margin-right: 0; }
  .project-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
  .project.featured, .project:nth-child(2).featured { grid-column: span 2; grid-row: span 1; }
  .project.featured { grid-row: span 2; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { border-left: 0; }
  .figure { border-top: 1px solid rgba(246, 241, 232, .14); padding-block: 30px; }
  .split, .before-after { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 0; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-caption { display: none; }
  .hero-media::after { background: linear-gradient(0deg, rgba(20, 15, 13, .92) 10%, rgba(20, 15, 13, .45) 70%, rgba(20, 15, 13, .3)); }
}
@media (max-width: 560px) {
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 18px; letter-spacing: .14em; }
  .brand-tag { font-size: 8.5px; letter-spacing: .24em; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; margin-right: 0; }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .project.featured, .project:nth-child(2).featured { grid-column: auto; grid-row: span 1; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .product-ref { font-size: 21px; }
  .field-row { grid-template-columns: 1fr; }
  .showroom-mosaic { grid-auto-rows: 70px; }
  .info div { grid-template-columns: 1fr; gap: 4px; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
}

/* ===== WhatsApp ===== */
.btn-wa svg { width: 18px; height: 18px; }
.wa-link { color: var(--oxblood); text-decoration: none; border-bottom: 1px solid currentColor; }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 13px 18px 13px 14px;
  background: #1f8f4e; color: #fff; border-radius: 999px; text-decoration: none;
  font: 500 13px/1 var(--sans); letter-spacing: .06em;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: transform .2s, background .2s;
}
.wa-float:hover { background: #17733e; transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; }
body.no-scroll .wa-float { display: none; }
@media (max-width: 560px) {
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .wa-float > span { display: none !important; }
}

/* ===== Arabic typography ===== */
html[data-lang="ar"] body { font-family: var(--ar); font-size: 18px; line-height: 1.85; }
html[data-lang="ar"] :is(h1, h2, h3, .project-title) { font-family: var(--ar-display); font-weight: 600; line-height: 1.4; letter-spacing: 0; }
html[data-lang="ar"] h1 { font-size: clamp(42px, 6.2vw, 88px); line-height: 1.3; }
html[data-lang="ar"] h2 { font-size: clamp(32px, 4vw, 54px); }
html[data-lang="ar"] em { font-style: normal; }
html[data-lang="ar"] :is(.eyebrow, .nav a, .btn, .product-cat, .project-place, .project-count, .quote-form label > span,
  .info dt, .filters button, .ba-label, .brand-tag, .wa-float, .step-n, .copy, .hero-caption) {
  font-family: var(--ar); letter-spacing: 0; text-transform: none;
}
html[data-lang="ar"] .eyebrow { font-size: 15px; font-weight: 700; }
html[data-lang="ar"] .nav a { font-size: 16px; font-weight: 500; }
html[data-lang="ar"] .btn { font-size: 16px; font-weight: 700; padding-block: 15px; }
html[data-lang="ar"] .product-cat, html[data-lang="ar"] .project-place { font-size: 14px; font-weight: 700; }
html[data-lang="ar"] .project-count { font-size: 14px; }
html[data-lang="ar"] .info dt, html[data-lang="ar"] .quote-form label > span { font-size: 14px; font-weight: 700; }
html[data-lang="ar"] .brand-tag { font-size: 12px; margin-top: 6px; }
html[data-lang="ar"] .filters button { font-size: 15px; }
html[data-lang="ar"] .product-name { font-size: 16px; }
html[data-lang="ar"] .step-n { font-style: normal; font-size: 16px; }
html[data-lang="ar"] .hero-caption { font-size: 13px; }
.lang-toggle [data-l="ar"] { font-family: var(--ar); font-size: 15px; }

/* ===== Right-to-left layout ===== */
html[dir="rtl"] .hero-media::after {
  background:
    linear-gradient(270deg, rgba(20, 15, 13, .88) 0%, rgba(20, 15, 13, .55) 45%, rgba(20, 15, 13, .1) 80%),
    linear-gradient(0deg, rgba(20, 15, 13, .7) 0%, transparent 45%);
}
html[dir="rtl"] .hero-caption { right: auto; left: var(--pad); }
html[dir="rtl"] .split-media.stack { padding: 0 14% 18% 0; }
html[dir="rtl"] .split-media.stack img:last-child { left: auto; right: 0; }
html[dir="rtl"] .nav a:not(.nav-cta)::after { transform-origin: right; }
html[dir="rtl"] .product-img::after { right: auto; left: 12px; }
html[dir="rtl"] .filters button sup { margin: 0 6px 0 0; }
html[dir="rtl"] .wa-float { right: auto; left: 22px; padding: 13px 14px 13px 18px; }
html[dir="rtl"] .quote-form .btn { justify-self: start; }
@media (max-width: 820px) {
  html[dir="rtl"] .hero-media::after { background: linear-gradient(0deg, rgba(20, 15, 13, .92) 10%, rgba(20, 15, 13, .45) 70%, rgba(20, 15, 13, .3)); }
}
@media (max-width: 560px) {
  html[dir="rtl"] .wa-float { left: 16px; padding: 14px; }
}
html[dir="rtl"] .product-ref { text-align: right; }

/* ===== Traced original logo in header ===== */
.brand-logo { height: 44px; width: auto; display: block; }
.brand-logo.on-light { display: none; }
.scrolled .brand-logo.on-dark, .menu-open .brand-logo.on-dark { display: none; }
.scrolled .brand-logo.on-light, .menu-open .brand-logo.on-light { display: block; }
.footer-logo { width: min(460px, 90%); }
@media (max-width: 560px) { .brand-logo { height: 32px; } }

/* ===== Logo intro ===== */
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #FBF8F2 0%, var(--parchment) 60%, #EDE5D7 100%);
  animation: introOut .8s cubic-bezier(.7, 0, .3, 1) 3.1s forwards;
  cursor: pointer;
}
html.no-intro .intro { display: none; }
.intro-logo { width: min(760px, 84vw); height: auto; overflow: visible; animation: introBreathe 3.2s ease-out both; }
.intro .i-r { fill: #6E1E16; }
.intro .i-g { fill: #A0661A; }
.intro .i-house { color: #6E1E16; }

/* letters rise in one by one */
.intro .i-ch {
  transform-box: fill-box; transform-origin: 50% 100%;
  opacity: 0; animation: introLetter .7s cubic-bezier(.2, .8, .2, 1) calc(.55s + var(--i) * .075s) both;
}
.intro .i-ch:first-child { animation-name: introCap; animation-duration: .9s; animation-delay: .4s; }

/* the house builds itself: roof drops, frame and windows rise */
.intro .i-house-in > * { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; animation: introRise .55s cubic-bezier(.2, .8, .2, 1) both; }
.intro .i-house-in > :nth-child(1) { animation-name: introRoof; animation-delay: 1.35s; transform-origin: 50% 0; }
.intro .i-house-in > :nth-child(2) { animation-delay: 1.25s; }
.intro .i-house-in > :nth-child(3) { animation-delay: 1.3s; }
.intro .i-house-in > :nth-child(4), .intro .i-house-in > :nth-child(5) { animation-delay: 1.05s; }
.intro .i-house-in > :nth-child(n+6) { animation-name: introPop; animation-delay: 1.5s; transform-origin: 50% 50%; }
.intro .i-house-in > :nth-child(7), .intro .i-house-in > :nth-child(9) { animation-delay: 1.58s; }
.intro .i-house-in > :nth-child(10) { animation-delay: 1.45s; }
.intro .i-house-in > :nth-child(n+11) { animation-delay: 1.66s; }

/* rule draws from the centre, France and tagline settle in */
.intro .i-rule { transform-box: fill-box; transform-origin: 50% 50%; animation: introRule .9s cubic-bezier(.7, 0, .2, 1) 1.55s both; }
.intro .i-france { opacity: 0; animation: introFade .7s ease-out 1.85s both; }
.intro .i-tag { opacity: 0; animation: introFade .8s ease-out 2.05s both; }

@keyframes introLetter { from { opacity: 0; transform: translateY(38%) scaleY(.6); } to { opacity: 1; transform: none; } }
@keyframes introCap { 0% { opacity: 0; transform: translateY(-18%) rotate(-8deg) scale(1.25); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes introRise { from { opacity: 0; transform: translateY(30%) scaleY(.4); } to { opacity: 1; transform: none; } }
@keyframes introRoof { from { opacity: 0; transform: translateY(-140%); } to { opacity: 1; transform: none; } }
@keyframes introPop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes introRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes introBreathe { from { transform: scale(.94); } to { transform: scale(1); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }
.intro.skip { animation: introOut .45s ease forwards; }

/* ===== Browse by type ===== */
.browse { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
.browse .section-head { margin-bottom: clamp(26px, 3vw, 40px); }
.browse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--iron); color: var(--parchment); text-decoration: none; display: block; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 13, 11, .85) 0%, rgba(18, 13, 11, .1) 55%); }
.tile > span { position: absolute; inset-inline: 20px; bottom: 18px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: 500 clamp(20px, 2vw, 26px)/1.2 var(--serif); }
html[data-lang="ar"] .tile > span { font-family: var(--ar-display); font-weight: 600; }
.tile > span::after { content: "→"; font: 400 20px/1 var(--sans); width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border: 1px solid rgba(246, 241, 232, .5); border-radius: 50%; transition: background .3s, color .3s; }
html[dir="rtl"] .tile > span::after { content: "←"; }
.tile:hover img { transform: scale(1.06); opacity: 1; }
.tile:hover > span::after { background: var(--parchment); color: var(--oxblood); }
.tile-projects { outline: 2px solid var(--gold); outline-offset: -2px; }
.collection { padding-top: clamp(50px, 7vw, 100px); }
@media (max-width: 820px) { .browse-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .tile > span { inset-inline: 14px; bottom: 12px; font-size: 18px; } .tile > span::after { width: 32px; height: 32px; font-size: 16px; } }

/* ===== Trust band ===== */
.trust { background: var(--iron); color: var(--parchment); padding: clamp(48px, 6vw, 84px) var(--pad); }
.trust-inner { max-width: var(--max); margin-inline: auto; }
.trust-head h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: clamp(24px, 3vw, 36px); }
.trust-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.trust-card { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 0; padding: 0; background: #000; color: var(--parchment); text-align: start; }
.trust-card:first-child { aspect-ratio: auto; }
.trust-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.trust-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 10, 8, .9) 0%, rgba(14, 10, 8, .1) 60%); }
.trust-card:hover img { transform: scale(1.05); opacity: 1; }
.trust-meta { position: absolute; inset-inline: 20px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.trust-title { font: 500 clamp(19px, 1.8vw, 26px)/1.25 var(--serif); }
html[data-lang="ar"] .trust-title { font-family: var(--ar-display); font-weight: 600; }
.trust-names { list-style: none; margin: clamp(24px, 3vw, 34px) 0 0; padding: 22px 0 0; border-top: 1px solid rgba(246, 241, 232, .16);
  display: flex; flex-wrap: wrap; gap: 10px 0; }
.trust-names li { font-size: 15px; color: rgba(246, 241, 232, .8); padding-inline-end: 18px; margin-inline-end: 18px; border-inline-end: 1px solid rgba(201, 154, 75, .5); }
.trust-names li:last-child { border: 0; }
@media (max-width: 820px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-card:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .trust-names li { font-size: 14px; }
}
