/* ============================================
   Vinhomes Saigon Park - Landing Page Styles
   ============================================ */

:root {
  --primary: #006633;
  --primary-dark: #004d26;
  --primary-light: #008844;
  --gold: #c8972b;
  --gold-light: #e8b84b;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --text: #222222;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --radius: 8px;
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- HEADER ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--primary);
  padding: 10px 0;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.header.scrolled {
  padding: 6px 0;
  background: var(--primary-dark);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-badge {
  background: var(--gold);
  color: var(--white);
  font-weight: 900;
  font-size: 18px;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 1px;
}
.logo-text {
  color: var(--white);
  font-size: 14px;
  line-height: 1.3;
}
.logo-text strong { display: block; font-size: 16px; }
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hotline-link {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hotline-link:hover { color: var(--white); }
.btn-header {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-header:hover { background: var(--gold-light); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(0,50,25,0.85) 0%, rgba(0,102,51,0.7) 100%),
              url('assets/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 100px 20px 60px;
  position: relative;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,151,43,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,136,68,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero h1 span { color: var(--gold-light); }
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}
.hero-stat {
  text-align: center;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}
.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--gold-light);
}
.hero-stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

/* Countdown */
.countdown-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.countdown-label {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.countdown-item {
  text-align: center;
}
.countdown-item .num {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}
.countdown-item .unit {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.countdown-sep {
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
  align-self: flex-start;
  padding-top: 4px;
}

/* Lead Form */
.lead-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.form-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.form-subtitle {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.form-group label .req { color: #dc3545; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: var(--gray-100);
}
.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,102,51,0.1);
}
.form-control.error { border-color: #dc3545; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
  position: relative;
}
.btn-submit:hover { background: var(--primary-dark); }
.btn-submit span[aria-hidden] { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.btn-submit:active { transform: scale(0.99); }
.btn-submit.loading { pointer-events: none; opacity: 0.8; }
.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 20px;
}
.form-success .success-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}
.form-success h3 { color: var(--primary); margin-bottom: 8px; }
.form-success p { color: var(--gray-600); font-size: 14px; }

/* ---- SECTIONS COMMON ---- */
section { padding: 70px 20px; }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.section-tag {
  display: inline-block;
  background: rgba(0,102,51,0.1);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.section-title span { color: var(--primary); }
.section-desc {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}
.container { max-width: 1200px; margin: 0 auto; }

/* ---- OVERVIEW ---- */
.overview { background: var(--gray-100); }
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.overview-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.overview-card:hover { transform: translateY(-4px); }
.overview-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.overview-card h3 {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}
.overview-card p {
  font-size: 13px;
  color: var(--gray-600);
}
.info-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--gray-200);
}
.info-row:last-child { border-bottom: none; }
.info-label {
  background: var(--gray-100);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-800);
  border-right: 1px solid var(--gray-200);
}
.info-value {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text);
}
.info-value strong { color: var(--primary); }

/* ---- PRODUCTS ---- */
.products { background: var(--white); }
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.tab-btn {
  padding: 10px 28px;
  border: 2px solid var(--gray-200);
  background: transparent;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--gray-600);
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.product-body { padding: 20px; }
.product-type {
  display: inline-block;
  background: rgba(0,102,51,0.1);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-body h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.spec-chip {
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--gray-600);
}
.product-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}
.product-price span { font-size: 13px; font-weight: 400; color: var(--gray-600); }

/* ---- UTILITIES ---- */
.utilities { background: var(--gray-100); }
.utilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.utility-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.utility-card:hover { transform: translateY(-4px); }
.utility-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,102,51,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
}
.utility-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--primary);
}
.utility-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---- LOCATION ---- */
.location { background: var(--white); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 380px;
  background: var(--gray-200);
}
.location-map iframe {
  width: 100%; height: 100%;
  border: none;
}
.location-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.location-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.loc-icon { font-size: 22px; }
.loc-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.loc-info p { font-size: 13px; color: var(--gray-600); }

/* ---- FORM SECTION ---- */
.form-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 70px 20px;
}
.form-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
}
.form-section .section-title { color: var(--white); text-align: left; }
.form-section .section-title span { color: var(--gold-light); }
.form-section .section-desc { color: rgba(255,255,255,0.8); text-align: left; }
.form-benefits {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}
.form-benefit::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px 20px;
  text-align: center;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}
.footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }
.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---- FLOATING CTA ---- */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
  cursor: pointer;
  border: none;
}
.float-btn:hover { transform: scale(1.05); }
.float-btn-zalo {
  background: #0068ff;
  color: white;
}
.float-btn-call {
  background: var(--primary);
  color: white;
  animation: pulse 2s infinite;
}
.float-btn-register {
  background: var(--gold);
  color: white;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(0,102,51,0.4); }
  50% { box-shadow: 0 4px 30px rgba(0,102,51,0.7); }
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.3s;
  max-width: 300px;
}
.toast.show { transform: translateX(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .lead-form-card { max-width: 500px; margin: 40px auto 0; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .utilities-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; }
  .form-section-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 50px 16px; }
  .hero { padding: 80px 16px 40px; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .utilities-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .product-tabs { flex-wrap: wrap; }
  .info-row { grid-template-columns: 140px 1fr; }
  .header-cta .btn-header { display: none; }
}
