/* ==========================================================================
   CESAR IRAQ  —  design system
   Authentic Cesar identity: strict black/white + earthy neutrals,
   Montserrat (Cesar's sanctioned free alternative to Brown), spaced-uppercase
   logo, generous whitespace, thin rules, restrained motion.
   ========================================================================== */
:root {
  --black: #000000;
  --ink: #141414;
  --white: #ffffff;
  --beige: #dfddd3;          /* Hamandi complementary, Cesar-approved */
  --beige-soft: #f4f3ef;     /* warm off-white for alternating sections */
  --paper: #faf9f7;
  --line: #e4e3df;
  --gray: #6d6d6a;
  --gray-soft: #9a9a97;

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Montserrat', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 220ms;
  --dur-base: 480ms;
  --dur-slow: 760ms;

  --nav-h: 74px;
  --maxw: 1340px;
  --pad: clamp(22px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Content is ALWAYS visible (resting opacity is 1). A subtle one-time fade-in
   plays on load — no scroll dependency, no permanent hidden state, so nothing
   can ever stay invisible. */
@keyframes cesarFadeUp { from { opacity: 0; transform: translateY(16px); } }
[data-reveal], [data-reveal-group] > * { animation: cesarFadeUp 0.6s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * { animation: none; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section.tight { padding: clamp(56px, 8vw, 96px) 0; }
.bg-beige { background: var(--beige-soft); }
.bg-ink { background: var(--ink); color: var(--white); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
}
.label.light { color: rgba(255,255,255,0.6); }
.title {
  font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.14;
  margin-top: 18px;
}
.title.light { color: var(--white); }
.lead {
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.7;
  color: var(--gray);
}
.section-head { max-width: 640px; }
.section-head.center { max-width: 720px; margin: 0 auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn.solid { background: var(--ink); color: var(--white); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn.light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn.light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.link-arrow::after { content: ''; width: 20px; height: 1px; background: currentColor; transition: width var(--dur-fast) var(--ease-out); }
.link-arrow:hover::after { width: 34px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.navbar.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,0.96); }
.nav-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo-mark { height: 15px; width: auto; align-self: flex-start; display: block; margin-bottom: 6px; }
.logo-word { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.5em; text-transform: uppercase; color: var(--black); }
.logo-sub { font-size: 0.5rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gray); margin-top: 5px; padding-left: 2px; }
.nav-links { list-style: none; display: flex; gap: 34px; }
.nav-links a { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--ink); transition: width var(--dur-base) var(--ease-out); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; color: var(--gray); }
.lang-toggle .l-on { color: var(--ink); }
.lang-sep { opacity: 0.4; }
.nav-cta { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 11px 22px; border: 1px solid var(--ink); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.nav-cta:hover { background: var(--ink); color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 1.5px; background: var(--ink); transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }

/* ---------- Hero (split) ---------- */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; min-height: 100vh; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 40px) var(--pad) 64px; background: var(--paper); }
.hero-eyebrow { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gray); margin-bottom: 26px; }
.hero-text h1 { font-weight: 300; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.08; letter-spacing: -0.02em; }
.hero-text h1 em { font-style: italic; }
.hero-desc { margin-top: 28px; max-width: 440px; font-weight: 300; font-size: 1.08rem; color: var(--gray); }
.hero-actions { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media { position: relative; overflow: hidden; background: var(--ink); min-height: 60vh; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Hero slideshow (slide 1 hosts the marble comparison slider) */
.h-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1200ms var(--ease-out); pointer-events: none; }
.h-slide.active { opacity: 1; pointer-events: auto; }
.h-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; gap: 10px; }
.hero-dots .dot { width: 8px; height: 8px; border-radius: 50%; padding: 0; border: 1px solid rgba(255,255,255,0.9); background: transparent; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.hero-dots .dot.active { background: #fff; transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) { .h-slide { transition: none; } }

/* Material comparison slider */
.compare { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; touch-action: none; user-select: none; cursor: ew-resize; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-before { clip-path: inset(0 28% 0 0); will-change: clip-path; }
.compare-tag { position: absolute; bottom: 22px; z-index: 3; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); padding: 7px 13px; pointer-events: none; }
.compare-tag-a { left: 22px; }
.compare-tag-b { right: 22px; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: 72%; width: 2px; margin-left: -1px; background: rgba(255,255,255,0.92); z-index: 4; pointer-events: none; }
.compare-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.96); box-shadow: 0 3px 14px rgba(0,0,0,0.3); }
.compare-grip::before, .compare-grip::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.compare-grip::before { left: 12px; border-right: 7px solid #111; }
.compare-grip::after { right: 12px; border-left: 7px solid #111; }
.compare:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
html[lang="ar"] .compare-tag { letter-spacing: 0.02em; }

/* ---------- Intro / manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .quote { font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.4; letter-spacing: -0.01em; max-width: 900px; margin: 22px auto 0; }
.manifesto .quote em { font-style: italic; }
.manifesto .attrib { margin-top: 30px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); }

/* ---------- Collections grid ---------- */
.coll-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 60px; }
.coll-card { display: block; }
.coll-figure { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--beige-soft); }
.coll-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.coll-card:hover .coll-figure img { transform: scale(1.045); }
.coll-body { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 2px 0; border-top: 1px solid var(--ink); margin-top: 20px; }
.coll-name { font-size: 1.02rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.coll-tag { font-size: 0.82rem; color: var(--gray); font-weight: 300; }
.coll-desc { margin-top: 10px; font-size: 0.9rem; color: var(--gray); font-weight: 300; max-width: 90%; }

/* ---------- Stats / why band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.stat { text-align: center; padding: 0 8px; }
.stat .n { font-weight: 200; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; }
.stat .k { margin-top: 14px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); }
.bg-ink .stat .k { color: rgba(255,255,255,0.55); }

/* ---------- Split feature (showroom / made in italy) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; overflow: hidden; min-height: 440px; background: var(--ink); }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 104px) var(--pad); }
.feature-body .lead { margin-top: 22px; }
.feature-body .actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Materials strip ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-top: 56px; }
.mat { position: relative; overflow: hidden; aspect-ratio: 3 / 4; }
.mat img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.mat:hover img { transform: scale(1.05); }
.mat span { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: var(--white); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.mat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.5)); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.cta .container { position: relative; z-index: 2; }
.cta .title { color: var(--white); }
.cta .lead { color: rgba(255,255,255,0.8); margin: 22px auto 0; max-width: 560px; }
.cta .actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 88px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo-word { color: #fff; }
.footer .logo-sub { color: rgba(255,255,255,0.45); }
.footer-brand p { margin-top: 22px; max-width: 300px; font-weight: 300; font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer h4 { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer a { font-size: 0.9rem; font-weight: 300; color: rgba(255,255,255,0.6); transition: color var(--dur-fast) var(--ease-out); }
.footer a:hover { color: #fff; }
.footer-wordmark { font-size: clamp(3rem, 13vw, 11rem); font-weight: 200; letter-spacing: 0.3em; color: rgba(255,255,255,0.05); text-align: center; padding: 40px 0 0; user-select: none; white-space: nowrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.76rem; color: rgba(255,255,255,0.45); }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ==========================================================================
   Language / RTL / Arabic
   ========================================================================== */
html[lang="ar"], html[lang="ar"] body,
html[lang="ar"] input, html[lang="ar"] textarea, html[lang="ar"] select, html[lang="ar"] button { font-family: var(--font-ar); }
html[lang="ar"] { line-height: 1.9; }
html[lang="ar"] .hero-text h1, html[lang="ar"] .title, html[lang="ar"] .manifesto .quote { font-weight: 400; letter-spacing: 0; }
html[lang="ar"] em { font-style: normal; }
/* Arabic is cursive: ANY letter-spacing breaks the letter joins. Kill it globally
   in Arabic mode, then restore tracking only on Latin-only elements. */
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] .footer-wordmark { letter-spacing: 0.3em !important; } /* Latin CESAR */
html[lang="ar"] .lang-toggle { letter-spacing: 0.08em !important; }    /* EN / ع chip */
html[lang="ar"] .label, html[lang="ar"] .nav-links a, html[lang="ar"] .coll-name,
html[lang="ar"] .hero-eyebrow, html[lang="ar"] .btn, html[lang="ar"] .link-arrow,
html[lang="ar"] .stat .k, html[lang="ar"] .mat span, html[lang="ar"] .footer h4,
html[lang="ar"] .nav-cta, html[lang="ar"] .feature-eyebrow, html[lang="ar"] .map-link,
html[lang="ar"] .contact-item h4, html[lang="ar"] .value h4 { text-transform: none; }
html[dir="rtl"] .coll-body { direction: rtl; }
html[dir="rtl"] .footer-bottom { direction: rtl; }

/* ---------- Focus / accessibility ---------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  * , *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; width: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  body.mobile-menu-open .nav-links { display: flex; transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 15px var(--pad); width: 100%; }
  .nav-links a::after { display: none; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; min-height: 56vh; }
  .hero-text { padding: 54px var(--pad) 60px; }

  .coll-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: -1; }
  .feature-media { min-height: 60vw; }
  .mat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-header { padding: calc(var(--nav-h) + 88px) 0 60px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-header .label { margin-bottom: 16px; }
.page-header h1 { font-weight: 300; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.1; }
.page-header p { margin-top: 20px; max-width: 620px; font-weight: 300; color: var(--gray); font-size: 1.05rem; }
.page-header.dark { background: var(--ink); border-bottom: none; position: relative; overflow: hidden; }
.page-header.dark h1 { color: #fff; }
.page-header.dark p { color: rgba(255,255,255,0.65); }
.page-header.dark .label { color: rgba(255,255,255,0.55); }
.page-header-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.4; }
.page-header.dark .container { position: relative; z-index: 2; }

/* Collection feature blocks (reuse .feature) */
.feature-eyebrow { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gray); margin-bottom: 14px; }
.feature-body h2 { font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.spec-list { list-style: none; margin-top: 30px; display: grid; gap: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 0.86rem; }
.spec-list li span:first-child { color: var(--gray); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.7rem; font-weight: 600; align-self: center; }
.spec-list li span:last-child { color: var(--ink); text-align: right; }
.feature-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.feature-thumbs img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* Values grid (about) */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 60px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--white); padding: 36px 30px; }
.value .v-n { font-family: var(--font); font-weight: 200; font-size: 1.6rem; color: var(--gray-soft); display: block; margin-bottom: 16px; }
.value h4 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.value p { color: var(--gray); font-size: 0.88rem; font-weight: 300; line-height: 1.65; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form input, .form select, .form textarea { width: 100%; font-family: var(--font); font-size: 0.92rem; padding: 14px 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.form input::placeholder, .form textarea::placeholder { color: var(--gray-soft); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gray) 50%), linear-gradient(135deg, var(--gray) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form textarea { resize: vertical; min-height: 110px; }
.form button.btn { justify-self: start; border: none; background: var(--ink); color: #fff; cursor: pointer; margin-top: 4px; }
.form button.btn:hover { background: #000; }
.form-note { font-size: 0.8rem; color: var(--gray); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-info { display: grid; gap: 28px; }
.contact-item h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.contact-item p, .contact-item a { font-size: 1rem; font-weight: 300; color: var(--ink); display: block; }
.contact-item a:hover { color: var(--gray); }
.map-link { display: block; margin-top: 8px; border: 1px solid var(--line); padding: 26px; text-align: center; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); transition: background var(--dur-fast) var(--ease-out); }
.map-link:hover { background: var(--beige-soft); }

@media (max-width: 860px) {
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   COLLECTION DETAIL PAGE  (collection.html?c=key)
   ========================================================================== */
.coll-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; background: var(--ink); overflow: hidden; }
.coll-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.coll-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.68) 100%); }
.coll-hero-inner { position: relative; z-index: 2; width: 100%; padding: calc(var(--nav-h) + 40px) 0 52px; }
.coll-hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.01em; margin-top: 12px; }
.back-link { display: inline-block; margin-bottom: 26px; color: rgba(255,255,255,0.75); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.back-link:hover { color: #fff; }
html[lang="ar"] .back-link { letter-spacing: 0.02em; text-transform: none; }

.coll-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }

/* Gallery grid: 3-col masonry-like using rows */
.cgallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.8vw, 22px); }
.cg-item { margin: 0; overflow: hidden; cursor: zoom-in; background: var(--beige-soft); }
.cg-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; display: block; transition: transform var(--dur-slow) var(--ease-out); }
.cg-item:hover img { transform: scale(1.04); }

