/* ============================================
   LAIXEHO247.COM - Landing Page Styles
   Optimized for fast loading
   ============================================ */

/* --- CSS Variables --- */
:root {
  --green-dark: #1B5E20;
  --green-mid: #2E7D32;
  --green-accent: #43A047;
  --green-light: #C8E6C9;
  --green-pale: #A5D6A7;
  --white: #FFFFFF;
  --black: #1A1A2E;
  --gray-dark: #333333;
  --gray-mid: #666666;
  --gray-light: #CCCCCC;
  --gray-text: #555555;
  --gray-footer: #6D7278;
  --gray-bg: #F5F5F5;
  --gray-border: #E0E0E0;
  --red: #E53935;
  --blue-zalo: #0068FF;
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --shadow-nav: 0 2px 8px rgba(0,0,0,0.06);
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

/* --- Utility --- */
.container {
  max-width: 1440px;
  margin: 0 auto;
}

/* ============================================
   1. TOP BAR
   ============================================ */
.top-bar {
  background: var(--green-mid);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 80px;
  gap: 16px;
}

.top-bar__label {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-right: auto;
}

.top-bar__hotline {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-accent);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
  cursor: pointer;
}

.top-bar__hotline:hover {
  background: #388E3C;
}

.top-bar__hotline i {
  width: 14px;
  height: 14px;
}

.top-bar__zalo {
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--blue-zalo);
  cursor: pointer;
  transition: transform 0.2s;
}

.top-bar__zalo:hover {
  transform: scale(1.1);
}

/* ============================================
   2. NAVIGATION
   ============================================ */
.navbar {
  background: var(--white);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: var(--shadow-nav);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 140px;
}

.navbar__logo-circle {
  width: 60px;
  height: 60px;
  border: 3px solid var(--green-mid);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.navbar__logo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navbar__logo-safe,
.navbar__logo-driver {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 900;
  color: var(--green-mid);
  letter-spacing: 0.5px;
}

.navbar__logo-dot {
  width: 24px;
  height: 24px;
  background: var(--green-mid);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__logo-dot i {
  width: 12px;
  height: 12px;
  color: var(--white);
}

.navbar__logo-phone {
  font-size: 9px;
  font-weight: 700;
  color: var(--green-mid);
}

.navbar__logo-url {
  font-size: 9px;
  font-weight: 600;
  color: var(--red);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-size: 15px;
  color: var(--gray-mid);
  transition: color 0.2s;
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-mid);
  transition: width 0.3s;
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

.navbar__link--active {
  color: var(--gray-dark);
  font-weight: 600;
}

.navbar__link:hover {
  color: var(--gray-dark);
}

.navbar__search {
  color: var(--gray-dark);
  cursor: pointer;
  transition: color 0.2s;
}

.navbar__search:hover {
  color: var(--green-mid);
}

.navbar__search i {
  width: 20px;
  height: 20px;
}

/* ============================================
   3. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 100px 200px;
  gap: 20px;
  text-align: center;
}

.hero__title1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  font-style: italic;
  color: var(--white);
}

.hero__title2 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  font-style: italic;
  color: var(--green-pale);
}

.hero__desc {
  font-size: 16px;
  font-style: italic;
  color: #E0E0E0;
  max-width: 500px;
  line-height: 1.5;
}

.hero__play-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.hero__play-btn {
  width: 56px;
  height: 56px;
  background: var(--green-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.hero__play-btn:hover {
  transform: scale(1.1);
  background: var(--green-mid);
}

.hero__play-btn i {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.hero__play-line {
  width: 60px;
  height: 2px;
  background: var(--white);
}

.hero__play-text {
  font-size: 13px;
  color: var(--white);
}

/* ============================================
   4. FEATURES SECTION
   ============================================ */
.features {
  background: var(--white);
  padding: 60px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.features__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  font-style: italic;
  color: var(--black);
  text-align: center;
  line-height: 1.3;
  max-width: 500px;
}

.features__grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.feature-card {
  width: 360px;
  background: var(--green-light);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(27,94,32,0.15);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  color: var(--green-dark);
}

.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  text-align: center;
}

.feature-card__desc {
  font-size: 13px;
  color: var(--gray-text);
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}

/* ============================================
   5. WHY SECTION
   ============================================ */
.why-section {
  background: var(--green-dark);
  padding: 60px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  border-radius: 60px 60px 0 0;
}

.why-section__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  text-align: center;
}

.why-section__desc {
  font-size: 14px;
  color: #E0E0E0;
  text-align: center;
  max-width: 800px;
  line-height: 1.6;
}

.why-section__grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.why-card {
  width: 280px;
  background: var(--white);
  border-radius: 16px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.why-card__icon {
  width: 48px;
  height: 48px;
  color: var(--green-dark);
}

.why-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  text-align: center;
}

.why-card__desc {
  font-size: 13px;
  color: var(--gray-mid);
  text-align: center;
  max-width: 220px;
  line-height: 1.5;
}

