/*
Theme Name: Taxi Tây Nguyên
Theme URI: https://taxitaynguyen.vn/
Author: Antigravity
Author URI: https://taxitaynguyen.vn/
Description: Theme WordPress chuyên nghiệp dành cho dịch vụ taxi, thuê xe du lịch, đưa đón sân bay tại Đắk Lắk & Tây Nguyên.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webtaxi
Tags: custom-menu, featured-images, translation-ready, dynamic-hotline, booking-form
*/

/* ============================================================
   TAXI TÂY NGUYÊN — Main Stylesheet
   Mobile-first | Highland Đắk Lắk color palette
   ============================================================ */

/* ---- Google Fonts (loaded via <link> in HTML) ---- */
/* Be Vietnam Pro (body) + Playfair Display (headings) */

:root {
  /* Highland Đắk Lắk palette */
  --green-900: #092015;
  --green-800: #0f3425;
  --green-700: #134b35;
  --green-500: #2a7c5b;
  --green-200: #a7d7c5;
  --brown-900: #2b1810;
  --brown-700: #4a2c1d;
  --brown-500: #6f4430;
  --amber:     #f4a261;
  --amber-lt:  #ffcd6c;
  --cream:     #f7f4eb;
  --cream-lt:  #fdfbf7;
  --mist:      #e9f0ec;

  /* Semantic */
  --clr-primary:      var(--green-700);
  --clr-primary-dark: var(--green-800);
  --clr-secondary:    var(--brown-700);
  --clr-accent:       var(--amber);
  --clr-hotline:      #E63946;
  --clr-hotline-dark: #C1121F;
  --clr-bg:           var(--cream);
  --clr-bg-lt:        var(--cream-lt);
  --clr-text:         #1a1a24;
  --clr-text-mid:     #3a3a42;
  --clr-text-lt:      #72727a;
  --clr-white:        #fff;

  /* Tokens */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 8px 24px rgba(15,52,37,.08);
  --shadow-lg:  0 16px 48px rgba(9,32,21,.15);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --t:    .3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body:    'Be Vietnam Pro', 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-bg-lt);
  line-height: 1.65;
  overflow-x: hidden;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: var(--font-body); }

/* ---- Body padding for fixed mobile bar ---- */
@media (max-width: 767px) { body { padding-bottom: 80px; } }


/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.section-badge {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 100px;
  margin-bottom: .75rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  color: var(--clr-primary-dark);
  line-height: 1.25;
  margin-bottom: .5rem;
}
.section-header p {
  color: var(--clr-text-lt);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--t);
  white-space: nowrap;
}
.btn-primary  { background: var(--clr-primary);  color: #fff; border-color: var(--clr-primary); }
.btn-primary:hover  { background: var(--clr-primary-dark); border-color: var(--clr-primary-dark); transform: translateY(-2px); }
.btn-accent   { background: var(--clr-accent);   color: #fff; border-color: var(--clr-accent); }
.btn-accent:hover   { background: #B8880A; border-color: #B8880A; transform: translateY(-2px); }
.btn-outline-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-w:hover { background: #fff; color: var(--clr-primary-dark); }
.btn-hotline  { background: var(--clr-hotline); color: #fff; border-color: var(--clr-hotline); font-size: 1.05rem; }
.btn-hotline:hover  { background: var(--clr-hotline-dark); border-color: var(--clr-hotline-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,57,70,.35); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .875rem; }


/* ============================================================
   SITE HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(9, 32, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--t);
}
.site-header.scrolled {
  background: rgba(9, 32, 21, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px; height: 44px;
  background: var(--clr-accent);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.logo-name {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.15;
}
.logo-sub {
  color: var(--amber-lt);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: .15rem;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links a,
.nav-links li a {
  color: rgba(255,255,255,.82);
  padding: .5rem .85rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--t);
  display: inline-block;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links li.current-menu-item a,
.nav-links li a:hover { color: #fff; background: rgba(255,255,255,.1); }

/* Nav hotline badge */
.nav-hotline {
  display: flex; align-items: center; gap: .5rem;
  background: var(--clr-hotline);
  color: #fff; padding: .55rem 1.1rem;
  border-radius: 100px; font-weight: 700; font-size: .95rem;
  transition: var(--t); flex-shrink: 0;
}
.nav-hotline .dot {
  width: 8px; height: 8px; background: #fff;
  border-radius: 50%; animation: blink 1.4s infinite;
}
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.4)} }
.nav-hotline:hover { background: var(--clr-hotline-dark); transform: scale(1.03); }
@media (max-width: 767px) { .nav-hotline { display: none; } }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: .5rem;
}
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--green-900); padding: 1rem 1rem 1.5rem;
  gap: .2rem; border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-nav.open { display: flex; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

.mobile-nav a,
.mobile-nav li a {
  color: rgba(255,255,255,.85); padding: .8rem 1rem;
  border-radius: var(--r-sm); font-size: .95rem; font-weight: 500;
  transition: var(--t);
  display: block;
}
.mobile-nav a:hover,
.mobile-nav li a:hover,
.mobile-nav li.current-menu-item a { background: rgba(255,255,255,.09); color: #fff; }
.mobile-nav .m-hotline {
  margin-top: .75rem;
  background: var(--clr-hotline); color: #fff;
  padding: .9rem 1rem; border-radius: var(--r-sm);
  font-weight: 700; font-size: 1.05rem; text-align: center;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 100px 0 80px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background:
    linear-gradient(160deg,
      rgba(9, 32, 21, 0.95) 0%,
      rgba(15, 52, 37, 0.85) 45%,
      rgba(74, 44, 29, 0.80) 100%),
    url('assets/images/hero_bg.png') center/cover no-repeat;
  background-attachment: fixed;
}

/* Wavy bottom divider */
.hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--clr-bg-lt);
  clip-path: ellipse(54% 100% at 50% 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative; z-index: 1;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 420px; gap: 3rem; }
}

