/*
Theme Name:  GiaThepTam — Giá Thép Tấm Hôm Nay
Theme URI:   https://anvinasoft.com/themes/giatheptam
Author:      Anvinasoft
Author URI:  https://anvinasoft.com
Description: Theme WordPress theo dõi giá thép tấm – cán nóng, cán nguội, mạ kẽm, thép tấm đen. Tối ưu SEO, Schema.org, responsive hoàn toàn. Màu xanh chuẩn #2e9e2e.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giatheptam
Tags:        finance, steel, price-tracker, green, custom-colors, custom-logo, translation-ready
*/

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════════════ */
:root {
  --green-50:        #f0faf0;
  --green-100:       #d6f2d6;
  --green-200:       #aee4ae;
  --green-300:       #75cc75;
  --green-400:       #4ab84a;
  --green-500:       #2e9e2e;
  --green-600:       #1f7e1f;
  --green-700:       #165c16;
  --green-800:       #0f3f0f;
  --green-900:       #0a2a0a;

  --accent:          #e85c1a;
  --accent-hover:    #c44c12;

  --bg-page:         #f5f7f5;
  --bg-white:        #ffffff;
  --bg-section:      #f0f6f0;
  --bg-topbar:       #1f7e1f;
  --bg-header:       #ffffff;
  --bg-footer:       #1a5c1a;
  --bg-footer-dark:  #123f12;
  --bg-card:         #ffffff;
  --bg-tag:          #e8f5e8;

  --text-dark:       #1a2e1a;
  --text-body:       #3a4a3a;
  --text-muted:      #6b7b6b;
  --text-light:      #9aaa9a;
  --text-on-green:   #ffffff;

  --border:          #d0ddd0;
  --border-green:    rgba(46,158,46,0.25);
  --border-card:     #e4ede4;

  --price-main:      #1f7e1f;
  --price-up:        #00b894;
  --price-down:      #d63031;

  --font-display:    'Merriweather', 'Georgia', serif;
  --font-body:       'Nunito', 'Segoe UI', sans-serif;
  --font-mono:       'JetBrains Mono', 'Courier New', monospace;

  --sp-xs:   4px;
  --sp-sm:   8px;
  --sp-md:   16px;
  --sp-lg:   24px;
  --sp-xl:   40px;
  --sp-2xl:  64px;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  --shadow-sm:    0 1px 4px rgba(30,80,30,0.08);
  --shadow-card:  0 4px 20px rgba(30,80,30,0.10);
  --shadow-green: 0 6px 28px rgba(46,158,46,0.20);
  --shadow-hover: 0 8px 32px rgba(30,80,30,0.16);

  --ease: all 0.22s ease;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.75;
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-500); text-decoration: none; transition: var(--ease); }
a:hover { color: var(--green-600); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(1.5rem, 4vw, 2.375rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: 1.125rem; }
p  { margin-bottom: var(--sp-md); color: var(--text-body); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

/* ═══════════════════════════════════════════════════════════════
   SKIP LINK
══════════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  padding: 8px 18px;
  background: var(--green-500);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════════ */
#topbar {
  background: var(--bg-topbar);
  color: rgba(255,255,255,0.88);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid var(--green-700);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.88);
}
.topbar-item svg { width: 14px; height: 14px; fill: currentColor; opacity: .8; }
.topbar-item a { color: inherit; }
.topbar-item a:hover { color: #fff; }
.topbar-badge {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 0.75rem;
}
.topbar-hotline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #fff;
  font-size: 0.875rem;
}
.topbar-hotline .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.6s infinite;
}
.topbar-hotline a { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   SITE HEADER
══════════════════════════════════════════════════════════════ */
#site-header {
  background: var(--bg-header);
  border-bottom: 3px solid var(--green-500);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--sp-lg);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-600);
  white-space: nowrap;
  line-height: 1.2;
}
.site-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--green-500);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.site-logo .logo-icon svg { width: 22px; height: 22px; fill: #fff; }
.site-logo span.sub {
  display: block;
  font-size: 0.6875rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Primary Nav */
.primary-nav ul {
  display: flex;
  gap: 2px;
}
.primary-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: var(--ease);
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--green-600);
  background: var(--green-50);
}
.primary-nav .current-menu-item > a {
  border-bottom: 2px solid var(--green-500);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--green-600);
  border-radius: 2px;
  transition: var(--ease);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 60%, var(--green-400) 100%);
  padding: var(--sp-xl) 0 var(--sp-lg);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 70%);
  pointer-events: none;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: 60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  pointer-events: none;
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--sp-sm);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.72); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { opacity: .5; }
.page-hero h1 { color: #fff; margin-bottom: 4px; }
.page-hero .subtitle { color: rgba(255,255,255,0.78); margin: 0; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════
   PRICE HERO — 3 thẻ giá
══════════════════════════════════════════════════════════════ */
.price-hero-section {
  padding: var(--sp-xl) 0 var(--sp-lg);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.price-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
.price-card {
  background: var(--bg-white);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--ease);
  box-shadow: var(--shadow-card);
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--green-500), var(--green-300));
}
.price-card.featured::before {
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
}
.price-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--green-500);
  opacity: .04;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-400);
}
.price-card.featured {
  border-color: var(--green-400);
  box-shadow: var(--shadow-green);
}
.price-card .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}
.price-card .value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--green-600);
}
.price-card.featured .value { color: var(--green-700); }
.price-card .unit {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.change-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--sp-sm);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}
.change-badge.up   { background: #e6faf4; color: var(--price-up); }
.change-badge.down { background: #fdeaea; color: var(--price-down); }

/* Unit Switcher */
.unit-switcher {
  display: flex;
  gap: 8px;
  margin-top: var(--sp-lg);
  justify-content: center;
}
.unit-btn {
  padding: 7px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--bg-white);
  color: var(--text-muted);
  transition: var(--ease);
  font-family: var(--font-body);
}
.unit-btn:hover,
.unit-btn.active {
  background: var(--green-500);
  border-color: var(--green-500);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46,158,46,0.3);
}

