@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* === VARIABLES === */
:root {
  --primary: #008000;
  --primary-dark: #006400;
  --primary-light: #e6f2e6;
  --secondary: #f7f7f7;
  --dark: #1e2d3d;
  --white: #ffffff;
  --light: #f5f5f5;
  --text: #333333;
  --text-heading: #000000;
  --border: #e0e0e0;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
  --header-h: 70px;
  --trans: all 0.3s ease;
  --radius: 5px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  background: var(--white);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

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

ul,
ol {
  list-style: none;
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-pad {
  padding: 60px 0;
}

/* === TYPOGRAPHY === */
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 40px;
  text-transform: uppercase;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--trans);
  border: 2px solid transparent;
  white-space: nowrap;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* ================================================
   HEADER (Phase 1)
   ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header-h);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-box {
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: 0 2px 6px rgba(0, 128, 0, 0.3);
}

.logo-icon {
  font-size: 32px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: -2px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-text .top-line {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.logo-text .main-line {
  font-size: 13.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 1px 0;
}

.logo-text .sub-line {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: var(--trans);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link .arrow {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 240px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  border-top: 3px solid var(--primary);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--trans);
  border-bottom: 1px solid var(--light);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 26px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: var(--trans);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-overlay.active {
  opacity: 1;
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.35s ease-in-out;
  overflow-y: auto;
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-head {
  background: var(--primary);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-logo {
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
}

.mobile-menu {
  padding: 10px 0;
}

.mobile-menu-item {
  border-bottom: 1px solid var(--border);
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-heading);
  cursor: pointer;
  transition: var(--trans);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-arrow {
  font-size: 14px;
  transition: transform 0.25s;
}

.mobile-menu-item.open .mobile-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.mobile-submenu {
  display: none;
  background: #fafafa;
  border-top: 1px solid var(--border);
}

.mobile-menu-item.open .mobile-submenu {
  display: block;
}

.mobile-submenu a {
  display: block;
  padding: 12px 20px 12px 35px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}

.mobile-submenu a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Body padding for fixed header */
body {
  padding-top: var(--header-h);
}

/* ================================================
   HERO SLIDER (Phase 2)
   ================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: var(--dark);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Default slide gradient (no image) */
.slide-default {
  background: linear-gradient(135deg, #004d00 0%, #008000 50%, #003300 100%);
}

/* Pattern overlay for default slide */
.slide-default::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Lớp phủ đen mù */
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 850px;
  animation: slideIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.slide-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 35px;
  opacity: 0.95;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.slide-btn {
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 30px;
  /* Nút bo tròn */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 128, 0, 0.5);
}

.slider-prev {
  left: 30px;
}

.slider-next {
  right: 30px;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--trans);
  padding: 0;
}

.dot.active {
  background: var(--white);
  border-color: var(--primary);
  transform: scale(1.3);
}

/* ================================================
   QUICK SERVICES (Phase 3)
   ================================================ */
.quick-services {
  background: transparent;
  padding: 0 0 60px 0;
  position: relative;
  z-index: 5;
  margin-top: -60px;
  /* Overlap with slider on desktop mạnh hơn chút */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 cột trên desktop */
  gap: 20px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px 15px;
  border-radius: var(--radius);
  background: var(--white);
  transition: var(--trans);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  min-height: 100px;
}

.service-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  transform: translateY(-8px);
  background: var(--primary);
}

.service-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.4;
  transition: var(--trans);
  text-transform: uppercase;
}

.service-item:hover .service-name {
  color: var(--white);
}

/* ================================================
   WHY CHOOSE US (Phase 4)
   ================================================ */
.why-us {
  background: var(--secondary);
  /* Khác màu nền để tách biệt */
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.why-us-content .section-title {
  text-align: left;
}

.why-us-content .section-title::after {
  margin: 15px 0 0;
}

.why-us-desc {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 30px;
}

.why-us-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  transition: var(--trans);
  border-left: 4px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.feature-item:hover {
  box-shadow: var(--shadow-hover);
  border-left: 4px solid var(--primary);
  transform: translateX(8px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--trans);
}

.feature-item:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 128, 0, 0.3);
}

.feature-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.feature-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ================================================
   CTA BANNER (Phase 5)
   ================================================ */
.cta-banner {
  background: var(--primary);
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
  box-shadow: inset 0 3px 15px rgba(0, 0, 0, 0.1);
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 25px;
  color: var(--white);
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

/* ================================================
   SERVICES CARDS (Phase 6 & 7)
   ================================================ */
.bg-light {
  background: var(--secondary);
}

.services-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.news-card-grid {
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  width: calc(25% - 18.75px);
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: var(--trans);
  position: relative;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
  border-bottom-color: var(--primary);
}

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--secondary);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .card-thumb img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 20px 15px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-heading);
  transition: var(--trans);
  line-height: 1.4;
}