.hero-eyebrow {
  color: var(--amber-lt);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: .85rem; display: flex; align-items: center; gap: .5rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 2px; background: var(--clr-accent);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  color: #fff; line-height: 1.18; margin-bottom: 1.2rem;
}
.hero-content h1 em { color: var(--amber-lt); font-style: normal; }
.hero-content > p {
  color: rgba(255,255,255,.8); font-size: 1.07rem;
  max-width: 520px; margin-bottom: 2rem;
}

/* Hotline band */
.hero-hotline-band {
  display: flex; align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-left: 4px solid var(--clr-hotline);
  backdrop-filter: blur(8px);
  border-radius: var(--r-md); padding: 1.1rem 1.5rem;
  margin-bottom: 2rem; max-width: 400px;
}
.hl-ring {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--clr-hotline); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; animation: ring 2.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(230,57,70,.5);
}
@keyframes ring {
  0%,100%{transform:rotate(0)} 8%{transform:rotate(-18deg)} 16%{transform:rotate(18deg)}
  24%{transform:rotate(-12deg)} 32%{transform:rotate(12deg)} 40%{transform:rotate(0)}
}
.hl-info { width: 100%; }
.hl-info .hl-label {
  color: rgba(255,255,255,.75); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .2rem;
}
.hl-info .hl-number {
  color: #fff; font-size: 1.65rem; font-weight: 800; letter-spacing: .04em;
}
.hl-info .hl-note { color: rgba(255,255,255,.55); font-size: .78rem; }

.hero-actions { display: flex; flex-wrap: nowrap; gap: 0.75rem; width: 100%; }
.hide-mobile { display: inline; }

@media (max-width: 480px) {
  .hero-actions { gap: 0.5rem; }
  .hero-actions .btn {
    padding: 0.8rem 0.9rem;
    font-size: 0.92rem;
    flex: 1;
    justify-content: center;
  }
  .hide-mobile { display: none; }
}


/* ---- Booking Card ---- */
.booking-card {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.booking-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.booking-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem; color: var(--clr-primary-dark);
  text-align: center; margin-bottom: 1.5rem;
}
.booking-card h3 span { color: var(--clr-hotline); }

.form-group { margin-bottom: .85rem; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--clr-text-mid); margin-bottom: .35rem;
}
.form-group label i { margin-right: .3rem; color: var(--clr-primary); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid #DDD; border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .92rem;
  color: var(--clr-text); background: var(--cream);
  transition: var(--t);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--clr-primary);
  background: #fff; box-shadow: 0 0 0 3px rgba(45,106,79,.13);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }

