/* --- 1. BASE STYLES & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2D3748;
    line-height: 1.6;
}

body {
    background-color: #F8FAFC;
    overflow-x: hidden; /* Prevents awkward side-scrolling on mobile */
}

section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.4rem;
    color: #0B1B3D;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* --- 2. HEADER & NAVIGATION --- */
header {
    background: #ffffff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;       /* Kept sticky for all screen sizes */
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(11, 27, 61, 0.05);
    transition: transform 0.3s ease-in-out; /* Makes it slide up/down smoothly */
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: #0B1B3D;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #4A5568;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #0B1B3D;
}

.nav-phone {
    color: #0B1B3D !important;
    font-weight: 700;
}

nav .btn-quote {
    background: #0B1B3D;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 50px;
    transition: background 0.3s;
}

nav .btn-quote:hover {
    background: #1A365D;
}

/* --- 3. HERO SECTION (WITH MOUNTED BACKGROUND FIX) --- */
#hero {
    padding: 160px 20px;
    text-align: center;
    background: linear-gradient(rgba(11, 27, 61, 0.85), rgba(11, 27, 61, 0.95)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: #ffffff;
    max-width: 100%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

#hero h1 {
    font-size: 3.4rem;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 45px;
    opacity: 0.9;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.btn-main {
    display: inline-block;
    text-decoration: none;
    background: #C5A880; 
    color: #0B1B3D;
    padding: 18px 45px;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    transition: transform 0.2s, background 0.3s;
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
}

.btn-main:hover {
    background: #D4AF37;
    transform: scale(1.03);
}

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

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(11, 27, 61, 0.02);
    border-bottom: 4px solid #E2E8F0;
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #C5A880;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #0B1B3D;
    font-size: 1.35rem;
}

/* --- 5. GALLERY SECTION --- */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.gallery-project {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(11, 27, 61, 0.02);
}

.gallery-project h3 {
    color: #0B1B3D;
    margin-bottom: 5px;
}

.project-desc {
    color: #718096;
    margin-bottom: 25px;
}

.project-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.media-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #F1F5F9;
}

.media-box span {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(11, 27, 61, 0.9);
    color: #ffffff;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

.media-box img, 
.media-box video {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* --- 6. REVIEWS SECTION --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.review-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(11, 27, 61, 0.02);
    display: flex;
    flex-direction: column;
}

.stars {
    margin-bottom: 12px;
}

.review-card h4 {
    color: #0B1B3D;
    margin-bottom: 12px;
}

.review-card p {
    color: #4A5568;
    font-style: italic;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 20px;
}

.reviewer {
    font-weight: 700;
    color: #0B1B3D;
}

/* --- 7. CONTACT FORM --- */
.form-container {
    max-width: 650px;
    margin: 0 auto;
    background: #ffffff;
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(11, 27, 61, 0.04);
}

.form-container p {
    text-align: center;
    margin-bottom: 35px;
    color: #4A5568;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0B1B3D;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #C5A880;
    background: #ffffff;
}

.btn-submit {
    width: 100%;
    background: #0B1B3D;
    color: #ffffff;
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

/* --- 8. FOOTER & SOCIALS --- */
footer {
    background: #0B1B3D;
    color: #A0AEC0;
    text-align: center;
    padding: 60px 20px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.social-link {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s;
    display: inline-block;
}

.social-link:hover {
    transform: translateY(-2px);
}

.insta { background: #E1306C; color: white; }
.whatsapp { background: #25D366; color: white; }

/* --- 9. RESPONSIVE DESIGN (MOBILE) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        position: sticky;   /* Keeps it sticky on mobile so the script can control it */
        top: 0;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    /* Ensure text links display perfectly */
    nav a {
        display: inline-block !important; 
    }
    #hero {
        padding: 100px 20px;
    }
    #hero h1 {
        font-size: 2.2rem;
    }
    #hero p {
        font-size: 1.1rem;
    }
    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    section {
        padding: 60px 20px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-media {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .media-box img, 
    .media-box video {
        height: 300px;
    }
    .form-container {
        padding: 30px 20px;
    }
    .footer-socials {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
    }
    .social-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}