/* =========================================
   AWiT Landing Page — style.css
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Be+Vietnam+Pro:wght@300;400;500;600&display=swap');

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

:root {
  --gold:        #C8A96E;
  --gold-dark:   #9E7C3F;
  --gold-light:  #F0E0BC;
  --gold-bg:     #FBF6EE;
  --white:       #FFFFFF;
  --bg:          #FAFAF8;
  --bg-alt:      #F4F1EC;
  --text:        #224800; /* Xanh rêu đậm chủ đạo */
  --muted:       rgba(34, 72, 0, 0.7); /* Thay thế màu xám bằng Xanh rêu trong suốt 70% */
  --border:      #E5DDD0;
  --ff-display:  'Playfair Display', Georgia, serif;
  --ff-body:     'Be Vietnam Pro', sans-serif;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-full: 100px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.08);
  --transition:  0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  font-size: 18px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
strong { font-weight: 600; }

/* --- CONTAINER --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFDFA1 0%, var(--gold) 100%);
  color: #1A1812; 
  font-weight: 800; 
  font-family: var(--ff-body);
  font-size: 16px;
  padding: 16px 38px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease; 
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold) 0%, #FFDFA1 100%);
  transform: translateY(-2px); 
  box-shadow: 0 6px 15px rgba(219, 175, 99, 0.4);
}

.btn-primary:active { 
  transform: scale(0.98); 
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold-dark);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 16px;
  padding: 16px 34px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  background: var(--gold-bg);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 12px 26px;
  font-size: 15px;
}

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; display: block; }

.nav {
  display: flex;
  gap: 2rem;
  flex: 1;
}
.nav a {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: var(--gold-dark); }

/* --- BADGE --- */
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  padding: 6px 22px;
  background: var(--gold-bg);
}

/* --- HERO --- */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-dark);
}
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 820px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 0.75rem;
}

/* --- STATS --- */
.stats-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* --- SECTIONS --- */
.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.section-alt {
  background: var(--bg-alt);
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}
.divider {
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.75rem;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  text-align: center;
}
.section-body {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.75rem;
  max-width: 940px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}
.section-body em { color: var(--gold-dark); font-style: italic; }

/* --- TREE SECTION --- */
.tree-section {
  background: var(--bg-alt);
}
.tree-wrapper {
  margin: 0rem auto 0;
  max-width: 820px;
  width: 100%;
}
.tree-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .tree-img {
    width: 70%; 
  }
}


/* --- VISION CARDS --- */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 2rem;
}
.vision-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  text-align: center;
}
.vision-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.vision-icon {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.vision-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* --- VALUES --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: var(--white);
  text-align: center;
}
.value-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 5px;
}
.value-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

/* --- SERVICES --- */
.services {
  display: grid;
  gap: 10px;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-align: left;
}
.service-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.service-num {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-bg);
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.service-content p {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}
.service-content span {
  font-size: 15px;
  color: var(--muted);
}

/* --- GIFT SECTION --- */
.gift-section { background: var(--gold-bg); }
.gift-box {
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.gift-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
}
.gift-badge {
  display: inline-block;
  background: var(--gold);
  color: #1A1812;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.gift-title {
  font-family: var(--ff-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 1rem;
}
.gift-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 2.25rem;
  line-height: 1.75;
}
.gift-includes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 2.25rem;
}
.gift-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
}
.check {
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}
.check::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 4px;
  border-left: 2px solid #1A1812;
  border-bottom: 2px solid #1A1812;
  transform: translate(-50%, -65%) rotate(-45deg);
}
.slots {
  display: block;
  text-align: center;
  margin-bottom: 1.5rem; 
  font-size: 17px; 
  font-weight: 700;
  color: #d93025;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  animation: text-pulse 1.2s infinite ease-in-out;
  transform-origin: center center;
}
@keyframes text-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1; 
  }
  50% {
    transform: scale(1.06); 
    opacity: 0.5; 
  }
}

