/* General Styles */
:root {
    --charcoal: #36454F;
    --white: #FFFFFF;
    --warm-beige: #F5F5DC;
    --gold-accents: #D4AF37;
    --light-gray: #f8f8f8;
    --text-color: #333;
    --heading-color: var(--charcoal);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif; /* Example font, will need to link from Google Fonts */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: 'Playfair Display', serif; /* Example font, will need to link from Google Fonts */
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

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

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--gold-accents);
    color: var(--white);
    border: 2px solid var(--gold-accents);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--gold-accents);
    text-decoration: none;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--charcoal);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Header and Navigation */
.navbar {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--charcoal);
    font-family: 'Playfair Display', serif;
}

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

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

.nav-links a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 17px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--gold-accents);
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
    background: var(--gold-accents);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--charcoal);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    background: url('assets/images/hero.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

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

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* Sections General */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

section:nth-of-type(even) {
    background-color: var(--light-gray);
}

h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-accents);
    border-radius: 2px;
}

/* About Section */
.about-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    margin-left: 0;
}

.about-content p {
    font-size: 18px;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Services Section */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-cards .card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-cards .card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--charcoal);
}

.service-cards .card p {
    font-size: 16px;
    color: #555;
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.feature-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--charcoal);
}

.feature-item p {
    font-size: 16px;
    color: #555;
}

/* Installation Process Section */
.process-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.process-steps .step {
    flex-basis: 22%;
    text-align: center;
    position: relative;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.process-steps .step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--gold-accents);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.process-steps .step h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.process-steps .step p {
    font-size: 16px;
    color: #555;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Reviews Section */
.review-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.review-card .stars {
    color: var(--gold-accents);
    font-size: 24px;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.review-card h4 {
    font-size: 18px;
    color: var(--charcoal);
}

/* Service Areas Section */
.service-areas-section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.service-areas-section ul li {
    background-color: var(--gold-accents);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
}

/* Contact Section */
.contact-section form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: transparent;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--gold-accents);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: var(--white);
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--gold-accents);
    z-index: 1;
}

.contact-section .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.success-message {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* Map Section */
.map-section iframe {
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* CTA Strip */
.cta-strip {
    background-color: var(--charcoal);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
    margin-top: 50px;
}

.cta-strip h3 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 30px;
}

.cta-strip .btn-white {
    background-color: var(--white);
    color: var(--charcoal);
    border: 2px solid var(--white);
}

.cta-strip .btn-white:hover {
    background-color: transparent;
    color: var(--white);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 60px 0 20px 0;
    font-size: 15px;
}

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

.footer-brand, .footer-links, .footer-social {
    flex: 1;
    min-width: 250px;
}

footer h4 {
    color: var(--gold-accents);
    font-size: 20px;
    margin-bottom: 20px;
}

footer p, footer a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-links ul {
    list-style: none;
}

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

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--gold-accents);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 20px;
    }

    .about-section .container {
        flex-direction: column;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .process-steps .step {
        flex-basis: 45%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand, .footer-links, .footer-social {
        min-width: unset;
    }

    .social-icons {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        margin: 10px 0;
    }

    h2 {
        font-size: 36px;
    }

    .process-steps .step {
        flex-basis: 90%;
    }

    .service-cards, .features-grid, .review-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    h2 {
        font-size: 30px;
    }

    .logo {
        font-size: 24px;
    }
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for buttons with glow */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.5s ease-out;
    transform: translate(-50%, -50%) scale(0);
    z-index: -1;
}

.btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Modern shadows and rounded corners */
.card, .feature-item, .process-steps .step, .gallery-item, .review-card, .contact-section form, .map-section iframe {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Section dividers (example - can be more complex with SVG/pseudo-elements) */
section:not(:last-of-type)::after {
    content: '';
    display: block;
    width: 100%;
    height: 50px; /* Adjust height as needed */
    background: linear-gradient(to bottom, var(--light-gray) 0%, var(--white) 100%); /* Example gradient */
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    transform: skewY(-1deg); /* Subtle wave effect */
    transform-origin: 100% 0;
}

.about-section:nth-of-type(odd)::after,
.services-section:nth-of-type(odd)::after,
.installation-process:nth-of-type(odd)::after,
.reviews-section:nth-of-type(odd)::after,
.service-areas-section:nth-of-type(odd)::after {
    background: linear-gradient(to bottom, var(--white) 0%, var(--light-gray) 100%);
}

/* Specific overrides for sections to prevent unwanted dividers */
.cta-strip::after, footer::after, .map-section::after, .contact-section::after {
    display: none;
}

/* Placeholder for custom fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Playfair+Display:wght@700&display=swap');