.form-submit {
  width: 100%; padding: .9rem 1rem; margin-top: .5rem;
  background: var(--clr-hotline); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: var(--t); display: flex; align-items: center;
  justify-content: center; gap: .5rem;
}
.form-submit:hover {
  background: var(--clr-hotline-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(230,57,70,.38);
}


/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  padding: 90px 0 80px;
  background: var(--clr-bg-lt);
}

.services-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px)  { .services-grid { grid-template-columns: repeat(4,1fr); } }

.service-card {
  background: #fff; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: var(--t);
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }

.srv-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.srv-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .srv-img img {
  transform: scale(1.08);
}

.srv-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  background: var(--clr-hotline); color: #fff;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .65rem; border-radius: 100px;
}

.srv-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.srv-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem; color: var(--clr-primary-dark); margin-bottom: .65rem;
}
.srv-body p { color: var(--clr-text-mid); font-size: .88rem; line-height: 1.7; flex: 1; margin-bottom: 1.1rem; }

.srv-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.srv-tag {
  background: var(--mist); color: var(--clr-primary-dark);
  font-size: .72rem; font-weight: 600; padding: .25rem .65rem; border-radius: 100px;
}


/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  background: var(--green-800);
  padding: 64px 0;
}
.stats-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(2,1fr);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }

.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700; color: var(--amber-lt);
  line-height: 1; margin-bottom: .4rem;
}
.stat-label { color: rgba(255,255,255,.7); font-size: .9rem; }
.stat-divider {
  width: 2px; background: rgba(255,255,255,.12);
  display: none;
}
@media (min-width: 768px) { .stat-divider { display: block; } }


/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  padding: 90px 0;
  background: var(--clr-bg);
}
.why-grid {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.why-visual {
  position: relative;
  height: 440px;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: url('assets/images/about_fleet.png') center/cover no-repeat;
}
.why-visual-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem; z-index: 1;
  background: rgba(9, 32, 21, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--amber-lt);
  font-weight: 700; font-size: .9rem;
  padding: .6rem 1.1rem; border-radius: var(--r-sm);
}

