/* style.css
  Custom styles for Gutter Vac Guys website.
  Color Palette based on the official logo.
*/

    /* ------------------- */
    /* Variables & Setup   */
    /* ------------------- */
:root {
    --primary-red: #c84630;
    --primary-red-darker: #a23522;
    --charcoal: #212121;
    --cream-bg: #f3efe4;
    --cream-bg-alt: #eae3d8;
    --light-text: #f3efe4;
    --dark-text: #212121;
}

/* NEW: This adds the logo to the entire site's background */
body::before {
    content: '';
    position: fixed; /* Stays in place when scrolling */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('logos/gvg-logo2.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05; /* Very faint so it doesn't distract from content */
    z-index: -1; /* Places it behind all other content */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream-bg);
    color: var(--dark-text);
    margin: 0;
    line-height: 1.6;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* Responsive container widths */
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* ------------------- */
/* Header & Navigation */
/* ------------------- */
.site-header {
    background-color: var(--cream-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 5rem; /* Increased size slightly for better visibility */
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    text-decoration: none;
}

.nav-links-desktop {
    display: none;
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-button {
    background-color: var(--primary-red);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: 600;
}

.nav-button:hover {
    background-color: var(--primary-red-darker);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--dark-text);
}

.nav-links-mobile {
    display: none;
    padding: 0 1.5rem 1rem;
    background-color: var(--cream-bg);
}

.nav-links-mobile.active {
    display: block;
}

.nav-links-mobile .nav-link {
    display: block;
    padding: 0.75rem 0;
    text-align: center;
}

.nav-links-mobile .nav-button {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .nav-links-desktop {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
    .mobile-menu-toggle, .nav-links-mobile {
        display: none;
    }
    .nav-links-mobile.active {
        display: none;
    }
}

/* On very small screens, hide the text title to avoid crowding */
@media (max-width: 420px) {
    .site-title {
        display: none;
    }
}


/* ------------------- */
/* Hero Section        */
/* ------------------- */
.hero-section {
    color: var(--light-text);
    background-image: url('logos/gvg-logo2.jpg');
    background-size: contain;
    background-position: center;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8rem 0;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin: 0 auto 2rem;
    max-width: 42rem;
}

.hero-button {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--light-text);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: background-color 0.3s;
    font-size: 1.125rem;
    text-decoration: none;
}

.hero-button:hover {
    background-color: var(--primary-red-darker);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ------------------- */
/* Content Sections    */
/* ------------------- */
.content-section {
    padding: 5rem 0;
    background-color: var(--cream-bg);
}
.content-section-alt {
    padding: 5rem 0;
    background-color: var(--cream-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark-text);
}

.section-subtitle {
    color: var(--dark-text);
    opacity: 0.9;
    margin: 1rem auto 0;
    max-width: 42rem;
}

/* Services Section */
.services-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--cream-bg);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-card-image {
    width: 12rem;
    height: 8rem;
    background-color: #d6c6b3;
    margin: 0 auto 1.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-text);
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-red);
}

/* About Section */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}
@media (min-width: 768px) {
    .about-container {
        flex-direction: row;
    }
}

.about-image, .about-text {
    width: 100%;
}
@media (min-width: 768px) {
    .about-image, .about-text {
        width: 50%;
    }
}

.about-video {
    width: 100%;
    height: 20rem;
    object-fit: cover; /* Ensures the video covers the area without distortion */
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.about-text .section-title {
    margin-bottom: 1rem;
}
.about-text p {
    margin-bottom: 1rem;
    color: var(--dark-text);
    opacity: 0.9;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    width: 100%;
    height: 12rem;
    background-color: var(--cream-bg-alt);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-text);
    border: 1px solid #d6c6b3;
}

/* ------------------- */
/* Contact Section     */
/* ------------------- */
.contact-section {
    padding: 5rem 0;
    background-color: var(--primary-red);
    color: var(--light-text);
}
.contact-title {
    font-size: 2.25rem;
    font-weight: 700;
}
.contact-subtitle {
    margin: 1rem auto 0;
    max-width: 42rem;
}

.contact-form-container {
    max-width: 42rem;
    margin: 0 auto;
    background-color: var(--cream-bg);
    color: var(--dark-text);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d6c6b3;
    border-radius: 0.375rem;
    box-sizing: border-box;
    background-color: #fff;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(200, 70, 48, 0.4);
}

.form-submit-button {
    width: 100%;
    background-color: var(--primary-red);
    color: var(--light-text);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.form-submit-button:hover {
    background-color: var(--primary-red-darker);
}

/* ------------------- */
/* Footer              */
/* ------------------- */
.site-footer-bottom {
    background-color: var(--charcoal);
    color: var(--light-text);
    padding: 2rem 0;
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
    }
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
@media (min-width: 768px) {
    .footer-social-links {
        margin-top: 0;
    }
}

.footer-social-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-social-links a:hover {
    color: var(--primary-red);
}

/* ------------------- */
/* Thank You Page      */
/* ------------------- */
body.thank-you-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--cream-bg);
    position: relative;
    text-align: center;
    padding: 1rem;
}

body.thank-you-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('GutterVac Guys.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

.thank-you-container {
    background-color: rgba(243, 239, 228, 0.9); /* Semi-transparent cream */
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.thank-you-container h1 {
    color: var(--primary-red);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.thank-you-container p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.home-button {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--light-text);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: var(--primary-red-darker);
}
