/* ============================================================
   McAfee Builders — Main Stylesheet
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
    --dark:        #111111;
    --dark-footer: #0a0a0a;
    --green:       #2c4a1e;
    --white:       #ffffff;
    --off-white:   #f4f3ef;
    --text:        #1a1a1a;
    --text-muted:  #6b6b6b;
    --border:      #e2e0db;
    --font:        'Plus Jakarta Sans', sans-serif;
    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   20px;
    --radius-pill: 50px;
    --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 44px rgba(0, 0, 0, 0.13);
    --transition:  0.22s ease;
}

/* --- Reset ------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Layout Utility --------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform var(--transition);
}

.btn:active {
    transform: scale(0.98);
}

/* Dark fill */
.btn-primary,
.btn-dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}
.btn-primary:hover,
.btn-dark:hover {
    background: #2e2e2e;
    border-color: #2e2e2e;
}

/* White outline — for use on photo/dark backgrounds */
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--dark);
}

/* Dark outline — for use on light backgrounds */
.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}
.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
}

/* Submit button — full width, rounded corners */
.btn-submit {
    width: 100%;
    padding: 15px 28px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    background: var(--dark);
    color: var(--white);
    border: 2px solid var(--dark);
    font-family: var(--font);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}
.btn-submit:hover {
    background: #2e2e2e;
    border-color: #2e2e2e;
}


/* ============================================================
   SECTION LABELS & HEADINGS
   ============================================================ */

/*
   IMPORTANT: background is --white (not --off-white) so the pill
   is visible on BOTH white sections and off-white sections.
*/
.section-label {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

/* Variant for dark/contact section */
.section-label-light {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(26px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 14px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.services-tagline {
    font-size: clamp(22px, 3vw, 36px) !important;
    font-weight: 800 !important;
    color: var(--text) !important;
    max-width: 680px !important;
    line-height: 1.2 !important;
}


/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 28px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    color: var(--dark);
}

.logo img {
    height: 34px;
    width: auto;
}

.logo span {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0 auto;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.nav-links a:hover {
    color: var(--green);
}

/* Right-side actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.nav-phone {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.nav-phone:hover {
    color: var(--green);
}

/* Hamburger — hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 24px 28px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu ul a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.mobile-menu ul a:hover {
    color: var(--green);
}

.mobile-phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.mobile-menu .btn {
    align-self: flex-start;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    background-image: url('images/kitchen-2.jpg');
    background-size: cover;
    background-position: center 55%;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.20) 0%,
        rgba(0, 0, 0, 0.50) 50%,
        rgba(0, 0, 0, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 28px 72px;
}

.hero-left {
    flex: 1;
    min-width: 0;
}

.location-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--green);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-left h1 {
    font-size: clamp(34px, 5vw, 68px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    max-width: 620px;
}

.hero-right {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero-right p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
}

.hero-license {
    font-size: 12px !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5) !important;
    letter-spacing: 0.04em;
    line-height: 1 !important;
    margin-top: -8px;
}


/* ============================================================
   SERVICES
   ============================================================ */
.services {
    padding: 96px 0;
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.service-body {
    padding: 18px 18px 22px;
}

.service-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding: 96px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-quote {
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 18px;
}

.about-body {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-license {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 32px;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* 4/3 is a landscape ratio — matches the wide interior photo */
    aspect-ratio: 4 / 3;
}

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


/* ============================================================
   PROJECT PREVIEW
   ============================================================ */
.projects-preview {
    padding: 96px 0;
    background: var(--off-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 44px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    background: var(--border); /* fallback while image loads */
}

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

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.70) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.project-location {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 3px;
}

.projects-cta {
    text-align: center;
}


/* ============================================================
   CONTACT / FORM
   ============================================================ */
.contact {
    padding: 96px 0;
    background: var(--dark);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

/* Left: info */
.contact-info h2 {
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-row:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-key {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.contact-val {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
}

a.contact-val:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* Right: form card */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-hidden {
    display: none;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b5b0a8;
}

/* Custom select arrow */
.form-group select {
    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 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 12px 7px;
    padding-right: 34px;
    cursor: pointer;
    color: var(--text);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--dark-footer);
    color: var(--white);
    padding: 60px 0 28px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 44px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

/*
   filter: invert(1) makes the black logo mark appear white.
   This works correctly if Logo/Untitled-2.png has a transparent background.
   If the logo has a white background, convert it to transparent in an image
   editor (free at remove.bg or Photoshop) for best results.
*/
.footer-logo {
    height: 32px;
    width: auto;
    filter: invert(1);
    opacity: 0.85;
}

.footer-brand span {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.footer-contact a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}


/* ============================================================
   RESPONSIVE — TABLET  (769px – 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .about-grid {
        gap: 48px;
    }

    .contact-grid {
        gap: 52px;
    }

    .hero-right {
        flex: 0 0 300px;
    }
}


/* ============================================================
   RESPONSIVE — MOBILE  (max 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* --- Nav --- */
    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-inner {
        padding: 14px 20px;
    }

    /* --- Hero --- */
    .hero {
        min-height: 68vh; /* fallback */
        min-height: 68svh;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 48px 20px 56px;
    }

    .hero-left h1 {
        font-size: 34px;
    }

    .hero-right {
        flex: none;
        width: 100%;
    }

    /* --- Services --- */
    .services {
        padding: 64px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .service-img {
        height: 220px;
    }

    /* --- About --- */
    .about {
        padding: 64px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-image {
        aspect-ratio: 16 / 9;
    }

    /* --- Projects --- */
    .projects-preview {
        padding: 64px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 32px;
    }

    /* Always show overlay on touch devices */
    .project-overlay {
        opacity: 1;
    }

    /* --- Contact --- */
    .contact {
        padding: 64px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .contact-form-wrap {
        padding: 24px 18px;
    }

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

    /* --- Footer --- */
    .footer-top {
        flex-direction: column;
        gap: 28px;
    }

    .footer-contact {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .container {
        padding: 0 20px;
    }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE  (max 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 30px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        font-size: 26px;
    }
}


/* ============================================================
   GALLERY MODAL
   ============================================================ */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.92);
    flex-direction: column;
    overflow-y: auto;
}

.gallery-modal.open {
    display: flex;
}

.gallery-modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.gallery-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.03em;
}

.gallery-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.gallery-close:hover {
    opacity: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 24px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity var(--transition), transform 0.3s ease;
    display: block;
}

.gallery-grid img:hover {
    opacity: 0.88;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 14px;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(0, 0, 0, 0.96);
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 48px;
    line-height: 1;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    opacity: 0.7;
    transition: opacity var(--transition), background var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 480px) {
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
    .lightbox-prev,
    .lightbox-next {
        font-size: 36px;
        padding: 8px 12px;
    }
}
