/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header and Navigation */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #2980b9);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

.logo {
    position: absolute;
    left: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    height: 100%;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu .cta-button {
    position: absolute;
    right: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 75vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 120px 1rem 0 1rem; /* Increased top padding to ensure logo is fully visible */
    overflow: hidden;
    margin-top: 0; /* Ensure no additional margin */
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #2980b9);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    filter: blur(8px);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.2);
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.6)
    );
    backdrop-filter: blur(2px);
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    padding-bottom: 5rem;
}

.logo-container {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    opacity: 0.95; /* Slightly transparent */
    transition: opacity 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3)); /* Add subtle shadow for better visibility */
}

.hero-logo:hover {
    opacity: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero {
        padding: 130px 1rem 0 1rem;
    }
    .hero-logo {
        max-width: 140px;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
  .hero {
    padding: 110px 0.5rem 0 0.5rem; /* Increased padding for very small screens */
  }
  
  .hero-contacts {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.7em !important;
    font-size: 1em !important;
    text-align: center !important;
    padding-bottom: 0 !important;
  }

  .hero-content {
    padding-bottom: 7rem;
  }
}

/* Services Section */
.services {
    padding: 5rem 1rem;
    background: linear-gradient(rgba(20,30,40,0.95), rgba(10,20,30,0.95)), url('../images/backgroundhomes.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FFD600;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white); /* Changed to white for better contrast */
    position: relative;
    padding-bottom: 1rem;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card, .service-card-link {
    transition: box-shadow 0.2s, border-radius 0.2s, transform 0.2s;
    transform: scale(1);
}
.service-card:hover, .service-card:focus-within, .service-card-link:hover, .service-card-link:focus {
    box-shadow: 0 0 0 4px #1a2947;
    border-radius: 12px;
    z-index: 2;
    transform: scale(1.04) !important;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s, border-radius 0.2s, transform 0.2s;
    transform: scale(1);
    box-sizing: border-box;
}

.service-card-link:visited, .service-card-link:active {
    color: inherit;
}

.service-card-link i {
    margin-bottom: 18px;
    color: #fff;
    transition: color 0.2s;
}

.service-card:hover i, .service-card:focus-within i, .service-card-link:hover i, .service-card-link:focus i {
    color: #1a2947;
}

/* Contact Form */
.contact {
    padding: 5rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
}

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

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

.service-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Gallery Section */
.gallery {
    padding: 5rem 1rem;
    background-color: #2c2c2c;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff; /* Changed to white for better contrast on dark background */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.gallery-item h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.before, .after {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.before img, .after img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.before:hover img, .after:hover img {
    transform: scale(1.05);
}

.before span, .after span {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.video-gallery-title {
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--primary-color);
}

.video-gallery {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

@media (max-width: 768px) {
  .video-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-content: initial;
  }
}

.video-item {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.video-item video {
    width: 100%;
    border-radius: 5px;
    display: block;
}

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
    .before-after {
        grid-template-columns: 1fr;
    }

    .before img, .after img {
        height: 200px;
    }

    .video-gallery {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments for navigation */
@media (max-width: 768px) {
    .header {
        height: 80px;
    }

    .header-logo {
        height: 50px;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        right: 2rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        height: auto;
    }

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

    .nav-menu .cta-button {
        position: static;
        margin: 1rem 0 0 0;
    }
}

.driveway-bg {
    background: linear-gradient(rgba(30, 30, 30, 0.55), rgba(30, 30, 30, 0.55)), url('../images/drivewayy.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
}

.driveway-bg h3 {
    margin-bottom: 24px;
}

.driveway-bg .service-link {
    margin-top: 8px;
}

.driveway-bg img {
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.driveway-bg h3, .driveway-bg a {
    color: #fff;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

.driveway-bg p, .driveway-bg li {
    color: #fff !important;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

.patio-bg {
    background: linear-gradient(rgba(30, 30, 30, 0.55), rgba(30, 30, 30, 0.55)), url('../images/patioo.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
}
.roof-bg {
    background: linear-gradient(rgba(30, 30, 30, 0.55), rgba(30, 30, 30, 0.55)), url('../images/cleanroof.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
}
.gutter-bg {
    background: linear-gradient(rgba(30, 30, 30, 0.55), rgba(30, 30, 30, 0.55)), url('../images/guttering.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
}
.fence-bg {
    background: linear-gradient(rgba(30, 30, 30, 0.55), rgba(30, 30, 30, 0.55)), url('../images/fencing.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
}
.building-bg {
    background: linear-gradient(rgba(30, 30, 30, 0.55), rgba(30, 30, 30, 0.55)), url('../images/exterior.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
}
.graffiti-bg {
    background: linear-gradient(rgba(30, 30, 30, 0.55), rgba(30, 30, 30, 0.55)), url('../images/graffiti.jpg') !important;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
}
.upvc-bg {
    background: linear-gradient(rgba(30, 30, 30, 0.55), rgba(30, 30, 30, 0.55)), url('../images/upvc.jpg') !important;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
}
.patio-bg h3, .patio-bg a,
.roof-bg h3, .roof-bg a,
.gutter-bg h3, .gutter-bg a,
.fence-bg h3, .fence-bg a,
.building-bg h3, .building-bg a,
.graffiti-bg h3, .graffiti-bg a,
.upvc-bg h3, .upvc-bg a {
    color: #fff;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

.service-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    transition: box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    outline: none;
    text-decoration: none;
}
.service-icon-btn i {
    color: #fff;
    font-size: 2rem;
    transition: color 0.2s;
}
.service-icon-btn:hover, .service-icon-btn:focus {
    background: #2980b9;
    box-shadow: 0 0 0 4px rgba(41,128,185,0.2);
}

.gallery-container img {
    border: 4px solid #3498db !important;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.video-gallery .video-item {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 0;
    background: none;
}
.video-gallery .video-item video {
    border: 4px solid #3498db;
    border-radius: 10px;
    display: block;
    width: 100%;
    box-shadow: none;
}

.section-divider {
    display: block;
    border: none !important;
    background-color: #FFD600 !important;
    height: 4px;
    margin: 0 0 4rem 0;
    width: 100%;
    opacity: 1;
}

.faq {
    padding: 4rem 1rem;
    background: var(--light-bg);
    max-width: 800px;
    margin: 0 auto 4rem auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.faq h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.faq-item {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-question {
    width: 100%;
    text-align: left;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    outline: none;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-question:hover {
    background: #2980b9;
}
.faq-answer {
    display: none;
    background: #f8f9fa;
    color: var(--text-color);
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    border-top: 1px solid #e0e0e0;
    animation: fadeIn 0.3s;
}
.faq-item.active .faq-answer {
    display: block;
}
@media (max-width: 600px) {
    .faq {
        padding: 2rem 0.5rem;
    }
    .faq-question, .faq-answer {
        padding: 1rem;
    }
}

.trust-badges {
    padding: 3rem 1rem 2rem 1rem;
    background: var(--light-bg);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.trust-badges h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
}
.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.2rem 1.5rem;
    min-width: 120px;
    max-width: 180px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.badge:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 6px 24px rgba(41,128,185,0.12);
}
.badge img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.7rem;
}
.badge span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.2rem;
}
@media (max-width: 700px) {
    .badges-container {
        gap: 1.2rem;
    }
    .badge {
        padding: 0.8rem 0.7rem;
        min-width: 90px;
        max-width: 120px;
    }
    .badge img {
        width: 40px;
        height: 40px;
    }
    .trust-badges {
        padding: 2rem 0.5rem 1rem 0.5rem;
    }
}

.stats-section {
    padding: 4rem 1rem 2rem 1rem;
    background: linear-gradient(rgba(44,62,80,0.7), rgba(44,62,80,0.7)), url('../images/backgroundhomes.jpg');
    background-size: cover;
    background-position: center;
    max-width: 1000px;
    margin: 0 auto 3rem auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}
.stats-section h2 {
    color: #fff !important;
}
.stats-counters {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.stat {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 2rem 2.5rem;
    min-width: 160px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 6px 24px rgba(41,128,185,0.12);
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.stat-label {
    color: var(--primary-color) !important;
    font-size: 1.1rem;
    font-weight: 600;
}
@media (max-width: 700px) {
    .stats-counters {
        flex-direction: column;
        gap: 1.2rem;
    }
    .stat {
        padding: 1.2rem 1rem;
        min-width: 120px;
    }
    .stats-section {
        padding: 2rem 0.5rem 1rem 0.5rem;
    }
} 

.parallax-section {
    position: relative;
    min-height: 320px;
    background-image: url('images/backgroundhomes.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 62, 80, 0.75); /* Dark overlay for better contrast */
    z-index: 1;
}
.parallax-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.parallax-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.parallax-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
} 