/* Basic styles for Bao Tuan Services website */

:root {
    --red-color: #E74C3C; /* A shade of red */
    --white-color: #FFFFFF;
    --dark-gray-color: #333333;
    --light-gray-color: #f4f4f4;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--light-gray-color);
    color: var(--dark-gray-color);
}

header {
    background-color: var(--dark-gray-color);
    color: var(--white-color);
    padding: 1em 0;
}

header .container {
    display: flex;
    justify-content: space-between; /* Distribute items with space between them */
    align-items: center; /* Vertically align items in the center */
    padding: 1em 0; /* Adjust padding as needed */
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and title */
}

.header-logo {
    height: 60px; /* Desktop height */
    width: auto; /* Maintain aspect ratio */
}


nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: var(--white-color);
    text-decoration: none;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .container {
        width: 95%;
    }
}

/* Welcome Section (Hero) */
.hero {
    background-color: var(--white-color);
    color: var(--dark-gray-color);
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    background-color: var(--red-color);
    color: var(--white-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #C0392B; /* Darker red */
}

/* General Section Styling */
.section-padding {
    padding: 40px 0;
}

.section-padding h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--dark-gray-color);
}

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

.service-item {
    background-color: var(--white-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.service-item h3 {
    color: var(--red-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.95em;
    line-height: 1.5;
}

/* Call to Action Buttons Section */
.text-center {
    text-align: center;
}

.cta-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.cta-button {
    font-size: 1.1em;
    padding: 12px 25px;
    min-width: 180px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Us Video Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0px auto 20px auto;
    background-color: var(--dark-gray-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Footer Styling */
footer {
    background-color: var(--dark-gray-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive adjustments for header navigation */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    .header-brand {
        flex-direction: column; /* Stack logo and title vertically */
        gap: 5px; /* Smaller gap on mobile */
    }

    .header-logo {
        height: 40px; /* Smaller height on mobile */
    }

    nav ul {
        margin-top: 10px;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}