:root {
    --primary: #1abc9c;        /* xanh ngọc – thương hiệu */
    --primary-dark: #149174;
    --secondary: #2c3e50;      /* xanh đậm – nền */
    --accent: #f1c40f;         /* vàng – điểm nhấn */
    --light-bg: #f7f9fb;
    --text-dark: #2d3436;
    --text-light: #ecf0f1;
}


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

body{
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height:1.7;
    color:#333;
}

.container{
    width:90%;
    max-width:1100px;
    margin:auto;
    padding:20px 0;
}


 .nav a{ color:white; margin-left:15px; text-decoration:none; font-weight:500; } 


.btn{
    background:#27ae60;
    color:white;
    padding:10px 20px;
    text-decoration:none;
    border-radius:4px;
}

.services-preview .cards{
    display:flex;
    gap:15px;
    justify-content:center;
    flex-wrap:wrap;
}

.card{
    border:1px solid #ddd;
    padding:15px;
    width:250px;
    text-align:center;
}

.page-title{
    text-align:center;
    padding:20px 0;
}
/* ===== MODAL ===== */
.modal {
    display: none; /* Ẩn mặc định */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    margin: 15% auto;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 {
    color: #27ae60;
    margin-bottom: 10px;
}

.modal-content p {
    margin-bottom: 20px;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 22px;
    cursor: pointer;
}

.modal-content button {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}
/* ===== BOOKING FORM ===== */
.booking-form {
    max-width: 720px;
    margin: auto;
    background: rgba(255,255,255,0.96);
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
}
.booking-form .service-card {
    background: #f9fafb;
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.booking-form .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.booking-form .service-card.active {
    border-color: var(--primary);
    background: #ecfdf5;
}


.booking-form textarea {
    min-height: 90px;
    resize: vertical;
}

.booking-form input:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: #1abc9c;
}

/* ===== SERVICE SELECT ===== */
.service-section {
    margin-bottom: 20px;
}

.label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.service-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.service-card h4 {
    margin: 10px 0 5px;
}

.service-card p {
    font-size: 14px;
    color: #666;
}

/* Hover */
.service-card:hover {
    border-color: #1abc9c;
    transform: translateY(-3px);
}

/* Active (được chọn) */
.service-card.active {
    border-color: #1abc9c;
    background: #e8f8f5;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #1abc9c, #27ae60);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* ===== SERVICES PAGE ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

.service-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 25px 20px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s ease;
}



.service-card .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.service-card h3 {
    margin-bottom: 10px;
    color: #1abc9c;
}

.service-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.btn-small {
    display: inline-block;
    background: #1abc9c;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-small:hover {
    background: #17a589;
}

/* Active menu */


/* ===== ABOUT PAGE ===== */
.about-block {
    margin-bottom: 30px;
}

.about-block h3 {
    color: #1abc9c;
    margin-bottom: 10px;
}

.about-block p {
    color: #555;
    line-height: 1.8;
}

/* Values */
.values {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.value-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.value-item span {
    color: #1abc9c;
    font-size: 18px;
}

/* Mission */
.mission-list {
    padding-left: 20px;
    color: #555;
}

.mission-list li {
    margin-bottom: 8px;
}

/* Active nav */
.nav a.active {
    text-decoration: underline;
    font-weight: bold;
}
/* ===== HERO UPGRADE ===== */
.hero {
    background:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url("../img/2024_1_1_638397211036390474_hinh-nen-cay-xanh (1).jpg") center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}



.hero-content h2 {
    font-size: 2.6rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 1.05rem;
}

.hero h2,
.hero p {
    text-shadow: 0 3px 8px rgba(0,0,0,0.5);
}


.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #1abc9c;
}

/* ===== SERVICES PREVIEW ===== */
.section-desc {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}
.section-alt {
  background: #f7f9fb;
}

.service-preview-card {
    width: 280px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.service-preview-card:hover {
    transform: translateY(-5px);
}

.service-preview-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    text-align: center;
}

.center {
    text-align: center;
    margin-top: 30px;
}
/* ===== SERVICE DETAIL PAGE ===== */
.service-hero {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
                url("../images/house-cleaning.jpg") center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 70px 20px;
}

.service-hero h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.service-section {
    margin-bottom: 40px;
}

.service-section h3 {
    color: #1abc9c;
    margin-bottom: 10px;
}

.service-list {
    padding-left: 20px;
    color: #555;
}

.service-list li {
    margin-bottom: 8px;
}

/* Reasons */
.reasons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.reason-card {
    flex: 1;
    min-width: 220px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
}

/* CTA */
.service-cta {
    background: #1abc9c;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.service-cta h3 {
    margin-bottom: 15px;
}
/* ===== SERVICE IMAGE FIX ===== */
.service-img {
    width: 100%;
    height: 180px;          /* chiều cao cố định */
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 15px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* QUAN TRỌNG NHẤT */
    display: block;
}
.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.work-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-item img {
    width: 100%;
    height: 160px;        /* CHÌA KHÓA */
    object-fit: cover;   /* KHÔNG MÉO */
    display: block;
}

.work-item p {
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
}
.form-title {
    font-size: 1.25rem;
    margin: 32px 0 18px;
    color: var(--primary-dark);
    border-left: 5px solid var(--primary);
    padding-left: 14px;
}


.booking-form input,
.booking-form textarea,
.booking-form select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    transition: 0.25s;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,188,156,0.2);
}

.address-row {
    display: flex;
    gap: 10px;
}

.address-row input {
    flex: 1;
}


.contact-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-box {
    flex: 1;
    min-width: 280px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
    background: #fff;
}

.contact-box h3 {
    margin-bottom: 15px;
    color: #27ae60;
}

.contact-box p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.contact-box a {
    color: #27ae60;
    text-decoration: none;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form textarea {
    min-height: 100px;
}

.map-section iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 6px;
}



.why-us {
    background: linear-gradient(180deg, #ffffff, var(--light-bg));
}

.why-item h3 {
    color: var(--primary-dark);
}


.why-us h2 {
    text-align: center;
    margin-bottom: 40px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.why-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}


/* ===== BOOKING SECTION BACKGROUND ===== */
.booking-bg {
    background:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url("../img/imagessdsdsdsdsdsdsdr (1).jpg") center / cover no-repeat;

    padding: 80px 0;
}

.nav-user {
    margin-left: 10px;
    font-weight: 600;
    color: #2c7be5;
}


.service-preview-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.service-preview-card:hover {
    transform: translateY(-5px);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== MOBILE FIX ===== */
@media (max-width: 768px){

    .container{
        width:95%;
        padding:10px 0;
    }

    h1{font-size:22px;}
    h2{font-size:20px;}
    p{font-size:14px;}

    .hero{
        padding:60px 10px;
    }

    .hero-content h2{
        font-size:22px;
    }

    .hero-buttons{
        flex-direction: column;
    }

    .btn{
        width:100%;
        text-align:center;
    }

    .cards{
        flex-direction: column;
    }

    .service-preview-card{
        width:100%;
    }

}