:root {
  --ink: #111820;
  --ink-soft: #394651;
  --graphite: #161e25;
  --graphite-2: #232e36;
  --sand: #eee7dc;
  --paper: #f7f5f1;
  --white: #ffffff;
  --gold: #b9975b;
  --gold-light: #dfc591;
  --burgundy: #b62f2a;
  --line: rgba(17, 24, 32, .14);
  --shadow: 0 24px 60px rgba(13, 20, 26, .16);
  --radius: 18px;
  --max: 1280px;
  --font-latin: Inter, "Segoe UI", Arial, sans-serif;
  --font-arabic: "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-latin);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 320px;
  font-size: 16px;
}
html[dir="rtl"] body { font-family: var(--font-arabic); }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; transform: translateY(-150%); padding: 10px 16px; color: #fff; background: #000; z-index: 1000; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: #fff;
  background: rgba(17, 24, 32, .94);
  backdrop-filter: blur(18px);
  transition: .25s ease;
}
.site-header.is-scrolled { border-color: rgba(255,255,255,.12); box-shadow: 0 10px 40px rgba(5, 10, 14, .2); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 260px; }
.brand img { width: 58px; height: 64px; object-fit: contain; }
.brand-copy { line-height: 1.08; }
.brand-copy strong { display: block; font-size: 17px; letter-spacing: .13em; }
.brand-copy span { color: var(--gold-light); font-size: 11px; font-weight: 800; letter-spacing: .29em; }
.primary-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 15px; }
.primary-nav a:not(.button) { position: relative; padding-block: 8px; }
.primary-nav a:not(.button)::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 2px; background: var(--gold-light); transform: scaleX(0); transition: transform .2s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.language-link { border: 1px solid rgba(255,255,255,.26); border-radius: 999px; padding: 8px 13px !important; }
.menu-button { display: none; margin-inline-start: auto; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-button span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: .2s; }
.nav-open .menu-button span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .menu-button span:nth-child(2) { opacity: 0; }
.nav-open .menu-button span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 10px; color: #fff; background: var(--burgundy); font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(141, 48, 44, .22); background: #a33b35; }
.button--dark { background: var(--ink); }
.button--ghost { color: var(--ink); background: transparent; border-color: rgba(23, 32, 40, .3); }
.button--ghost:hover { color: #fff; background: var(--ink); box-shadow: none; }
.text-link { min-height: 44px; color: var(--burgundy); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.text-link::after { content: "\2192"; }
html[dir="rtl"] .text-link::after { content: "\2190"; }

.hero { position: relative; overflow: hidden; padding: 72px 0 84px; color: #fff; background-color: var(--graphite); background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), radial-gradient(circle at 18% 18%, rgba(182,47,42,.26), transparent 34%); background-size: 48px 48px, 48px 48px, auto; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; inset: -300px auto auto -180px; border: 1px solid rgba(223,197,145,.22); pointer-events: none; }
html[dir="rtl"] .hero::before { inset-inline: auto -180px; }
.hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(42px, 6vw, 88px); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--burgundy); font-size: 13px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--gold); }
h1, h2, h3 { margin-block-start: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-block-end: 26px; font-size: clamp(48px, 6.4vw, 88px); max-width: 760px; }
h2 { margin-block-end: 22px; font-size: clamp(34px, 4vw, 58px); }
h3 { margin-block-end: 12px; font-size: 25px; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.lead { color: #5e6c76; font-size: clamp(18px, 2vw, 22px); max-width: 680px; }
.hero .lead { color: rgba(255,255,255,.72); }
.hero .button--ghost { color: #fff; border-color: rgba(255,255,255,.48); }
.hero .button--ghost:hover { color: var(--ink); background: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-media { position: relative; min-height: 620px; }
.hero-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(223,197,145,.5); border-radius: 22px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: 0 34px 80px rgba(0,0,0,.34); }
.hero-stamp { position: absolute; inset-inline-start: -24px; inset-block-end: 30px; width: 148px; min-height: 72px; display: grid; place-items: center; text-align: center; padding: 16px 18px; color: #fff; background: var(--burgundy); border: 4px solid var(--graphite); border-radius: 12px; font-size: 11px; font-weight: 800; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }

.credential-strip { background: var(--ink); color: #fff; }
.credential-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.credential { padding: 26px 25px; border-inline-end: 1px solid rgba(255,255,255,.13); }
.credential:last-child { border: 0; }
.credential strong { display: block; color: var(--gold-light); font-size: 24px; line-height: 1.1; }
.credential span { color: rgba(255,255,255,.72); font-size: 13px; }

.section { padding: 110px 0; }
.section--compact { padding: 75px 0; }
.section--sand { background: var(--sand); }
.section--dark { color: #fff; background: var(--graphite); }
.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: 80px; margin-bottom: 56px; }
.section-heading p { margin: 0; color: #62717d; font-size: 18px; }
.section--dark .section-heading p { color: rgba(255,255,255,.68); }
.section-title { max-width: 720px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { position: relative; aspect-ratio: 4 / 5; min-height: 0; overflow: hidden; border: 1px solid rgba(17,24,32,.1); border-radius: var(--radius); background: #d9d9d7; box-shadow: 0 18px 44px rgba(17,24,32,.11); isolation: isolate; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.product-card:hover img { transform: scale(1.035); }
.product-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,15,19,.93) 100%); }
.product-card__content { position: absolute; inset: auto 24px 24px; color: #fff; }
.product-card__content p { max-width: 540px; margin: 0 0 15px; color: rgba(255,255,255,.76); }
.product-card__tag { display: inline-block; margin-bottom: 12px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; background: rgba(17,24,32,.5); backdrop-filter: blur(8px); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.solid-range { background: #e9e3da; }
.door-showcase { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.door-showcase article { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 14px 38px rgba(17,24,32,.08); }
.door-showcase__image { aspect-ratio: 1 / 1; overflow: hidden; background: #d9d9d7; }
.door-showcase__image picture, .door-showcase__image img { width: 100%; height: 100%; }
.door-showcase__image img { object-fit: cover; transition: transform .45s ease; }
.door-showcase article:hover .door-showcase__image img { transform: scale(1.025); }
.door-showcase__copy { position: relative; min-height: 210px; padding: 28px 24px 26px; }
.door-showcase__copy > span { display: block; margin-bottom: 16px; color: var(--burgundy); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.door-showcase__copy h3 { font-size: 23px; }
.door-showcase__copy p { margin-bottom: 0; color: #60707a; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 90px; }
.split--reverse > :first-child { order: 2; }
.media-frame { position: relative; }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; min-height: 0; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.media-frame::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; z-index: -1; border: 1px solid rgba(185,151,91,.55); border-radius: 18px; }
html[dir="rtl"] .media-frame::before { inset: -14px -14px 14px 14px; }
.check-list { list-style: none; padding: 0; margin: 28px 0; }
.check-list li { position: relative; margin: 12px 0; padding-inline-start: 32px; }
.check-list li::before { content: "\2713"; position: absolute; inset-inline-start: 0; color: var(--burgundy); font-weight: 900; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.fact { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.45); }
.fact strong { display: block; font-size: 28px; color: var(--burgundy); line-height: 1.1; }
.fact span { color: #687680; font-size: 13px; }

.spec-panel { display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border-radius: 36px; background: #fff; box-shadow: var(--shadow); }
.spec-controls { padding: 48px; background: var(--ink); color: #fff; }
.spec-results { padding: 48px; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.field select, .field input, .field textarea { width: 100%; min-height: 52px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 11px 14px; color: inherit; background: rgba(255,255,255,.08); }
.field textarea { min-height: 140px; resize: vertical; }
.field select option { color: var(--ink); }
.quote-form .field input, .quote-form .field select, .quote-form .field textarea { color: var(--ink); background: #fff; border-color: var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field--full { grid-column: 1 / -1; }
.spec-rating { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 24px; }
.spec-rating strong { color: var(--burgundy); font-size: 74px; line-height: 1; }
.spec-rating span { color: #66747e; font-weight: 700; }
.spec-note, .disclosure { color: #6d7982; font-size: 13px; }

.page-hero { position: relative; overflow: hidden; padding: 100px 0 82px; color: #fff; background-color: var(--graphite); background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), radial-gradient(circle at 82% 25%, rgba(182,47,42,.26), transparent 30%); background-size: 48px 48px, 48px 48px, auto; }
.page-hero h1 { font-size: clamp(48px, 6vw, 84px); }
.page-hero .lead { color: rgba(255,255,255,.7); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.58); font-size: 13px; margin-bottom: 24px; }
.breadcrumbs a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding-inline: 5px; }
.breadcrumbs span::before { content: "/"; margin-inline-end: 8px; }
html[dir="rtl"] .breadcrumbs span::before { content: "\005C"; }

.prose { max-width: 800px; }
.prose p { color: #5f6d77; font-size: 18px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0; }
.pill { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: #fff; font-size: 13px; font-weight: 700; }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: timeline; }
.timeline article { padding: 30px; border-radius: 24px; background: #fff; border: 1px solid var(--line); counter-increment: timeline; }
.timeline article::before { content: "0" counter(timeline); display: block; margin-bottom: 28px; color: var(--gold); font-size: 34px; font-weight: 900; }

.cert-card { padding: 38px; border: 1px solid rgba(255,255,255,.15); border-radius: 26px; background: rgba(255,255,255,.05); }
.cert-card strong { color: var(--gold-light); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.certificate-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 18px; background: #fff; }
.certificate-table th, .certificate-table td { padding: 16px; text-align: start; border-bottom: 1px solid var(--line); }
.certificate-table th { background: #f1eadf; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }

.filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter-button { min-height: 44px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; }
.filter-button.is-active, .filter-button:hover { color: #fff; background: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery-item { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; cursor: zoom-in; background: #ddd; }
.gallery-item[hidden] { display: none; }
.gallery-item picture { display: block; width: 100%; aspect-ratio: 1 / 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption { position: absolute; inset: auto 12px 12px; padding: 8px 11px; border-radius: 7px; color: #fff; background: rgba(17,24,32,.82); backdrop-filter: blur(8px); font-size: 11px; font-weight: 800; }
.lightbox { width: min(94vw, 1100px); border: 0; padding: 0; border-radius: 20px; background: transparent; }
.lightbox::backdrop { background: rgba(12,16,19,.88); }
.lightbox img { width: 100%; max-height: 84vh; object-fit: contain; border-radius: 20px; }
.lightbox button { position: absolute; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.6); font-size: 22px; cursor: pointer; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.contact-card small { display: block; margin-bottom: 4px; color: var(--burgundy); font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.contact-card a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; overflow-wrap: anywhere; }
.map-frame { width: 100%; min-height: 430px; border: 0; border-radius: 28px; }

.cta { padding: 80px 0; color: #fff; background: linear-gradient(130deg, var(--burgundy), #632623); }
.cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { margin: 0; max-width: 760px; }
.cta .button { color: var(--ink); background: #fff; }

.site-footer { padding: 72px 0 28px; color: rgba(255,255,255,.72); background: #11181d; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; }
.footer-brand { color: #fff; }
.footer-brand img { width: 72px; margin-bottom: 16px; }
.site-footer h3 { color: #fff; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer li a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.footer-bottom a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.whatsapp { position: fixed; z-index: 70; inset-inline-end: max(18px, env(safe-area-inset-right)); inset-block-end: max(18px, env(safe-area-inset-bottom)); width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; color: #fff; background: #1f9d61; box-shadow: 0 12px 28px rgba(20,130,77,.3); font-weight: 900; }

@media (max-width: 1000px) {
  .menu-button { display: block; }
  .primary-nav { position: fixed; inset: 88px 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; padding: 26px 30px calc(30px + env(safe-area-inset-bottom)); color: var(--ink); background: var(--paper); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
  .nav-open .primary-nav { opacity: 1; visibility: visible; pointer-events: auto; }
  .primary-nav a { padding: 15px 0 !important; border-bottom: 1px solid var(--line); }
  .primary-nav .button { margin-top: 18px; }
  .brand { min-width: 0; }
  .brand-copy strong { font-size: 14px; }
  .hero-grid, .split, .section-heading, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-media { min-height: 520px; }
  .hero-stamp { inset-inline-start: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .door-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 78px; }
  .brand img { width: 46px; height: 50px; }
  .brand-copy span { display: none; }
  .primary-nav { inset-block-start: 78px; height: calc(100dvh - 78px); padding-inline: 20px; }
  h1 { font-size: clamp(40px, 12vw, 56px); }
  h2 { font-size: clamp(30px, 9vw, 42px); }
  h3 { font-size: 22px; }
  .lead { font-size: 17px; }
  .page-hero { padding: 64px 0 56px; }
  .page-hero h1 { font-size: clamp(38px, 11vw, 50px); }
  .hero { padding: 44px 0 62px; }
  .hero-grid, .split, .section-heading, .contact-grid { gap: 38px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-media { min-height: 360px; }
  .hero-media::before { inset: 10px -8px -10px 10px; }
  .hero-media img { border-radius: 34px 14px 34px 14px; }
  .hero-stamp { width: 116px; font-size: 9px; border-width: 5px; }
  .credential-grid { grid-template-columns: 1fr 1fr; }
  .credential:nth-child(2) { border-inline-end: 0; }
  .section { padding: 64px 0; }
  .section--compact { padding: 52px 0; }
  .section-heading { margin-bottom: 38px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { aspect-ratio: 4 / 5; }
  .product-card__content { inset: auto 18px 20px; }
  .product-card__content p { font-size: 15px; }
  .door-showcase { grid-template-columns: 1fr; }
  .door-showcase__copy { min-height: 0; }
  .spec-panel { grid-template-columns: 1fr; }
  .spec-controls, .spec-results { padding: 30px 24px; }
  .spec-rating strong { font-size: 58px; }
  .facts, .timeline, .cert-grid, .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .filter-row { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 0 14px 12px; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .filter-button { flex: 0 0 auto; scroll-snap-align: start; }
  .gallery-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 340px; border-radius: 18px; }
  .certificate-table { min-width: 620px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom, .cta-grid { flex-direction: column; align-items: flex-start; }
  .cta .button { width: 100%; }
  .site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .brand-copy strong { font-size: 12px; letter-spacing: .1em; }
  .hero-media { min-height: 320px; }
  .credential { padding: 22px 16px; }
  .credential strong { font-size: 21px; }
  .spec-controls, .spec-results { padding: 26px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