.why-list { display: flex; flex-direction: column; gap: 1.4rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  background: var(--clr-primary); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: var(--t);
}
.why-item:hover .why-icon { background: var(--clr-accent); transform: scale(1.08); }
.why-text h4 { color: var(--clr-primary-dark); font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.why-text p  { color: var(--clr-text-mid); font-size: .88rem; line-height: 1.65; }


/* ============================================================
   FLEET HIGHLIGHTS
   ============================================================ */
.fleet-strip {
  padding: 70px 0;
  background: var(--cream);
  overflow: hidden;
}
.fleet-scroll {
  display: flex; gap: 1.25rem; overflow-x: auto;
  padding-bottom: 1rem; scrollbar-width: thin;
  scrollbar-color: var(--clr-primary) transparent;
}
.fleet-card {
  min-width: 220px; background: #fff;
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); flex-shrink: 0;
  transition: var(--t);
}
.fleet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fleet-thumb {
  height: 130px;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #fff;
}
.fleet-thumb i {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.fleet-card:hover .fleet-thumb i {
  transform: scale(1.15) rotate(-5deg);
}
.fleet-card:nth-child(2) .fleet-thumb { background: linear-gradient(135deg,#7B3F0A,#4A2C0A); }
.fleet-card:nth-child(3) .fleet-thumb { background: linear-gradient(135deg,#9E7500,#6B4D00); }
.fleet-card:nth-child(4) .fleet-thumb { background: linear-gradient(135deg,#1B4332,#0F2D1F); }
.fleet-info { padding: 1rem; }
.fleet-info h4 { font-size: .95rem; font-weight: 700; color: var(--clr-text); margin-bottom: .25rem; }
.fleet-info p  { font-size: .8rem; color: var(--clr-text-lt); }


/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
  padding: 90px 0 80px;
  background: var(--clr-bg-lt);
}
.news-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .news-grid { grid-template-columns: repeat(3,1fr); } }

.news-card {
  background: #fff; border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: var(--t);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.news-thumb {
  height: 175px; position: relative;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  display: flex; align-items: center; justify-content: center; font-size: 2.8rem; color: #fff;
}
.news-thumb i {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.news-card:hover .news-thumb i {
  transform: scale(1.15) rotate(-5deg);
}
.news-card:nth-child(even) .news-thumb { background: linear-gradient(135deg,#7B3F0A,#A0522D); }
.news-card:nth-child(3n) .news-thumb { background: linear-gradient(135deg,#9E7500,#D4A017); }

.news-cat {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--clr-accent); color: #fff;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  padding: .25rem .65rem; border-radius: 100px;
}
.news-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-date { color: var(--clr-text-lt); font-size: .78rem; margin-bottom: .5rem; }
.news-body h3 {
  font-size: .98rem; font-weight: 700;
  color: var(--clr-text); margin-bottom: .5rem; line-height: 1.45;
}
.news-body p {
  color: var(--clr-text-mid); font-size: .855rem; line-height: 1.65;
  flex: 1; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-link {
  color: var(--clr-primary); font-size: .855rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .3rem; transition: var(--t);
}
.news-link:hover { color: var(--clr-primary-dark); gap: .55rem; }

.section-more { text-align: center; margin-top: 2.5rem; }


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative; overflow: hidden;
  padding: 90px 0; text-align: center;
  background: linear-gradient(140deg, var(--green-900) 0%, var(--brown-900) 100%);
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, rgba(255,255,255,.015) 0px, rgba(255,255,255,.015) 1px,
    transparent 1px, transparent 20px
  );
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem,4vw,2.65rem);
  color: #fff; margin-bottom: 1rem; position: relative;
}
.cta-section p {
  color: rgba(255,255,255,.75); font-size: 1.07rem;
  margin-bottom: 2.2rem; position: relative;
}
.cta-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; position: relative;
}
.cta-hotline-big {
  background: var(--clr-hotline); color: #fff;
  border-radius: var(--r-md); padding: 1rem 2rem;
  display: inline-flex; align-items: center; gap: .85rem;
  font-size: 1.5rem; font-weight: 800;
  box-shadow: 0 6px 30px rgba(230,57,70,.45);
  transition: var(--t);
}
.cta-hotline-big:hover { background: var(--clr-hotline-dark); transform: scale(1.03); }
.cta-hotline-big .sub { font-size: .8rem; font-weight: 500; opacity: .85; display: block; text-align: left; }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #091A0F;
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; gap: 2.5rem; margin-bottom: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }

.ft-brand p { font-size: .88rem; line-height: 1.75; color: rgba(255,255,255,.55); margin: 1rem 0 1.25rem; }
.ft-hl-box {
  background: rgba(230,57,70,.12); border: 1px solid rgba(230,57,70,.28);
  border-radius: var(--r-sm); padding: 1rem 1.1rem;
}
.ft-hl-box .lb { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); }
.ft-hl-box .nb { font-size: 1.45rem; font-weight: 800; color: var(--clr-hotline); }

.ft-heading {
  color: #fff; font-weight: 700; font-size: .98rem;
  margin-bottom: 1.2rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--clr-accent); display: inline-block;
}
.ft-links { display: flex; flex-direction: column; gap: .55rem; }
.ft-links a,
.ft-links li a {
  color: rgba(255,255,255,.58); font-size: .88rem;
  transition: var(--t); display: flex; align-items: center; gap: .4rem;
}
.ft-links a::before,
.ft-links li a::before { content: '›'; color: var(--clr-accent); font-weight: 800; }
.ft-links a:hover,
.ft-links li a:hover { color: #fff; padding-left: .3rem; }

.ft-contact-item {
  display: flex; gap: .75rem; margin-bottom: .7rem;
  font-size: .87rem; color: rgba(255,255,255,.58); align-items: flex-start;
}
.ft-contact-item i { color: var(--clr-accent); flex-shrink: 0; margin-top: .15rem; font-size: 1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.4rem 0;
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: space-between; align-items: center;
  font-size: .82rem; color: rgba(255,255,255,.38);
}
.footer-bottom a { color: rgba(255,255,255,.55); transition: var(--t); }
.footer-bottom a:hover { color: var(--clr-accent); }


/* ============================================================
   FLOATING HOTLINE
   ============================================================ */
.hotline-float {
  position: fixed;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hotline-float.hf-visible {
  opacity: 1;
  pointer-events: all;
}

/* Desktop: bottom-right */
@media (min-width: 768px) {
  .hotline-float {
    bottom: 2rem; right: 2rem;
    width: 66px;
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
  }
  .hf-circle {
    width: 66px; height: 66px;
    background: var(--clr-hotline); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.65rem; color: #fff;
    box-shadow: 0 4px 20px rgba(230,57,70,.55);
    animation: ripple 2.2s infinite;
    cursor: pointer; transition: var(--t); text-decoration: none;
  }
  .hf-circle:hover { transform: scale(1.12); }
  .hf-label {
    background: var(--green-900); color: #fff;
    font-size: .68rem; font-weight: 700;
    padding: .22rem .65rem; border-radius: 100px;
    white-space: nowrap; letter-spacing: .04em;
  }
  .hf-bar { display: none; }
}

/* Mobile: bottom-left floating pill */
@media (max-width: 767px) {
  .hotline-float {
    bottom: 0.75rem;
    left: 1.25rem;
    transform: none;
    display: flex;
    align-items: center;
    width: auto;
  }
  .hf-circle, .hf-label { display: none; }
  .hf-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: var(--clr-hotline);
    color: #fff;
    height: 44px;
    padding: 0 1.4rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 25px rgba(230,57,70,.6);
    animation: mobileRipple 2.2s infinite;
    text-decoration: none;
    transition: transform .3s ease;
  }
  .hf-bar i {
    font-size: 1.15rem;
    animation: wiggle 1s infinite alternate;
  }
}

@keyframes mobileRipple {
  0%   { box-shadow: 0 4px 20px rgba(230,57,70,.55), 0 0 0 0 rgba(230,57,70,.4); }
  70%  { box-shadow: 0 4px 20px rgba(230,57,70,.55), 0 0 0 14px rgba(230,57,70,0); }
  100% { box-shadow: 0 4px 20px rgba(230,57,70,.55), 0 0 0 0 rgba(230,57,70,0); }
}

@keyframes wiggle {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}

@keyframes ripple {
  0%   { box-shadow: 0 4px 20px rgba(230,57,70,.55), 0 0 0 0 rgba(230,57,70,.45); }
  70%  { box-shadow: 0 4px 20px rgba(230,57,70,.55), 0 0 0 18px rgba(230,57,70,0); }
  100% { box-shadow: 0 4px 20px rgba(230,57,70,.55), 0 0 0 0 rgba(230,57,70,0); }
}


/* ============================================================
   PAGE HEADER (tin-tuc.html + article pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(140deg, var(--green-900) 0%, var(--green-700) 100%);
  padding: 120px 0 55px; text-align: center;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem,4vw,2.4rem);
  color: #fff; margin-bottom: .5rem;
}
.page-hero p { color: rgba(255,255,255,.75); font-size: 1rem; }
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  justify-content: center; margin-top: .9rem;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.breadcrumb a { color: var(--amber-lt); }
.breadcrumb span { opacity: .5; }


/* ============================================================
   ARTICLES LIST (tin-tuc.html)
   ============================================================ */
.articles-section { padding: 65px 0 80px; }

/* Filter buttons style */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}
.filter-btn {
  background: var(--clr-white);
  border: 1.5px solid #DDD;
  color: var(--clr-text-mid);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: var(--clr-white);
}
.filter-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}
.filter-btn.active:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
}

.articles-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .articles-grid { grid-template-columns: repeat(2,1fr); } }

