/* --- Brand Variables & Setup --- */
:root {
    --brand-bg: #fefefe;
    --brand-cyan: #32cae1;
    --brand-green: #387a11;
    --brand-orange: #ff9d04;
    --text-dark: #2c3e50;
    --text-light: #6c7a89;
    --font-main: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--brand-bg);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.text-accent { color: var(--brand-cyan); }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* --- Typography --- */
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: #1a252f; }
p { margin-bottom: 1rem; color: var(--text-light); font-size: 1.1rem; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

/* New Cyan Button */
.btn-primary {
    background-color: var(--brand-cyan);
    color: #fff;
    box-shadow: 0 4px 10px rgba(50, 202, 225, 0.2);
}
.btn-primary:hover {
    background-color: #2ab5ca;
    transform: translateY(-2px);
}

/* Orange Accent Button */
.btn-accent {
    background-color: var(--brand-orange);
    color: #fff;
    box-shadow: 0 6px 15px rgba(255, 157, 4, 0.3);
}
.btn-accent:hover {
    background-color: #e68d03;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 157, 4, 0.4);
}

.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* --- Navigation --- */
.navbar {
    background-color: var(--brand-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo img { height: 80px; transition: transform 0.3s; }
.brand-logo:hover img { transform: scale(1.02); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--brand-cyan); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

/* --- Scroll Animations --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), 
                url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.hero h1 { color: #fff; font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero p { color: #f0f0f0; font-size: 1.25rem; margin-bottom: 2.5rem; }

/* --- Sections & Layouts --- */
.section { padding: 80px 0; }
.bg-light { background-color: #f4f7f6; }
.grid { display: grid; gap: 2.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(50, 202, 225, 0.1); }
.card-icon { margin-bottom: 1.5rem; color: var(--brand-cyan); }
.card-icon svg { width: 50px; height: 50px; fill: currentColor; }

/* Alternating Service Rows */
.service-row { display: flex; align-items: center; gap: 4rem; margin-bottom: 6rem; }
.service-row:nth-child(even) { flex-direction: row-reverse; }
.service-content { flex: 1; }
.service-visual { flex: 1; }

/* --- Before/After Image Slider --- */
.service-visual { 
    flex: 1; 
    width: 100%; /* Ensures it doesn't collapse on mobile */
}

.comparison-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Bulletproof way to force a 4:3 aspect ratio on all mobile browsers */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-after, .img-before { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; 
}

.img-before { 
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); 
    z-index: 2; 
}

.slider-input { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    opacity: 0; z-index: 4; cursor: ew-resize; 
    -webkit-appearance: none; /* Forces iOS to render the invisible slider properly */
    touch-action: none; /* Prevents the screen from scrolling when the user drags the slider on their phone */
}

.slider-handle { 
    position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; 
    background: #fff; transform: translateX(-50%); z-index: 3; pointer-events: none; 
    box-shadow: 0 0 10px rgba(0,0,0,0.5); 
}

.slider-handle::after {
    content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 46px; height: 46px; background: var(--brand-cyan); color: white; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slider-label { 
    position: absolute; bottom: 20px; padding: 6px 14px; background: rgba(0,0,0,0.6); 
    color: white; border-radius: 20px; font-size: 0.9rem; font-weight: 600; z-index: 3; pointer-events: none; 
}
.label-before { left: 20px; }
.label-after { right: 20px; }

/* --- Forms & Alerts --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: 8px; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--brand-cyan); }
.alert { padding: 1rem; margin-top: 1rem; border-radius: 8px; background-color: #e8f5e9; color: var(--brand-green); border: 1px solid var(--brand-green); text-align: center; font-weight: 600;}
.alert-danger { background-color: #ffebee; color: #c62828; border-color: #c62828; }
/* --- Footer --- */
footer { background-color: var(--text-dark); color: #fff; text-align: center; padding: 2rem 0; margin-top: auto; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background-color: var(--brand-bg); padding: 1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .service-row, .service-row:nth-child(even) { flex-direction: column; gap: 2rem; }
}

/* --- FAQ Accordion Styles --- */
.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.faq-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #eef2f3;
    overflow: hidden;
    transition: all 0.3s ease;
}
/* The Clickable Area */
.faq-question {
    list-style: none; /* Removes the default arrow */
    padding: 1.5rem 2rem;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    user-select: none;
}
.faq-chevron {
    font-size: 0.8rem;
    color: var(--brand-cyan);
    transition: transform 0.3s ease;
}
/* Hide default Chrome/Safari arrow */
.faq-question::-webkit-details-marker {
    display: none;
}
/* The Hidden Answer Area */
.faq-answer {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--text-light);
    border-top: 1px solid #f8f9fa;
    padding-top: 1rem;
}
/* Interaction Effects */
.faq-card[open] {
    box-shadow: 0 10px 25px rgba(50, 202, 225, 0.15);
    border-color: var(--brand-cyan);
}
.faq-card[open] .faq-chevron {
    transform: rotate(180deg);
}
.faq-question:hover {
    color: var(--brand-cyan);
    background-color: #fcfdfe;
}