/* ========== Responsive Footer ========== */
@media (max-width: 900px) {
    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 8px;
        margin-top: 18px;
        border-radius: 0 0 10px 10px;
        gap: 10px;
    }
    .footer-col {
        min-width: 0;
        width: 100%;
        margin: 6px 0;
        padding: 0 2vw;
    }
    .footer-col h3 {
        font-size: 1.05rem;
        padding-bottom: 2px;
    }
    .footer-col ul li, .footer-col p {
        font-size: 0.98rem;
        margin-bottom: 6px;
    }
}

@media (max-width: 600px) {
    footer {
        padding: 10px 2vw;
        gap: 4px;
    }
    .footer-col {
        margin: 2px 0;
        padding: 0 1vw;
    }
    .footer-col h3 {
        font-size: 0.98rem;
    }
    .footer-col ul li, .footer-col p {
        font-size: 0.92rem;
        margin-bottom: 4px;
    }
}

/* ========== RESPONSIVE: TABLET & MOBILE ========== */
@media (max-width: 1024px) {
    .container {
        max-width: 100vw;
        padding: 8px 8px;
    }
    section:not(.hero) {
        padding: 28px 10px;
        margin: 24px 4px;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,100,0,0.06);
        flex-direction: column;
        gap: 24px;
    }
    .content-section, .content-section.alt {
        flex-direction: column !important;
        gap: 24px;
        padding: 24px 8px;
        margin: 24px 2px;
        border-radius: 12px;
    }
    .content-img {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.10);
        margin-bottom: 10px;
    }
    .content-img img {
        border-radius: 12px;
        min-height: 180px;
        max-height: 260px;
        object-fit: cover;
    }
    .content-text h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    .content-text p, .content-text li {
        font-size: 1rem;
    }
    .hero {
        height: 260px;
        min-height: 160px;
        max-height: 340px;
    }
    .hero-text {
        top: 12%;
        left: 50%;
        transform: translateX(-50%);
        max-width: 96vw;
        padding: 6px 6px;
    }
    .hero-text h1 {
        font-size: 1.3rem;
    }
    .hero-text .slogan {
        font-size: 0.98rem;
    }
    .hero-cta {
        min-width: 120px;
        padding: 8px 10px;
        font-size: 0.98rem;
    }
    .hero-indicators {
        bottom: 6px;
        gap: 5px;
    }
    .hero-indicators button {
        width: 8px;
        height: 8px;
    }
    .hero-prev, .hero-next {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .cta-buttons {
        bottom: 12px;
        right: 10px;
        gap: 8px;
    }
    .cta-btn {
        font-size: 18px;
        padding: 10px 12px;
    }
    footer {
        flex-direction: column;
        padding: 18px 8px;
        margin-top: 18px;
        border-radius: 0 0 10px 10px;
    }
    .footer-col {
        min-width: 140px;
        margin: 6px 0;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 4px 2vw;
    }
    section:not(.hero) {
        padding: 14px 2vw;
        margin: 12px 0;
        border-radius: 8px;
    }
    .content-section, .content-section.alt {
        padding: 12px 2vw;
        margin: 12px 0;
        border-radius: 8px;
        gap: 12px;
    }
    .content-img {
        border-radius: 8px;
        min-width: 0;
        max-width: 100vw;
    }
    .content-img img {
        border-radius: 8px;
        min-height: 120px;
        max-height: 180px;
    }
    .content-text h2 {
        font-size: 1.08rem;
        margin-bottom: 8px;
    }
    .content-text p, .content-text li {
        font-size: 0.97rem;
    }
    .hero {
        height: 160px;
        min-height: 100px;
        max-height: 200px;
    }
    .hero-text {
        top: 8%;
        max-width: 99vw;
        padding: 2px 2vw;
    }
    .hero-text h1 {
        font-size: 1.05rem;
    }
    .hero-text .slogan {
        font-size: 0.88rem;
    }
    .hero-cta {
        min-width: 90px;
        padding: 6px 8px;
        font-size: 0.92rem;
    }
    .hero-indicators button {
        width: 7px;
        height: 7px;
    }
    .hero-prev, .hero-next {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }
    .cta-btn {
        font-size: 15px;
        padding: 8px 8px;
    }
    .footer-col {
        min-width: 100px;
        margin: 4px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2px 1vw;
    }
    section:not(.hero) {
        padding: 6px 1vw;
        margin: 6px 0;
        border-radius: 6px;
    }
    .content-section, .content-section.alt {
        padding: 6px 1vw;
        margin: 6px 0;
        border-radius: 6px;
        gap: 6px;
    }
    .content-img {
        border-radius: 6px;
    }
    .content-img img {
        border-radius: 6px;
        min-height: 80px;
        max-height: 120px;
    }
    .content-text h2 {
        font-size: 0.98rem;
        margin-bottom: 5px;
    }
    .content-text p, .content-text li {
        font-size: 0.92rem;
    }
    .hero {
        height: 90px;
        min-height: 60px;
        max-height: 120px;
    }
    .hero-text {
        top: 4%;
        max-width: 100vw;
        padding: 1px 1vw;
    }
    .hero-text h1 {
        font-size: 0.92rem;
    }
    .hero-text .slogan {
        font-size: 0.78rem;
    }
    .hero-cta {
        min-width: 60px;
        padding: 4px 6px;
        font-size: 0.85rem;
    }
    .hero-indicators button {
        width: 6px;
        height: 6px;
    }
    .hero-prev, .hero-next {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    .cta-btn {
        font-size: 13px;
        padding: 6px 6px;
    }
    .footer-col {
        min-width: 80px;
        margin: 2px 0;
    }
}
/* ========== RESET & BASE ========== */
:root {
    --green: #007a3d;
    --green-dark: #004a2a;
    --accent: #FFD700;
}

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

body {
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #222;
    background: #f4f8f6;
    line-height: 1.7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ensure media don't overflow */
img,
picture,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* words long break to avoid overflow */
* {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ===== layout container helper ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    box-sizing: border-box;
}

/* ===== Header ===== */
header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    /* position: sticky; */
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(0, 0, 0, 0.02);
}

.contact-bar {
    background: var(--green);
    color: #fff;
    text-align: center;
    font-size: .95rem;
    padding: 6px 0;
}

.contact-bar a {
    color: var(--accent);
    font-weight: 600;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    height: 44px;
    display: block;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 1px;
    text-decoration: none;
}

/* ===== Navigation ===== */
nav {
    flex: 1;
    min-width: 0;
}

nav a {
    text-decoration: none;
    /* bỏ gạch dưới */
    color: #007a3d;
    font-weight: 600;
    /* xanh đậm hoặc màu bạn chọn */
    display: block;
    padding: 10px 15px;
}

/* Khi hover vào link */
nav a:hover {
    background: #e9fff0;
    color: #1d6b2f;
    border-radius: 5px;
}

/* Reset list mặc định */
nav ul {
    list-style: none;
    /* bỏ dấu chấm đen */
    margin: 0;
    padding: 0;
}

/* min-width:0 helps flex children not overflow */
nav ul.main-menu {
    display: flex;
    gap: 4px;
    align-items: center;
    list-style: none;
    padding-left: 0;
    margin: 0;
    white-space: nowrap;
    /* keep menu items in one line by default */
    overflow: visible;
}

/* make sure li can't expand beyond container */
nav ul.main-menu>li {
    position: relative;
}

/* main links */
nav ul.main-menu>li>a {
    display: block;
    padding: 14px 20px;
    font-weight: 600;
    color: var(--green);
    border-radius: 6px;
    transition: background .2s, color .2s;
    text-decoration: none;
}

nav ul.main-menu>li>a:hover,
nav ul.main-menu>li.active>a {
    background: #e9fff0;
    color: #1d6b2f;
}

/* ========== dropdown (cấp 2) ========== */
nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    border-radius: 8px;
    padding: 6px 0;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
    pointer-events: none;
}

