/* General Body & Typography */
:root {
    --primary-color: #0f130f; /* Dark Blue/Charcoal */
    --secondary-color: #cc9c3a; /* Orange */
    --accent-color: #e74c3c; /* Reddish for alerts/emphasis */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --bg-dark: #222;
    --border-color: #ddd;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
p { margin-bottom: 1rem; }

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e08e00; /* Darker orange */
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Sections */
.section-padding {
    padding: 80px 0;
    text-align: center;
}

.section-padding.bg-light {
    background-color: var(--bg-light);
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    
    text-decoration: none;
}
.logo:a {
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background: url('../img/hero.jpeg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    margin-top: -70px; /* Adjust for fixed header */
    padding-top: 70px; /* Push content down */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: white;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* Warranty Section */
.warranty-content {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
    margin-top: 40px;
}

.warranty-text {
    flex: 2; /* Takes more space */
    min-width: 300px;
}

.warranty-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.warranty-text ul li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #555;
    display: flex;
    align-items: center;
}

.warranty-text ul li i {
    color: #27ae60; /* Green checkmark */
    margin-right: 10px;
    font-size: 1.2rem;
}

.warranty-image {
    flex: 1; /* Takes less space */
    min-width: 250px;
}

.warranty-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Quotes Section & Forms */
.quote-form, .subscribe-form {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.quote-form .btn-primary, .subscribe-form .btn-primary {
    width: auto;
    display: block;
    margin-top: 20px;
    text-align: center;
}

.confirmation-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    text-align: center;
    background-color: #28a745; /* Green for success */
    display: none; /* Hidden by default */
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-col p {
    margin-bottom: 10px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modals/Popups */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh; /* Limit height */
    overflow-y: auto; /* Allow scrolling within modal */
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: left;
}
.modal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    text-align: left;
}
.modal-content ul li {
    margin-bottom: 8px;
}

.modal-content strong {
    color: var(--primary-color);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--accent-color);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav ul li {
        margin-left: 20px;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
    .hero-section p {
        font-size: 1.2rem;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .warranty-content {
        flex-direction: column;
        text-align: center;
    }
    .warranty-image {
        order: -1; /* Image first on mobile */
        margin-bottom: 20px;
    }
    .warranty-text ul {
        text-align: left; /* Keep list left aligned even if parent is center */
        margin: 0 auto 20px;
        max-width: 400px; /* Constrain width of list */
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-col {
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }
    .header-container {
        flex-direction: column;
    }
    .logo {
        margin-bottom: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 0 10px 10px;
    }
    .hero-section {
        height: 80vh;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    h2 {
        font-size: 2rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    .quote-form, .subscribe-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .service-card {
        padding: 20px;
    }
    .service-icon {
        font-size: 2.5rem;
    }
    .service-card h3 {
        font-size: 1.3rem;
    }
    .modal-content {
        padding: 25px;
        width: 95%;
    }
    .close-button {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
}