/* 
   Project: Vincent Kane Blackett - Lead Gen Revamp
   Theme: Premium Local Master Builder
   Colors: Navy (Trust), Gold/Bronze (Premium/Craftsmanship), White (Clean)
*/

:root {
    --primary-color: #0F172A;
    /* Deep Navy */
    --secondary-color: #B45309;
    /* Bronze/Gold - reminiscent of wood/craft */
    --accent-color: #F59E0B;
    /* Bright Amber for CTAs */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --font-heading: 'Cinzel', serif;
    /* Classic, prestige look for headings */
    --font-body: 'Inter', sans-serif;
    /* Clean, modern readability */
    --max-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

html {
    background-color: #f1f5f9;
    /* Light slate background for distinct page feel */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    max-width: 1420px;
    /* Restrict width on large screens */
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
    /* Soft depth */
    position: relative;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in inputs */
input,
textarea,
select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: #92400e;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #000;
}

.btn-accent:hover {
    background-color: #d97706;
}

.section-padding {
    padding: 80px 0;
}

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

.text-bronze {
    color: var(--secondary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

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

.contact-info-top span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
}

.logo span {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    font-size: 1rem;
}

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

.header-cta {
    display: none;
}

@media(min-width: 768px) {
    .header-cta {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .header-cta .phone {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    .header-cta .sub {
        font-size: 0.8rem;
        color: var(--secondary-color);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.6)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e2e8f0;
}

.trust-badges-hero {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.trust-badge {
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Trust Bar */
.trust-strip {
    background-color: #f1f5f9;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.trust-strip .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-item svg {
    color: var(--secondary-color);
}

/* Services Section */
.services-section {
    background-color: var(--white);
}

.section-title {
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.service-img {
    height: 220px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.link-arrow {
    font-weight: 600;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Services List Styling */
.services-wrapper {
    margin-bottom: 60px;
    background: #f8fafc;
    padding: 50px;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
}

.services-column h3 {
    font-size: 1.4rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-dark);
}

.custom-list li::before {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* About Section (Refined) */
.about-section {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.exp-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
}

.exp-badge span {
    display: block;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Lead Gen Form (Mid-Page) */
.cta-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-banner h2 {
    color: white;
    margin-bottom: 10px;
}

.cta-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 1100px;
    /* Wider layout */
    margin: 40px auto 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.inline-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

/* Recent Projects */
/* Projects Grid Alignment */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on desktop */
    gap: 20px;
}

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

@media(max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-item {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: 0.3s;
}

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

/* Footer */
footer {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-column ul a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .about-preview {
        flex-direction: column;
    }

    .about-text {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    nav {
        display: none;
    }

    .top-bar {
        display: none;
    }
}

/* --- New Premium Styles --- */

/* Sleek Service Cards */
.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    width: 100%;
}

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

.service-content {
    padding: 25px;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-content h3 {
    margin-top: 0;
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.link-arrow {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.service-card:hover .link-arrow {
    gap: 12px;
}

/* Awesome Gallery Items */
.project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.project-item:hover img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Google Style Reviews --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Clean, Google-like shadow */
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.1rem;
}

.reviewer-info strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.review-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.review-source-icon {
    width: 24px;
    height: 24px;
    position: absolute;
    right: 0;
    top: 0;
}

.review-stars {
    color: #F59E0B;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.review-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    font-style: italic;
}

/* --- Gallery Improvements --- */
.hidden-project {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.project-item img {
    /* Improve sharpness */
    image-rendering: -webkit-optimize-contrast;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3001;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.next {
    right: -60px;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: -60px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media(max-width: 768px) {

    .prev,
    .next {
        background-color: rgba(0, 0, 0, 0.1);
        /* Hide arrows on mobile effectively as swipe is primary, 
           or keep them subtle */
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

/* --- Advanced WhatsApp CTA --- */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-float {
    background-color: #25d366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
    position: static;
    /* Reset absolute positioning from old style */
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-bubble {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
    color: #334155;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    animation: bounce 2s infinite;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
}

.whatsapp-bubble .arrow-down {
    /* Simple CSS Arrow */
    /* Handled by bubble positioning mostly, logic simplified */
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.popup-content {
    background: white;
    padding: 2rem;
    /* Optimized spacing */
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    /* Prevent overflow on small screens */
    overflow-y: auto;
    /* Enable scrolling if content is tall */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border-top: 5px solid var(--secondary-color);
}

.popup-overlay.show .popup-content {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
    padding: 0 10px;
    transition: color 0.3s;
}

.close-popup:hover {
    color: var(--secondary-color);
}

.popup-title {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.popup-subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.popup-form .form-group {
    margin-bottom: 15px;
}

.popup-form input,
.popup-form select,
.popup-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
    background: #f8fafc;
}

.popup-form input:focus,
.popup-form select:focus,
.popup-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

.popup-submit-btn {
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.popup-submit-btn:hover {
    background-color: #92400e;
    transform: translateY(-2px);
}

/* --- Premium Hero Section --- */
.hero-premium {
    position: relative;
    height: 85vh;
    /* Taller, more impressive */
    min-height: 600px;
    overflow: hidden;
    background: #0f172a;
    /* Fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* --- Inner Page Header (Shorter) --- */
.page-header {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 0;
}

.page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.page-header .hero-subtitle {
    margin-bottom: 15px;
}

.page-header .hero-trust {
    margin-top: 20px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .page-header {
        height: 40vh;
        min-height: 300px;
        background-attachment: scroll;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* Hero Background Slider */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.02);
    /* Subtle zoom effect */
    transition: opacity 1.5s ease-in-out, transform 6s ease;
}

/* Slide Images */
.hero-slide-1 {
    background-image: url('../img/hero/IMG-20230516-WA0026-1.jpg');
}

.hero-slide-2 {
    background-image: url('../img/hero/Garden-17.jpeg');
}

.hero-slide-3 {
    background-image: url('../img/hero/Garden-16.jpeg');
}

.hero-slide-4 {
    background-image: url('../img/hero/Garden-6.jpeg');
}

@media (max-width: 768px) {
    .hero-premium {
        background-image: none;
    }

    .hero-slide-1 {
        background-image: url('../img/hero_mobile.jpeg');
    }
}

@media (max-width: 768px) {
    .hero-premium {
        background-image: url('../img/hero_mobile.jpeg');
        background-attachment: scroll;
        /* Disable parallax on mobile for performance */
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-subtitle {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.hero-premium h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-premium p {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
}

.hero-premium .btn-glow {
    box-shadow: 0 0 20px rgba(180, 83, 9, 0.5);
    animation: pulse-glow 2s infinite;
}

.hero-premium .btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    margin-left: 15px;
}

.hero-premium .btn-glass:hover {
    background: white;
    color: var(--primary-color);
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
    font-weight: 500;
    color: #f1f5f9;
    font-size: 1.1rem;
}

.hero-trust i {
    color: var(--secondary-color);
    margin-right: 8px;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(180, 83, 9, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(180, 83, 9, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(180, 83, 9, 0);
    }
}

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

    .hero-premium .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .hero-premium {
        height: auto;
        padding: 100px 0;
    }
}

/* --- Legacy Section --- */
.legacy-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.legacy-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.legacy-content p {
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.7;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    justify-content: space-between;
}

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

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: 'Cinzel', serif;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.legacy-services {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.legacy-services h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
}

.legacy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legacy-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.legacy-list li i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .legacy-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
}

/* --- Reviews Carousel --- */
.reviews-slider-container {
    position: relative;
    max-width: 1400px;
    /* Increased to allow full visibility */
    width: 100%;
    margin: 40px auto 0;
    padding: 0 50px;
    /* Keep arrow space */
}

.reviews-track-window {
    overflow: hidden;
    padding: 20px 0;
    /* Space for shadows */
}

.reviews-track {
    display: flex;
    gap: 30px;
    cursor: grab;
    overflow-x: auto;
    /* Fallback */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
}

.reviews-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome */
}

.review-card.slide {
    flex: 0 0 calc((100% - 60px) / 3);
    /* Dynamic width to fill space completely */
    max-width: none;
    border-top: 4px solid var(--secondary-color);
    /* Premium accent */
}

@media (max-width: 1024px) {
    .review-card.slide {
        flex: 0 0 calc((100% - 30px) / 2);
        /* 2 cards on tablet */
    }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 30px rgba(180, 83, 9, 0.3);
}

.prev-review {
    left: -20px;
}

.next-review {
    right: -20px;
}

.trust-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.trust-score .score {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    font-family: 'Cinzel', serif;
}

.trust-score .stars {
    font-size: 1.3rem;
    color: #F59E0B;
}

.trust-score .total {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .reviews-slider-container {
        padding: 0 15px;
        /* Minimal padding */
        position: relative;
    }

    /* Hide arrows on mobile */
    .slider-arrow {
        display: none !important;
    }

    .reviews-track-window {
        overflow: visible;
        width: 100%;
        padding: 0;
    }

    .reviews-track {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 0;
        padding-right: 0;
        scroll-snap-type: x mandatory;
        gap: 0;
        display: flex;
        padding-bottom: 25px;
    }

    .review-card.slide {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        scroll-snap-align: center;
        margin: 0;
        padding: 30px;
        height: auto !important;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
    }

    .review-text {
        font-size: 0.95rem;
        height: auto;
        overflow: visible;
        display: block;
        word-wrap: break-word;
    }
}

/* --- Utility for Legacy Title --- */
@media(min-width: 900px) {
    .legacy-title {
        white-space: nowrap;
        font-size: 2.5rem;
        /* Ensure punchy size */
    }
}


/* Closing brace added here */


/* --- Critical Mobile Optimizations --- */
@media (max-width: 768px) {

    /* 1. Reduce hero text size to prevent viewport domination */
    .hero-premium h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .hero-premium p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* 2. Fix Legacy Stats: Use 2x2 Grid instead of cramped row */
    .stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: center;
        width: 100%;
        margin-top: 30px;
    }

    .stat-item {
        margin-bottom: 15px;
        /* Ensure items don't stretch weirdly */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .stat-number {
        font-size: 1.8rem;
        /* Slightly smaller for mobile context */
    }

    /* 3. Mobile Gallery: 2 Columns! Huge improvement over single stack */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .project-item {
        height: 140px;
        /* Reduced height for 2-column layout */
    }

    /* 4. Tighter List Spacing */
    .legacy-list li {
        padding: 8px 0;
        font-size: 0.95rem;
    }

    /* 5. Consistent Section Padding */
    .section-padding {
        padding: 60px 0;
    }

    /* 6. Review Card Width Adjustment */
    .review-card.slide {
        flex: 0 0 85vw;
        max-width: 85vw;
    }
}

/* --- New Header Phone Layout (3 Numbers) --- */
/* --- New Header Phone Layout (3 Numbers) --- */
.header-cta-group {
    display: none;
}

.phone-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    /* Smaller for mobile */
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1.2;
}

.phone-line i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

@media(min-width: 900px) {
    .header-cta-group {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 8px;
        margin-left: 20px;
    }

    .phone-line {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.4;
        justify-content: flex-end;
        padding: 2px 0;
        width: 100%;
    }

    .phone-line i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }

    .phone-line:hover {
        color: var(--secondary-color);
    }
}

/* --- Master Builders Image Overlay --- */
.premium-overlay {
    position: relative;
}

.innovative-overlay {
    position: absolute;
    bottom: 25px;
    right: -25px;
    background: rgba(255, 255, 255, 0.98);
    padding: 25px 35px;
    border-radius: 2px;
    border-left: 6px solid var(--secondary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    min-width: 240px;
    z-index: 10;
    text-align: left;
}

.overlay-year {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.overlay-desc {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .innovative-overlay {
        right: 0;
        bottom: 0;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-top: 5px solid var(--secondary-color);
        text-align: center;
        padding: 20px;
    }
}

/* --- Optimized Popup Performance (NO BLUR) --- */
.popup-overlay {
    will-change: opacity, visibility;
    transform: translateZ(0);
    background: rgba(15, 23, 42, 0.92);
    /* Dark solid background */
    backdrop-filter: none !important;
    /* REMOVE BLUR */
    -webkit-backdrop-filter: none !important;
}

/* --- Hero Readability Fix --- */
.hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
}

.hero-content {
    background: rgba(15, 23, 42, 0.7);
    /* Dark semi-transparent box */
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    /* Optional premium feel, remove if slow */
    -webkit-backdrop-filter: blur(10px);
}

.hero-premium h1 {
    text-shadow: none;
    /* Box handles contrast */
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-premium p {
    color: #e2e8f0;
    text-shadow: none;
    font-weight: 400;
}

/* --- Amazing Floating Buttons (Aligned) --- */
.contact-floats {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    /* Pass clicks through wrapper */
    width: 100%;
    max-width: 1420px;
    /* Align with site design */
    height: 0;
    z-index: 2000;
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    border-radius: 50%;
    position: absolute;
    /* Relative to wrapper */
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: white;
    z-index: 1000;
    text-decoration: none;
    font-size: 30px;
    pointer-events: auto;
    /* Re-enable clicks */
}

/* --- New Contact Floating Button --- */
.phone-float {
    position: absolute;
    /* Relative to wrapper */
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s;
    animation: phone-pulse 3s infinite;
    pointer-events: auto;
    /* Re-enable clicks */
}

.phone-float:hover {
    transform: scale(1.1);
}

.back-to-top {
    position: absolute;
    bottom: 175px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.back-to-top:hover {
    background-color: #92400e;
    transform: translateY(-5px);
}

@keyframes phone-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.5);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(15, 23, 42, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0);
    }
}

/* --- High Visibility Lightbox Controls --- */
.close-lightbox {
    top: 20px;
    right: 20px;
    font-size: 2rem !important;
    /* Reduced size, kept visibility */
    font-weight: 900;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    line-height: 45px;
    text-align: center;
    border-radius: 8px;
    z-index: 2000;
    cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
    font-size: 2rem !important;
    /* Reduced size */
    font-weight: 900;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    opacity: 1 !important;
    cursor: pointer;
    z-index: 2000;
    user-select: none;
}

.lightbox .prev:hover,
.lightbox .next:hover,
.close-lightbox:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Arrow triangle for tooltip */


@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Footer Icon Alignment Fix --- */
.footer-column ul li i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    display: inline-block;
}

.footer-column ul li {
    display: flex;
    align-items: center;
}

/* --- Review Dots Pagination --- */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    width: 100%;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.3);
    box-shadow: 0 2px 5px rgba(180, 83, 9, 0.3);
}