/* =========================================================
   Russell James Kitchen Fitting — V2
   Clean mockup style (greens, boxed sections, clear CTA)
   ========================================================= */

:root {
    --green-dark: #0f3a2a;
    --green: #1f5a3d;
    --green-mid: #2f7a52;
    --green-btn: #3a8f5b;
    --bg: #f2f3f2;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #dcdfe0;
    --shadow: 0 10px 22px rgba(0,0,0,0.10);
    --shadow-soft: 0 6px 14px rgba(0,0,0,0.08);
    --max: 1040px;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit
}

/* ---------- NAV ---------- */
.navbar {
    background: linear-gradient(#194f35, #0f3a2a);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.nav-wrap {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 14px;
}

.brand {
    color: #fff;
    text-decoration: none;
    line-height: 1;
}

    .brand .top {
        font-weight: 700;
        font-size: 18px;
    }

    .brand .sub {
        font-size: 11px;
        opacity: 0.9;
        letter-spacing: 1.6px;
    }

.nav-links {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

    .nav-links a {
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        opacity: 0.92;
        padding: 8px 10px;
        border-radius: 6px;
    }

        .nav-links a:hover {
            background: rgba(255,255,255,0.08)
        }

        .nav-links a.active {
            text-decoration: underline;
            text-underline-offset: 6px;
        }

.cta {
    background: linear-gradient(#4aa66b, #2f7a52);
    border: 1px solid rgba(0,0,0,0.15);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* ---------- PAGE ---------- */
.page {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--panel);
    box-shadow: var(--shadow);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    height: 310px;
    background: url("assets/hero.jpeg") center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
}


.hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 26px;
    max-width: 700px;
}

.hero h1 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero p {
    color: rgba(255,255,255,0.95);
    margin: 0 0 14px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.15);
}

    .btn.primary {
        background: linear-gradient(#4aa66b, #2f7a52);
        color: #fff;
    }

    .btn.secondary {
        background: #fff;
        color: #0f3a2a;
    }

/* ---------- ICON STRIP ---------- */
.strip {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    max-width: var(--max);
    margin: 0 auto;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 12px;
}

    .strip-item svg {
        width: 18px;
        height: 18px;
        fill: var(--green-mid);
    }

/* ---------- AREA BAND ---------- */
.area-band {
    background: linear-gradient(#1f5a3d, #0f3a2a);
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 18px;
}

    .section h2 {
        text-align: center;
        font-size: 16px;
    }

.hr {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

/* ---------- ABOUT ---------- */
.about {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    border: 1px solid var(--border);
    padding: 14px;
}

    .about img {
        width: 180px;
        height: 120px;
        object-fit: cover;
    }

/* ---------- SERVICES ---------- */
.service-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    background: #f8f8f8;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12px;
}

/* ---------- WORK GRID ---------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

.work-card {
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.work-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: filter 0.2s ease;
}

.work-card:hover img {
    filter: brightness(0.9);
}

.work-card .cap {
    padding: 8px;
    text-align: center;
    font-size: 11px;
}

.work-card .location {
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 2px;
}

.work-card .job-type {
    color: var(--muted);
    font-size: 10px;
}

/* ---------- PROJECT MODAL ---------- */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.project-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    color: var(--green);
}

.modal-image-container {
    position: relative;
    grid-column: 1;
}

.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
}

.image-counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 5;
}

.image-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-nav.prev {
    left: 8px;
}

.image-nav.next {
    right: 8px;
}

.modal-info {
    grid-column: 2;
}

.modal-title {
    margin: 0 0 12px;
    color: var(--green-dark);
    font-size: 20px;
}

.modal-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.meta-item {
    font-size: 13px;
    color: var(--muted);
}

.meta-item strong {
    color: var(--text);
}

.modal-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 16px;
}

.modal-highlights h4 {
    margin: 12px 0 8px;
    font-size: 13px;
    color: var(--green-dark);
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    font-size: 13px;
    color: var(--text);
    padding-left: 16px;
    margin-bottom: 6px;
    position: relative;
}

.highlights-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green-btn);
    font-weight: bold;
}

@media (max-width: 640px) {
    .modal-content {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .modal-image {
        grid-column: 1;
        height: 180px;
    }

    .modal-info {
        grid-column: 1;
    }
}

/* ---------- BOTTOM PANELS ---------- */
.bottom {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 14px;
}

.panel {
    border: 1px solid var(--border);
    background: #fff;
}

    .panel .head {
        background: linear-gradient(#1f5a3d, #0f3a2a);
        color: #fff;
        padding: 10px 12px;
        font-weight: 700;
        font-size: 13px;
    }

    .panel .body {
        padding: 12px;
    }

label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin: 8px 0 4px;
}

input, textarea, select {
    width: 100%;
    border: 1px solid var(--border);
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
}

textarea {
    height: 86px
}

.form-btn {
    margin-top: 10px;
    background: linear-gradient(#4aa66b, #2f7a52);
    border: none;
    color: #fff;
    padding: 9px 12px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- FOOTER ---------- */
footer {
    background: #f8f8f8;
    border-top: 1px solid var(--border);
    padding: 14px;
    font-size: 12px;
    text-align: center;
}

/* ---------- CHAT ---------- */
.chat {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 8px 12px;
    box-shadow: var(--shadow-soft);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .chat .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--green-mid);
    }
