/* ==========================================================================
   SAMPLE 01 — HERITAGE
   Warm brown, parchment and gold. Classic, editorial, quietly luxurious.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500;600&family=Amiri:ital,wght@0,400;0,700;1,400&family=Noto+Kufi+Arabic:wght@300;400;500;600&display=swap");

.theme-heritage {
  --max: 1260px;
  --radius: 0px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-ar-display: "Amiri", "Noto Naskh Arabic", serif;
  --font-ar-body: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;

  --bg: #f5f0e6;
  --surface: #fbf8f1;
  --surface-2: #eae1d2;
  --ink: #2e1d12;
  --muted: #7b6a56;
  --accent: #a47a45;
  --accent-hover: #87602f;
  --accent-ink: #fffdf8;
  --line: rgba(46, 29, 18, 0.16);
  --line-strong: rgba(46, 29, 18, 0.38);
  --header-bg: rgba(245, 240, 230, 0.96);
  --header-ink: #2e1d12;
  --header-line: rgba(46, 29, 18, 0.13);
  --announce-bg: #3b2417;
  --announce-ink: #f1e8d8;
  --footer-bg: #3b2417;
  --footer-ink: #f0e6d6;
  --footer-line: rgba(240, 230, 214, 0.17);
  --card-bg: #fbf8f1;
  --card-line: rgba(46, 29, 18, 0.14);
  --image-bg: #e9e0d2;
  --shadow: 0 30px 70px -34px rgba(59, 36, 23, 0.42);
  --logo-h: 44px;
  --header-h: 84px;

  --admin-bg: #f5f0e6;
  --admin-card: #fbf8f1;
  --admin-sidebar: #3b2417;
  --admin-sidebar-ink: #f0e6d6;
  --admin-topbar: #fbf8f1;
  --admin-accent: #a47a45;
  --admin-accent-ink: #fffdf8;
  --admin-line: rgba(46, 29, 18, 0.14);
}

/* Header */
.theme-heritage .site-header {
  box-shadow: 0 1px 0 rgba(46, 29, 18, 0.04);
}

.theme-heritage .announcement {
  font-size: 9.5px;
  letter-spacing: 0.24em;
}

/* Hero */
.hero-heritage {
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px);
  background:
    radial-gradient(circle at 76% 28%, rgba(164, 122, 69, 0.14), transparent 34%),
    linear-gradient(180deg, #f5f0e6 0%, #f0e8da 100%);
}

.hero-heritage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.88fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.hero-heritage .display {
  margin-top: 20px;
}

.hero-heritage .display em {
  color: var(--accent);
  font-style: italic;
}

.hero-heritage .lead {
  margin-top: 24px;
  max-width: 48ch;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 42px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.1;
}

.hero-trust span {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ar"] .hero-trust span {
  letter-spacing: 0;
  text-transform: none;
  font-size: 10px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 6% 30px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 2%;
  width: 190px;
  height: 190px;
  background-image: url("../assets/images/pattern.png");
  background-size: cover;
  border-radius: 50%;
  opacity: 0.16;
  filter: sepia(1) saturate(0.6);
  pointer-events: none;
}

.arch {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 260px 260px 3px 3px;
  overflow: hidden;
  border: 1px solid rgba(46, 29, 18, 0.24);
  background: var(--image-bg);
  box-shadow: 0 34px 80px -40px rgba(59, 36, 23, 0.5);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 9px rgba(251, 248, 241, 0.45);
  border-radius: inherit;
  pointer-events: none;
}

.hero-seal {
  position: absolute;
  top: 9%;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--ink);
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px -22px rgba(59, 36, 23, 0.5);
}

html[lang="ar"] .hero-seal {
  letter-spacing: 0;
  text-transform: none;
  font-size: 10px;
}

.hero-seal .seal-line {
  width: 22px;
  height: 1px;
  margin-block: 7px;
  background: var(--accent);
}

.hero-note {
  position: absolute;
  bottom: 4%;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 255px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid rgba(46, 29, 18, 0.14);
  box-shadow: 0 22px 48px -30px rgba(59, 36, 23, 0.46);
}

.hero-note-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.hero-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
}

.hero-note span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
}

/* Marquee */
.marquee-heritage {
  background: #3b2417;
  color: #eadcc5;
  border: 0;
}

.marquee-heritage .marquee-track {
  color: #eadcc5;
  font-size: 9px;
  letter-spacing: 0.28em;
}

