/* ============================================================
   Dayan Fireplace — Design System
   Theme: "Ember Dark" — fire is experienced in darkness.
   ============================================================ */

:root {
  --ember: #171310;
  --coal: #211c17;
  --coal-2: #2a241e;
  --flame: #e4572e;
  --flame-soft: #f0764f;
  --bone: #f4efe8;
  --bone-2: #eae3d8;
  --ash: #9a9187;
  --ash-dark: #5f574e;
  --brass: #b9925c;
  --ink: #1c1713;

  --font-display: "Fraunces", "Noto Serif SC", Georgia, serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.display-xl { font-size: clamp(2.6rem, 6.2vw, 5rem); }
.display-lg { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.display-md { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--brass);
}
.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.75;
  max-width: 60ch;
}
.prose { max-width: 65ch; }
.prose p + p { margin-top: 1em; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-dark { background: var(--ember); color: var(--bone); }
.section-dark .lede, .section-dark .prose { color: var(--ash); }
.section-coal { background: var(--coal); color: var(--bone); }
.section-coal .lede, .section-coal .prose { color: var(--ash); }
.section-light { background: var(--bone); }
.section-light .lede, .section-light .prose { color: var(--ash-dark); }
.section-tint { background: var(--bone-2); }
.section-tint .lede, .section-tint .prose { color: var(--ash-dark); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split-reverse > :first-child { order: 2; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-flame { background: var(--flame); color: #fff; }
.btn-flame:hover { background: var(--flame-soft); }
.btn-ghost { border: 1px solid currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.section-light .btn-ghost:hover, .section-tint .btn-ghost:hover { background: rgba(0,0,0,0.05); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  color: var(--bone);
}
.site-header.scrolled {
  background: rgba(23, 19, 16, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(185, 146, 92, 0.18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  color: var(--flame);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 560; letter-spacing: 0.01em;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ash); font-weight: 500;
}
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(244, 239, 232, 0.82);
  position: relative; padding-block: 6px;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--flame);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--bone); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex; border: 1px solid rgba(244, 239, 232, 0.3);
  border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 600;
}
.lang-toggle button { padding: 6px 13px; color: rgba(244,239,232,0.7); transition: all .25s; }
.lang-toggle button.active { background: var(--bone); color: var(--ember); }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--bone); transition: all 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
}

@media (max-width: 640px) {
  .header-inner { height: 64px; }
  .header-actions .btn { display: none; }
  .brand-name { font-size: 16px; }
  .brand-name small { font-size: 9px; letter-spacing: 0.2em; }
  .brand-mark { width: 28px; height: 28px; }
  .lang-toggle button { padding: 5px 10px; font-size: 11px; }
}

.mobile-nav .mobile-cta {
  color: var(--flame-soft);
  border-bottom: none;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.06em;
  padding-top: 20px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--ember);
  border-top: 1px solid rgba(185, 146, 92, 0.2);
  padding: 12px var(--gutter) 28px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 0;
  font-family: var(--font-display); font-size: 22px;
  color: var(--bone);
  border-bottom: 1px solid rgba(244, 239, 232, 0.08);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  background: var(--ember); color: var(--bone);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ember) 4%, rgba(23,19,16,0.35) 55%, rgba(23,19,16,0.55) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; padding-block: 120px 88px; }
.hero-title { max-width: 13ch; margin-block: 22px 26px; }
.hero-title em {
  font-style: italic; color: var(--flame-soft);
}
.hero-foot {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  margin-top: 40px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px);
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid rgba(185, 146, 92, 0.28);
}
.hero-meta .stat strong {
  display: block;
  font-family: var(--font-display); font-weight: 520;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--bone);
}
.hero-meta .stat span { font-size: 13px; color: var(--ash); }

/* Page hero (inner pages) */
.page-hero {
  background: var(--ember); color: var(--bone);
  padding: 180px 0 88px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,87,46,0.16), transparent 65%);
}
.page-hero .display-lg { max-width: 16ch; margin-block: 20px 18px; }

