/**
 * Lê Trà Theme - Main CSS (Design Tokens, Reset, Typography, Common Components)
 * @package LetraTheme
 */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand Palette */
  --lta-color-forest-dark: #071B12;      /* Nền tối chủ đạo Header, Footer, Hero */
  --lta-color-forest:      #102A19;      /* Xanh rừng sâu cao cấp */
  --lta-color-brown-dark:  #28180D;      /* Nâu gỗ trầm hương đậm */
  --lta-color-text-dark:   #392718;      /* Chữ nội dung trên nền sáng */
  --lta-color-text-muted:  #705c4b;      /* Chữ phụ, mô tả ngắn */

  /* Gold Palette */
  --lta-color-gold:        #D9A52D;      /* Vàng đồng sang trọng (Luxury Gold) */
  --lta-color-gold-bright: #F8C52C;      /* Vàng kim rực rỡ (CTA, icon, badge) */
  --lta-color-gold-light:  #F5E8CB;      /* Vàng kem nhẹ */
  --lta-color-gold-border: rgba(217, 165, 45, 0.4);
  --lta-color-gold-glow:   rgba(248, 197, 44, 0.35);

  /* Light Tones */
  --lta-color-cream:       #F5E8CB;      /* Nền kem ấm cho card */
  --lta-color-cream-card:  #FFF3DE;      /* Nền thẻ sản phẩm */
  --lta-color-ivory:       #FFF8E9;      /* Trắng ngà nhẹ nhàng */
  --lta-color-white:       #FFFFFF;

  /* Typography */
  --lta-font-heading:      'Playfair Display', Georgia, serif;
  --lta-font-body:         'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Layout */
  --lta-container-width:   1200px;
  --lta-container-pad:     20px;
  --lta-radius-sm:         4px;
  --lta-radius-md:         8px;
  --lta-radius-lg:         14px;
  --lta-radius-pill:       999px;

  /* Elevation */
  --lta-shadow-sm:         0 2px 8px rgba(7, 27, 18, 0.06);
  --lta-shadow-md:         0 8px 24px rgba(7, 27, 18, 0.1);
  --lta-shadow-gold:       0 4px 18px rgba(217, 165, 45, 0.35);
  --lta-shadow-card:       0 6px 20px rgba(40, 24, 13, 0.08);

  /* Transitions */
  --lta-transition:        all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--lta-font-body);
  color: var(--lta-color-text-dark);
  background-color: var(--lta-color-ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--lta-transition);
}

a:hover, a:focus {
  color: var(--lta-color-gold-bright);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Screen reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   3. LAYOUT & CONTAINERS
   ========================================================================== */
.lta-container {
  width: 100%;
  max-width: var(--lta-container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--lta-container-pad);
  padding-right: var(--lta-container-pad);
}

.lta-page-container {
  padding-top: 50px;
  padding-bottom: 70px;
}

/* Grids */
.lta-grid--cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.lta-grid--cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lta-grid--cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .lta-grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lta-grid--cols-4,
  .lta-grid--cols-3,
  .lta-grid--cols-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ==========================================================================
   4. BUTTONS & UI COMPONENTS
   ========================================================================== */
.lta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  font-family: var(--lta-font-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  border-radius: var(--lta-radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--lta-transition);
  text-decoration: none;
}

.lta-btn--pill {
  border-radius: var(--lta-radius-pill);
}

.lta-btn--gold {
  background: linear-gradient(135deg, var(--lta-color-gold-bright) 0%, var(--lta-color-gold) 100%);
  color: var(--lta-color-forest-dark);
  box-shadow: 0 4px 14px rgba(217, 165, 45, 0.35);
}

.lta-btn--gold:hover {
  background: var(--lta-color-white);
  color: var(--lta-color-forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 165, 45, 0.45);
}

.lta-btn--dark {
  background: var(--lta-color-forest);
  color: var(--lta-color-gold-bright);
  border: 1px solid var(--lta-color-gold-border);
}

.lta-btn--dark:hover {
  background: var(--lta-color-forest-dark);
  color: var(--lta-color-white);
  border-color: var(--lta-color-gold-bright);
}

/* Inputs */
.lta-input,
.lta-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #FFF;
  border: 1px solid #d4c8b8;
  border-radius: 6px;
  font-size: 14px;
  color: var(--lta-color-text-dark);
  transition: var(--lta-transition);
}

.lta-input:focus,
.lta-textarea:focus {
  outline: none;
  border-color: var(--lta-color-gold);
  box-shadow: 0 0 0 3px rgba(217, 165, 45, 0.2);
}

/* ==========================================================================
   5. ORNAMENTS & SECTION HEADERS
   ========================================================================== */
.lta-section-header {
  text-align: center;
  margin-bottom: 38px;
}

.lta-section-eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lta-flourish {
  color: var(--lta-color-gold);
  font-size: 14px;
}

.lta-section-eyebrow {
  font-family: var(--lta-font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--lta-color-gold);
}

.lta-section-heading {
  font-family: var(--lta-font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--lta-color-forest-dark);
  margin: 4px 0 8px;
  line-height: 1.25;
}

.lta-section-header--light .lta-section-heading {
  color: var(--lta-color-ivory);
}

.lta-section-subtitle-script {
  font-family: var(--lta-font-heading);
  font-style: italic;
  font-size: 18px;
  color: #7b6857;
  margin: 0;
}

.lta-section-header--light .lta-section-subtitle-script {
  color: var(--lta-color-cream);
}

.lta-ornament-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 14px auto 20px;
}

/* Corner filigree */
.lta-corner-pattern {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
}

.lta-corner-pattern--top-left {
  top: 15px;
  left: 20px;
}

.lta-corner-pattern--top-right {
  top: 15px;
  right: 20px;
  transform: scaleX(-1);
}

.lta-corner-pattern--bottom-left {
  bottom: 15px;
  left: 20px;
  transform: scaleY(-1);
}

.lta-corner-pattern--bottom-right {
  bottom: 15px;
  right: 20px;
  transform: scale(-1, -1);
}

