/* Alltask Residential Painting Landing Page */

:root {
    --green-dark: #1a3c2a;
    --green-mid: #2d5a3d;
    --green-olive: #8fa63a;
    --green-light: #a8bc4a;
    --top-bar: #0f2a1e;
    --text-dark: #2c2c2c;
    --text-muted: #666;
    --bg-cream: #f5f3ef;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Bar */
.top-bar {
    background: var(--top-bar);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.top-bar a:hover {
    opacity: 0.85;
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Header */
.header {
    background: var(--white);
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 56px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--green-olive);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
}

.header .btn-primary {
    background: var(--green-dark);
    color: var(--white);
}

.header-call {
    display: none;
}

.header-contact {
    display: inline-block;
}

@media (max-width: 768px) {
    .header-call {
        display: inline-block;
    }

    .header-contact {
        display: none;
    }
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--green-dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-mid);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-olive {
    background: var(--green-olive);
    color: var(--white);
}

.btn-olive:hover {
    background: #7a9232;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 0.85rem;
}

/* Hero */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1564013838968-717aef0e83b3?w=1920&q=80') center/cover no-repeat;
    min-height: 620px;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(15, 42, 30, 0.88) 0%, rgba(26, 60, 42, 0.82) 100%);
    padding: 60px 0 0;
    min-height: 620px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

.hero-content {
    color: var(--white);
    padding-top: 20px;
}

.hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 12px;
    opacity: 0.95;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
    opacity: 0.92;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Quote Form */
.quote-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 28px 24px;
    box-shadow: var(--shadow);
}