nav ul li:hover>ul,
nav ul li:focus-within>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* dropdown items */
nav ul ul li {
    position: relative;
}

nav ul ul li>a {
    display: block;
    padding: 12px 18px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
    transition: background .18s, color .18s;
    padding-right: 36px;
    /* space for arrow */
    border-radius: 6px;
}

nav ul ul li>a:hover {
    background: var(--green);
    color: #fff;
}

/* ========== cấp 3 (xổ ngang) ========== */
nav ul ul ul {
    top: 0;
    left: 100%;
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    z-index: 1120;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
    pointer-events: none;
}

nav ul ul li:hover>ul,
nav ul ul li:focus-within>ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* arrows */
/* nav ul.main-menu>li>a:after {
    content: " ▼";
    font-size: .6rem;
    color: #555;
    margin-left: 6px;
    transition: transform .2s;
} */

nav ul.main-menu>li:hover>a:after {
    transform: rotate(180deg);
}

nav ul ul li>a:after {
    content: " ►";
    font-size: .6rem;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

nav ul ul li:not(:has(ul))>a:after {
    content: "";
}

/* HERO / SLIDESHOW
   - chỉ animate opacity (tránh scale gây mờ)
   - có prev/next + indicators
*/
.hero {
    position: relative;
    width: 100%;
    height: 520px;
    /* desktop hero height - chỉnh nếu muốn */
    min-height: 280px;
    max-height: 900px;
    overflow: hidden;
    background: #f4f8f6;
}

/* slideshow container covers hero */
.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* slide images absolutely stacked */
.hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.66);
    opacity: 0;
    transition: opacity .9s ease-in-out;
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-slideshow img.active {
    opacity: 1;
}

