/* ==========================================================================
   TYPOGRAPHY — Hệ thống chữ toàn site
   ========================================================================== */

/* ─── HEADINGS ─── */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-top: 0;
  margin-bottom: var(--space-md);
}

h1,
.h1 {
  font-size: var(--fs-h1);
}

h2,
.h2 {
  font-size: var(--fs-h2);
  text-transform: uppercase !important;
}

h3,
.h3 {
  font-size: var(--fs-h3);
}

h4,
.h4 {
  font-size: var(--fs-h4);
}

.display-heading {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: 1.1;
}

/* ─── BODY TEXT ─── */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-primary);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

/* ─── LINKS ─── */
a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-link-hover);
}

/* ─── TEXT MODIFIERS ─── */
.text-lg {
  font-size: var(--fs-body-lg);
}

.text-sm {
  font-size: var(--fs-small);
}

.text-caption {
  font-size: var(--fs-caption);
}

.text-primary {
  color: var(--text-primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-accent {
  color: var(--brand-secondary) !important;
}

.text-white {
  color: var(--text-on-dark) !important;
}

.text-brand {
  color: var(--brand-primary) !important;
}

.fw-regular {
  font-weight: var(--fw-regular);
}

.fw-medium {
  font-weight: var(--fw-medium);
}

.fw-semibold {
  font-weight: var(--fw-semibold);
}

.fw-bold {
  font-weight: var(--fw-bold);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ─── SECTION HEADER (dùng cho khối tiêu đề mỗi section) ─── */

/*
  Cách dùng trong Flatsome UX Builder:
  Thêm HTML element, paste vào:

  <div class="section-header">
    <span class="section-eyebrow">BỘ SƯU TẬP / COLLECTIONS</span>
    <h2 class="section-title">5 Loại Đá Marble Tự Nhiên Cao Cấp</h2>
    <p class="section-subtitle">Mô tả ngắn nếu cần</p>
  </div>
*/

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header.left {
  text-align: left;
}

/* Label nhỏ trên title — vd: "BỘ SƯU TẬP / COLLECTIONS" */
.section-eyebrow {
  display: block;
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: var(--space-xs);
}

/* Tiêu đề chính của section */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

/* Mô tả phụ dưới title */
.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.section-header.left .section-subtitle {
  margin-left: 0;
}

/* ─── CARD TITLE / SUBTITLE (dùng trong card, banner item) ─── */

/* Tên trên card — vd: "Đá Quy Cách", "MOSAIC" */
.card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2xs);
  line-height: 1.3;
}

/* Tên phụ dưới card title — vd: "Marble Tile", "Pool Stone" */
.card-subtitle {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Khi card có ảnh tối — chữ trắng */
.card-title.on-dark {
  color: var(--text-on-dark);
}

.card-subtitle.on-dark {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── FLATSOME SECTION TITLE OVERRIDE ─── */
/* Override Flatsome built-in section title để dùng design tokens */
.section-title-main {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h2) !important;
  font-weight: var(--fw-bold) !important;
  color: var(--text-primary) !important;
}

/* ─── LABEL / TAG ─── */
.label {
  font-family: var(--font-label);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}