.service-card:hover .card-title {
  color: var(--primary);
}

.news-card {
  width: calc(33.333% - 20px);
}

.text-center {
  text-align: center;
}

/* ================================================
   FOOTER (Phase 9)
   ================================================ */
.site-footer {
  background: var(--footer-bg, #2b303b);
  color: #ccc;
  font-size: 14.5px;
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-title {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer-company-name {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-contact li {
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact li strong {
  color: #fff;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ccc;
  transition: var(--trans);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-block;
  padding: 6px 15px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--trans);
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
}

.footer-bottom {
  background: #1e2229;
  padding: 20px 0;
  text-align: center;
  font-size: 13.5px;
  color: #888;
}

.footer-bottom p {
  margin: 0;
}

/* ================================================
   FIXED CTA BAR (Phase 10)
   ================================================ */
.fixed-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.cta-call {
  background: #d93a3a;
}

.cta-call:hover {
  background: #b82828;
  color: var(--white);
}

.cta-call2 {
  background: #c0392b;
}

.cta-call2:hover {
  background: #962d22;
  color: var(--white);
}

.cta-zalo {
  background: #0068ff;
}

.cta-zalo:hover {
  background: #0055d4;
  color: var(--white);
}

.cta-btn span {
  margin-left: 8px;
}

.cta-icon-ring {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.5s infinite;
}

.cta-icon {
  width: 30px;
  height: 30px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* ================================================
   DESKTOP FLOAT SIDEBAR (trái dưới, lướt theo)
   ================================================ */
.desk-float-bar {
  display: none;
  position: fixed;
  left: 0;
  bottom: 80px;
  z-index: 1001;
  flex-direction: column;
  gap: 10px;
  /* Khoảng cách giữa 3 nút */
}

/* Nút Zalo — chỉ icon, không expand */
.desk-float-zalo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #0068ff;
  border-radius: 0 10px 10px 0;
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  overflow: hidden;
}

.desk-float-zalo:hover {
  background: #0055d4;
  transform: scale(1.08);
}

.desk-float-zalo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.desk-float-zalo-icon img {
  display: block;
}

/* Nút Hotline — luôn hiện số, có hiệu ứng rung */
.desk-float-call,
.desk-float-call2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 11px 12px;
  border-radius: 0 10px 10px 0;
  box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
}

.desk-float-call {
  background: #d93a3a;
  animation: floatRing 2.5s infinite;
}

.desk-float-call2 {
  background: #c0392b;
  animation: floatRing 2.5s 0.8s infinite;
}

/* Lệch pha */
.desk-float-call:hover {
  background: #b82828;
  transform: scale(1.04);
  animation: none;
}

.desk-float-call2:hover {
  background: #962d22;
  transform: scale(1.04);
  animation: none;
}

.desk-float-call .desk-float-icon,
.desk-float-call2 .desk-float-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation rung điện thoại */
@keyframes floatRing {
  0% {
    transform: translateX(0) rotate(0deg);
  }

  2% {
    transform: translateX(-2px) rotate(-8deg);
  }

  4% {
    transform: translateX(2px) rotate(8deg);
  }

  6% {
    transform: translateX(-2px) rotate(-6deg);
  }

  8% {
    transform: translateX(2px) rotate(6deg);
  }

  10% {
    transform: translateX(-1px) rotate(-3deg);
  }

  12% {
    transform: translateX(0) rotate(0deg);
  }

  100% {
    transform: translateX(0) rotate(0deg);
  }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1100px) {
  .logo-box {
    min-width: auto;
    padding: 8px 12px;
  }

  .logo-text .main-line {
    font-size: 12px;
  }

  .nav-link {
    font-size: 13px;
    padding: 10px 10px;
  }

  .services-grid {
    gap: 15px;
  }

  .service-card {
    width: calc(33.333% - 16.66px);
  }

  .news-card {
    width: calc(50% - 15px);
  }
}

/* Desktop: hiện widget float trái */
@media (min-width: 993px) {
  .desk-float-bar {
    display: flex;
  }
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-overlay {
    display: block;
  }

  .site-header {
    height: 65px;
  }

  body {
    padding-top: 65px;
    padding-bottom: 54px;
  }

  /* Thêm khoảng trống bottom cho thanh cố định */

  .fixed-cta-bar {
    display: flex;
  }

  /* Tăng padding-bottom khi có 3 nút mobile */
  body.has-hotline2 {
    padding-bottom: 80px;
  }

  .hero-slider {
    height: 400px;
  }

  .slide-title {
    font-size: 34px;
    margin-bottom: 15px;
  }

  .slide-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .quick-services {
    margin-top: -40px;
    padding-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-us-content .section-title {
    text-align: center;
  }

  .why-us-content .section-title::after {
    margin: 15px auto 0;
  }

  .why-us-desc {
    text-align: center;
  }

  .why-us-content .btn {
    display: flex;
    margin: 0 auto;
    width: max-content;
  }

  .service-card {
    width: calc(50% - 12.5px);
  }

  .news-card {
    width: calc(50% - 15px);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .logo-box {
    min-width: 170px;
    padding: 6px 10px;
    gap: 8px;
  }

  .logo-icon {
    font-size: 24px;
  }

  .logo-text .top-line {
    font-size: 9px;
  }

  .logo-text .main-line {
    font-size: 11px;
  }

  .logo-text .sub-line {
    font-size: 10px;
  }

  .section-pad {
    padding: 40px 0;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .hero-slider {
    height: 320px;
  }

  .slide-content {
    padding: 0 15px;
  }

  .slide-title {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .slide-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .slider-dots {
    bottom: 15px;
    gap: 8px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .quick-services {
    margin-top: -30px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
  }

  .service-item {
    padding: 15px 10px;
    min-height: 80px;
  }

  .service-name {
    font-size: 13px;
  }

  .feature-item {
    padding: 15px;
    gap: 12px;
  }

  .feature-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .cta-banner {
    padding: 40px 0;
  }

  .cta-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .services-card-grid {
    gap: 15px;
  }

  .news-card-grid {
    gap: 15px;
  }

  .service-card {
    width: 100%;
  }

  .news-card {
    width: 100%;
  }

  .footer-top {
    padding: 40px 0 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ================================================
   LEAD POPUP FORM
   ================================================ */
.lp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 15px;
  animation: lpFadeIn 0.3s ease;
}

.lp-overlay.lp-visible {
  display: flex;
}

@keyframes lpFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lp-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: lpSlideUp 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lpSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Nút đóng */
.lp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: #555;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.lp-close:hover {
  background: #dc3545;
  color: #fff;
  transform: rotate(90deg);
}

/* Header popup */
.lp-head {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 30px 30px 25px;
  text-align: center;
  border-radius: 12px 12px 0 0;
  color: #fff;
}

.lp-icon {
  font-size: 42px;
  margin-bottom: 12px;
  line-height: 1;
}

.lp-title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: #fff;
}

.lp-sub {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
}

/* Form */
.lp-form {
  padding: 25px 30px 30px;
}

.lp-field {
  margin-bottom: 18px;
}

.lp-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #444;
}

.lp-req {
  color: var(--primary);
}

.lp-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  color: #333;
}

.lp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.1);
}

.lp-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Messages */
.lp-msg {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 15px;
  line-height: 1.5;
}

.lp-msg-success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.lp-msg-error {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

/* Submit button */
.lp-btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lp-btn-submit:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.lp-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.lp-note {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  line-height: 1.5;
}

/* Khóa scroll khi popup mở */
body.lp-body-lock {
  overflow: hidden;
}

@media (max-width: 576px) {
  .lp-head {
    padding: 22px 20px 18px;
  }

  .lp-form {
    padding: 20px 20px 22px;
  }

  .lp-title {
    font-size: 18px;
  }

  .lp-icon {
    font-size: 34px;
  }
}