/* === GENERAL STYLES === */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
    height: 100%;
}

/* === HERO SECTION WITH HEADER === */
.hero-section {
    background: #003366;
    padding: 20px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header {
    /* text-align: center; */
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px; /* Added gap for better spacing */
}

.hero-logo {
    height: clamp(60px, 6vw, 90px);;
    width: auto;
    flex-shrink: 0; /* Prevents logos from shrinking */
}

.hero-center {
    text-align: center;
    flex: 1 0 auto; /* Changed from flex-grow */
    min-width: 0; /* Allows text overflow handling */
}

header h1 {
    font-size: 2.5rem;
    margin: 0 0 15px;
    font-weight: 700;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
     white-space: nowrap; /* Prevents title from breaking */
    overflow: hidden;
    text-overflow: ellipsis;
}




/* === NAVIGATION STYLING === */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    background: rgba(0, 89, 179, 0.7);
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(0, 64, 128, 0.9);
    transform: translateY(-2px);
}

/* === FULLPAGE BACKGROUND SLIDER === */
.fullpage-slider {
    position: relative;
    min-height: calc(50vh - 150px); /* Full height minus header */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    transition: background-image 1s ease-in-out;
    padding: 40px 20px;
}

/* === CONTENT OVERLAY === */
.content-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 51, 102, 0.7);
    border-radius: 8px;
}


.content-overlay h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.content-overlay p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* === IMAGE SLIDER === */
.slider {
    position: relative;
    width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    /*box-shadow: 0 5px 15px rgba(0,0,0,0.3);*/
    box-shadow: none;
}

.slider img {
    width: 100%;
    display: block;
    transition: opacity 0.5s ease;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
    box-sizing: border-box;
}

.slider-controls button {
    background: rgba(0, 89, 179, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: rgba(0, 64, 128, 0.9);
    transform: scale(1.1);
}

/* === FOOTER === */
footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 30px 10px;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.form-button {
    padding: 10px 20px;
    background-color: #0059b3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #003d80;
}

/* DoorWins-style overlay - this is the only new code you need to add */
.doorwins-overlay {
    position: absolute;
    top: 20%;
    right: 0;
    width: 40%;
    height: 60%;
    background-color: rgba(0, 51, 102, 0.342);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.doorwins-overlay h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.contact-phone {
    font-size: 1.8rem;
    color: #4cff4c; /* Bright green color */
    margin-bottom: 15px;
    font-weight: bold;
}

.contact-email {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-email a {
    color: #4cff4c; /* Green color for email links */
    text-decoration: none;
}

.contact-or {
    margin-bottom: 10px;
}

.contact-aluminum {
    margin-bottom: 10px;
}

/* Services section styling */
.services-heading {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.services-list {
    margin-top: 15px;
    line-height: 1.5;
}

.services-list div {
    margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doorwins-overlay {
        width: 50%;
        padding: 15px;
    }
    
    .doorwins-overlay h2 {
        font-size: 1.5rem;
    }
    
    .contact-phone {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .doorwins-overlay {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .form-glass {
        padding: 20px;
    }

    .form-glass h2 {
        font-size: 1.5rem;
    }
}

/* === RESPONSIVENESS === */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .content-overlay h2 {
        font-size: 1.8rem;
    }
    
    .content-overlay p {
        font-size: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .slider {
        width: 95%;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .content-overlay {
        padding: 15px;
    }
    
    .slider-controls button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero-header-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-logo {
        order: -1; /* Moves logos to top on mobile */
        margin-bottom: 10px;
    }
    
    header h1 {
        font-size: 1.8rem;
        white-space: normal; /* Allows text to wrap on mobile */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .hero-logo {
        height: clamp(50px, 8vw, 70px); /* Slightly smaller logos on mobile */
    }
}