.art-card {
  display: flex; gap: 0; background: #fff;
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow var(--t);
}
.art-card.hidden-filter {
  opacity: 0 !important;
  transform: scale(0.95) translateY(15px) !important;
  pointer-events: none !important;
}
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.art-thumb {
  width: 130px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--green-700), var(--green-800));
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
  color: #fff;
}
.art-card:nth-child(even) .art-thumb { background: linear-gradient(145deg,#7B3F0A,#4A2C0A); }

.art-body { padding: 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.art-cat { color: var(--clr-accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .35rem; }
.art-body h2 { font-size: .97rem; font-weight: 700; color: var(--clr-text); margin-bottom: .45rem; line-height: 1.4; }
.art-body p  { font-size: .84rem; color: var(--clr-text-mid); line-height: 1.6; flex: 1; margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-meta { display: flex; gap: 1rem; font-size: .77rem; color: var(--clr-text-lt); }


/* ============================================================
   ARTICLE DETAIL PAGE
   ============================================================ */
.article-section { padding: 55px 0 80px; }
.article-layout {
  display: grid; gap: 2rem; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .article-layout { grid-template-columns: 1fr 310px; } }

.article-body {
  background: #fff; border-radius: var(--r-md);
  padding: 2rem 1.75rem; box-shadow: var(--shadow-sm);
}
.art-header-badge { margin-bottom: 1rem; }
.article-body h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem,3.5vw,2rem);
  color: var(--clr-primary-dark); line-height: 1.3; margin-bottom: 1rem;
}
.article-body .art-meta-full {
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: var(--clr-text-lt);
  padding-bottom: 1.25rem; border-bottom: 1px solid #EEE; margin-bottom: 1.5rem;
}
.art-lead {
  font-size: 1.03rem; color: var(--clr-text-mid); font-weight: 500;
  line-height: 1.75; padding: 1rem 1.25rem;
  background: var(--mist); border-left: 3px solid var(--clr-primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: 1.5rem;
}
.article-body h2 {
  font-family: var(--font-heading); font-size: 1.3rem;
  color: var(--clr-primary-dark); margin: 2rem 0 .75rem;
}
.article-body h3 { font-size: 1.05rem; color: var(--clr-text); font-weight: 700; margin: 1.5rem 0 .5rem; }
.article-body p  { color: var(--clr-text-mid); line-height: 1.8; margin-bottom: 1rem; }
.article-body ul { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.article-body ul li { color: var(--clr-text-mid); line-height: 1.7; margin-bottom: .3rem; }

.price-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.price-table th { background: var(--clr-primary); color: #fff; padding: .75rem 1rem; text-align: left; }
.price-table td { padding: .65rem 1rem; border-bottom: 1px solid #EEE; color: var(--clr-text-mid); }
.price-table tr:nth-child(even) td { background: var(--mist); }

.art-share { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #EEE; }
.art-share span { font-size: .88rem; font-weight: 700; color: var(--clr-text-mid); margin-right: .5rem; }

/* Sidebar */
.article-sidebar .widget {
  background: #fff; border-radius: var(--r-md);
  padding: 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.widget-title {
  font-weight: 700; font-size: .98rem; color: var(--clr-primary-dark);
  margin-bottom: 1.1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--clr-accent);
}
.hl-widget {
  background: linear-gradient(145deg, var(--green-900), var(--green-800)) !important;
  text-align: center;
}
.hl-widget .widget-title { color: #fff; }
.hl-widget-icon { font-size: 2.5rem; margin-bottom: .75rem; color: var(--amber-lt); animation: ring 2.5s ease-in-out infinite; }
.hl-widget-num { font-size: 1.75rem; font-weight: 800; color: var(--amber-lt); margin-bottom: .3rem; display: block; }
.hl-widget-txt { color: rgba(255,255,255,.7); font-size: .82rem; margin-bottom: 1rem; }

.related-item { display: flex; gap: .75rem; margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid #EEE; }
.related-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.rel-thumb {
  width: 60px; height: 60px; flex-shrink: 0; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  color: #fff;
}
.rel-text h4 { font-size: .85rem; font-weight: 700; color: var(--clr-text); line-height: 1.35; margin-bottom: .2rem; }
.rel-text span { font-size: .75rem; color: var(--clr-text-lt); }


/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--green-700); border-radius: 3px; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed; bottom: 80px; right: 1.5rem; z-index: 9999;
  background: var(--green-800); color: #fff;
  padding: .85rem 1.25rem; border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0;
  transform: translateY(10px);
  transition: .35s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-to-top {
  position: fixed;
  z-index: 997;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  transform: translateY(10px);
}
.scroll-to-top.visible {
  opacity: 0.9;
  pointer-events: all;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: var(--clr-secondary);
  opacity: 1;
  transform: scale(1.05);
}

/* Desktop placement */
@media (min-width: 768px) {
  .scroll-to-top {
    bottom: 8.5rem;
    right: calc(2rem + 10px);
  }
}

/* Mobile placement */
@media (max-width: 767px) {
  .scroll-to-top {
    bottom: 0.75rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }
}
