/* ==========================================================================
   Webster Architecture & Interiors — website mockup
   Design intent for the WordPress rebuild.
   ========================================================================== */

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

:root {
    --bg: #faf8f3;
    --bg-alt: #f3efe5;
    --ink: #1c1c1c;
    --ink-soft: #4a4a44;
    --ink-mute: #8a857a;
    --rule: #ddd6c4;
    --accent: #6b5d3f;

    --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --max: 1280px;
    --gutter: clamp(20px, 4vw, 56px);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
a.cta, a.text-link {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
a.cta:hover, a.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }

h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.35rem; }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 1.25rem;
}

.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }

p + p { margin-top: 1em; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(72px, 10vw, 144px) 0; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 18px; padding-bottom: 18px;
}
.brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    line-height: 1;
}
.brand small { display: block; font-family: var(--font-body); font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }
nav.primary { display: flex; gap: 2rem; }
nav.primary a { font-size: 0.92rem; color: var(--ink-soft); padding-bottom: 2px; border-bottom: 1px solid transparent; }
nav.primary a:hover, nav.primary a.active { color: var(--ink); border-color: var(--ink); }

@media (max-width: 720px) {
    nav.primary { gap: 1.1rem; font-size: 0.85rem; }
    nav.primary a { font-size: 0.82rem; }
}

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    height: clamp(560px, 88vh, 880px);
    overflow: hidden;
    background: #111;
}
.hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.hero .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.55) 100%);
}
.hero .content {
    position: absolute; left: 0; right: 0; bottom: clamp(40px, 7vw, 84px);
    color: #fff;
}
.hero .content .wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .subhead { max-width: 52ch; font-size: 1.1rem; line-height: 1.55; color: rgba(255,255,255,0.92); }
.hero .actions { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.hero .actions a { color: #fff; }

/* ---------- Selected work grid ---------- */
.work-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: clamp(28px, 4vw, 64px);
}
.work-tile { display: block; }
.work-tile.featured { grid-column: 1 / -1; }
.work-tile.featured .img-wrap { aspect-ratio: 16 / 8; }
.work-tile .img-wrap {
    position: relative; aspect-ratio: 4/3; overflow: hidden; background: #ddd;
    margin-bottom: 1.25rem;
}
.work-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-tile:hover img { transform: scale(1.025); }
.work-tile .meta-line {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 0.4rem;
}
.work-tile h3 { font-size: 1.6rem; }
.work-tile .place {
    font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-mute);
}
.work-tile p { font-size: 1rem; color: var(--ink-soft); max-width: 46ch; }
.work-tile .view { display: inline-block; margin-top: 0.75rem; font-size: 0.92rem; }

@media (max-width: 720px) {
    .work-grid { grid-template-columns: 1fr; }
    .work-tile.featured { grid-column: auto; }
    .work-tile.featured .img-wrap { aspect-ratio: 4 / 3; }
}

/* ---------- About teaser w/ portrait ---------- */
.about-teaser {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
.about-teaser .portrait { margin: 0; }
.about-teaser .portrait img {
    width: 100%; height: auto; display: block;
    aspect-ratio: 4/5; object-fit: cover;
    background: #1c1c1c;
}
.about-teaser .portrait figcaption {
    font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink-mute); margin-top: 1rem;
}
.about-teaser h2 { margin-bottom: 1.5rem; max-width: 18ch; }
.about-teaser .about-text p { color: var(--ink-soft); max-width: 50ch; }
.about-teaser .about-text p + p { margin-top: 1.2em; }
.about-teaser .about-text .cta { display: inline-block; margin-top: 2rem; }
@media (max-width: 760px) {
    .about-teaser { grid-template-columns: 1fr; }
    .about-teaser .portrait img { aspect-ratio: 4/5; max-height: 70vh; object-fit: cover; }
}

