/* FAKHAR — "Kiln Light" design system
   Ground: kiln-char umber. Pieces glow in ember terracotta & warm sand.
   Signature: the potter's seal (ختم) + Eastern Arabic piece numbers. */

:root {
  --char: #181210;        /* kiln interior */
  --umber: #241b15;       /* elevated surfaces */
  --umber-2: #2e231a;     /* hover surfaces */
  --ember: #c96f3b;       /* terracotta glow */
  --ember-hot: #e08a52;   /* hover glow */
  --sand: #e6cfae;        /* primary text */
  --ash: #94826d;         /* secondary text */
  --glaze: #7a8757;       /* olive glaze — availability only */
  --clay-red: #a33f2e;    /* sold stamp */
  --line: rgba(230, 207, 174, 0.14);

  --f-display-en: "Marcellus", serif;
  --f-display-ar: "Amiri", serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", monospace;

  --max: 1180px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--char);
  background-image: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201, 111, 59, 0.09), transparent 60%);
  color: var(--sand);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 400; line-height: 1.2; }
.lang-en h1, .lang-en h2, .lang-en h3, .lang-en .brand-name { font-family: var(--f-display-en); }
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar .brand-name { font-family: var(--f-display-ar); }
.lang-ar body, .lang-ar { line-height: 1.9; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 620px; }
.center { text-align: center; }
.mono { font-family: var(--f-mono); font-size: 0.85em; letter-spacing: 0.02em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 18, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-size: 1.45rem; letter-spacing: 0.06em; }
.lang-ar .brand-name { letter-spacing: 0; }

/* the potter's seal — the signature mark */
.brand-seal {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ember);
  color: var(--ember);
  font-family: var(--f-display-ar);
  font-size: 1.15rem;
  transform: rotate(-8deg);
  user-select: none;
}
.brand-seal.lg { width: 56px; height: 56px; font-size: 1.6rem; }
.brand-seal.xl { width: 88px; height: 88px; font-size: 2.5rem; border-width: 2px; margin: 0 auto 20px; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav-links a { color: var(--ash); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--sand); }
.lang-switch {
  border: 1px solid var(--line); border-radius: 99px;
  padding: 5px 16px; color: var(--sand) !important;
}
.lang-switch:hover { border-color: var(--ember); color: var(--ember-hot) !important; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero-ghost {
  position: absolute; inset-inline-end: -2%; top: 4%;
  font-family: var(--f-display-ar);
  font-size: clamp(11rem, 30vw, 26rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 111, 59, 0.13);
  pointer-events: none; user-select: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; }
.kicker {
  color: var(--ember); font-size: 0.82rem; letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 20px;
}
.lang-ar .kicker { letter-spacing: 0.08em; }
.hero-title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 22px; }
.hero-sub { color: var(--ash); font-size: 1.08rem; max-width: 34em; margin-bottom: 34px; }