/* ---------- Category index (home) ---------- */
.cat-list { border-top: 1px solid rgba(185, 146, 92, 0.25); }
.cat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-block: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid rgba(185, 146, 92, 0.25);
  align-items: center;
}
@media (min-width: 860px) {
  .cat-row { grid-template-columns: 1.1fr 0.9fr 220px; gap: clamp(28px, 4vw, 64px); }
}
.cat-row h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 520; }
.cat-row .cat-desc { color: var(--ash); max-width: 46ch; margin-top: 10px; font-size: 15px; }
.cat-row figure {
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius);
  background: #eceae7;
}
.cat-row figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.cat-row:hover figure img { transform: scale(1.04); }
.cat-link {
  justify-self: start;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--flame-soft);
  display: inline-flex; align-items: center; gap: 8px;
}
@media (min-width: 860px) { .cat-link { justify-self: end; } }

/* ---------- Feature statements ---------- */
.feature-grid {
  display: grid; gap: 1px;
  background: rgba(185, 146, 92, 0.22);
  border: 1px solid rgba(185, 146, 92, 0.22);
  grid-template-columns: 1fr;
  margin-top: 56px;
}
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-cell {
  background: var(--ember);
  padding: clamp(28px, 3vw, 40px);
}
.feature-cell svg { width: 30px; height: 30px; color: var(--flame); margin-bottom: 22px; }
.feature-cell h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--bone); }
.feature-cell p { font-size: 14px; color: var(--ash); line-height: 1.7; }

/* ---------- Spotlight ---------- */
.spotlight-figure { position: relative; }
.spotlight-figure.narrow { width: 70%; margin-inline: auto; }
.spotlight-figure.narrow img { width: 100%; height: auto; }
@media (max-width: 640px) {
  .spotlight-figure.narrow { width: 100%; }
}
.spotlight-figure img { border-radius: var(--radius); width: 100%; }
.spotlight-figure figcaption {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(23, 19, 16, 0.82); backdrop-filter: blur(8px);
  color: var(--bone);
  font-size: 13px; padding: 10px 16px; border-radius: var(--radius);
  border: 1px solid rgba(185, 146, 92, 0.3);
}
.spec-list { margin-top: 36px; border-top: 1px solid rgba(185, 146, 92, 0.3); }
.spec-list li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(185, 146, 92, 0.3);
  font-size: 14.5px;
}
.spec-list li span:first-child { color: var(--ash); }
.spec-list li span:last-child { color: var(--bone); font-weight: 600; text-align: right; }

/* light variant */
.section-light .spec-list, .section-tint .spec-list { border-color: rgba(95, 87, 78, 0.25); }
.section-light .spec-list li, .section-tint .spec-list li { border-color: rgba(95, 87, 78, 0.25); }
.section-light .spec-list li span:first-child, .section-tint .spec-list li span:first-child { color: var(--ash-dark); }
.section-light .spec-list li span:last-child, .section-tint .spec-list li span:last-child { color: var(--ink); }

/* ---------- Process steps ---------- */
.steps { margin-top: 64px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding-block: 34px;
  border-top: 1px solid rgba(95, 87, 78, 0.25);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid rgba(95, 87, 78, 0.25); }
.step-num {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 500;
  color: var(--brass);
  line-height: 1.2;
}
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--ash-dark); font-size: 15px; max-width: 56ch; }
@media (min-width: 860px) {
  .step { grid-template-columns: 100px 240px 1fr; }
  .step h3 { margin-bottom: 0; }
  .step p { grid-column: 3; }
}

