/* ================================================= */
/* HERO - SLIDER KIỂU NHANLAB.COM (Flickity full-width) */
/* ================================================= */

.hero {
    padding: 0;
    background: var(--white);
}

.hero-slider-wrapper {
    width: 100%;
}

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--white);
}

.hero-track {
    display: flex;
    transition: transform 0.55s ease;
    will-change: transform;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    line-height: 0;
}

.hero-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 2048 / 852;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    display: block;
    vertical-align: top;
}

/* Giữ style khi bật lại khối chữ hero-content */
.hero-content h1 {
    font-size: clamp(56px, 7vw, 108px);
    color: var(--green-primary);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.hero-content h2 {
    font-size: clamp(28px, 3.2vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    max-width: 640px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero-btn {
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
}

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

.hero-btn.primary:hover {
    background: var(--green-dark);
}

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

.hero-btn.outline:hover {
    background: rgba(128, 195, 66, 0.12);
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 36px;
    height: clamp(100px, 40%, 180px);
    border: none;
    border-radius: 0;
    background: hsla(0, 0%, 100%, 0.75);
    color: #333;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.25s ease, background 0.25s ease;
}

.hero-slider-btn:hover {
    opacity: 1;
    background: hsla(0, 0%, 100%, 0.95);
}

.hero-slider-btn--prev {
    left: 0;
}

.hero-slider-btn--next {
    right: 0;
}

.hero-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-slider-dot {
    width: 11px;
    height: 11px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-slider-dot.is-active {
    background: var(--white);
    transform: scale(1.1);
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* ================================================= */
/* ABOUT */
/* ================================================= */

.about {
    background: var(--bg-light);
}

.about-header {
    max-width: 820px;
    margin-bottom: 56px;
}

.about-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 18px 0 20px;
}

.about-lead {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-gray);
    max-width: 720px;
}

.about-lead strong {
    color: var(--text-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
}

.about-main p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-main p:last-of-type {
    margin-bottom: 32px;
}

.about-points {
    list-style: none;
    display: grid;
    gap: 16px;
}

.about-points li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 22px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-points li:hover {
    border-color: rgba(128, 195, 66, 0.6);
    box-shadow: 0 16px 36px rgba(128, 195, 66, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    transform: translateY(-4px);
}

.about-point-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(128, 195, 66, 0.15), rgba(128, 195, 66, 0.05));
    color: var(--green-dark);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.about-points strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.about-points p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-gray);
}

.about-aside {
    display: grid;
    gap: 20px;
}

.about-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px 30px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.04);
}

.about-card--mission {
    border: none;
    background: linear-gradient(145deg, rgba(128, 195, 66, 0.08), rgba(255, 255, 255, 0.95));
    position: relative;
    overflow: hidden;
}

.about-card--mission::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--green-primary);
    border-radius: 24px 0 0 24px;
}

.about-card--values {
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
}

.about-card--nav {
    display: block;
}

.about-card-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-dark);
    margin-bottom: 14px;
}

.about-card p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-gray);
}

.about-values {
    list-style: none;
    display: grid;
    gap: 12px;
}

.about-values li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

.about-values li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green-primary);
}

.about-links {
    display: grid;
    gap: 10px;
}

.about-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-links a::after {
    content: '→';
    color: var(--green-primary);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.about-links a:hover {
    border-color: rgba(128, 195, 66, 0.45);
    color: var(--green-dark);
    background: rgba(128, 195, 66, 0.06);
    box-shadow: 0 4px 14px rgba(128, 195, 66, 0.08);
}

.about-links a:hover::after {
    transform: translateX(4px);
}

/* ================================================= */
/* SERVICES */
/* ================================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    border: 1px solid var(--border);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--green-primary);
}

.service-icon {
    font-size: 45px;
    margin-bottom: 25px;
    display: block;
}

/* ================================================= */
/* WORKFLOW */
/* ================================================= */

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.workflow-card {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
}

.workflow-card span {
    font-size: 60px;
    font-weight: 900;
    color: rgba(128, 195, 66, 0.08);
    position: absolute;
    top: -10px;
    right: 10px;
}

/* ================================================= */
/* GALLERY */
/* ================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
}

.gallery-card {
    border-radius: 30px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: 0.3s;
}

.gallery-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-card:hover {
    transform: scale(1.02);
}

.gallery-card span {
    background: white;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
}

/* ================================================= */
/* TRANG NỘI DUNG */
/* ================================================= */

.page-main section {
    padding: 80px 0;
}

.page-banner {
    padding: 70px 0 50px;
    background: linear-gradient(135deg, #E6F0DC, #F7F9F5);
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-banner--hero {
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    border-bottom: none;
    z-index: 1;
}

.page-banner--hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(11, 19, 14, 0.4), rgba(11, 19, 14, 0.85));
    z-index: -1;
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% -20%, rgba(128, 195, 66, 0.1), transparent 50%);
    pointer-events: none;
}

.page-banner--hero::after {
    display: none;
}

.page-banner .section-label {
    margin-bottom: 16px;
}