.marquee-heritage .dot {
  color: #b99157;
}

/* Featured */
.featured-section {
  background: var(--bg);
}

.theme-heritage .product-card {
  background: var(--card-bg);
}

.theme-heritage .product-name {
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
}

/* Story */
.heritage-story {
  background: #eae1d2;
  border-block: 1px solid rgba(46, 29, 18, 0.12);
}

.heritage-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
}

.story-visual {
  position: relative;
  min-height: 500px;
}

.story-main {
  width: 78%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  border: 1px solid rgba(46, 29, 18, 0.2);
  box-shadow: 0 34px 70px -44px rgba(59, 36, 23, 0.55);
}

.story-small {
  position: absolute;
  bottom: -26px;
  inset-inline-end: 0;
  width: 47%;
  object-fit: cover;
  border: 7px solid #f5f0e6;
  box-shadow: 0 26px 54px -34px rgba(59, 36, 23, 0.55);
}

.story-copy h2 {
  font-size: clamp(2.1rem, 3.7vw, 3.4rem);
  margin-top: 14px;
}

.story-copy h2 em {
  font-style: italic;
  color: var(--accent);
}

.story-copy .lead {
  margin-top: 20px;
  max-width: 52ch;
}

.story-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  margin-bottom: 32px;
}

.story-list li {
  position: relative;
  padding-inline-start: 22px;
  font-size: 12px;
  color: var(--ink);
}

.story-list li::before {
  content: "◆";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-size: 8px;
  color: var(--accent);
}

/* Notes */
.heritage-notes {
  background: var(--bg);
}

.heritage-notes .note-card {
  transition: border-color 0.3s, transform 0.3s;
}

.heritage-notes .note-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* Quote */
.heritage-quote {
  position: relative;
  background: #3b2417;
  color: #f1e8d8;
  overflow: hidden;
}

.heritage-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/pattern.png");
  background-size: 280px;
  opacity: 0.05;
  filter: invert(1);
}

.heritage-quote .container {
  position: relative;
  z-index: 1;
}

.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  color: #b99157;
  margin-bottom: 18px;
}

.heritage-quote blockquote {
  color: #f6edde;
}

.heritage-quote cite {
  color: rgba(241, 232, 216, 0.6);
}

/* Newsletter */
.theme-heritage .newsletter-box {
  background: var(--surface);
  border-color: rgba(46, 29, 18, 0.16);
}

.newsletter-inline {
  display: flex;
  max-width: 440px;
  margin-top: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.newsletter-inline input {
  flex: 1;
  min-width: 0;
  padding: 14px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}

.newsletter-inline input:focus {
  outline: none;
}

.newsletter-inline button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s;
}

.newsletter-inline button:hover {
  color: var(--accent);
}

.newsletter-inline button svg {
  width: 19px;
  height: 19px;
}

html[dir="rtl"] .newsletter-inline button svg {
  transform: scaleX(-1);
}

.newsletter-small {
  margin-top: 12px;
  font-size: 10px;
  color: var(--muted);
}

/* Toast / selection */
.theme-heritage ::selection {
  background: #a47a45;
  color: #fff;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-heritage-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-heritage .hero-visual {
    order: 2;
    width: min(540px, 100%);
    margin-inline: auto;
    padding-inline: 4%;
  }

  .hero-heritage .arch {
    width: min(400px, 88%);
  }

  .hero-trust {
    margin-top: 32px;
  }

  .heritage-story-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .story-visual {
    min-height: 440px;
    width: min(540px, 100%);
    margin-inline: auto;
  }

  .story-main {
    min-height: 400px;
  }
}

@media (max-width: 640px) {
  .hero-heritage {
    padding-top: 36px;
  }

  .hero-seal {
    width: 84px;
    height: 84px;
    font-size: 7px;
  }

  .hero-note {
    bottom: 0;
    padding: 12px 14px;
    max-width: 220px;
  }

  .hero-note-icon {
    width: 34px;
    height: 34px;
  }

  .hero-note strong {
    font-size: 0.95rem;
  }

  .story-visual {
    min-height: 340px;
  }

  .story-main {
    min-height: 320px;
  }

  .story-small {
    width: 52%;
    border-width: 5px;
  }

  .quote-mark {
    font-size: 3.6rem;
  }

  .newsletter-inline {
    max-width: none;
  }
}