/* Update info */
.update-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--sp-md);
  margin-bottom: 0;
}
.update-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  animation: blink 1.8s infinite;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   TRUST BADGES
══════════════════════════════════════════════════════════════ */
.trust-section {
  background: var(--green-500);
  padding: var(--sp-xl) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-sm);
  color: #fff;
}
.trust-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.25);
}
.trust-icon svg { width: 26px; height: 26px; }
.trust-item strong { font-size: 0.875rem; font-weight: 700; line-height: 1.3; }
.trust-item span { font-size: 0.75rem; opacity: .78; }

/* ═══════════════════════════════════════════════════════════════
   PRICE TABLE — 5 cột
══════════════════════════════════════════════════════════════ */
.table-section {
  padding: var(--sp-2xl) 0;
  background: var(--bg-white);
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 24px;
  background: var(--green-500);
  border-radius: 2px;
  flex-shrink: 0;
}
.update-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-tag);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-green);
}

.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.price-table thead tr { background: var(--green-500); }
.price-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  white-space: nowrap;
}
.price-table th:nth-child(n+4) { text-align: right; }
.price-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-body);
}
.price-table td:nth-child(n+4) { text-align: right; }
.price-table tbody tr:nth-child(even) { background: var(--green-50); }
.price-table tbody tr:hover { background: var(--green-100); }
.price-table tbody tr:last-child td { border-bottom: none; }

/* Group header row */
.price-table .group-head td {
  background: var(--green-700);
  color: rgba(255,255,255,0.95);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 9px 18px;
  border-bottom: none;
  text-align: left !important;
}
.price-table .product-name { font-weight: 600; color: var(--text-dark); }
.price-val {
  color: var(--green-700);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* Table note */
.table-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: var(--sp-md);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--green-50);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--green-400);
  margin-bottom: 0;
}
.table-note svg { flex-shrink: 0; fill: var(--green-500); margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════════
   CHART SECTION
══════════════════════════════════════════════════════════════ */
.chart-section {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-xl) 0;
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.chart-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--green-700);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--green-500);
  border-radius: 2px;
}
.chart-range-btns {
  display: flex;
  gap: 4px;
  background: var(--bg-white);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.range-btn {
  padding: 5px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: var(--ease);
  font-family: var(--font-body);
}
.range-btn:hover { color: var(--green-600); }
.range-btn.active {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46,158,46,0.3);
}
.chart-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  height: 280px;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════
   FACTORS SECTION — Yếu tố ảnh hưởng giá
══════════════════════════════════════════════════════════════ */
.factors-section {
  padding: var(--sp-2xl) 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}
.factors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}
.factor-card {
  background: var(--bg-section);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  transition: var(--ease);
}
.factor-card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.factor-icon {
  width: 50px; height: 50px;
  background: var(--green-50);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-md);
  border: 1px solid var(--border-green);
}
.factor-card h3 {
  font-size: 0.9375rem;
  color: var(--green-700);
  margin-bottom: var(--sp-sm);
  font-family: var(--font-body);
  font-weight: 700;
}
.factor-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   BANNER
══════════════════════════════════════════════════════════════ */
.banner-section { padding: var(--sp-lg) 0; background: var(--bg-section); }
.banner-link {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-green);
  transition: var(--ease);
  box-shadow: var(--shadow-sm);
}
.banner-link:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}
.banner-link img { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   CONTENT SECTION — Bài viết
══════════════════════════════════════════════════════════════ */
.content-section {
  padding: var(--sp-2xl) 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}
.content-section h2 {
  color: var(--green-700);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-bottom: 2px solid var(--green-500);
  display: inline-block;
}
.content-section h3 {
  color: var(--green-600);
  margin: var(--sp-lg) 0 var(--sp-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.content-section h3::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green-500);
  border-radius: 50%;
}
.content-section p  { color: var(--text-body); }
.content-section strong { color: var(--text-dark); }
.content-section ol,
.content-section ul { list-style: none; color: var(--text-body); }
.content-section li { padding: 5px 0 5px 20px; position: relative; }
.content-section ol { counter-reset: li; }
.content-section ol li::before {
  content: counter(li);
  counter-increment: li;
  position: absolute;
  left: 0;
  width: 18px; height: 18px;
  background: var(--green-500);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  top: 8px;
}
.content-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
  top: 5px;
}