.quote-form-card h2 {
    font-family: var(--font-heading);
    color: var(--green-olive);
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.quote-form-card .subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-group label .required {
    color: #c0392b;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-olive);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-privacy {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

.form-error {
    background: #fdecea;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

/* Stats Bar */
.stats-bar {
    background: var(--green-dark);
    padding: 28px 0;
    margin-top: -1px;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item {
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section Common */
.section {
    padding: 70px 0;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--green-olive);
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-intro {
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 36px;
}

/* Why Choose */
.why-section {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.why-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.why-feature h3 {
    font-size: 0.95rem;
    color: var(--green-olive);
    margin-bottom: 6px;
}

.why-feature p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.why-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-images img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
}

.why-images img:first-child {
    height: 260px;
}

.why-images img:last-child {
    height: 220px;
}

/* Services */
.services-section {
    background: var(--bg-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-ba {
    min-height: 180px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 180px;
}

.service-card-content {
    padding: 24px 28px;
    position: relative;
}

.service-card-content::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q25 30 50 50 T100 50' fill='none' stroke='%23e8e6e0' stroke-width='1'/%3E%3C/svg%3E") repeat;
    opacity: 0.5;
    pointer-events: none;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--green-olive);
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-bottom: 10px;
    position: relative;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    position: relative;
}

/* Before & After Compare */
.ba-compare {
    position: relative;
    width: 100%;
    user-select: none;
    touch-action: none;
}

.ba-compare-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ddd;
    cursor: ew-resize;
}

.ba-compare img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-after {
    position: relative;
    z-index: 1;
}

.ba-before-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid var(--white);
}

.ba-before {
    width: 200%;
    max-width: none;
    height: 100%;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ba-handle span {
    display: block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231a3c2a'%3E%3Cpath d='M8 5v14l-5-5 5-5zm8 0l5 5-5 5V5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.ba-label {
    position: absolute;
    bottom: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 4;
    pointer-events: none;
}

.ba-label-before {
    left: 10px;
}

.ba-label-after {
    right: 10px;
}

.ba-compare-sm .ba-compare-inner {
    aspect-ratio: 16 / 10;
}

.ba-compare-service .ba-compare-inner {
    border-radius: 0;
    aspect-ratio: auto;
    height: 100%;
    min-height: 180px;
}

.ba-compare-service .ba-label {
    display: none;
}

/* Gallery */
.gallery-section {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.gallery-item {
    text-align: center;
}

.gallery-caption {
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.gallery-note {
    text-align: center;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.gallery-note code {
    background: var(--bg-cream);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.82rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 200;
    background: #25d366;
    color: var(--white);
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
    color: var(--white);
}

@media (max-width: 768px) {
    .whatsapp-float {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }
}

/* Process */
.process-section {
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius);
    background: var(--bg-cream);
    transition: background 0.2s;
}

.process-step:hover {
    background: #ebe8e2;
}

.process-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-olive);
    margin-bottom: 12px;
}

.process-step h3 {
    font-size: 0.95rem;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Testimonials */
.testimonials-section {
    background: var(--green-dark);
    color: var(--white);
    text-align: center;
}

.testimonials-section .section-title {
    color: var(--white);
}

.testimonials-section .section-label {
    color: var(--green-light);
}

.section-intro-center {
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-slider {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 860px;
    margin: 48px auto 0;
}

.testimonial-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 320px;
}

.testimonial-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.testimonial-quote-icon {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    color: var(--green-olive);
    margin-bottom: 8px;
    opacity: 0.7;
}

.testimonial-stars {
    color: #f4b400;
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto 32px;
    border: none;
    padding: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green-olive);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.testimonial-author-info {
    text-align: left;
}

.testimonial-author-info cite {
    display: block;
    font-style: normal;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.testimonial-author-info span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.testimonial-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.testimonial-nav:hover {
    background: var(--green-olive);
    border-color: var(--green-olive);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.testimonial-dot.active {
    background: var(--green-olive);
    transform: scale(1.3);
}

.testimonial-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Areas */
.areas-section {
    background: var(--green-dark);
    color: var(--white);
    text-align: center;
}

.areas-section .section-title {
    color: var(--white);
}

.areas-section .section-intro {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 36px;
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.area-tag {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.area-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* CTA / Contact */
.cta-section {
    background: var(--bg-cream);
    text-align: center;
}

.cta-section .section-title {
    margin-bottom: 8px;
}

.cta-phone {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-dark);
    margin: 16px 0 8px;
    display: block;
}

.cta-phone:hover {
    color: var(--green-olive);
}

.cta-email {
    color: var(--green-olive);
    font-weight: 600;
    font-size: 1rem;
}

.cta-email:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--top-bar);
    color: rgba(255, 255, 255, 0.8);
    padding: 24px 0;
    font-size: 0.85rem;
    text-align: center;
}

.footer a {
    color: var(--green-light);
}

/* Thank You Page */
.thankyou-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.thankyou-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    padding: 80px 24px;
    text-align: center;
}

.thankyou-content {
    max-width: 560px;
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    background: var(--green-olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.thankyou-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.thankyou-content h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--green-dark);
    margin-bottom: 16px;
}

.thankyou-content p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 1rem;
}

.thankyou-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .quote-form-card {
        max-width: 480px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-images {
        order: -1;
        flex-direction: row;
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonial-text {
        font-size: 1.15rem;
    }

    .service-card {
        grid-template-columns: 160px 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 16px;
    }

    .nav.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .header .container {
        position: relative;
        flex-wrap: wrap;
    }

    .header .btn-primary.header-contact {
        display: none;
    }

    .header .btn-primary.header-call {
        display: inline-block;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .stats-bar .container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 16px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .why-features {
        grid-template-columns: 1fr;
    }

    .why-images {
        flex-direction: column;
    }

    .why-images .ba-compare-sm {
        flex: 1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .service-ba {
        height: 180px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-slider {
        flex-direction: column;
        gap: 16px;
    }

    .testimonial-nav {
        display: none;
    }

    .testimonial-viewport {
        min-height: 360px;
    }

    .testimonial-text {
        font-size: 1.05rem;
    }

    .testimonial-quote-icon {
        font-size: 3.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