/* ---------- Section header utility ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.section-head h2 { max-width: 18ch; }
.section-head p { color: var(--ink-soft); max-width: 38ch; }

/* ---------- What we do — three blocks ---------- */
.services-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px);
}
.svc { padding-top: 2rem; border-top: 1px solid var(--rule); }
.svc h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.svc p { color: var(--ink-soft); }
@media (max-width: 760px) { .services-row { grid-template-columns: 1fr; } }

/* ---------- Testimonial block ---------- */
.testimonial { background: var(--bg-alt); }
.testimonial blockquote {
    font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    line-height: 1.35; max-width: 32ch; margin: 0 auto;
    text-align: center; color: var(--ink);
}
.testimonial blockquote::before { content: "\201C"; display: block; font-size: 3.5rem; color: var(--accent); line-height: 0.5; margin-bottom: 1.5rem; }
.testimonial cite {
    display: block; margin-top: 2rem; font-style: normal; font-size: 0.85rem;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute);
    text-align: center;
}

/* ---------- Closer band ---------- */
.closer { text-align: center; }
.closer h2 { max-width: 22ch; margin: 0 auto 1.5rem; }
.closer p { max-width: 50ch; margin: 0 auto 2rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink); color: rgba(255,255,255,0.85);
    padding: clamp(56px, 6vw, 88px) 0 clamp(28px, 3vw, 40px);
    font-size: 0.92rem;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px);
    align-items: start; margin-bottom: 3rem;
}
.footer-grid h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1rem; font-weight: 500; }
.footer-grid .brand { color: #fff; font-size: 1.5rem; }
.footer-grid .brand small { color: rgba(255,255,255,0.55); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-fineprint {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem;
    font-size: 0.78rem; color: rgba(255,255,255,0.55); flex-wrap: wrap; gap: 1rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CASE STUDY PAGE
   ========================================================================== */

.case-hero {
    position: relative; height: clamp(540px, 80vh, 800px);
    overflow: hidden; background: #111;
}
.case-hero img { width: 100%; height: 100%; object-fit: cover; }
.case-hero .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.65) 100%);
}
.case-hero .content {
    position: absolute; left: 0; right: 0; bottom: clamp(40px, 6vw, 72px); color: #fff;
}
.case-hero .content .wrap { display: flex; flex-direction: column; gap: 1rem; }
.case-hero .eyebrow { color: rgba(255,255,255,0.75); margin-bottom: 0; }
.case-hero h1 { color: #fff; max-width: 22ch; }
.case-hero .subhead {
    max-width: 60ch; font-size: 1.1rem; line-height: 1.55;
    color: rgba(255,255,255,0.92); margin-top: 0.5rem;
}

/* Facts panel */
.facts {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px);
    padding: clamp(48px, 6vw, 72px) 0;
    border-bottom: 1px solid var(--rule);
}
.facts .fact h4 {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.5rem;
}
.facts .fact p { font-size: 1rem; color: var(--ink); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Story body */
.story { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(40px, 6vw, 88px); }
.story h2 { max-width: 14ch; }
.story .body { max-width: 62ch; font-size: 1.08rem; line-height: 1.7; color: var(--ink); }
.story .body p + p { margin-top: 1.4em; }
@media (max-width: 880px) { .story { grid-template-columns: 1fr; } }

/* Image gallery — alternating full-bleed / two-up */
.gallery { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.gallery figure { margin: 0; }
.gallery figcaption {
    font-size: 0.92rem; color: var(--ink-soft); margin-top: 1rem; max-width: 60ch; line-height: 1.55;
}
.gallery .full img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery .two-up { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.gallery .two-up img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 720px) {
    .gallery .full img { aspect-ratio: 4/3; }
    .gallery .two-up { grid-template-columns: 1fr; }
}

/* Collaborators block */
.collabs { background: var(--bg-alt); }
.collabs h3 { margin-bottom: 1rem; }
.collabs p { color: var(--ink-soft); max-width: 56ch; }

/* Mockup banner — only visible in this prototype */
.mockup-banner {
    background: var(--ink); color: rgba(255,255,255,0.92);
    font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
    text-align: center; padding: 10px 16px;
}
.mockup-banner strong { color: #fff; letter-spacing: 0.06em; text-transform: none; font-weight: 500; }

/* ==========================================================================
   DESIGN STUDIES (homepage section + case study additions)
   ========================================================================== */

/* Homepage Design Studies section — distinct from Selected Work */
.design-studies { background: var(--bg-alt); }

.design-grid {
    display: grid; grid-template-columns: 1fr;
    gap: clamp(40px, 5vw, 72px);
}
.design-tile {
    display: grid; grid-template-columns: 1.3fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    background: var(--bg);
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid var(--rule);
}
.design-tile .img-wrap {
    aspect-ratio: 16/10; overflow: hidden; background: #ddd;
}
.design-tile .img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.design-tile:hover .img-wrap img { transform: scale(1.025); }
.design-tile .meta-line {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 0.4rem;
}
.design-tile h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.design-tile .place {
    font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink-mute);
}
.design-tile p { font-size: 1.02rem; color: var(--ink-soft); max-width: 46ch; }
.design-tile p + p { margin-top: 0.9em; }
.design-tile .price-tag {
    display: inline-block; margin-top: 1.25rem;
    font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ink-mute);
    border-top: 1px solid var(--rule); padding-top: 0.9rem;
}
.design-tile .price-tag strong {
    font-family: var(--font-display); font-size: 1.25rem; color: var(--ink);
    letter-spacing: 0; text-transform: none; font-weight: 500;
    display: inline-block; margin-right: 0.4rem;
}
.design-tile .view { display: inline-block; margin-top: 1.25rem; font-size: 0.92rem; }
@media (max-width: 880px) {
    .design-tile { grid-template-columns: 1fr; }
}

/* ==========================================================================
   DESIGN STUDY CASE STUDY PAGE ADDITIONS
   ========================================================================== */

/* Floor plan figure — contained, not cropped (unlike .gallery .full img) */
.gallery .plan {
    background: var(--bg-alt); padding: clamp(20px, 3vw, 40px);
    border: 1px solid var(--rule);
}
.gallery .plan img {
    width: 100%; height: auto; aspect-ratio: auto;
    object-fit: contain; background: #fff;
}

/* Paired plan compare — existing on the left, proposed on the right.
   Stacks on narrow screens. */
.gallery .plan-compare {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 40px);
}
.gallery .plan-compare figure { margin: 0; }
.gallery .plan-compare .plan-card {
    background: #fff; padding: clamp(16px, 2vw, 28px);
    border: 1px solid var(--rule);
}
.gallery .plan-compare img {
    width: 100%; height: auto; aspect-ratio: auto;
    object-fit: contain;
}
.gallery .plan-compare .plan-label {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-mute); margin-bottom: 0.75rem;
}
@media (max-width: 880px) {
    .gallery .plan-compare { grid-template-columns: 1fr; }
}