/* ═══════════════════════════════════════════════════════════════
   CTA SECTION — Liên hệ báo giá
══════════════════════════════════════════════════════════════ */
.cta-section {
  padding: var(--sp-xl) 0;
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 100%);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}
.cta-text h2 {
  color: #fff;
  margin-bottom: var(--sp-sm);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
}
.cta-text p {
  color: rgba(255,255,255,0.78);
  margin: 0;
  font-size: 0.9375rem;
}
.cta-actions {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: var(--ease);
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-call {
  background: #fff;
  color: var(--green-700);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-call:hover {
  background: var(--green-50);
  color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.btn-email {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-email:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
#site-footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.85);
}
.footer-main { padding: var(--sp-2xl) 0 var(--sp-xl); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--sp-xl);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.footer-logo-text {
  margin-bottom: var(--sp-sm);
}
.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin: 0 0 var(--sp-md);
  line-height: 1.7;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 8px;
}
.footer-contact-item svg { width: 15px; height: 15px; fill: var(--green-300); flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,0.78); }
.footer-contact-item a:hover { color: #fff; }
.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-300);
  margin-bottom: var(--sp-md);
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--ease);
}
.footer-links a::before {
  content: '›';
  color: var(--green-400);
  font-weight: 700;
}
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
  background: var(--bg-footer-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-md) 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.footer-bottom a { color: var(--green-300); }
.footer-bottom a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   SINGULAR PAGE
══════════════════════════════════════════════════════════════ */
.singular-hero {
  background: var(--green-500);
  padding: var(--sp-lg) 0;
}
.singular-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
}
.singular-hero .breadcrumb a { color: rgba(255,255,255,0.75); }
.singular-hero .breadcrumb a:hover { color: #fff; }
.singular-hero .sep { opacity: .5; }
.singular-body {
  padding: var(--sp-2xl) 0;
  background: var(--bg-white);
}
.singular-header {
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-lg);
  border-bottom: 2px solid var(--green-500);
}
.singular-header h1 { color: var(--green-700); }
.singular-meta { color: var(--text-muted); font-size: 0.875rem; margin-top: var(--sp-sm); }

/* ═══════════════════════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════════════════════ */
.error-404-page {
  text-align: center;
  padding: 80px 0;
  background: var(--bg-white);
}
.error-404-inner { max-width: 560px; margin: 0 auto; }
.error-404-code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 900;
  color: var(--green-200);
  line-height: 1;
  font-family: var(--font-display);
  margin-bottom: 0;
}
.error-404-page h1 { color: var(--green-700); margin-bottom: var(--sp-md); }
.error-404-desc { color: var(--text-muted); margin-bottom: var(--sp-xl); }
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--green-500);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 4px 16px rgba(46,158,46,.35);
  transition: var(--ease);
}
.btn-back-home:hover {
  background: var(--green-600);
  color: #fff;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   INDEX LOOP
══════════════════════════════════════════════════════════════ */
.loop-page { padding: var(--sp-2xl) 0; background: var(--bg-white); }
.loop-article {
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border);
}
.loop-article h2 a { color: var(--green-700); }
.loop-article h2 a:hover { color: var(--green-500); }
.loop-date { color: var(--text-muted); font-size: 0.875rem; margin: 6px 0 var(--sp-sm); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .factors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .price-hero-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
  .cta-inner       { flex-direction: column; text-align: center; }
  .cta-actions     { justify-content: center; }
}

@media (max-width: 720px) {
  .price-hero-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .factors-grid    { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr; gap: var(--sp-lg); }
}

@media (max-width: 640px) {
  .primary-nav { display: none; }
  .primary-nav.open {
    display: block;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 3px solid var(--green-500);
    box-shadow: 0 8px 24px rgba(30,80,30,0.12);
    z-index: 899;
    padding: var(--sp-sm) var(--sp-md);
  }
  .primary-nav.open ul { flex-direction: column; gap: 2px; }
  .primary-nav.open a  { padding: 10px 14px; border-radius: var(--radius-sm); }
  .menu-toggle   { display: flex; }
  .trust-grid    { grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
  .footer-inner  { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .chart-header  { flex-direction: column; align-items: flex-start; }
  .topbar-left   { display: none; }
  .unit-switcher { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 400px) {
  .trust-grid  { grid-template-columns: 1fr; }
  .price-card  { padding: var(--sp-lg) var(--sp-md); }
  .cta-actions { flex-direction: column; }
  .btn-cta     { justify-content: center; }
}
