/* ===== Google Fonts, Variables, & Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-dark-blue: #0A192F;
    --secondary-orange: #f59e0b; /* Tailwind Orange 500 */
    --text-light: #CCD6F6;
    --text-dark: #8892B0;
    --background-light-blue: #112240;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--primary-dark-blue);
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--text-light);
    font-weight: 700;
}

a {
    color: var(--secondary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    filter: brightness(1.2);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}

.container-flex {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.highlight {
    color: var(--secondary-orange);
}

.page-header {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* ===== Header & Navigation ===== */
.main-header {
    background-color: var(--background-light-blue);
    padding: 1rem 0;
    border-bottom: 2px solid var(--secondary-orange);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-orange);
    transition: width 0.3s ease;
}

.main-nav a.active::after, .main-nav a:hover::after {
    width: 100%;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--text-light);
}


/* ===== Mobile Navigation (Hamburger) ===== */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation to 'X' */
.hamburger-menu.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.mobile-nav.is-active {
    display: flex;
}

.mobile-nav a {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
}

/* ===== General Sections & Components ===== */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.cta-button {
    background-color: var(--secondary-orange);
    color: var(--primary-dark-blue);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.content-card {
    background-color: var(--background-light-blue);
    padding: 30px;
    border-radius: 8px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background-color: var(--background-light-blue);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-orange);
}

/* ===== Quote Builder Specific Styles ===== */

.quote-step, .quote-builder-grid {
    margin-bottom: 60px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-orange);
    padding-bottom: 15px;
}

.step-header h2 {
    margin: 0;
}

.step-header .step-number {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-orange);
    color: var(--primary-dark-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    background-color: var(--background-light-blue);
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group select, .form-group textarea, .form-group input[type="email"] {
    background-color: var(--primary-dark-blue);
    border: 1px solid #233554;
    border-radius: 5px;
    padding: 12px;
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.form-group select:focus, .form-group textarea:focus, .form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary-orange);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.quote-builder-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.device-categories h2, .quote-summary h2 {
    border-bottom: 2px solid var(--secondary-orange);
    padding-bottom: 10px;
    margin-top: 0;
}

.category {
    background-color: var(--background-light-blue);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.device {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #233554;
}
.device:last-child {
    border-bottom: none;
}
.device-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.add-btn {
    background: var(--secondary-orange);
    color: var(--primary-dark-blue);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.add-btn:hover {
    filter: brightness(1.1);
}

.add-btn.added {
    background-color: #38a169; /* Green color for feedback */
    color: white;
}

.quote-summary {
    background-color: var(--background-light-blue);
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 120px; 
}

#quote-items {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    min-height: 50px;
}

#quote-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #233554;
}

#quote-items li:last-child {
    border-bottom: none;
}

#quote-items .item-name {
    flex-grow: 1;
    padding-right: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background-color: var(--secondary-orange);
    color: var(--primary-dark-blue);
}

.quantity {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* ===== Success Modal Styles ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: var(--background-light-blue);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 500px;
    position: relative;
    border-top: 4px solid var(--secondary-orange);
}

.modal-content h3 {
    font-size: 2rem;
    margin-top: 0;
}

.modal-content p {
    color: var(--text-dark);
    margin-bottom: 30px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 2rem;
    cursor: pointer;
}

/* ===== Footer ===== */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    background-color: var(--background-light-blue);
    border-top: 1px solid #233554;
}

/* ============================================= */
/* ========== RESPONSIVE MEDIA QUERIES ========= */
/* ============================================= */

@media (max-width: 768px) {
    /* --- General Adjustments --- */
    body {
        font-size: 16px;
    }

    .container, .container-flex {
        width: 95%;
    }

    .page-header {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    /* --- Navigation --- */
    .main-nav {
        display: none; /* Hide desktop nav */
    }

    .hamburger-menu {
        display: block; /* Show hamburger menu */
    }

    /* --- Layouts --- */
    .grid-2-col,
    .services-grid,
    .quote-builder-grid,
    .form-grid {
        grid-template-columns: 1fr; /* Stack all grid layouts */
    }

    .grid-2-col > div {
        text-align: center; /* Center content in stacked grids */
    }
    .grid-2-col img {
        margin-top: 20px;
    }
    
    /* --- Quote Builder on Mobile --- */
    .quote-summary {
        position: static; /* Unstick the summary box */
        margin-top: 40px;
    }
    
    .device {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .add-btn {
        align-self: flex-end;
    }
}

