/*
Theme Name: MVA Home Theme
Theme URI: https://mvahome.co.uk
Author: Vacurim Enterprise
Author URI: https://vacurim.com
Description: Custom theme for MVA Home Improvement - London property renovation services. Built with SEO optimization, responsive design, and performance in mind.
Version: 2.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mvahome
Tags: responsive-layout, custom-colors, custom-menu, featured-images, translation-ready
*/

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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    color: #0077cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Button Styles === */
.button, .cta-button, button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0077cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover, .cta-button:hover, button:hover {
    background-color: #005fa3;
}

/* === Hero Section === */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-overlay {
    display: inline-block;
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.55);
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: auto;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.hero-overlay .hero-content,
.hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* === CTA Buttons for Hero Section === */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-button {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-button.primary {
    background-color: #0073e6;
    color: white;
}

.cta-button.secondary {
    background-color: white;
    color: #0073e6;
    border: 2px solid #0073e6;
}

.cta-button:hover {
    opacity: 0.9;
}

.card-cta {
    display: block;
    margin: 20px auto 0;
    background-color: #0077cc;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    min-width: 200px;
}

/* Individual card CTA styles */
.card-cta.upgrade {
    background: linear-gradient(135deg, #0077cc, #00b4d8);
    width: auto;
}

.card-cta.design {
    background: linear-gradient(135deg, #c471ed, #f64f59);
}

.card-cta.electricians {
    background: linear-gradient(135deg, #ff6a00, #ee0979);
}

.card-cta.restoration {
    background: linear-gradient(135deg, #43cea2, #185a9d);
    width: 220px;
}

.card-cta.plumbing {
    background: linear-gradient(135deg, #009688, #4caf50);
    width: 220px;
}

.card-cta.upgrade, .card-cta.design, .card-cta.electricians, .card-cta.restoration, .card-cta.plumbing {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    margin-top: 15px;
    text-align: center;
}

.card-cta.upgrade:hover, .card-cta.design:hover, .card-cta.electricians:hover, .card-cta.restoration:hover, .card-cta.plumbing:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* === Section Layout === */
.section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

#services.section {
    max-width: 1400px;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

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

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.card h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card p {
    text-align: left;
    font-size: 1rem;
    color: #555;
}

/* === Project List === */
.project-list {
    list-style: none;
    padding-left: 0;
}

.project-list li {
    background-color: #fff;
    margin-bottom: 10px;
    padding: 15px;
    border-left: 4px solid #0077cc;
}

/* === Testimonials === */
blockquote {
    background-color: #eee;
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid #0077cc;
    font-style: italic;
}

/* === Why Us Section === */
#why-us ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

#why-us li {
    background-color: #fff;
    padding: 15px;
    border-left: 4px solid #0077cc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* === Contact Section === */
#contact p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* === Forms === */
input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

input:focus, textarea:focus {
    border-color: #0077cc;
    outline: none;
}

/* === Images === */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* === Blog Posts === */
.post {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #0077cc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.post h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.post p {
    font-size: 1rem;
    color: #555;
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* === Navigation Menu Styles === */
.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #0077cc;
}

/* Sticky header */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #fff;
}

header .logo a h2 {
    font-size: 20px !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    margin: 0 !important;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #0073e6;
    display: block;
    margin-left: 20px;
}

/* === Dropdown menu styles === */
.nav-menu li {
    position: relative;
}

.nav-menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to bottom, #ffffff, #f4f7fb);
    border: 1px solid #dbe2ea;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    padding: 20px;
    min-width: 280px;
    border-radius: 8px;
    z-index: 100;
    animation: fadeIn 0.3s ease-in-out;
}

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

.nav-menu li:hover > ul.sub-menu {
    display: block;
}

.nav-menu li ul.sub-menu li {
    margin-bottom: 12px;
}

.nav-menu li ul.sub-menu li a {
    display: block;
    padding: 10px 14px;
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-menu li ul.sub-menu li a:hover {
    background-color: #e6f0ff;
    border-left: 4px solid #0073e6;
    color: #0073e6;
}

/* === Mobile Menu & Overlay Styles === */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 40px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    display: none;
}

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

.overlay.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
}

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

.mobile-nav-menu a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #333;
}

/* === Container and page content === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
}

.page-content {
    background-color: #fff;
    color: #333;
    line-height: 1.8;
}

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

/* === Scroll margin for sticky header === */
#services {
    scroll-margin-top: 80px;
}

#services-title {
    scroll-margin-top: 100px;
}

#projects {
    scroll-margin-top: 120px;
}

/* Limit width for all inner pages */
body:not(.home) .entry-content,
body:not(.home) .post-content,
body:not(.home) .page-content,
body:not(.home) .content-area,
body:not(.home) main,
body:not(.home) article {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

body:not(.home) .container,
body:not(.home) .wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.other-services {
    margin: 3rem auto;
    padding: 2rem;
    max-width: 800px;
}

.other-services h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.other-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.other-services ul li {
    display: inline-block;
    margin: 0.5rem 1rem;
}

.other-services ul li a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.other-services ul li a:hover {
    text-decoration: underline;
}

.project-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

#services .grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* === Projects Grid === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 0;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #222;
    line-height: 1.4;
}

.project-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0077cc;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.project-link:hover {
    gap: 12px;
    color: #005fa3;
}

/* === Scroll to top button === */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: #e67e22;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 24px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #003e8c;
    transform: scale(1.05);
}

/* === Footer === */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 0;
    margin-top: 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
}

.footer-column {
    min-width: 0;
    overflow: hidden;
}

.footer-column .widget {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
}

.footer-column .widgettitle {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.footer-column .widget a {
    color: #7cb8e8;
}

.footer-column .widget a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* === Responsive Styles === */
@media (max-width: 1024px) {
    #services .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 1.8rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .hero {
        align-items: flex-start;
        padding-top: 18px;
        height: auto;
    }

    .hero-overlay {
        display: block;
        width: calc(100% - 32px);
        max-width: 720px;
        padding: 14px 16px;
        margin: 12px auto;
        border-radius: 6px;
        background: rgba(0,0,0,0.65);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-button {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        text-align: center;
    }

    .section {
        padding: 40px 15px;
    }

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

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

    #why-us ul {
        grid-template-columns: 1fr;
    }

    .desktop-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .logo {
        display: block !important;
        text-align: left;
        padding: 10px 20px;
        margin: 0;
    }

    .container {
        padding: 20px 20px;
    }

    .page-content.container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 15px 16px;
    }
}

@media (min-width: 769px) {
    .hero {
        height: 100vh;
    }

    .hero-overlay {
        padding: 2.5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 480px) {
    header .logo a h2 {
        font-size: 16px !important;
        white-space: nowrap !important;
    }
}