/* --- PAIN GRID --- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pain-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}
.pain-item b {
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

/* --- WHY AWiT --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.why-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}
.why-num {
  font-family: var(--ff-display);
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.7;
}
.why-item b {
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}
.why-item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* --- CTA FINAL --- */
.cta-final {
  padding: 5rem 0;
  background: var(--bg-alt);
  text-align: center;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-body {
  text-align: center;
  margin: 0 auto 2rem;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 2rem;
}
.qr-wrapper {
  text-align: center;
  margin-top: 0 rem; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-code-img {
  width: 220px; 
  height: auto;
  background-color: var(--white);
  padding: 12px; 
  border: 1px solid var(--gold); 
  border-radius: 12px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
}

.qr-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 1rem;
}

.ceo {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
  width: 100%;
}
.ceo p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 4px;
}
.ceo strong {
  font-family: var(--ff-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

/* --- FOOTER --- */
.footer {
  background: var(--text); /* Nền xanh rêu */
  color: var(--gold-light); /* Chữ vàng nhạt sang trọng */
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 8px;
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg) brightness(0.85);
}
.footer p { font-size: 15px; }
.footer a { color: var(--gold); }
.footer a:hover { text-decoration: underline; }

/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .header-inner { gap: 1rem; }
  .nav { display: none; }

  .hero { padding: 4rem 0 3.5rem; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 17px; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }

  .section { padding: 4rem 0; }

  .gift-box { padding: 2.25rem 1.5rem; }

  .pain-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; padding: 12px 20px;font-size: 14px; line-height: 1.4; }
  .badge { font-size: 12px; padding: 5px 16px; }
  .section-body { font-size: 16px; line-height: 1.75; margin-bottom: 1.5rem; }
  .hero-sub { font-size: 17px; line-height: 1.7; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .gift-title { font-size: 24px; }
  .section-title { font-size: 26px; }
  .pain-grid { grid-template-columns: 1fr; }
  .badge { font-size: 11px; padding: 4px 12px; letter-spacing: 0.05em; }
  .section-body { font-size: 15px; line-height: 1.6; margin-bottom: 1.2rem; }
  .hero-sub { font-size: 16px; line-height: 1.6; }
  .qr-code-img {
    width: 180px;
  }
}

/* --- PLEDGE BANNER --- */

/* 1. Hiệu ứng nhịp thở (Pulse Glow) cho toàn bộ khối cam kết */
.awit-pledge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2.5rem;
  padding: 1.4rem 2rem;
  background: linear-gradient(135deg, #fffaf0 0%, var(--gold-bg) 100%);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  text-align: center;
  
  /* Thêm hiệu ứng animation */
  transform-origin: center;
  animation: pledge-pulse 2s infinite ease-in-out;
}

@keyframes pledge-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 169, 110, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px 15px rgba(200, 169, 110, 0.1);
    transform: scale(1.02); /* Phóng to nhẹ 2% */
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 169, 110, 0);
    transform: scale(1);
  }
}

/* 2. Hiệu ứng vẫy/lắc nhẹ cho Icon bắt tay */
.pledge-icon {
  font-size: 28px;
  flex-shrink: 0;
  display: inline-block; /* Cần thiết để transform hoạt động trên thẻ span */
  animation: icon-shake 2.5s infinite;
  transform-origin: bottom center;
}

@keyframes icon-shake {
  0%, 80%, 100% { 
    transform: rotate(0deg); 
  }
  85%, 95% { 
    transform: rotate(-15deg) scale(1.1); 
  }
  90% { 
    transform: rotate(15deg) scale(1.1); 
  }
}

.awit-pledge p {
  font-size: 17px;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
}

.awit-pledge strong {
  color: var(--gold-dark);
  font-weight: 700;
  font-style: normal;
}

@media (max-width: 480px) {
  .awit-pledge {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem 1.4rem;
  }
  .awit-pledge p { font-size: 15px; }
}