/* Pull-quote callout used inline in story copy — for the
   "previous attempts" line on Crowell Brook and similar. */
.callout {
    border-left: 2px solid var(--accent);
    padding: clamp(14px, 2vw, 24px) clamp(20px, 3vw, 32px);
    background: var(--bg-alt);
    margin: 1.6em 0 1.6em;
    font-size: 1.02rem; color: var(--ink); line-height: 1.65;
}

/* Responsive YouTube / Vimeo embed */
.video-embed {
    position: relative; width: 100%; aspect-ratio: 16/9;
    background: #111; overflow: hidden;
}
.video-embed iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0;
}
.video-caption {
    margin-top: 1rem; font-size: 0.92rem; color: var(--ink-soft);
    max-width: 60ch; line-height: 1.55;
}

/* The offer block — distinct from .collabs, used for the
   architectural-service-included pitch on Highwoods */
.offer { background: var(--ink); color: rgba(255,255,255,0.88); }
.offer .eyebrow { color: rgba(255,255,255,0.55); }
.offer h2 { color: #fff; max-width: 22ch; margin-bottom: 1.5rem; }
.offer p { max-width: 56ch; color: rgba(255,255,255,0.85); }
.offer p + p { margin-top: 1.2em; }
.offer .price-line {
    display: flex; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap;
    margin-top: 2.5rem; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.offer .price-line .price-block h4 {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.55); margin-bottom: 0.5rem;
}
.offer .price-line .price-block p {
    font-family: var(--font-display); font-size: 1.35rem; color: #fff;
}
.offer .actions { margin-top: 2.5rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.offer .actions a { color: #fff; }

/* ==========================================================================
   RESIDENTIAL ARCHITECTURAL DESIGN SERVICE PAGE
   ========================================================================== */

.service-page-hero .actions {
    display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 0.75rem;
}
.service-page-hero .actions a { color: #fff; }
.service-page-hero img { object-position: center 55%; }

.service-facts h2 {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-mute); margin-bottom: 0.5rem;
}

.service-intro .body p:first-child {
    font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    line-height: 1.45; color: var(--ink);
}

.local-work-section { background: var(--bg-alt); }
.local-work-section .work-tile.featured .img-wrap { aspect-ratio: 16 / 7.5; }

.service-grid-six { grid-template-columns: repeat(3, 1fr); row-gap: clamp(44px, 6vw, 72px); }

.planning-section { background: var(--ink); color: rgba(255,255,255,0.9); }
.planning-grid {
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: clamp(40px, 7vw, 96px); align-items: center;
}
.planning-grid figure { margin: 0; }
.planning-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.planning-grid figcaption {
    margin-top: 0.9rem; color: rgba(255,255,255,0.55);
    font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.planning-grid .eyebrow { color: rgba(255,255,255,0.55); }
.planning-grid h2 { color: #fff; max-width: 15ch; margin-bottom: 1.5rem; }
.planning-grid p { color: rgba(255,255,255,0.78); max-width: 55ch; }
.planning-grid p + p { margin-top: 1.2em; }

.process-section { background: var(--bg-alt); }
.process-grid {
    list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 3vw, 44px);
}
.process-grid li { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.process-grid span {
    display: block; font-size: 0.72rem; letter-spacing: 0.18em;
    color: var(--ink-mute); margin-bottom: 2.5rem;
}
.process-grid h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.process-grid p { color: var(--ink-soft); font-size: 0.98rem; }

.faq-layout {
    display: grid; grid-template-columns: 0.8fr 1.5fr;
    gap: clamp(40px, 7vw, 96px); align-items: start;
}
.faq-layout > div:first-child { position: sticky; top: 120px; }
.faq-layout h2 { max-width: 12ch; }
.faq-list article { border-top: 1px solid var(--rule); padding: 1.6rem 0; }
.faq-list article:last-child { border-bottom: 1px solid var(--rule); }
.faq-list h3 { font-size: 1.35rem; margin-bottom: 0.65rem; }
.faq-list p { color: var(--ink-soft); max-width: 62ch; }

.service-contact .actions {
    display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
}
.service-contact .actions + * { margin-top: 0; }

.site-footer .footer-grid h2 {
    font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: rgba(255,255,255,0.55);
    margin-bottom: 1rem; font-weight: 500;
}

@media (max-width: 880px) {
    .planning-grid { grid-template-columns: 1fr; }
    .planning-grid img { aspect-ratio: 16/10; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .faq-layout { grid-template-columns: 1fr; }
    .faq-layout > div:first-child { position: static; }
}

@media (max-width: 760px) {
    .service-grid-six { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .service-page-hero h1 { font-size: clamp(2.6rem, 13vw, 4.25rem); }
    .local-work-section .work-tile.featured .img-wrap { aspect-ratio: 4/3; }
}
