/* McCue Homes — site styles */

:root {
    --ink: #1f1f1d;
    --text: #3b3a36;
    --muted: #6e6c66;
    --line: #dcd8cf;
    --bg: #ffffff;
    --stone: #f3f1ec;
    --gold: #c9a24a;
    --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
    --body: "Barlow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

h1, h2, h3 {
    font-family: var(--heading);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.05;
    margin: 0;
}
h2 { font-size: clamp(34px, 4vw, 46px); margin-bottom: 20px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--ink);
    color: #fff;
    font: 600 17px var(--body);
    text-decoration: none;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s;
}
.btn:hover { background: #000; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.text-link svg { width: 18px; height: 18px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 52px; width: auto; mix-blend-mode: multiply; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 17px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--heading); font-weight: 700; font-size: 22px;
    color: var(--ink); text-decoration: none;
}
.nav-phone svg { width: 18px; height: 18px; color: var(--gold); }
.nav-toggle {
    display: none;
    background: none; border: 1px solid var(--line); border-radius: 3px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    color: var(--ink); cursor: pointer;
}

@media (min-width: 1001px) {
    .nav-menu { display: flex; align-items: center; gap: 36px; }
}
@media (max-width: 1000px) {
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        display: none;
        position: absolute; top: 76px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 4px 24px 20px;
    }
    .nav-menu.open { display: block; }
    .nav-links { flex-direction: column; gap: 0; }
    .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav-phone { margin-top: 16px; }
}

/* Hero */
.hero { background: var(--stone); padding: 56px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.6vw, 68px); margin-bottom: 20px; }
.hero-text p { font-size: 20px; max-width: 460px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 800px) {
    .hero { padding: 40px 0 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-img { margin: 0 -24px; width: calc(100% + 48px); max-width: none; aspect-ratio: 4 / 3; }
}

/* Services */
.services-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; }
.services-intro p { margin: 0 0 32px; }
.services-intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.service-list h3 { font-size: 26px; margin-bottom: 4px; }
.service-list p { margin: 0; color: var(--muted); }

@media (max-width: 800px) {
    .services-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-intro img { display: none; }
}

/* Work */
.work { background: var(--stone); }
.work-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.work-head h2 { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { font-size: 16px; color: var(--muted); margin-top: 8px; }

@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.reviews blockquote { margin: 0; padding-left: 24px; border-left: 3px solid var(--gold); }
.reviews blockquote p { font-size: 21px; color: var(--ink); margin: 0 0 12px; }
.reviews cite { font-style: normal; font-weight: 600; }

@media (max-width: 800px) { .reviews-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; }
.contact-phone {
    display: inline-block; margin: 8px 0 20px;
    font-family: var(--heading); font-weight: 700; font-size: 44px;
    color: var(--ink); text-decoration: none;
}
.contact-meta { color: var(--muted); font-size: 16px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; color: var(--ink); }
.field input, .field textarea {
    font: inherit; font-size: 17px;
    padding: 11px 12px;
    border: 1px solid #bdb8ad;
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: var(--gold); }
.form .btn { justify-self: start; }

@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form { grid-template-columns: 1fr; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--stone); padding: 56px 0; }
.page-hero h1 { font-size: clamp(42px, 5.2vw, 62px); margin-bottom: 14px; }
.page-hero p { margin: 0; font-size: 20px; max-width: 540px; }
.page-hero .hero-grid { align-items: center; }
.page-hero .hero-img { aspect-ratio: 4 / 3; }
.page-hero.dark { background: var(--ink); color: #d6d3cb; }
.page-hero.dark h1 { color: #fff; }

.lead { font-size: 21px; color: var(--ink); max-width: 760px; margin: 0; }
.narrow { max-width: 760px; }
.section-alt { background: var(--stone); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }

/* Sector cards (home) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 18px; }
.card h3 { font-size: 30px; margin-bottom: 6px; }
.card p { margin: 0 0 14px; color: var(--muted); flex: 1; }
.card .text-link { align-self: flex-start; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }

@media (max-width: 860px) { .cards { grid-template-columns: 1fr; gap: 44px; } }

/* Alternating image / text rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature:last-child { padding-bottom: 0; }
.feature:nth-child(even) .feature-img { order: 2; }
.feature-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 14px; }
.feature p { margin: 0 0 20px; }

@media (max-width: 800px) {
    .feature { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
    .feature:nth-child(even) .feature-img { order: 0; }
}

/* Lists with a small gold square */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--gold); }
.ticks.two-col { grid-template-columns: 1fr 1fr; gap: 12px 40px; }
@media (max-width: 640px) { .ticks.two-col { grid-template-columns: 1fr; } }

/* Boxes (commercial, about) */
.boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.boxes.three { grid-template-columns: repeat(3, 1fr); }
.box { border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 32px; background: #fff; }
.box h3 { font-size: 28px; margin-bottom: 10px; }
.box p { margin: 0 0 18px; }
.box p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .boxes, .boxes.three { grid-template-columns: 1fr; } }

/* About split */
.split { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: start; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split p { margin: 0 0 18px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 32px; } .split img { aspect-ratio: 4 / 3; } }

/* Call-to-action band */
.cta-band { background: var(--ink); color: #d6d3cb; padding: 64px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.cta-phone { font-family: var(--heading); font-weight: 700; font-size: 36px; color: #fff; text-decoration: none; }
.btn-light { background: var(--gold); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* Project filters + lightbox */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
    font: 500 16px var(--body); color: var(--ink);
    background: #fff; border: 1px solid #bdb8ad; border-radius: 3px;
    padding: 8px 16px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery figure[hidden] { display: none; }
.gallery img { cursor: zoom-in; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); }
.lightbox::backdrop { background: rgba(20, 20, 18, .88); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox p { color: #fff; margin: 12px 0 0; }
.lightbox button {
    position: absolute; top: 8px; right: 8px;
    width: 40px; height: 40px; border: 0; border-radius: 3px;
    background: rgba(0, 0, 0, .6); color: #fff; font-size: 24px; cursor: pointer;
}

/* Contact page */
.contact-details dt { font-weight: 600; color: var(--ink); margin-top: 18px; }
.contact-details dd { margin: 2px 0 0; }
.contact-details a { color: var(--ink); }
.field select {
    font: inherit; font-size: 17px; padding: 11px 12px;
    border: 1px solid #bdb8ad; border-radius: 3px; background: #fff; color: var(--ink); width: 100%;
}
.field select:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: var(--gold); }

/* Legal pages */
.prose { max-width: 760px; }
.note { border: 1px dashed #bdb8ad; padding: 24px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #c9c6be; padding: 64px 0 28px; font-size: 16px; }
.site-footer a { color: #c9c6be; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #3a3a37; }
.footer-grid h4 { font-family: var(--heading); font-size: 20px; color: #fff; letter-spacing: .03em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand p { margin: 0 0 10px; }
.footer-brand .footer-phone { font-family: var(--heading); font-size: 28px; font-weight: 700; color: #fff; }
.footer-copy { padding-top: 20px; font-size: 14px; color: #8d8a83; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Hidden spam trap on the quote form */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn:disabled { opacity: .6; cursor: wait; }
