:root {
    --primary-blue: #0077cc;
    --secondary-blue: #005599;
    --dark-grey: #333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
}

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

img {
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
    text-align: center;
}

.section-title--left {
    text-align: left;
}

/* ── Header & Nav ────────────────────────────────────────────────────────── */

header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 90px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.25rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-grey);
    padding: 0.5rem 1rem;
    font-weight: bold;
}

.nav-phone {
    color: var(--primary-blue) !important;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/before_1.jpeg') no-repeat center center/cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 4rem 0;
}

.hero .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; }

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ── Cards / Grid ────────────────────────────────────────────────────────── */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-blue);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.bg-light {
    background: var(--light-grey);
}

/* ── Gallery — paired before/after ──────────────────────────────────────── */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.gallery-pair-img {
    position: relative;
    overflow: hidden;
}

.gallery-pair-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-pair-img:hover img {
    transform: scale(1.04);
}

.img-label {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
}

.before-label { background: rgba(0, 0, 0, 0.60); }
.after-label  { background: rgba(0, 119, 204, 0.80); }

/* ── Bottom row: testimonials + contact side by side ────────────────────── */

.bottom-grid {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
}

.bottom-grid > div {
    flex: 1;
    min-width: 0;
}

.bottom-grid .testimonials-grid {
    grid-template-columns: 1fr;
}

/* ── Testimonials ────────────────────────────────────────────────────────── */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-blue);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card span {
    display: block;
    color: var(--secondary-blue);
    font-weight: bold;
    font-size: 0.9rem;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */

.contact-info {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ── Forms & Buttons ─────────────────────────────────────────────────────── */

.btn-large {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn-large:hover { background: var(--secondary-blue); }

.btn-primary {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-blue);
}

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

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

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
    background: var(--dark-grey);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-service-area {
    margin-top: 0.4rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-credit {
    margin-top: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero {
        min-height: 55vh;
        padding: 3rem 0;
    }

    .hero h1 { font-size: 2rem; }

    .hero p { font-size: 1rem; }

    .hero .container { padding: 0 1rem; }

    .logo {
        justify-content: center;
        width: 100%;
    }

    .logo img { max-height: 110px; }

    .section-title { font-size: 1.6rem; }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-pair-img img {
        height: 160px;
    }

    .bottom-grid {
        flex-direction: column;
    }
}