.hero-text {
    position: absolute;
    top: 20%;
    left: 30%;
    transform: translateX(-50%);
    z-index: 30;
    color: #fff;
    text-align: center;
    padding: 12px 18px;
    max-width: 680px;
    width: calc(100% - 48px);
    box-sizing: border-box;
    pointer-events: auto;
}

.hero-text h1 {
    font-size: clamp(1.6rem, 3.2vw, 3.2rem);
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.02;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

.hero-text .slogan {
    font-size: clamp(.95rem, 1.6vw, 1.12rem);
    margin: 0 0 14px 0;
    font-style: italic;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--green-dark);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: transform .14s ease, box-shadow .14s ease;
    font-size: 1rem;
}

.hero-cta--compact {
    padding: 8px 10px;
    font-size: .95rem;
    gap: 6px;
}

.hero-cta:hover {
    transform: translateY(-3px);
}

.hero-indicators {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 35;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease;
}

.hero-indicators button.active {
    background: #fff;
    transform: scale(1.25);
}

/* prev/next controls */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 35;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, transform .12s;
}

.hero-prev {
    left: 12px;
}

.hero-next {
    right: 12px;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-50%) scale(1.03);
}

/* ===== MAIN SECTIONS ===== */
section:not(.hero) {
    max-width: 1250px;
    margin: 32px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 100, 0, 0.08);
    padding: 32px;
    box-sizing: border-box;
}

section h2 {
    color: var(--green);
    font-size: 1.9rem;
    margin-bottom: 18px;
    font-weight: 700;
    border-left: 5px solid var(--accent);
    padding-left: 12px;
}

section p {
    margin-bottom: 14px;
    font-size: 1rem;
}

section ul {
    list-style: disc;
    margin: 14px 0 14px 28px;
}

section li {
    margin-bottom: 8px;
}

blockquote {
    background: #eaffea;
    border-left: 6px solid var(--green);
    padding: 16px 22px;
    font-style: italic;
    color: var(--green);
    border-radius: 10px;
    margin: 18px 0;
}