/* ============================================
   6. FAQ SECTION
   ============================================ */
.faq {
  background: var(--gray-bg);
  padding: 60px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.faq__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
}

.faq__content {
  display: flex;
  gap: 40px;
  width: 100%;
}

.faq__image {
  width: 500px;
  min-width: 500px;
  height: 350px;
  border-radius: 12px;
  object-fit: cover;
}

.faq__list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  cursor: pointer;
  transition: background 0.2s;
}

.faq-item:hover {
  background: #FAFAFA;
}

.faq-item__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
}

.faq-item__icon {
  width: 18px;
  height: 18px;
  color: var(--gray-dark);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item--active .faq-item__icon {
  color: var(--green-mid);
  transform: rotate(180deg);
}

.faq-item__question {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-dark);
}

.faq-item--active .faq-item__question {
  color: var(--green-mid);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item--active .faq-item__answer {
  max-height: 200px;
}

.faq-item__answer-text {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.6;
  padding: 0 20px 16px 46px;
}

/* ============================================
   7. FOOTER
   ============================================ */
.footer {
  background: var(--gray-footer);
  padding: 50px 80px;
  display: flex;
  gap: 60px;
}

.footer__col1 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo-circle {
  width: 40px;
  height: 40px;
  background: var(--green-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-circle i {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.footer__logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.footer__logo-sub {
  font-size: 11px;
  color: var(--gray-light);
}

.footer__hotline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-accent);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  width: fit-content;
  cursor: pointer;
  transition: background 0.2s;
}

.footer__hotline:hover {
  background: #388E3C;
}

.footer__hotline i {
  width: 14px;
  height: 14px;
}

.footer__desc {
  font-size: 13px;
  color: var(--gray-light);
  max-width: 300px;
  line-height: 1.6;
}

.footer__col2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__qr {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.footer__qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__qr-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
}

.footer__col3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__col3-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.footer__col3-link {
  font-size: 13px;
  color: var(--gray-light);
  transition: color 0.2s;
  cursor: pointer;
}

.footer__col3-link:hover {
  color: var(--white);
}

/* ============================================
   8. FLOATING CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  z-index: 200;
}

.floating-cta__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  animation: pulse-phone 2s infinite;
}

.floating-cta__phone:hover {
  background: #C62828;
  transform: scale(1.05);
}

.floating-cta__phone i {
  width: 16px;
  height: 16px;
}

@keyframes pulse-phone {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
}

.floating-cta__zalo {
  width: 48px;
  height: 48px;
  background: var(--blue-zalo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s;
  animation: pulse-zalo 2s infinite 0.5s;
}

.floating-cta__zalo:hover {
  transform: scale(1.1);
}

@keyframes pulse-zalo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,104,255,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,104,255,0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .features, .why-section, .faq { padding: 50px 40px; }
  .footer { padding: 40px 40px; }
  .top-bar { padding: 0 40px; }
  .hero__content { padding: 60px 80px; }
}

@media (max-width: 1024px) {
  .faq__content { flex-direction: column; }
  .faq__image { width: 100%; min-width: unset; height: 250px; }
  .why-section__grid { flex-wrap: wrap; }
  .why-card { width: calc(50% - 12px); }
  .feature-card { width: calc(50% - 16px); }
  .footer { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
  .top-bar { padding: 0 16px; height: 40px; }
  .top-bar__label { font-size: 12px; }
  .navbar { padding: 0 16px; height: 64px; }
  .navbar__links { gap: 16px; }
  .navbar__link { font-size: 13px; }
  .hero { height: 500px; }
  .hero__content { padding: 40px 24px; }
  .hero__title1, .hero__title2 { font-size: 32px; }
  .hero__desc { font-size: 14px; }
  .features { padding: 40px 24px; }
  .features__title { font-size: 28px; }
  .features__grid { flex-direction: column; align-items: center; }
  .feature-card { width: 100%; max-width: 400px; }
  .why-section { padding: 40px 24px; border-radius: 30px 30px 0 0; }
  .why-section__title { font-size: 28px; }
  .why-section__grid { flex-direction: column; align-items: center; }
  .why-card { width: 100%; max-width: 360px; }
  .faq { padding: 40px 24px; }
  .faq__title { font-size: 22px; }
  .footer { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .navbar__logo { width: 80px; }
  .navbar__logo-circle { width: 40px; height: 40px; border-width: 2px; }
  .navbar__logo-safe, .navbar__logo-driver { font-size: 7px; }
  .navbar__logo-dot { width: 16px; height: 16px; }
  .navbar__links { gap: 10px; }
  .navbar__link { font-size: 11px; }
  .hero__title1, .hero__title2 { font-size: 26px; }
  .hero__play-row { flex-direction: column; gap: 8px; }
}

/* Body bottom padding for fixed CTA */
body { padding-bottom: 60px; }
