/* --- VARIABLES --- */
:root {
    --primary-orange: #f06a19;
    --primary-green: #0b5921;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-color: #333333;
    --white: #ffffff;
}

/* --- RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

.text-center { text-align: center; }
.orange { color: var(--primary-orange); }
.green { color: var(--primary-green); }
.bg-green { background-color: var(--primary-green); color: var(--white); }

/* --- BUTTONS --- */
.btn {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn:hover { background-color: #d1560e; }
.btn-large { padding: 15px 30px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* --- HEADER --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* New CSS to visually re-order and perfectly center the logo */
nav {
    order: 1;
    flex: 1; /* Takes up exactly 50% of the available side space */
    text-align: left;
}

.logo {
    order: 2;
    flex: 0; /* Prevents the logo from stretching */
    display: flex;
    justify-content: center;
}

.contact-btn {
    order: 3;
    flex: 1; /* Matches the nav space to keep the logo perfectly dead center */
    text-align: right;
}

nav a {
    margin: 0 15px;
    font-weight: 500;
    font-size: 22px;
}

/* Keeps the very first link flush with the left edge of the screen */
nav a:first-child {
    margin-left: 0; 
}

nav a:hover { color: var(--primary-orange); }

/* --- HERO SECTION --- */
#hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- TRUST BAR --- */
#trust-bar {
    background-color: var(--dark-bg);
    color: var(--white);
}

.trust-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    padding: 30px 0;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.trust-item h3 { font-size: 1rem; }

/* --- SERVICES --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-info { padding: 25px; }
.service-info h3 { margin-bottom: 10px; color: var(--primary-green); }

/* --- CONTACT FORM --- */
.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form select {
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

footer a { color: var(--primary-orange); }

/* --- BEFORE & AFTER SLIDER --- */
.ba-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ba-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-img {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--white);
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: var(--primary-orange);
    border: 3px solid var(--white);
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .hero-content h1 { font-size: 2.5rem; }
    
    /* Reverts the order on cell phones so the logo stays on top */
    .logo { order: 1; }
    nav { order: 2; text-align: center; }
    .contact-btn { order: 3; text-align: center; }
}

/* --- LUXURY SPLIT SECTIONS (Z-PATTERN) --- */
.split-section {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 0;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.split-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
}

.split-image {
    flex: 1;
}

.split-image img {
    width: 100%;
    height: 40vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Premium soft shadow */
}

/* Reverse layout for the Z-Pattern */
.split-reverse {
    flex-direction: row-reverse;
}

/* --- TRUST BADGE BAR --- */
#trust-badges {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 40px 0;
}

.badge-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 20px;
}

.badge-item i {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 10px;
}

.badge-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- TESTIMONIALS --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--light-bg);
    padding: 30px;
    border-left: 5px solid var(--primary-orange);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stars {
    color: #f5b301; /* Gold star color */
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.reviewer {
    font-weight: 800;
    color: var(--primary-green);
}

/* Responsive fixes for new sections */
@media (max-width: 768px) {
    .split-section, .split-reverse {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }
}

/* =========================================
   MOBILE RESPONSIVE FIXES
   ========================================= */

/* 1. The Floating Call Button Styling */
.floating-call-btn {
    display: none; /* Hidden on large desktop screens */
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #ff6b00; /* Citrus City Orange */
    color: #ffffff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999; /* Keeps it on top of everything */
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

/* Centers the phone icon perfectly inside the circle */
.floating-call-btn i {
    font-size: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.floating-call-btn:active {
    transform: scale(0.95); /* Little click animation */
}

/* 2. Mobile Screen Adjustments (Phones and small tablets) */
@media (max-width: 768px) {
    
    /* Show the floating button only on mobile */
    .floating-call-btn {
        display: block; 
    }

    /* Shrink the logo to a reasonable mobile size! 
       (!important forces it to override the HTML inline style) */
    header .logo img {
        height: 60px !important; 
        margin: 5px 0;
    }

    /* Reorganize the header so it takes up minimal space */
    .header-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    /* Make navigation links a bit smaller to fit */
    header nav a {
        font-size: 14px;
        margin: 0 10px;
    }

    /* Hide the big desktop "Call Now" button to save screen real estate,
       since they now have the floating button at the bottom! */
    header .contact-btn {
        display: none; 
    }
}

/* =========================================
   HORIZONTAL SCROLL & TYPOGRAPHY FIXES
   ========================================= */

/* 1. The Ultimate Safety Net: Lock the Body */
/* This tells the browser to cut off anything trying to push past the right side of the screen */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 2. Shrink Text on Mobile Screens */
@media (max-width: 768px) {
    
    /* Force those giant H1 tags to scale down to fit a phone screen */
    h1 {
        font-size: 2.2rem !important; /* Overrides the inline 3.5rem */
        line-height: 1.2;
        word-wrap: break-word; /* Forces extra-long words to wrap to the next line instead of breaking the layout */
    }

    /* Shrink the H2 section titles a bit too just to be safe */
    h2, .section-title {
        font-size: 1.8rem !important;
        padding: 0 10px;
    }

    /* Ensure containers never push past 100% width */
    .container {
        width: 100%;
        max-width: 100vw;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

/* =========================================
   PROMO POPUP MODAL STYLES
   ========================================= */
.popup-overlay {
    display: none; /* Hidden by default until the timer goes off */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Darkens the background */
    z-index: 10000; /* Forces it over the sticky header and floating button */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.popup-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease-out;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #ff6b00; /* Citrus City Orange */
}

/* Animations for a smooth entrance */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}