/* =====================
   RESET & VARIABLES
   ===================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg:           #1a1a1a;
    --bg-dark:      #141414;
    --text:         #ffffff;
    --text-muted:   rgba(255,255,255,0.68);
    --green:        #4d7c5a;
    --green-hover:  #3c6448;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius:       1rem;
}

html { scroll-behavior: smooth; }

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

a    { color: inherit; text-decoration: none; }
img  { display: block; max-width: 100%; }


/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border-radius: 2rem;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
}

.btn-green            { background: var(--green); color: #fff; }
.btn-green:hover      { background: var(--green-hover); }
.btn-sm               { padding: 0.5rem 1rem; font-size: 0.68rem; }


/* =====================
   NAVIGATION
   ===================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2.5rem;
}

.nav-logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.9;
}


/* =====================
   HERO
   ===================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 520px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.32) 0%,
        rgba(0,0,0,0)    40%,
        rgba(0,0,0,0.18) 100%
    );
}

.hero-text {
    position: absolute;
    top: 62%;
    right: 6%;
    transform: translateY(-50%);
    text-align: right;
    max-width: 58%;
}

.hero-text h1 {
    font-size: clamp(1.9rem, 4.5vw, 3.8rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.08;
    color: #fff;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}


/* =====================
   WHAT WE DO
   ===================== */
.what-we-do {
    background: var(--bg);
    padding: 5rem 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.wwd-top {
    flex: 1;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
}

.wwd-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding-top: 0.2rem;
}

.wwd-text p {
    font-size: 1.25rem;
    line-height: 1.78;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

/* Image sits beside the text */
.wwd-image {
    flex-shrink: 0;
    width: 42%;
    height: auto;
    border-radius: 1.5rem;
    display: block;
}


/* =====================
   SERVICES CAROUSEL
   ===================== */
.services {
    background: var(--bg);
    padding: 5rem 2.5rem;
}

.services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.services-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.08;
}

.carousel-wrap {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.carousel-btn {
    flex-shrink: 0;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover { background: var(--green-hover); }

.carousel-track-wrap {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 0 0.5rem;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-img-contain { background: #1c2b1a; }
.card-img-contain img { object-fit: contain; }

.card-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.card-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.dot.active {
    background: var(--green);
    transform: scale(1.3);
}


/* =====================
   COMPARISON SLIDER
   ===================== */
.comparison-section {
    background: var(--bg);
    padding: 5rem 2.5rem;
}

.comparison-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.comparison-intro h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.comparison-intro p {
    font-size: 1rem;
    color: var(--text-muted);
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    user-select: none;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: col-resize;
    user-select: none;
}

/* Both images fill the container */
.comp-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

/* The "before" wrapper clips the maps image to the left */
.comp-before-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.comp-before-wrap .comp-img {
    /* Keep image at full container width so it doesn't scale with the clip */
    width: var(--slider-width, 900px);
    max-width: none;
}

/* Labels */
.comp-label {
    position: absolute;
    top: 1rem;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    pointer-events: none;
}

.comp-label-left  { left: 1rem; }
.comp-label-right { right: 1rem; }

/* Handle */
.comp-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.comp-handle-line {
    flex: 1;
    width: 2px;
    background: #fff;
}

.comp-handle-circle {
    flex-shrink: 0;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}


/* =====================
   CTA SECTION
   ===================== */
.cta-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    padding: 7rem 5rem;
    background: var(--bg);
}

.cta-img {
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius);
    justify-self: center;
}

.cta-text h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.cta-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.78;
    margin-bottom: 1.5rem;
}


/* =====================
   TESTIMONIALS
   ===================== */
.testimonials {
    background: var(--bg);
    padding: 6rem 5rem;
    text-align: center;
}

.testimonials h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 4rem;
}

.testimonial-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.testimonial blockquote {
    font-size: 1.1rem;
    line-height: 1.82;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.testimonial cite {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.slider-btn {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.2s;
}

.slider-btn:hover { background: var(--green-hover); }


/* =====================
   FOOTER
   ===================== */
.footer {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(30deg,  #1f1f1f 12%, transparent 12.5%, transparent 87%, #1f1f1f 87.5%, #1f1f1f),
        linear-gradient(150deg, #1f1f1f 12%, transparent 12.5%, transparent 87%, #1f1f1f 87.5%, #1f1f1f),
        linear-gradient(30deg,  #1f1f1f 12%, transparent 12.5%, transparent 87%, #1f1f1f 87.5%, #1f1f1f),
        linear-gradient(150deg, #1f1f1f 12%, transparent 12.5%, transparent 87%, #1f1f1f 87.5%, #1f1f1f),
        linear-gradient(60deg, #222 25%, transparent 25.5%, transparent 75%, #222 75%, #222),
        linear-gradient(60deg, #222 25%, transparent 25.5%, transparent 75%, #222 75%, #222);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    padding: 4rem 2.5rem;
}

.footer-content h3 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.footer-content a { color: var(--text-muted); }
.footer-content a:hover { color: #fff; }


/* =====================
   CONTACT PAGE
   ===================== */
.contact-hero {
    padding: 12rem 2.5rem 6rem;
    text-align: center;
    background: var(--bg);
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.2rem;
}

.contact-hero p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

.contact-form-section {
    padding: 4rem 2.5rem 7rem;
    background: var(--bg);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group { margin-bottom: 1.8rem; }

.form-group-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.field-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    margin-top: 1rem;
}

.field-label:first-of-type { margin-top: 0; }

.req { font-weight: 400; opacity: 0.6; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field { display: flex; flex-direction: column; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #e5e0da;
    border: none;
    border-radius: 0.4rem;
    font-family: var(--font);
    font-size: 0.9rem;
    color: #2a2a2a;
    outline: none;
    transition: box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 2px var(--green);
}

.contact-form select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 4.5L11 1' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    background-color: #e5e0da;
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 0.75rem;
}

.contact-form input[type="checkbox"] {
    width: auto;
    padding: 0;
    accent-color: var(--green);
}

.contact-form .btn {
    margin-top: 0.5rem;
    padding: 0.8rem 2.2rem;
    font-size: 0.78rem;
}


/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
    .cta-section {
        grid-template-columns: 1fr;
        padding: 5rem 2rem;
        gap: 2.5rem;
    }
    .cta-img { max-width: 320px; }
}

@media (max-width: 768px) {
    .nav { padding: 1rem 1.25rem; }

    .hero-text {
        right: 4%;
        max-width: 82%;
    }

    .what-we-do { flex-direction: column; gap: 2rem; }

    .wwd-top {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .wwd-image { width: 100%; border-radius: 0.75rem; }

    .services { padding: 4rem 1.25rem; }

    .services-header { flex-direction: column; align-items: flex-start; gap: 1rem; }

    .service-card { grid-template-columns: 1fr; gap: 1.5rem; }

    .carousel-btn { width: 2.2rem; height: 2.2rem; font-size: 0.9rem; }

    .testimonials { padding: 4rem 1.5rem; }
    .footer       { padding: 3rem 1.5rem; }

    .form-row { grid-template-columns: 1fr; }
}