.page-banner--hero .section-label {
    background: rgba(128, 195, 66, 0.3);
    color: var(--white);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-banner h1 {
    font-size: clamp(36px, 4.5vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.page-banner--hero h1 {
    color: var(--white);
    font-size: clamp(42px, 6vw, 68px);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-banner p {
    color: var(--text-gray);
    font-size: 17px;
    max-width: 640px;
    margin: 14px auto 0;
}

.page-banner--hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 19px;
    max-width: 720px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ================================================= */
/* BLOG */
/* ================================================= */

.blog {
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.05);
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-8px);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, #DFF0D2, var(--green-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 34px;
    font-weight: 900;
}

.blog-body {
    padding: 26px;
}

.blog-body span {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
}

.blog-body h3 {
    margin: 12px 0;
    line-height: 1.3;
}

.blog-body p {
    color: var(--text-gray);
}

/* ================================================= */
/* WARRANTY */
/* ================================================= */

.warranty {
    padding-top: 80px;
    padding-bottom: 80px;
}

.warranty-panel {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 0;
    align-items: stretch;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(94, 155, 47, 0.22);
    background: var(--white);
}

.warranty-intro {
    padding: 48px 44px;
    color: var(--white);
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(145deg, var(--green-primary), var(--green-dark));
}

.section-label--light {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.section-label--light::before {
    background: var(--white);
}

.warranty-intro h2 {
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 18px 0 16px;
}

.warranty-desc {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    max-width: 420px;
}

.warranty-features {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.warranty-features li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.warranty-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warranty-action {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-light);
}

.warranty-search-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.warranty-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green-dark);
    margin-bottom: 14px;
}

.warranty-form {
    display: flex;
    gap: 10px;
    background: var(--bg-light);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.warranty-form:focus-within {
    border-color: rgba(128, 195, 66, 0.55);
    box-shadow: 0 0 0 3px rgba(128, 195, 66, 0.15);
}

.warranty-form input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 16px 18px;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
}

.warranty-form input::placeholder {
    color: #9CA3AF;
    font-weight: 500;
    letter-spacing: 0;
}

.warranty-form button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.warranty-form button {
    flex-shrink: 0;
    background: var(--green-primary);
    color: var(--white);
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.warranty-form button:hover {
    background: var(--green-dark);
}

.warranty-form button:active {
    transform: scale(0.98);
}

.warranty-hint {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-gray);
}

.warranty-demo-code {
    border: none;
    background: rgba(128, 195, 66, 0.12);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.warranty-demo-code:hover {
    background: rgba(128, 195, 66, 0.22);
    color: var(--text-dark);
}

.result-box {
    margin-top: 20px;
    min-height: 0;
}

.result-empty {
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px dashed var(--border);
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.result-empty strong {
    color: var(--green-dark);
}

.result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 26px 28px;
    box-shadow: var(--shadow);
    animation: warrantyFadeIn 0.35s ease;
}

.result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.result-card-header h3 {
    font-size: 20px;
    color: var(--green-dark);
    letter-spacing: -0.02em;
}

.result-status {
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
}

.result-status--active {
    color: var(--green-dark);
    background: rgba(128, 195, 66, 0.16);
}

.result-status--expired {
    color: #B45309;
    background: rgba(245, 158, 11, 0.16);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

.result-item {
    display: grid;
    gap: 4px;
}

.result-item dt {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
}

.result-item dd {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* ================================================= */
/* ANIMATIONS */
/* ================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }


.result-item--full {
    grid-column: 1 / -1;
}

.result-message {
    padding: 18px 22px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    animation: warrantyFadeIn 0.35s ease;
}

.result-message--error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.result-message--warning {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}

@keyframes warrantyFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ================================================= */
/* CONTACT */
/* ================================================= */

.contact {
    padding-top: 80px;
    padding-bottom: 80px;
}

.contact-panel {
    display: block;
}

.contact-info {
    padding: 0;
    text-align: center;
    margin-bottom: 50px;
}

.contact-info .section-label {
    margin: 0 auto 16px;
}

.contact-info h2 {
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.contact-desc {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.02);
}

a.contact-card:hover {
    border-color: rgba(128, 195, 66, 0.45);
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
    transform: translateY(-4px);
}

.contact-card--static {
    cursor: default;
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 18px;
    background: rgba(128, 195, 66, 0.12);
    margin-bottom: 20px;
}

.contact-card-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.contact-card strong {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-btn--primary {
    background: var(--green-primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(128, 195, 66, 0.3);
}

.contact-btn--primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(128, 195, 66, 0.35);
}

.contact-btn--outline {
    border: 2px solid var(--green-primary);
    color: var(--green-dark);
    background: transparent;
}

.contact-btn--outline:hover {
    background: rgba(128, 195, 66, 0.08);
}

.contact-map {
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.06);
    background: #e5e5e5;
    margin-top: 50px;
}

.contact-map iframe {
    width: 100%;
    height: 480px;
    border: 0;
    display: block;
}
