/*
Theme Name: Tony Green Ecosystems
Theme URI: https://tonyxanhgreen.com
Author: Tony Xanh Green
Description: Theme WordPress dựng theo thiết kế Tony Green Ecosystems - Đại Trung Global.
Version: 1.2.0
Text Domain: tony-green-ecosystems
*/

:root {
  --green: #075d27;
  --gold: #bd7e00;
  --paper: #f8faf6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #172219;
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ---------- Inner pages (header / footer / content) ---------- */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgb(0 55 23 / 8%);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-brand {
  text-decoration: none;
  display: block;
  line-height: 1.15;
}
.site-brand-title {
  font-weight: 700;
  font-size: 20px;
  color: var(--green);
  letter-spacing: .5px;
}
.site-brand-title small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
}
.site-nav { flex: 1; }
.primary-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.primary-menu a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: #172219;
}
.primary-menu a:hover,
.primary-menu a:focus-visible { color: var(--green); }
.site-cta {
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.site-cta:hover { background: #05451d; }

.site-main { flex: 1; }
.content-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.page-title {
  color: var(--green);
  font-size: 32px;
  margin: 0 0 24px;
}
.page-content, .page-content p { line-height: 1.7; font-size: 16px; }
.page-thumb img, .post-card-thumb img { width: 100%; height: auto; border-radius: 12px; display: block; }

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgb(0 55 23 / 10%);
}
.post-card-title { font-size: 18px; margin: 14px 16px 6px; }
.post-card-title a { text-decoration: none; color: #172219; }
.post-card-meta { margin: 0 16px; font-size: 13px; color: #667; }
.post-card-excerpt { margin: 8px 16px 18px; font-size: 14px; line-height: 1.6; }

.site-footer {
  background: var(--green);
  color: #eaf4ec;
  margin-top: auto;
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.site-footer .site-brand-title { color: #fff; }
.site-footer .site-brand-title small { color: var(--gold); }
.footer-social { display: flex; gap: 16px; margin-top: 12px; }
.footer-social a { color: #eaf4ec; text-decoration: none; font-weight: 600; }
.footer-widget-title { color: #fff; font-size: 16px; margin: 0 0 10px; }
.site-footer-copy {
  text-align: center;
  margin: 0;
  padding: 16px;
  font-size: 13px;
  background: rgb(0 0 0 / 15%);
}

@media (max-width: 720px) {
  .site-header-inner { padding: 12px 16px; }
  .primary-menu { gap: 14px; }
  .content-shell { padding: 32px 16px 56px; }
}

/* ---------- Homepage sections ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}
.btn-primary { background: var(--gold); color: #1a1300; }
.btn-primary:hover { background: #a06c00; }
.btn-ghost { background: rgb(255 255 255 / 15%); color: #fff; border: 2px solid #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / 28%); }

.home-hero {
  background: linear-gradient(135deg, #054019 0%, var(--green) 55%, #0d7a34 100%);
  color: #fff;
}
.home-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}
.home-hero-copy { max-width: 640px; }
.home-hero-copy h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.15;
  margin: 0 0 18px;
}
.home-hero-copy h1 span { color: var(--gold); }
.home-hero-tagline { font-size: 18px; line-height: 1.6; margin: 0 0 24px; color: #e2f3e6; }
.home-hero-points {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
  font-weight: 600;
}
.home-hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.home-section { padding: 72px 0; }
.home-section-alt { background: #eef6ef; }
.home-section-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.home-section h2 {
  color: var(--green);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 8px;
  text-align: center;
}
.home-section-sub { text-align: center; color: #4b5c50; margin: 0 0 40px; }
.home-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.home-section-head h2 { margin: 0; text-align: left; }
.home-section-link { color: var(--green); font-weight: 700; text-decoration: none; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}
.category-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgb(0 55 23 / 8%);
}
.category-icon { display: block; font-size: 34px; margin-bottom: 8px; }
.category-no { display: block; font-size: 12px; color: var(--gold); font-weight: 700; }
.category-label { display: block; font-size: 14px; font-weight: 600; margin-top: 4px; }

.home-stats { background: var(--green); color: #fff; padding: 40px 0; }
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-card strong { display: block; font-size: 30px; color: var(--gold); }
.stat-card span { font-size: 14px; }

.home-checklist {
  list-style: none;
  margin: 0 auto 40px;
  padding: 0;
  max-width: 640px;
  display: grid;
  gap: 10px;
  font-weight: 600;
  color: #1c3d26;
}
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}
.solution-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 20px;
  box-shadow: 0 2px 12px rgb(0 55 23 / 8%);
  text-align: center;
}
.solution-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.solution-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--green); }
.solution-card p { margin: 0; font-size: 14px; color: #4b5c50; }

.sustain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.sustain-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--green);
  box-shadow: 0 2px 12px rgb(0 55 23 / 8%);
}
.sustain-icon { display: block; font-size: 32px; margin-bottom: 10px; }

@media (max-width: 720px) {
  .home-hero-inner { padding: 48px 16px; }
  .home-section { padding: 48px 0; }
  .home-hero-points { grid-template-columns: 1fr; }
}
