/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #f0f0f0;
    --text-color: #333333;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--secondary-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
}

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

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

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    font-weight: bold;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu .line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.4s;
}

.mobile-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: var(--secondary-color);
    padding: 20px 20px 20px 20px;
    transition: right 0.3s ease;
    z-index: 99;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav .close-menu {
    align-self: flex-end;
    font-size: 32px;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s;
}

.mobile-nav .close-menu:hover {
    color: #e74c3c;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 98;
}

.mobile-nav.active ~ .mobile-nav-overlay {
    display: block;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s;
}

.mobile-nav ul li a:hover, .mobile-nav ul li a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* Dropdown Styles for Desktop and Mobile - User Friendly */
.dropdown {
    position: relative;
}
.dropbtn {
    cursor: pointer;
    outline: none;
    background: none;
    border: none;
    font: inherit;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 0 0 8px 8px;
    transition: all 0.2s;
}
.dropdown-content li a {
    color: #333;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
}
.dropdown-content li a:hover, .dropdown-content li a:focus {
    background-color: #f0f0f0;
    color: #000;
}
@media (hover: hover) and (pointer: fine) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}
@media (max-width: 900px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #fff;
        min-width: 0;
        border-radius: 0;
    }
    .dropdown .dropdown-content {
        display: none;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    .dropdown .dropbtn:after {
        content: '\25BC';
        font-size: 12px;
        margin-left: 6px;
    }
}
/* Improve mobile nav touch targets */
.mobile-nav ul li, .mobile-nav ul li a {
    font-size: 18px;
    padding: 16px 0;
}

/* Hero Section */
.hero {
    height: 40vh;
    background-color: #000;
    background-image: none;
    position: relative;
    margin-top: 70px;
}

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

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 28px;
    font-weight: bold;
}

.hero-btn, .hero-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.hero-btn:hover, .hero-btn.secondary:hover {
    background: #fff;
    color: #111;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Home Services Section */
.home-services {
    padding: 60px 0;
}

.service-item {
    margin-bottom: 60px;
}

.service-item h2 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #333;
}

/* Home Services Section - Responsive Images */
.home-services .image-wrapper img {
    width: 100%;
    max-width: 350px;
    height: 220px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
@media (max-width: 900px) {
    .home-services .image-wrapper img {
        max-width: 100%;
        height: 160px;
    }
}
@media (max-width: 600px) {
    .home-services .image-wrapper img {
        max-width: 100%;
        height: 120px;
    }
}

/* Project Gallery */
.project-gallery {
    padding: 60px 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-button {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-button.active {
    background-color: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    background: #fff;
    padding: 0;
    margin: 0;
}

.gallery-item.show {
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    background: #f8f8f8;
}

@media (max-width: 900px) {
    .gallery-item img {
        height: 160px;
    }
}

@media (max-width: 600px) {
    .gallery-item img {
        height: 120px;
    }
}

/* Video Gallery */
.video-gallery {
    padding: 60px 0;
    background-color: var(--primary-color);
}

.video-gallery h2 {
    color: white;
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.video-item {
    border-radius: 8px;
    overflow: hidden;
}

.video-item video {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Form */
.contact-section {
    padding: 60px 0;
    background-color: var(--accent-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.submit-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #333;
}

/* Booking Form */
.booking-section {
    padding: 60px 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

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

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

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

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

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

.footer-nav ul li a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-nav ul li a:hover {
    opacity: 0.8;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* Remove extra space from anchor sections */
.service-section {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: none;
    background: none;
}
#plastering, #plumbing, #tiling, #joinery, #filling {
    /* Remove old anchor styles, now handled by .service-section */
    height: unset;
    margin: unset;
    padding: unset;
    overflow: unset;
}
/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .service-item {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo, .footer-info, .footer-nav {
        margin-bottom: 20px;
    }

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

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

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .service-item {
        margin-bottom: 30px;
    }
    .image-wrapper img {
        max-height: 250px;
        object-fit: cover;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .service-item h2 {
        font-size: 18px;
    }
    .image-wrapper img {
        max-height: 180px;
    }
}