/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-dark: #1a1a1a;
    --primary-light: #ffffff;
    --secondary-gray: #f8f8f8;
    --text-color: #333333;
    --text-muted: #666666;
    --gold: #0056b3;
    /* Updated to Match Logo Blue */
    --gold-hover: #004494;
    --border-color: #e5e5e5;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-light);
    overflow-x: hidden;
    position: relative;
    /* Ensure containment */
}

/* Nuclear option for overflow */
.wrapper,
section,
header,
footer {
    max-width: 100vw;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.text-gold {
    color: var(--gold);
}

.text-white {
    color: #fff;
}

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

.bg-light {
    background-color: var(--secondary-gray);
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.w-100 {
    width: 100%;
}

.section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.pre-title {
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
}

.divider {
    height: 2px;
    width: 60px;
    background-color: var(--gold);
    margin: 1.5rem 0;
}

.divider.mx-auto {
    margin: 1.5rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    /* Slight rounded for modern feel but mostly sharp */
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.btn-gold {
    background-color: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--primary-dark);
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
}

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

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-dark);
}

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

.nav-link.btn-primary {
    color: #fff;
    padding: 0.6rem 1.5rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-dark);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('hero-new.jpg');
    /* Authentic plastering image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    /* Nav is fixed overlay */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    /* Darken for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    /* Large and elegant */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   5. SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   6. ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--gold);
    color: #fff;
    padding: 2rem;
    border-radius: 50%;
    /* Circle badge? Or square */
    border-radius: 0;
    /* Sticking to square/sharp for classiness */
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    z-index: 2;
}

/* Re-adjust badge for layout safety margins if needed. For now right:-20 looks good overlap but needs container margin */
.about-image {
    margin-right: 20px;
    margin-bottom: 20px;
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 5px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.feature-list {
    margin: 1.5rem 0;
}

.feature-list li {
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.feature-list i {
    margin-right: 10px;
}

/* =========================================
   7. GALLERY SECTION
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.overlay-content {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    color: #fff;
    margin-bottom: 5px;
}

.overlay-content p {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   8. TESTIMONIALS SECTION
   ========================================= */
.testimonials .testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    flex: 1 1 300px;
    max-width: 400px;
}

.stars {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.reviewer .name {
    display: block;
    font-weight: 700;
    color: var(--primary-dark);
}

.reviewer .location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   9. CONTACT SECTION
   ========================================= */
.contact {
    background-color: var(--primary-dark);
    /* Dark classy footer area */
    color: #fff;
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 5px;
}

.info-item h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.info-item p {
    color: #ccc;
}


/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 200000;
    display: none;
    /* Hidden by default, shown by JS */
    border-top: 3px solid var(--gold);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    background: var(--gold);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.btn-cookie:hover {
    background: var(--gold-hover);
}

/* Form */
.contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: 4px;
}

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

.form-group label {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
    background-color: #111;
    color: #fff;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #aaa;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.social-links a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.copyright {
    color: #666;
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* =========================================
   11. ANIMATIONS
   ========================================= */
/* Setup for Intersection Observer */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

/* When visible */
.appear {
    opacity: 1;
    transform: none;
}

/* Stagger delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* =========================================
   12. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-image {
        margin: 0 auto 3rem auto;
        max-width: 600px;
    }

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

    .about-content {
        text-align: left;
    }

    /* Reset text align for content */
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    /* Prevent Sticky CTA from blocking footer content */
    .footer {
        padding-bottom: 90px;
    }

    /* Mobile Horizontal Scroll Groups */
    .services-grid,
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
        /* Neg margin removed to prevent overflow */
        /* margin-right: -15px; */

        /* Offset container padding for full bleed feel */
        padding-right: 20px;
        /* Peek effect */
        -webkit-overflow-scrolling: touch;
    }

    .service-card,
    .gallery-item {
        scroll-snap-align: start;
        max-width: none;
    }

    /* Smaller Square Service Cards for Mobile */
    .service-card {
        flex: 0 0 160px;
        /* Fixed width for square-ish look */
        height: 160px;
        /* Fixed height to force square */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1rem;
    }

    .service-card i {
        font-size: 2rem;
        /* Smaller icon */
        margin-bottom: 0.5rem;
    }

    .service-card h3 {
        font-size: 0.9rem;
        /* Smaller text */
        margin-bottom: 0;
    }

    .service-card p {
        display: none;
        /* Hide description to make it a small square */
    }

    .gallery-item {
        flex: 0 0 85%;
        /* Keep gallery items large */
    }

    /* Hide scrollbars for cleaner UX but keep functionality */
    .services-grid::-webkit-scrollbar,
    .gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .services-grid,
    .gallery-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

/* Utility for mobile visibility */
.mobile-only {
    display: none;
}

/* =========================================
   13. LEAD GEN & TRACKING
   ========================================= */

/* Sticky Mobile CTA */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    background-color: var(--gold);
    color: #fff;
    text-align: center;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
    z-index: 9999;
    animation: slideUp 1s ease-out 2s backwards;
    /* Delays appearance so it doesn't clash with hero load */
}

.sticky-cta:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

/* Frictionless Form Styles */
.contact-form h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.contact-form .btn-gold {
    font-size: 1.1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.privacy-notice {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}