/* ===== FOOTER ===== */
footer {
    background: var(--green);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 28px 20px;
    border-radius: 0;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-col {
    flex: 1;
    min-width: 220px;
    margin: 10px;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 4px;
}

.footer-col ul li {
    margin-bottom: 6px;
}

footer a {
    color: var(--accent);
    font-weight: 600;
}

/* CTA Floating Buttons (kept as-is) */
.cta-buttons {
    position: fixed;
    bottom: 250px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    background: #a5eb88;
    color: #333;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.cta-btn img {
    width: 28px;
    height: 28px;
}

.call-btn {
    border: 2px solid var(--green);
    color: var(--green);
}

.phone-text {
    font-weight: 700;
    animation: bounceColor 1.5s infinite;
}

.zalo-text {
    font-weight: 600;
    animation: pulseText 1.8s infinite;
}

.zalo-btn {
    border: 2px solid var(--green);
    color: #0068ff;
}

.zalo-text {
    font-weight: 600;
}

@keyframes bounceColor {

    0%,
    100% {
        transform: translateY(0);
        color: var(--green);
    }

    50% {
        transform: translateY(-4px);
        color: var(--accent);
    }
}

@keyframes pulseText {

    0%,
    100% {
        transform: scale(1);
        color: #0068ff;
    }

    50% {
        transform: scale(1.08);
        color: #004bb5;
        /* xanh đậm hơn */
    }
}

@media (max-width: 768px) {

    .phone-text,
    .zalo-text {
        display: none;
    }

    .cta-btn {
        border-radius: 50%;
        width: 54px;
        height: 54px;
        justify-content: center;
        padding: 0;
        font-size: 22px;
    }
}

.hero .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto !important;
    min-width: 180px;
    padding: 10px 22px;
    font-size: clamp(.95rem, 1.6vw, 1rem);
    background: #fff !important;
    color: var(--green-dark) !important;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14) !important;
    text-decoration: none;
    font-weight: 700;
    justify-content: center;
}

@media (max-width: 640px) {
    .hero .hero-cta {
        min-width: 150px;
        padding: 10px 16px;
        font-size: .95rem;
    }

    .hero-text {
        left: 52%;
        top: 18%;
        transform: translateX(-50%);
        max-width: 92%;
        padding: 8px 12px;
    }
}

/* === Hamburger + responsive header (applies up to 1024px) === */

/* basic hamburger look */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    padding: 6px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    color: var(--green);
    z-index: 3000;
}

.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green);
    margin: 3px 0;
    transition: transform .25s ease, opacity .25s ease;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Trang chủ sections ===== */
.content-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1280px;
  margin: 80px auto;
  padding: 60px 50px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 80, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 80, 0, 0.12);
}

/* Section đảo chiều */
.content-section.alt {
  flex-direction: row-reverse;
}

/* Text */
.content-text {
  flex: 1.2;
}

.content-text h2 {
  color: #007a3d;
  margin-bottom: 22px;
  font-size: 2.2rem;
  font-weight: 800;
  position: relative;
  line-height: 1.3;
  display: inline-block;
}

.content-text h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  bottom: -8px;
  left: 0;
  border-radius: 2px;
}

.content-text p {
  margin-bottom: 18px;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
}

/* List */
.content-text ul {
  padding-left: 0;
  list-style: none;
}

.content-text li {
  margin-bottom: 14px;
  font-size: 1.08rem;
  color: #222;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.content-text li::before {
  content: "✔";
  color: #007a3d;
  font-weight: 700;
  margin-top: 3px;
}

/* Image */
.content-img {
  flex: 1;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.content-img img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.content-img:hover img {
  transform: scale(1.07);
}

/* Blockquote (đánh giá khách hàng) */
blockquote {
  background: #f9fff6;
  border-left: 5px solid #007a3d;
  padding: 18px 24px;
  font-style: italic;
  color: #007a3d;
  border-radius: 10px;
  margin: 18px 0;
  font-size: 1.1rem;
}