/* ============================================
   AutoGlass Nancy - Elegant Design
   ============================================ */

/* CSS Variables */
:root {
    --red-primary: #DC2626;
    --red-dark: #B91C1C;
    --red-light: rgba(220, 38, 38, 0.08);

    --blue-primary: #1E3A8A;
    --blue-medium: #3B82F6;
    --blue-light: #60A5FA;
    --blue-subtle: rgba(30, 58, 138, 0.04);
    --blue-muted: rgba(59, 130, 246, 0.08);

    --text-dark: #0F172A;
    --text-base: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    --bg-white: #FFFFFF;
    --bg-gray: #F8FAFC;
    --border-light: #E2E8F0;
    --border-subtle: #F1F5F9;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-base);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* ========== TEXT COLORS ========== */

/* Red - For important elements */
.text-accent {
    color: var(--red-primary) !important;
}

.text-danger {
    color: var(--red-primary) !important;
}

/* Blue - For secondary elements */
.text-primary {
    color: var(--blue-primary) !important;
}

/* ========== BUTTONS - RED (Primary Actions) ========== */

.btn-primary {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    border: none;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--red-dark) 0%, #991B1B 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.btn-outline-primary {
    color: var(--red-primary);
    border: 2px solid var(--red-primary);
    background: transparent;
    padding: 0.7rem 1.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: 10px;
}

/* ========== NAVBAR ========== */

.navbar {
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    background-color: var(--bg-white) !important;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06) !important;
}

.navbar-brand img {
    height: 65px;
    width: 65px;
    max-width: 65px;
    object-fit: contain;
}

.brand-text {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-link {
    font-weight: 500;
    color: var(--text-base) !important;
    padding: 0.5rem 1.15rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--red-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--red-primary) !important;
}

/* ========== HERO SECTION ========== */

.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--bg-white);
    position: relative;
    display: flex;
    align-items: center;
}

.hero-image-container {
    position: relative;
}

.hero-placeholder {
    background: linear-gradient(145deg, var(--blue-primary) 0%, var(--blue-medium) 100%);
    border-radius: 20px;
    height: 420px;
    box-shadow:
        0 30px 60px rgba(30, 58, 138, 0.2),
        0 10px 20px rgba(30, 58, 138, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.hero-placeholder i {
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

/* Hero Text Styling */
#hero-title {
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-section .lead {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* Hero Checkmarks */
.hero-section .bi-check-circle-fill {
    color: var(--red-primary) !important;
}

/* ========== SERVICES SECTION ========== */

#services {
    background: var(--bg-gray);
    padding: 100px 0;
}

.service-card {
    background: var(--bg-white);
    border: none;
    border-radius: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-muted);
    border-radius: 14px;
    margin: 0 auto;
}

.service-icon i {
    color: var(--blue-primary) !important;
    font-size: 1.75rem !important;
}

.service-card .card-title {
    color: var(--text-dark);
    margin-top: 0.5rem;
}

.service-card .card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========== RÉALISATIONS SECTION ========== */

#realisations {
    background: var(--bg-white);
    padding: 100px 0;
}

.realisation-placeholder {
    height: 480px;
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--border-subtle) 100%);
    border-radius: 16px;
}

.carousel-inner {
    border-radius: 16px;
    overflow: hidden;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 50%;
    width: 48px;
    height: 48px;
}

.carousel-control-prev-icon {
    background-color: var(--blue-primary);
}

.carousel-control-next-icon {
    background-color: var(--blue-primary);
}

.carousel-indicators {
    margin-bottom: -40px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--blue-light);
    opacity: 0.5;
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: var(--blue-primary);
    opacity: 1;
}

/* ========== CONTACT SECTION ========== */

#contact {
    background: var(--bg-gray);
    padding: 100px 0;
}

#contact .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-light);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem !important;
}

/* Form */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--border-light);
    background-color: var(--bg-white);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--blue-medium);
    box-shadow: 0 0 0 4px var(--blue-muted);
}

.form-control::placeholder {
    color: var(--text-light);
}

.map-placeholder {
    height: 180px;
    background: var(--bg-gray);
    border-radius: 12px;
    border: 1.5px dashed var(--border-light);
}

/* ========== FOOTER ========== */

footer {
    background: linear-gradient(180deg, #0F172A 0%, #020617 100%);
    padding: 60px 0 30px;
}

footer h4, footer h5 {
    color: var(--bg-white);
    font-weight: 600;
}

footer .text-primary {
    color: var(--blue-light) !important;
}

footer .text-white-50 {
    color: var(--text-light) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--bg-white) !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ========== SECTION HEADERS ========== */

.display-4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display-5 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

section header .lead {
    color: var(--text-muted);
}

/* ========== UTILITIES ========== */

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

.shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

.rounded-4 {
    border-radius: 16px !important;
}

.bg-primary {
    background-color: var(--blue-primary) !important;
}

.bg-light {
    background-color: var(--bg-gray) !important;
}

/* ========== FORM STATES ========== */

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ========== ANIMATIONS ========== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-placeholder {
        height: 320px;
        margin-top: 40px;
    }

    .navbar-collapse {
        background: var(--bg-white);
        padding: 1.25rem;
        border-radius: 16px;
        margin-top: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--border-light);
    }

    .navbar-collapse .btn {
        width: 100%;
        margin-top: 15px;
        margin-left: 0 !important;
    }

    .nav-link::after {
        display: none;
    }

    #services, #realisations, #contact {
        padding: 70px 0;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.6rem;
    }

    .hero-placeholder {
        height: 260px;
    }

    .realisation-placeholder {
        height: 280px;
    }

    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .service-icon {
        width: 64px;
        height: 64px;
    }
}

/* Scroll padding for fixed header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Selection color */
::selection {
    background: var(--red-light);
    color: var(--red-dark);
}
