:root {
  --primary: #2e7d32;
  --accent: #ffd600;
  --danger: #c62828;
  --bg: #ffffff;
  --bg-alt: #f6f7f9; /* Xám rất nhạt để xen kẽ */
  --text: #1f2937;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  color: var(--text);
}

/* Navbar */
.navbar {
  background: #fff;
  transition: box-shadow 0.25s ease;
  border-bottom: 1px solid rgba(26, 79, 30, 0.1);
}
.navbar.sticky-top.scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.navbar-brand,
.nav-link,
.navbar-toggler-icon {
  color: #1a4f1e !important;
}
.nav-link {
  opacity: 0.9;
  font-weight: bold;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

/* Mobile Navbar - Nút nổi */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }
  .navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.625rem;
    width: 100%;
  }
  .nav-item {
    flex: 0 0 auto;
  }
  .nav-link {
    display: inline-block;
    padding: 0.75rem 1.125rem;
    background: #f8f9fa;
    border: 2px solid #1a4f1e;
    border-radius: 12px;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 79, 30, 0.15);
    white-space: nowrap;
  }
  .nav-link:hover,
  .nav-link.active {
    background: var(--primary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 79, 30, 0.25);
    text-decoration: none !important;
  }
  .nav-link.active {
    background: #1a4f1e;
  }
  
  /* Nút mũi tên lên để đóng menu - ở chính giữa đáy menu */
  .navbar-collapse {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .navbar-collapse-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-top: 1rem;
    padding: 0;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #1a4f1e;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 79, 30, 0.2);
    animation: float 2.5s ease-in-out infinite;
  }
  .navbar-collapse-close:hover {
    color: var(--primary);
    animation: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(26, 79, 30, 0.3);
  }
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-3px);
    }
  }
}

@media (min-width: 992px) {
  .navbar-collapse-close {
    display: none;
  }
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Thu nhỏ logo khi scroll xuống - Mobile & Desktop */
.navbar {
  transition: padding 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.navbar.scrolled-down {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.navbar-brand {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.navbar-brand.scrolled-down {
  padding: 0;
}
.navbar-brand .logo {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.navbar-brand.scrolled-down .logo {
  margin-right: 0.5rem !important;
}

/* Mobile: Logo thu nhỏ xuống 32px */
@media (max-width: 991.98px) {
  .navbar-brand.scrolled-down .logo {
    width: 32px;
    height: 32px;
  }
}

/* Desktop: Logo thu nhỏ xuống 40px */
@media (min-width: 992px) {
  .navbar-brand.scrolled-down .logo {
    width: 40px;
    height: 40px;
  }
}

.navbar-brand .fw-bold {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.navbar-brand.scrolled-down .fw-bold {
  transform: translateX(0);
}

/* Carousel full-bleed */
.carousel-item img {
  object-fit: cover;
  height: clamp(260px, 40vw, 520px);
}

/* Sections */
main > section {
  padding: 64px 0;
}
main > section:nth-of-type(odd) {
  background: var(--bg);
}
main > section:nth-of-type(even) {
  background: var(--bg-alt);
}
/* Hero section */
#hero {
  background: #1a4f1e !important;
  color: #fff;
}
#hero h1 {
  color: #fff;
}
#hero .lead-hero {
  color: #fff;
}
#hero .eyebrow {
  color: var(--accent);
}
/* Bảo đảm cuộn tới anchor không bị che bởi navbar sticky */
main > section {
  scroll-margin-top: 90px;
}

.section-title {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 24px;
}
.lead-hero {
  max-width: 760px;
  margin: 0 auto 18px;
}
#hero h1 {
  line-height: 1.2;
}
@media (max-width: 767.98px) {
  #hero h1 {
    line-height: 1.3;
  }
  #hero h1 br {
    line-height: 1.3;
  }
}

/* Buttons */
.call-now-btn {
  background: var(--accent);
  color: var(--danger);
  font-weight: bold;
  border: 2px solid var(--accent);
}
.call-now-btn:hover {
  background: #e6c400;
  color: var(--danger);
}

/* Dịch vụ: grid thẻ đẹp hơn */
.service-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  margin-right: 10px;
}

/* Gạch nhấn tiêu đề nhỏ */
.eyebrow {
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--accent);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.2s ease;
  pointer-events: none;
}
.back-to-top.show {
  opacity: 0.85;
  pointer-events: auto;
}
.back-to-top:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #1a4f1e;
  color: #fff;
  padding: 26px 0;
}
footer h5 {
  color: #fff;
}
footer a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}
footer .border-top {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Call to Action - Gọi ngay */
.call-to-action-section {
  padding: 48px 0;
}

/* Thư cảm ơn */
.thank-you-card {
  background-color: #fff9e6 !important;
  border-color: rgba(255, 214, 0, 0.2) !important;
  color: #1a4f1e;
  font-family: "Playfair Display", Georgia, serif;
}
.thank-you-card p {
  color: #1a4f1e;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Tiện ích khung rộng nhất */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
/* Logo khách hàng */
.client-logos img.client-logo {
  max-height: 56px;
  width: auto;
  opacity: 1;
  transition: transform 0.2s ease;
}
.client-logos img.client-logo:hover {
  transform: translateY(-2px);
}
/* Hamburger ⇄ Close icon */
.navbar-toggler {
  border: 1px solid rgba(26, 79, 30, 0.6);
  padding: 0.375rem 0.5rem;
  font-size: 1rem;
}

/* Mobile: Điều chỉnh nút menu cho phù hợp với brand text */
@media (max-width: 991.98px) {
  .navbar-toggler {
    padding: 0.4rem 0.6rem;
    transition: padding 0.4s ease;
  }
  .navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
    transition: width 0.4s ease, height 0.4s ease;
  }
  .navbar.scrolled-down .navbar-toggler {
    padding: 0.4rem 0.6rem;
  }
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(26,79,30,0.95)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22' /%3E%3C/svg%3E");
}
.navbar-light .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(26,79,30,0.95)' stroke-width='2' stroke-linecap='round' d='M7 7L23 23M23 7L7 23' /%3E%3C/svg%3E");
}
/* Tuỳ chọn: tô vàng thương hiệu — thêm class 'brand-yellow' vào .client-logos để áp dụng */
.client-logos.brand-yellow img.client-logo {
  filter: grayscale(1) brightness(0) sepia(1) saturate(6000%)
    hue-rotate(5deg);
}
/* Hình ảnh (preview trên trang chủ) */
.album-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.2s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.album-thumb:hover {
  transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb-container {
  background: #f8f9fa;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(26, 79, 30, 0.1);
}
.breadcrumb {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
}
.breadcrumb-item {
  font-size: 0.875rem;
}
.breadcrumb-item a {
  color: #1a4f1e;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #6c757d;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
  padding: 0 0.5rem;
}