/* Other collections strip */
.others-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 22px); }
.other-coll { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.other-coll img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.other-coll:hover img { transform: scale(1.05); }
.other-coll span { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.other-coll::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55)); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,8,8,0.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 80px rgba(0,0,0,0.6); }
.lb-btn { position: absolute; background: none; border: none; color: rgba(255,255,255,0.85); cursor: pointer; font-family: var(--font); line-height: 1; padding: 12px; transition: color var(--dur-fast) var(--ease-out); z-index: 2; }
.lb-btn:hover { color: #fff; }
.lb-close { top: 18px; right: 22px; font-size: 2.2rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
html[dir="rtl"] .lb-close { right: auto; left: 22px; }

/* Materials: category tiles link into the library */
a.mat { display: block; }
.mat-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .mat-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .mat-grid-4 { grid-template-columns: 1fr 1fr; } }
.lib-section { margin-top: 64px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.lib-title { font-weight: 400; font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.lib-title em { font-style: normal; color: var(--gray-soft); font-size: 0.85rem; letter-spacing: 0.05em; }
.lib-section .swatch-grid { margin-top: 26px; }
html[lang="ar"] .lib-title { letter-spacing: 0.02em; text-transform: none; }

/* Materials: swatch wall */
.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.4vw, 18px); margin-top: 52px; }
.swatch { margin: 0; }
.swatch img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.swatch figcaption { padding: 10px 2px 0; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; }
.swatch figcaption span { display: block; margin-top: 2px; color: var(--gray-soft); font-size: 0.64rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; }
html[lang="ar"] .swatch figcaption span { text-transform: none; letter-spacing: 0.02em; }
@media (max-width: 1024px) { .swatch-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .swatch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 440px) { .swatch-grid { grid-template-columns: 1fr 1fr; } }

/* Featured (Tangram) card on homepage */
.coll-card.featured { grid-column: 1 / -1; }
.coll-card.featured .coll-figure { aspect-ratio: 21 / 9; }
.featured-badge { display: inline-block; margin-left: 12px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); background: var(--ink); padding: 5px 10px; vertical-align: middle; }
html[lang="ar"] .featured-badge { letter-spacing: 0.02em; text-transform: none; margin-left: 0; margin-right: 12px; }

@media (max-width: 860px) {
  .coll-intro { grid-template-columns: 1fr; gap: 30px; }
  .cgallery { grid-template-columns: 1fr 1fr; }
  .others-grid { grid-template-columns: 1fr 1fr; }
  .coll-card.featured .coll-figure { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .cgallery { grid-template-columns: 1fr; }
}
