:root {
    --primary: #002e5b;
    --accent: #f2a900;
    --text: #333;
    --light: #f9fbfd;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--text); overflow-x: hidden; }

/* --- Responsive Header --- */
/* --- Responsive Header Adjustment --- */
header {
    background: var(--white);
    padding: 1rem 8%;
    display: flex;
    /* This ensures the logo stays left and the nav (or hamburger) stays right */
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky; 
    top: 0; 
    z-index: 1000;
}

/* --- Mobile Specific Adjustment --- */
@media (max-width: 992px) {
    header {
        padding: 1rem 5%;
        /* Force the logo to the start and hamburger to the end */
        flex-direction: row; 
        justify-content: space-between;
    }

    /* This ensures the hamburger is the last element on the right */
    .hamburger {
        display: flex;
        order: 2; 
    }



    nav ul {
        position: absolute;
        top: 100%;
        left: 0; /* Menu drops down to cover full width */
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        /* Hide menu by default off-canvas or via display */
        display: none; 
    }

    nav ul.active {
        display: flex; /* Show when active */
    }
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 90px; width: auto; display: block; }

/* Desktop Nav */
nav ul { display: flex; list-style: none; align-items: center; }
nav ul li { margin-left: 25px; }
nav a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
nav a:hover { color: var(--accent); }

/* Hamburger Menu */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: var(--primary); border-radius: 2px; transition: 0.3s; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0,46,91,0.9), rgba(0,46,91,0.8)), url('../images/panel.jpg');
    background-size: cover; background-position: center; color: var(--white);
    padding: 100px 5%; text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 20px; font-weight: 800; line-height: 1.2; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 850px; margin: 0 auto 35px; opacity: 0.9; }

/* --- Layouts --- */
.section { padding: 60px 8%; }
.bg-light { background: var(--light); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--primary); margin-bottom: 25px; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.card { background: var(--white); padding: 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; height: 100%; }

/* --- Inline content links --- */
.ilink { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(0,46,91,0.35); transition: 0.2s; }
.ilink:hover { color: var(--accent); text-decoration-color: var(--accent); }
.trust-signal-box .ilink, .hero .ilink { color: #fff; text-decoration-color: rgba(255,255,255,0.5); }
.trust-signal-box .ilink:hover, .hero .ilink:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* --- Components --- */
.trust-signal-box { background: var(--primary); color: white; padding: 40px 20px; border-radius: 20px; text-align: center; }
.trust-signal-box h2{
    color:white;
}
.btn { display: inline-block; background: var(--accent); color: var(--primary); padding: 14px 30px; text-decoration: none; border-radius: 4px; font-weight: 800; text-transform: uppercase; transition: 0.3s; border: none; cursor: pointer; }
.btn:hover { transform: scale(1.05); }

/* --- Testimonials Slider --- */
.testimonial-slider { position: relative; max-width: 900px; margin: 0 auto; }
.testimonial-viewport { overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-slide { min-width: 100%; padding: 0 10px; }
.testimonial-card {
    background: var(--white); border-radius: 18px; padding: 45px 45px 35px;
    box-shadow: 0 18px 45px rgba(0,46,91,0.10); position: relative;
    border-top: 4px solid var(--accent);
}
.testimonial-quote-mark {
    position: absolute; top: 10px; left: 28px; font-size: 5rem; line-height: 1;
    color: var(--accent); opacity: 0.25; font-family: Georgia, serif;
}
.testimonial-text { position: relative; font-size: 1.08rem; color: #444; line-height: 1.85; margin-bottom: 28px; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.testimonial-avatar {
    width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%;
    background: var(--primary); color: #fff; display: flex; align-items: center;
    justify-content: center; font-weight: 800; font-size: 1.25rem;
}
.testimonial-author strong { display: block; color: var(--primary); font-size: 1.05rem; }
.testimonial-author span { color: #888; font-size: 0.9rem; }

.testimonial-arrow {
    position: absolute; top: 45%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--white); color: var(--primary); font-size: 1.6rem; line-height: 1;
    box-shadow: 0 5px 18px rgba(0,46,91,0.18); transition: 0.3s; z-index: 2;
}
.testimonial-arrow:hover { background: var(--accent); color: var(--primary); }
.testimonial-arrow.prev { left: -18px; }
.testimonial-arrow.next { right: -18px; }

.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.testimonial-dot {
    width: 11px; height: 11px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
    background: rgba(0,46,91,0.22); transition: 0.3s;
}
.testimonial-dot.active { background: var(--accent); width: 28px; border-radius: 6px; }

@media (max-width: 600px) {
    .testimonial-card { padding: 40px 25px 30px; }
    .testimonial-text { font-size: 1rem; }
    .testimonial-arrow.prev { left: 4px; }
    .testimonial-arrow.next { right: 4px; }
}

/* --- Project Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,46,91,0.08);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,46,91,0.15); }
.gallery-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--light);
    overflow: hidden;
}
.gallery-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-media img { transform: scale(1.06); }
.gallery-num {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent); color: var(--primary);
    font-weight: 800; font-size: 0.8rem;
    padding: 5px 11px; border-radius: 20px;
}
.gallery-caption {
    padding: 20px 22px 24px;
    border-top: 3px solid var(--accent);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gallery-caption p { font-size: 0.95rem; color: #444; line-height: 1.65; flex: 1; }
.gallery-place {
    display: block; margin-top: 12px;
    color: var(--primary); font-weight: 700; font-size: 0.85rem;
}

@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* --- Footer --- */
footer { background: #0b1521; color: #fff; padding: 60px 8% 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-links ul { list-style: none; }
.footer-links a { color: #aaa; text-decoration: none; line-height: 2.5; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-form input, .footer-form select, .footer-form textarea { width: 100%; padding: 12px; margin-bottom: 12px; border: none; border-radius: 4px; background: rgba(255,255,255,0.08); color: #fff; font-family: inherit; }

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    header { padding: 1rem 5%; }
    .hamburger { display: flex; }
    
    nav ul {
        position: absolute; top: 100%; left: -100%; width: 100%; background: var(--white);
        flex-direction: column; padding: 20px 0; box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
    }
    nav ul.active { left: 0; }
    nav ul li { margin: 15px 0; text-align: center; }
}

@media (max-width: 600px) {
    .section { padding: 40px 5%; }
    .footer-grid { text-align: center; }
}