/* RESET & VARIABLES */
:root {
    --bg-color: #F4F1EA;
    --text-color: #1A1A1A;
    --accent-black: #000000;
    --accent-white: #FFFFFF;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

a { text-decoration: none; color: inherit; }

/* NAVBAR */
.navbar {
    padding: 15px 0;
    background-color: var(--bg-color);
}

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

/* LOGO CONTAINER */
.logo-link {
    display: flex; /* Ensures the anchor tag wraps the image tightly */
    align-items: center;
    text-decoration: none;
}

/* DESKTOP LOGO SETTINGS */
.nav-logo {
    height: 90px;       /* Force 90px height */
    width: auto;        /* Let width calculate automatically */
    max-width: none;    /* Remove limits */
    object-fit: contain;
    flex-shrink: 0;     /* Prevent flexbox from squashing it */
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center; /* Vertically center buttons with the larger logo */
}

/* BUTTONS */
.btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary, .btn-primary-large {
    background-color: var(--accent-black);
    color: var(--accent-white);
    border: 1px solid var(--accent-black);
}

.btn-secondary, .btn-secondary-large {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #D1D1D1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* HERO SECTION */
.hero-section { padding: 60px 0; }

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #000;
}

.hero-sub {
    font-size: 1.2rem;
    color: #4A4A4A;
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.trust-pills {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

/* ========================================= */
/* 🔧 FIXED COMPARISON SLIDER STYLES */
/* ========================================= */
.comparison-slider {
    position: relative;
    width: 100%;
    /* No fixed height - we let the image define it now */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    line-height: 0; 
}

.comparison-slider figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

/* CRITICAL FIX: The first image (Before) stays RELATIVE to hold the box open */
.comparison-slider figure:first-of-type {
    position: relative; 
    z-index: 1;
}

/* The second image (After) sits ABSOLUTE on top */
.comparison-slider figure:nth-of-type(2) {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.comparison-slider img {
    width: 100%;
    height: 100%; /* Matches the container height defined by the first image */
    object-fit: cover;
    display: block;
}

/* Slider Handle */
#slider-range {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: col-resize;
    z-index: 10;
    -webkit-appearance: none;
    margin: 0;
}

.slider-divisor {
    position: absolute;
    top: 0; bottom: 0;
    width: 4px;
    background: #fff;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.label {
    position: absolute;
    top: 20px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.8);
    color: #000;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 4;
}
.comparison-slider figure:first-of-type .label { left: 20px; }
.comparison-slider figure:nth-of-type(2) .label { right: 20px; }

/* SERVICES GRID */
.services-section {
    padding: 80px 0;
    background: #fff;
    border-radius: 20px;
    margin-top: 40px;
}

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

/* FOOTER */
.site-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}
.footer-links a { margin: 0 10px; font-size: 14px; color: #666; }


/* ========================================= */
/* 📱 MOBILE RESPONSIVE RULES (Max Width 768px) */
/* ========================================= */
@media (max-width: 768px) {
    
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-logo {
        height: 50px; /* Smaller mobile logo */
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-links .btn {
        padding: 8px 15px; 
        font-size: 12px;
    }

    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-layout {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 40px;
    }
    
    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-sub {
        font-size: 1rem;
        margin: 0 auto 20px auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .btn-primary-large, .btn-secondary-large {
        width: 100%;
        text-align: center;
    }
    
    .trust-pills {
        justify-content: center;
        font-size: 0.8rem;
    }

    /* Important: Center the slider container */
    .hero-visual {
        margin: 0 auto;
        width: 100%;
    }
    
    .pricing-grid, .portfolio-grid, .comparison-row {
        grid-template-columns: 1fr !important;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
}

/* EXTENDED SERVICES GRID */
.services-section {
    padding: 80px 0;
    background: #fff;
    border-radius: 20px; /* Slight curve to separate from Hero */
    margin: 40px 0;
}

.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

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

.service-card {
    background: #F9F9F9;
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.2s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #ddd;
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0;
}

.service-card li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

/* Custom Bullet Point */
.service-card li::before {
    content: "•";
    color: #d4af37; /* Gold accent color for bullets */
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* --- NEW HERO LAYOUT (Split Screen) --- */
.hero-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;  /* Reduced from 60px to tighten top/bottom */
    gap: 40px;
    /* REMOVED 'min-height: 80vh' -> This was causing the huge gap on big screens */
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img-static {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-img-static:hover {
    transform: rotate(0deg) scale(1.02);
}

/* --- COMPACT SLIDER SECTION --- */
.demo-section {
    background: #f9f9f9;
    padding: 40px 0 80px 0; /* Reduced TOP padding from 80px to 40px to pull it up */
    text-align: center;
}

.slider-container-compact {
    max-width: 500px;
    height: 600px;
    margin: 30px auto; /* Reduced margin */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 4px solid #fff;
}

/* --- MOBILE RESPONSIVENESS (Unchanged functionality, just safer spacing) --- */
@media (max-width: 900px) {
    .hero-new {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        /* min-height removed here automatically since we removed it above */
    }

    .hero-text h1 { font-size: 2.5rem; }
    
    .hero-visual {
        margin-top: 40px;
        width: 100%;
    }
    
    .hero-img-static {
        width: 100%;
        transform: rotate(0deg);
    }

    .hero-text { order: 1; }
    .hero-visual { order: 2; }
}
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .hero-new {
        flex-direction: column; /* Stack them */
        text-align: center;
        padding-top: 40px;
        min-height: auto;
    }

    .hero-text h1 { font-size: 2.5rem; }
    
    .hero-visual {
        margin-top: 40px;
        width: 100%;
    }
    
    .hero-img-static {
        width: 100%;
        transform: rotate(0deg); /* No rotation on mobile to save space */
    }

    /* Important: On mobile, ensure text is 1st, image 2nd */
    .hero-text { order: 1; }
    .hero-visual { order: 2; }
}