/* variables and reset */
:root {
    --primary-color: #1b5e20;
    --primary-dark: #124016;
    --secondary-color: #ff6d00;
    --secondary-hover: #e66200;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}

.btn i {
    margin-right: 8px;
}

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

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

/* Hero Buttons Revamp */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.btn-hero {
    border-radius: 50px;
    padding: 15px 35px;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn-hero-call {
    background: linear-gradient(135deg, #28a745, #1b5e20);
    color: white;
}
.btn-hero-call:hover {
    background: linear-gradient(135deg, #1b5e20, #124016);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-hero-zalo {
    background: linear-gradient(135deg, #0068ff, #0052cc);
    color: white;
}
.btn-hero-zalo:hover {
    background: linear-gradient(135deg, #0052cc, #003d99);
    box-shadow: 0 8px 25px rgba(0, 104, 255, 0.4);
}

.btn-hero-booking {
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: white;
}
.btn-hero-booking:hover {
    background: linear-gradient(135deg, #e52e71, #c2185b);
    box-shadow: 0 8px 25px rgba(255, 138, 0, 0.4);
}

/* Header & Nav */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 8px 0;
    font-size: 0.9rem;
}

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

.header-contact {
    display: flex;
    gap: 20px;
}

.header-contact a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-contact a:hover {
    color: var(--secondary-color);
}

.header-main {
    padding: 15px 0;
}

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

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Prevent logo wrapping */
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    list-style: none; /* Remove bullets since it's a ul now */
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 8px 0;
    position: relative;
    white-space: nowrap; /* Prevent text wrapping */
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    width: 100%;
}

.dropdown-menu a::after {
    display: none; /* No underline in dropdown */
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--bg-white);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--bg-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

/* Forms */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 15px 14px 45px; /* Padding left for icon */
    border: 2px solid #eef0f5;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #f8faff;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 109, 0, 0.1);
}

.form-group-icon {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: #a0aec0;
    font-size: 1.1rem;
    pointer-events: none;
}

textarea.form-control {
    padding-left: 15px; /* No icon for textarea */
}

/* Booking Section Restyled */
.booking-section {
    margin-top: 40px;
}

.booking-form-wrapper {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.booking-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

.booking-form .full-width {
    grid-column: 1 / -1;
}

.btn-submit {
    grid-column: 1 / -1;
    padding: 16px;
    font-size: 1.2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--secondary-color), #ff4500);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.3);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 109, 0, 0.4);
}

/* About Section */
.about-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-features {
    list-style-type: none;
    padding: 0;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features li {
    margin-bottom: 10px;
}

.about-features i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Page Hero */
.page-hero {
    position: relative;
    padding: 140px 0 80px;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27, 94, 32, 0.85); /* var(--primary-color) with opacity */
    z-index: -1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.about-image-wrapper img {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: 100%;
    object-fit: cover;
    height: 350px;
}

/* Service Intro Grid (Used in subpages) */
.service-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

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

.service-img {
    height: 200px;
    background-color: #ddd; /* placeholder */
    background-size: cover;
    background-position: center 80%;
}

.service-content {
    padding: 25px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Features (Lý do chọn) */
.features {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.features .section-title {
    color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    background: var(--bg-white);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-info h3 {
    color: var(--bg-white);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

/* Pricing Table */
.pricing-table-wrapper {
    overflow-x: auto;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.pricing-table th, .pricing-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
}

.pricing-table tr:hover {
    background-color: var(--bg-light);
}

.pricing-table td {
    font-weight: 500;
}

.pricing-table .btn-book-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Fleet Carousel */
.fleet-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    background: var(--bg-white);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    text-align: center;
}

.carousel-img {
    height: 400px;
    background-color: #fff; /* Changed from #ddd to white so borders are clean */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-caption {
    padding: 20px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.carousel-control:hover {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

/* Testimonials */
.testimonials {
    background-color: var(--bg-light);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.client-info {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #f1f1f1;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #999;
}

/* Sticky Contact */
.sticky-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.sticky-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sticky-btn:hover {
    transform: scale(1.1);
}
.sticky-zalo { background-color: #0068ff; }
.sticky-call {
    background-color: var(--secondary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 109, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}
.modal-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.modal-title { margin-bottom: 10px; }
.modal-close {
    margin-top: 20px;
    padding: 10px 20px;
}

/* Responsive */
/* Hide utilities */
.hide-on-mobile {
    display: inline-block;
}
.hide-on-desktop {
    display: none;
}

@media (max-width: 992px) {
    .hide-on-desktop {
        display: block !important;
    }
    .hide-on-mobile {
        display: none !important;
    }
    
    .header-contact {
        display: none;
    }
    
    .hero-title { font-size: 2.8rem; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1001;
        width: 100%;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    .mobile-overlay.active {
        display: block;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    .dropdown:hover .dropdown-menu {
        display: none; /* Disable hover on mobile */
    }
    .dropdown.active:hover .dropdown-menu {
        display: block;
    }
    .mobile-menu-btn { display: block; z-index: 1002; position: relative; }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    
    .btn-hero {
        width: 100%;
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-section {
        padding: 25px 20px;
        margin-top: -30px;
    }
    
    .about-image-wrapper img {
        height: auto;
        max-height: 300px;
    }
    
    .service-intro-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 25px;
    }
    
    .booking-form {
        grid-template-columns: 1fr;
    }
    
    .booking-section { 
        margin-top: 20px; 
        padding: 0 15px 40px; 
    }
    
    .booking-form-wrapper { 
        padding: 25px 20px; 
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
    
    .hero { 
        height: auto; 
        padding: 120px 0 100px; 
        background-attachment: scroll;
        background-position: 75% center;
    }
    .section-padding { padding: 50px 0; }
}
