/* --- DTR Vente Cars: Contact Page Stylesheet --- */

/* --- 1. Root Variables, Fonts & Reset --- */
:root {
    --color-primary: #0056b3;     /* Strong Blue */
    --color-primary-light: #e8f3ff; /* Light Blue background */
    --color-primary-dark: #004085;
    --color-dark: #222;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #f8f9fa;        /* Soft White/Gray background */
    --color-white: #ffffff;
    --shadow-light: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-dark: 0 8px 20px rgba(0,0,0,0.08);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    --border-radius-main: 10px;
    --border-radius-pill: 25px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- 2. NAVBAR --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-white);
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-light);
    position: relative;
    margin-bottom: 2rem;
}

.navbar .title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
}

.navbar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar .logo img {
    height: 40px;
}

.navbar .nav-links {
    display: flex;
    gap: 0.75rem;
}

.navbar .nav-links a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-pill);
    background: transparent;
    color: var(--color-text-light);
    font-weight: 700;
    transition: all 0.3s ease;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.current-page {
    background: var(--color-primary);
    color: var(--color-white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hamburger Active Styles */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- 3. HERO SECTION --- */
.hero {
    text-align: center;
    margin: 2rem 0 3rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.hero p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- 4. CONTACT INFO SECTION --- */
.contact-info {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Both cards same height */
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card, .map-card {
    flex: 1 1 45%;
    max-width: 500px;
    background: var(--color-white);
    padding: 2.5rem; /* Padding for content */
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-dark);
    display: flex;
    flex-direction: column;
}

/* --- Titles for both cards --- */
.info-card h2, .map-card h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 0.5rem;
}

.info-card p {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.info-card strong {
    color: var(--color-dark);
}

.contact-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--color-primary-dark);
}

.opening-hours {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    font-size: 1rem;
}

.opening-hours li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #eee;
    color: var(--color-text);
}

.opening-hours li:last-child {
    border-bottom: none;
}

/* --- GPS Button Style --- */
.btn-gps {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-top: auto; /* Pushes button to bottom if extra space */
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn-gps:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-gps:active {
    transform: translateY(0);
}

/* --- Map Frame Styling --- */
.map-frame {
    flex-grow: 1; /* Fills remaining height */
    width: 100%;
    min-height: 300px; /* Minimum height for map area */
    border-radius: var(--border-radius-main);
    overflow: hidden; /* Rounds the map corners */
    position: relative;
    background: #eee; /* Loading background */
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- 5. Footer --- */
.footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--color-white);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* --- 6. Responsive (Mobile) --- */
@media (max-width: 992px) {
    .navbar .logo { display: none; }
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-white);
        padding: 1rem;
        box-shadow: var(--shadow-light);
        gap: 0.5rem;
        z-index: 100;
    }
    .navbar .nav-links.active { display: flex; }
    .hamburger { display: flex; }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .info-card, .map-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .map-frame {
        min-height: 300px;
    }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}


/* --- MOBILE OPTIMIZATION (Add to bottom of CSS) --- */
@media (max-width: 768px) {
    
    /* 1. Tighter Container */
    .container {
        padding: 0 1rem;
    }

    /* 2. Adjust Hero Section */
    .hero {
        margin: 1.5rem 0 2rem;
    }
    .hero h1 {
        font-size: 2rem; /* Smaller title */
    }
    .hero p {
        font-size: 1rem;
    }

    /* 3. Stack Cards Vertically */
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* 4. Adjust Card Styling for Mobile */
    .info-card, .map-card {
        padding: 1.5rem; /* Reduce padding from 2.5rem to 1.5rem */
        min-height: auto; /* Remove fixed height constraint */
    }

    /* 5. Typography Adjustments inside cards */
    .info-card h2, .map-card h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .info-card p, .opening-hours li {
        font-size: 0.95rem; /* Slightly smaller text for readability */
    }

    /* 6. Fix Map Height on Mobile */
    .map-frame {
        height: 300px; /* Fixed height for mobile map */
        min-height: 300px;
    }

    /* 7. Make the GPS Button easier to tap */
    .btn-gps {
        padding: 15px; /* Larger touch area */
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
    
    /* 8. Navbar Tweak (Keep logo visible if you want, or keep hidden) */
    /* Currently your code hides the logo on mobile. 
       If you want the logo to show on mobile, add this: */
    /*
    .navbar .logo { display: block; position: static; transform: none; }
    .navbar { justify-content: space-between; }
    .title { display: none; } 
    */
}