/**
 * Homepage Styles - Fully Responsive
 * My Best Windows & Glass Child Theme
 */

/* ========================================
   HERO SECTION
   ======================================== */
.bwg-hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 80px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    /* Fallback background color if image fails to load */
    background-color: var(--bwg-secondary);
    min-height: 600px;
}

.bwg-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 61, 122, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.bwg-hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.bwg-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.bwg-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    margin-top: 0;
}

.bwg-hero-content p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
}

.bwg-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.bwg-button-hero-primary {
    background: #ffffff;
    color: var(--bwg-primary);
    padding: 15px 40px;
    font-size: 18px;
}

.bwg-button-hero-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 15px 40px;
    font-size: 18px;
    background: transparent;
}

.bwg-hero-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.bwg-hero-form h3 {
    color: var(--bwg-primary);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.bwg-hero-form > p {
    color: var(--bwg-text);
    margin-bottom: 25px;
    font-size: 14px;
}

#quote-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#quote-form select,
#quote-form input[type="text"],
#quote-form input[type="tel"],
#quote-form input[type="email"] {
    padding: 12px;
    border: 2px solid var(--bwg-border);
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#quote-form select:focus,
#quote-form input[type="text"]:focus,
#quote-form input[type="tel"]:focus,
#quote-form input[type="email"]:focus {
    outline: none;
    border-color: var(--bwg-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

#quote-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--bwg-text);
}

#quote-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

#quote-form button[type="submit"] {
    padding: 15px;
    font-size: 18px;
    width: 100%;
    margin-top: 10px;
}

#quote-form .form-footer {
    font-size: 11px;
    color: #666;
}

/* Form Messages */
.bwg-form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.bwg-form-message.bwg-form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.bwg-form-message.bwg-form-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

#quote-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   PROMO BANNER
   ======================================== */
.bwg-promo-banner {
    background: var(--bwg-primary);
    color: #ffffff;
    padding: 40px 0;
    position: relative;
}

/* ========================================
   FEATURES & PRODUCTS SECTIONS
   ======================================== */
.bwg-section,
.bwg-section-small {
    position: relative;
}

.bwg-promo-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.bwg-promo-content {
    flex: 1;
    min-width: 300px;
}

.bwg-promo-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.bwg-promo-content p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 0;
}

.bwg-promo-badge {
    text-align: center;
}

.bwg-promo-badge .amount {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.bwg-promo-badge .label {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.9;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.bwg-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.bwg-feature-item {
    text-align: center;
}

.bwg-feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--bwg-primary);
}

.bwg-feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--bwg-primary);
    margin-bottom: 10px;
}

.bwg-feature-description {
    color: var(--bwg-text);
    font-size: 16px;
    line-height: 1.5;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.bwg-products-header {
    text-align: center;
    margin-bottom: 50px;
}

.bwg-products-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--bwg-primary);
    margin-bottom: 15px;
}

.bwg-products-header p {
    font-size: 20px;
    color: var(--bwg-text);
    max-width: 700px;
    margin: 0 auto;
}

.bwg-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.bwg-product-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: block;
    text-decoration: none;
    color: inherit;
}

.bwg-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
    border-color: var(--bwg-primary);
    text-decoration: none;
    color: inherit;
}

.bwg-product-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.bwg-product-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bwg-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bwg-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bwg-product-card:hover .bwg-product-image img {
    transform: scale(1.05);
}

.bwg-product-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--bwg-primary);
    margin-bottom: 15px;
}

.bwg-product-description {
    color: var(--bwg-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.bwg-product-link {
    color: var(--bwg-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.bwg-product-card:hover .bwg-product-link {
    color: var(--bwg-primary-dark);
}

.bwg-product-card:hover {
    text-decoration: none;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.bwg-testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.bwg-testimonials-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--bwg-primary);
    margin-bottom: 15px;
}

.bwg-testimonials-header p {
    font-size: 20px;
    color: var(--bwg-text);
    max-width: 700px;
    margin: 0 auto;
}

.bwg-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.bwg-testimonial-card {
    background: var(--bwg-light-gray);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--bwg-primary);
}

.bwg-testimonial-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ffc107;
    font-size: 20px;
    letter-spacing: 2px;
}

.bwg-testimonial-text {
    color: var(--bwg-text);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.bwg-testimonial-footer {
    border-top: 1px solid var(--bwg-border);
    padding-top: 15px;
}

.bwg-testimonial-name {
    font-weight: 600;
    color: var(--bwg-primary);
    margin-bottom: 5px;
}

.bwg-testimonial-meta {
    font-size: 14px;
    color: #666;
}

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

/* Tablet and below (968px) */
@media (max-width: 968px) {
    .bwg-hero-section {
        padding: 110px 0 70px;
    }
    
    .bwg-hero-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .bwg-hero-content {
        margin-top: 15px;
    }
    
    .bwg-hero-content h1 {
        font-size: 36px;
        margin-bottom: 25px;
        margin-top: 10px;
    }
    
    .bwg-hero-content p {
        font-size: 18px;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .bwg-promo-content h2 {
        font-size: 30px;
    }
    
    .bwg-products-header h2,
    .bwg-testimonials-header h2 {
        font-size: 36px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .bwg-hero-section {
        padding: 100px 0 60px;
    }
    
    .bwg-hero-wrapper {
        gap: 50px;
    }
    
    .bwg-hero-content {
        margin-top: 20px;
    }
    
    .bwg-hero-content h1 {
        font-size: 32px;
        margin-bottom: 25px;
        margin-top: 20px;
    }
    
    .bwg-hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .bwg-hero-form {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .bwg-hero-buttons {
        flex-direction: column;
    }
    
    .bwg-button-hero-primary,
    .bwg-button-hero-secondary {
        width: 100%;
        text-align: center;
    }
    
    .bwg-promo-banner {
        padding: 30px 0;
    }
    
    .bwg-promo-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .bwg-promo-content {
        min-width: auto;
    }
    
    .bwg-promo-content h2 {
        font-size: 28px;
    }
    
    .bwg-promo-badge .amount {
        font-size: 56px;
    }
    
    .bwg-promo-badge .label {
        font-size: 20px;
    }
    
    .bwg-features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .bwg-products-grid {
        grid-template-columns: 1fr;
    }
    
    .bwg-products-header h2,
    .bwg-testimonials-header h2 {
        font-size: 32px;
    }
    
    .bwg-products-header p,
    .bwg-testimonials-header p {
        font-size: 18px;
    }
    
    .bwg-testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .bwg-product-card {
        padding: 30px 20px;
    }
    
    .bwg-product-icon {
        font-size: 48px;
    }
    
    .bwg-product-title {
        font-size: 20px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .bwg-hero-section {
        padding: 80px 0 50px;
    }
    
    .bwg-hero-content {
        margin-top: 15px;
    }
    
    .bwg-hero-content h1 {
        font-size: 28px;
        margin-bottom: 20px;
        margin-top: 15px;
    }
    
    .bwg-hero-content p {
        font-size: 15px;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .bwg-hero-form {
        padding: 25px 15px;
    }
    
    .bwg-promo-content h2 {
        font-size: 24px;
    }
    
    .bwg-promo-badge .amount {
        font-size: 48px;
    }
    
    .bwg-products-header h2,
    .bwg-testimonials-header h2 {
        font-size: 28px;
    }
    
    .bwg-feature-icon {
        font-size: 36px;
    }
    
    .bwg-feature-title {
        font-size: 18px;
    }
}