.hero-vessel { position: relative; display: grid; place-items: center; }
.hero-vessel img { width: min(340px, 70%); filter: drop-shadow(0 30px 60px rgba(201, 111, 59, 0.25)); }
.ember-glow {
  position: absolute; bottom: -8%; width: 70%; height: 26%;
  background: radial-gradient(ellipse, rgba(201, 111, 59, 0.35), transparent 70%);
  filter: blur(12px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 14px 34px;
  border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-ember { background: var(--ember); color: var(--char); }
.btn-ember:hover { background: var(--ember-hot); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--sand); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-hot); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.page-top { padding-top: 56px; }
.section-head { margin-bottom: 40px; max-width: 40em; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.section-title.sm { font-size: 1.5rem; }
.section-sub { color: var(--ash); }
.archive-head { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  padding: 7px 18px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 0.88rem; color: var(--ash); transition: all 0.2s;
}
.chip:hover { color: var(--sand); border-color: var(--ash); }
.chip.active { background: var(--ember); border-color: var(--ember); color: var(--char); }

/* ---------- cards: pieces on kiln shelves ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 36px 28px; }
.card-link { display: block; }
.card-media {
  position: relative;
  background: linear-gradient(180deg, var(--umber) 0%, var(--umber-2) 100%);
  border-radius: var(--radius);
  padding: 30px 30px 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.shelf-line {
  height: 2px; margin: 0 -30px;
  background: linear-gradient(90deg, transparent, rgba(201, 111, 59, 0.5), transparent);
}
.piece-media .shelf-line { margin: 0; }
.card:hover .card-media {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -18px rgba(201, 111, 59, 0.28);
}
.is-sold .card-media img { opacity: 0.45; filter: grayscale(0.4); }

/* stamps — pressed into the clay */
.stamp {
  position: absolute; top: 16px; inset-inline-end: 14px;
  transform: rotate(8deg);
  border: 2px solid; border-radius: 3px;
  padding: 3px 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
}
.lang-ar .stamp { letter-spacing: 0.02em; }
.stamp-sold { color: var(--clay-red); border-color: var(--clay-red); }
.stamp-reserved { color: var(--ash); border-color: var(--ash); }
.stamp.lg { font-size: 1rem; padding: 6px 18px; top: 24px; }

.card-body { padding: 18px 4px 0; }
.piece-no {
  display: block;
  font-family: var(--f-mono); font-size: 0.78rem;
  color: var(--ember); letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.card-title { font-size: 1.3rem; margin-bottom: 8px; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.price { font-family: var(--f-mono); color: var(--sand); }
.piece-price.sm { font-size: 1.1rem; }
.dot-avail { width: 7px; height: 7px; border-radius: 50%; background: var(--glaze); }
.status-label { color: var(--ash); font-size: 0.85rem; }
.status-label.muted { color: var(--ash); }

/* ---------- seal band ---------- */
.seal-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seal-band-inner { display: flex; align-items: center; gap: 32px; max-width: 760px; }
.seal-band .brand-seal.xl { margin: 0; flex-shrink: 0; }
.seal-band-text { font-size: 1.15rem; color: var(--sand); }
.lang-en .seal-band-text { font-family: var(--f-display-en); }
.lang-ar .seal-band-text { font-family: var(--f-display-ar); font-size: 1.3rem; }

/* ---------- piece page ---------- */
.piece-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.piece-media { position: relative; background: linear-gradient(180deg, var(--umber), var(--umber-2)); border-radius: var(--radius); padding: 44px 44px 0; }
.piece-main-img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.thumbs { display: flex; gap: 10px; padding: 14px 0; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.piece-title { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0 18px; }
.ooo { color: var(--sand); }
.piece-price { font-family: var(--f-mono); font-size: 1.6rem; color: var(--ember-hot); }
.price-note { color: var(--ash); font-size: 0.85rem; margin: 6px 0 24px; }
.piece-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.notice { color: var(--ash); font-style: italic; border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 20px; margin: 18px 0; }
.piece-section { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.label { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); font-family: var(--f-body); font-weight: 500; margin-bottom: 12px; }
.lang-ar .label { letter-spacing: 0.05em; }
.story { color: var(--sand); opacity: 0.92; max-width: 38em; }
.specs div { display: flex; gap: 18px; padding: 6px 0; }
.specs dt { color: var(--ash); min-width: 110px; }
.back-link { display: inline-block; margin-top: 36px; color: var(--ash); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.back-link:hover { color: var(--ember-hot); border-color: var(--ember); }

/* ---------- order ---------- */
.order-piece { display: flex; gap: 24px; align-items: center; margin-bottom: 18px; }
.order-thumb { width: 96px; height: 110px; object-fit: contain; background: var(--umber); border-radius: var(--radius); padding: 10px; }
.order-form { margin-top: 32px; display: grid; gap: 20px; }
.order-form label { display: grid; gap: 8px; font-size: 0.92rem; color: var(--ash); }
.order-form input, .order-form textarea {
  background: var(--umber); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 16px; color: var(--sand); font-family: var(--f-body); font-size: 1rem;
}
.order-form input:focus, .order-form textarea:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: transparent; }
.order-form button { border: none; cursor: pointer; font-family: var(--f-body); justify-self: start; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-copy .story { margin-bottom: 18px; }
.about-copy .btn { margin-top: 14px; }
.about-visual { position: relative; display: grid; place-items: center; }
.about-visual img { width: min(300px, 75%); filter: drop-shadow(0 30px 60px rgba(201, 111, 59, 0.22)); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-tagline { font-size: 1.05rem; }
.lang-ar .footer-tagline { font-family: var(--f-display-ar); font-size: 1.2rem; }
.lang-en .footer-tagline { font-family: var(--f-display-en); }
.footer-note, .footer-contact { color: var(--ash); font-size: 0.9rem; }
.footer-contact a:hover { color: var(--ember-hot); }

/* ---------- reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .piece-grid, .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .hero-vessel { order: -1; }
  .hero-vessel img { width: 200px; }
  .about-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .seal-band-inner { flex-direction: column; text-align: center; gap: 18px; }
  .nav-links { gap: 16px; font-size: 0.88rem; }
  .brand-name { font-size: 1.2rem; }
}