/* ---------- Gallery strip ---------- */
.gallery-strip {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 56px;
}
@media (min-width: 860px) { .gallery-strip { grid-template-columns: repeat(4, 1fr); } }
.gallery-strip figure { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--bone-2); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.7s var(--ease); }
.gallery-strip figure:hover img { transform: scale(1.05); }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid; gap: clamp(20px, 2.5vw, 32px);
  grid-template-columns: 1fr;
  margin-top: 56px;
}
@media (min-width: 680px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card {
  background: var(--coal); color: var(--bone);
  border: 1px solid rgba(185, 146, 92, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.product-card:hover { border-color: rgba(228, 87, 46, 0.5); transform: translateY(-4px); }
.product-card figure { overflow: hidden; background: #eceae7; }
.product-card figure img { width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.product-card .card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.product-card .card-tag {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin-bottom: 10px;
}
.product-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 540; margin-bottom: 8px; }
.product-card .card-desc { font-size: 14px; color: var(--ash); line-height: 1.7; flex: 1; }
.product-card .card-specs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}
.chip {
  font-size: 12px; font-weight: 500;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(185, 146, 92, 0.35);
  color: var(--ash);
}
.chip.hot { border-color: var(--flame); color: var(--flame-soft); }

/* ---------- Spec table ---------- */
.table-scroll { overflow-x: auto; margin-top: 48px; border: 1px solid rgba(95,87,78,0.3); border-radius: var(--radius); }
.spec-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
.spec-table caption {
  text-align: left; padding: 18px 22px;
  font-family: var(--font-display); font-size: 19px; font-weight: 540;
  background: var(--ember); color: var(--bone);
}
.spec-table th, .spec-table td { padding: 14px 22px; text-align: left; border-bottom: 1px solid rgba(95,87,78,0.2); }
.spec-table thead th {
  background: var(--coal); color: var(--bone);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.spec-table tbody tr:nth-child(odd) { background: rgba(23, 19, 16, 0.035); }
.spec-table tbody th { font-weight: 500; color: var(--ash-dark); }
.spec-table tbody td { font-weight: 600; color: var(--ink); }
.spec-table .yes { color: #1e7a3c; }
.spec-table .no { color: var(--ash); font-weight: 400; }

/* ---------- Accessories ---------- */
.acc-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 48px;
}
@media (min-width: 720px) { .acc-grid { grid-template-columns: repeat(4, 1fr); } }
.acc-item {
  background: #fff;
  border: 1px solid rgba(95, 87, 78, 0.18);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.acc-item figure { aspect-ratio: 1; overflow: hidden; margin-bottom: 14px; }
.acc-item img { width: 100%; height: 100%; object-fit: cover; }
.acc-item h4 { font-size: 14.5px; font-weight: 600; }
.acc-item p { font-size: 12.5px; color: var(--ash-dark); margin-top: 4px; }

/* ---------- Quote / form ---------- */
.quote-panel {
  background: var(--coal);
  border: 1px solid rgba(185, 146, 92, 0.25);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
}
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label {
  display: block; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ash); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ember);
  border: 1px solid rgba(185, 146, 92, 0.28);
  border-radius: var(--radius);
  color: var(--bone);
  padding: 13px 16px;
  font: inherit; font-size: 15px;
  transition: border-color 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--flame);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--ash); margin-top: 6px; }

/* contact info blocks */
.info-block { border-top: 1px solid rgba(95,87,78,0.25); padding-block: 26px; }
.info-block h3 {
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin-bottom: 12px;
}
.info-block p { font-size: 15.5px; line-height: 1.8; }
.info-block a { color: var(--flame); font-weight: 600; }
.info-block a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .display-lg { max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin: 22px auto 38px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ember); color: var(--ash);
  padding: clamp(60px, 8vw, 96px) 0 40px;
  border-top: 1px solid rgba(185, 146, 92, 0.18);
}
.footer-grid {
  display: grid; gap: 44px;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
}
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 {
  color: var(--bone); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 18px;
}
.site-footer li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer a:hover { color: var(--bone); }
.footer-brand p { font-size: 14px; max-width: 34ch; margin-top: 14px; line-height: 1.75; }
.footer-bottom {
  border-top: 1px solid rgba(185, 146, 92, 0.16);
  padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px;
}

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

/* ---------- Misc ---------- */
.marquee-line {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(185, 146, 92, 0.25);
  padding-block: 16px;
  color: var(--brass);
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  text-align: center;
}
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.section-head { max-width: 640px; }
.section-head .display-lg, .section-head .display-md { margin-block: 18px 20px; }
.section-head.center { margin-inline: auto; }
