/* General Body & Typography */
:root {
    --primary-color: #2c3e50; /* Dark Blue-Gray */
    --secondary-color: #3498db; /* Bright Blue */
    --accent-color: #e67e22; /* Orange */
    --text-color: #333;
    --light-bg: #f8f8f8;
    --white: #ffffff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

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

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

h1 {
    font-size: 3.5em; /* Larger for hero */
    font-weight: 700;
}

h2 {
    font-size: 2.5em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    color: #555;
}

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

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

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

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

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

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

.btn-secondary:hover {
    background-color: #cd6a1a; /* Darker accent */
    color: var(--white);
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
}

header nav ul {
    display: flex;
}

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

header nav ul li a {
    color: var(--white);
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .container {
    max-width: 900px;
}

.hero-section h1 {
   color: #fff;
}


.hero-section p {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Common Section Styling */
.common-section {
    padding: 80px 0;
}

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


/* ===== Common Sections ===== */
.common-section {
    padding: 4rem 0;
}

.section-description {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== About Section ===== */
.about-section p {
    max-width: 800px;
    margin: 1rem auto;
    text-align: center;
}

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

.service-item {
    background-color: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 2.5rem;
    color: #cd6a1a;
    margin-bottom: 1rem;
}

/* ===== Warranty Section ===== */
.warranty-details ul {
    list-style: disc;
    margin: 1rem 0 2rem 2rem;
    color: #444;
}

.warranty-details li {
    margin-bottom: 0.5rem;
}

/* ===== Quote Form ===== */
.renovation-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.confirmation-message {
    margin-top: 1rem;
    color: green;
    font-weight: 600;
}

/* ===== Contact Section ===== */
.contact-info {
    text-align: center;
    color: #444;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info i {
    margin-right: 0.5rem;
    color: #cd6a1a;
}

.social-links a {
    margin: 0 10px;
    font-size: 1.3rem;
    color: #1d3557;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #cd6a1a;
}

/* ===== Footer ===== */
footer {
    background-color: #1d3557;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

footer ul {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== Popups ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 9999;
}

.popup-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
}

.popup-content h3, .popup-content h4 {
    color: #1d3557;
    margin-top: 1rem;
}

.popup-content ul {
    margin-left: 1.2rem;
    margin-bottom: 1.2rem;
    list-style: disc;
}

.close-popup {
    margin-top: 1rem;
    display: block;
    margin-left: auto;
}

.hidden {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
