/* style.css */
:root {
    --primary-color: #d32f2f; /* Red from branding */
    --secondary-color: #333;   /* Dark Grey */
    --text-color: #555;
    --light-bg: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px; /* Adjust based on your logo size */
}

.nav-links ul {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: var(--white);
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #b71c1c;
}

.whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Footer & Contact */
/* --- UPDATED CENTERED FOOTER --- */
footer {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('map1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 60px 0;
    margin-top: auto;
    border-top: 5px solid var(--primary-color);
    
    /* This centers the overall footer content */
    text-align: center; 
}

.contact-grid {
    display: flex;
    justify-content: center; /* Centers the two contact blocks horizontally */
    align-items: center;
    flex-wrap: wrap; /* Ensures they stack correctly on phones */
    gap: 40px; /* Adds nice spacing between the two people */
    margin-bottom: 30px;
}

.contact-person {
    margin: 0; /* Removing old margins to let Flexbox handle it */
    min-width: 250px;
}

.contact-person h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.contact-person p {
    margin: 3px 0;
}

/* Ensures the WhatsApp button container is centered */
.footer-btn-container {
    display: block;
    width: 100%;
    margin-top: 20px;
}

/* --- ADD TO BOTTOM OF STYLE.CSS --- */

/* Form Styling (Quote Page) */
.form-container {
    max-width: 700px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Slideshow / Gallery Styling */
.gallery-section {
    margin-bottom: 60px;
}

.slideshow-container {
    max-width: 800px;
    position: relative;
    margin: auto;
    overflow: hidden; /* Hides images sliding out */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mySlides {
    display: none;
    width: 100%;
}

.mySlides img {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    object-fit: cover;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    background: rgba(0,0,0,0.5);
}

/* Smoother Fading Animation */
.fade {
    animation-name: fade;
    animation-duration: 2.5s; /* Increased from 1.5s to 2.5s for a slower feel */
    animation-timing-function: ease-in-out; /* Makes the movement feel natural */
}

@keyframes fade {
    from {opacity: 0} /* Starts fully invisible for a cleaner fade-in */
    to {opacity: 1}
}

/* --- ADD TO BOTTOM OF STYLE.CSS --- */

/* Checkbox Styling for Quote Page */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 200px; /* Optional: limit height if list is long */
    overflow-y: auto;  /* Scroll if list is too long */
}

.checkbox-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
}

.checkbox-item input {
    width: auto; /* Overrides the 100% width from general forms */
    margin-right: 10px;
    transform: scale(1.2); /* Makes the actual box slightly bigger */
}
@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* --- IMPROVED MOBILE NAVIGATION --- */

/* Hide the menu button on desktop */
.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show the button on mobile */
        margin: 10px auto;
    }

    .nav-links ul {
        display: none; /* Hide the list by default on mobile */
        flex-direction: column;
        background: #fff;
        width: 100%;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    /* This class will be added by JavaScript when the user clicks */
    .nav-links ul.show {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
        padding-bottom: 10px;
    }
}

/* Video Background Styling */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevents video from spilling out */
    color: white;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Ensures the video fills the area like a background-size: cover */
}

.hero-content {
    position: relative;
    z-index: 1; /* Sits on top of the video */
    text-align: center;
}

/* Add a dark overlay so text is easier to read over the video */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Adjust 0.4 to make it darker or lighter */
    z-index: 1;
}

/* --- SOCIAL MEDIA ICONS IN FOOTER --- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px; /* Spacing between icons */
    margin-top: 40px; /* Space between the quote button and icons */
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.2); /* Subtle line to separate them */
}

.social-icons a {
    color: #000000; /* Black to match your text */
    font-size: 1.8rem; /* Size of the icons */
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.3); /* The light glow for readability */
    transition: all 0.3s ease; /* Makes the hover effect smooth */
    display: inline-block;
}

/* What happens when a mouse hovers over them or a finger taps them */
.social-icons a:hover {
    color: #ffffff; /* Turns white */
    transform: translateY(-5px); /* Moves up slightly */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8); /* Darker shadow when white */
}

/* Prevents users from selecting or dragging images */
img {
    -webkit-user-select: none;  /* Safari */
    -ms-user-select: none;      /* IE 10 and IE 11 */
    user-select: none;          /* Standard syntax */
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none; /* Disables the long-press menu on iOS/Android */
}
