/* =========================================================
   Harrowood — Carpentry HTML Template
   Change the look of the whole template in the :root block.
   ========================================================= */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("../fonts/albert-sans.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --paper: #e9e3d8;      /* light bands */
  --paper-2: #dfd7c8;    /* cards, image backgrounds */
  --ink: #1d1a17;        /* dark bands, headings */
  --ink-2: #2a2520;      /* cards on dark */
  --text: #3b352e;       /* body text */
  --muted: #6b6257;      /* small text */
  --brown: #7b5330;      /* buttons, accents */
  --brown-dark: #67431f;
  --on-dark: #e9e3d8;
  --on-dark-muted: #b9afa0;
  --line: rgba(29, 26, 23, .16);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Albert Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --section: clamp(64px, 9vw, 120px);
  --header: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--sans); }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 10px 16px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border: 1px solid transparent; font: 500 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s; }
.btn--brown { background: var(--brown); color: #f6efe4; }
.btn--brown:hover { background: var(--brown-dark); }
.btn--outline { border-color: var(--brown); color: var(--brown-dark); }
.btn--outline:hover { background: var(--brown); color: #f6efe4; }
.btn--small { padding: 12px 20px; font-size: 12px; }
@media (max-width: 767px) { .btn--small { padding: 15px 20px; } }
.arrow-icon { transition: transform .25s; }
.btn:hover .arrow-icon, .more-link:hover .arrow-icon { transform: translateX(4px); }
.more-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--brown-dark); }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; color: var(--on-dark); transition: background-color .3s; }
.site-header.is-scrolled { position: fixed; background: rgba(29, 26, 23, .96); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header); }
.logo { display: inline-grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; text-decoration: none; color: inherit; line-height: 1.1; }
.logomark { grid-row: 1 / 3; }
.logo__name { font: 500 17px/1.1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.logo__tag { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.main-nav { margin-left: auto; }
.header-cta { white-space: nowrap; }
.main-nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.main-nav a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .25s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: currentColor; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 12px; color: inherit; }
@media (max-width: 1080px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Menu panel ---------- */
.menu-panel { position: fixed; inset: 0; z-index: 50; background: var(--ink); color: var(--on-dark); transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility 0s .35s; overflow-y: auto; }
.menu-panel.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
.menu-panel__inner { min-height: 100%; padding: 0 var(--gutter) 40px; display: flex; flex-direction: column; gap: 32px; }
.menu-panel__top { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.menu-close { background: none; border: 0; padding: 12px; color: inherit; }
.menu-panel nav a { display: block; padding: 12px 0; font: 400 34px/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid rgba(233, 227, 216, .14); }
.menu-panel .btn { align-self: flex-start; }
.menu-panel__meta { margin-top: auto; font-size: 15px; color: var(--on-dark-muted); }
.menu-panel__meta a { text-decoration: none; }
.socials { display: flex; gap: 14px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(233, 227, 216, .3); border-radius: 50%; transition: background-color .25s; }
.socials a:hover { background: rgba(233, 227, 216, .14); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; color: var(--on-dark); background: var(--ink); isolation: isolate; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 16, 12, .78) 0%, rgba(20, 16, 12, .35) 55%, rgba(20, 16, 12, .1) 100%), linear-gradient(0deg, rgba(20, 16, 12, .55), transparent 40%); }
.hero__inner { padding-top: calc(var(--header) + 60px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero__title { color: #f6efe4; font-size: clamp(40px, 6vw, 76px); max-width: 11em; margin-bottom: 22px; }
.hero__text { max-width: 30em; font-size: 18px; color: var(--on-dark); margin-bottom: 32px; }

/* ---------- Values ---------- */
.values { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.values__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 38px; padding-bottom: 38px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--brown); }
.value h3 { font: 500 15px/1.3 var(--sans); color: var(--ink); margin-bottom: 4px; }
.value p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 960px) { .values__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values__inner { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #f6efe4; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }

.about-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.about-split__media img { width: 100%; height: 100%; object-fit: cover; }
.about-split__text { padding: var(--section) clamp(24px, 6vw, 96px); align-self: center; max-width: 640px; }
.about-split__text h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 20px; }
.about-split__text .btn { margin-top: 12px; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } .about-split__media img { aspect-ratio: 4 / 3; } .about-split__text { padding: 48px var(--gutter); } }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card h3 { font-size: 22px; margin: 18px 0 8px; }
.service-card h3 a { text-decoration: none; }
.service-card p { color: var(--on-dark-muted); font-size: 15px; margin: 0; }
.service-card__media { display: block; overflow: hidden; background: var(--ink-2); }
.service-card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.service-card:hover img { transform: scale(1.04); }
@media (max-width: 960px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .service-grid { grid-template-columns: 1fr; } .service-card__media img { aspect-ratio: 4 / 3; } }

.recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.recent { position: relative; display: block; overflow: hidden; text-decoration: none; background: var(--ink); }
.recent:hover { background: var(--ink); }
.recent img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.recent:hover img { transform: scale(1.04); }
.recent__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #f6efe4; font: 400 19px/1.2 var(--serif); background: linear-gradient(0deg, rgba(20, 16, 12, .75), transparent); }
@media (max-width: 860px) { .recent-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .recent-grid { grid-template-columns: 1fr; } .recent img { aspect-ratio: 4 / 3; } }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--ink); color: var(--on-dark); isolation: isolate; overflow: hidden; }
.cta__media, .cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 16, 12, .85), rgba(20, 16, 12, .5)); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); flex-wrap: wrap; }
.cta__title { color: #f6efe4; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 8px; }
.cta p { margin: 0; color: var(--on-dark); }

/* ---------- Page head ---------- */
.page-head { position: relative; background: var(--ink); color: var(--on-dark); isolation: isolate; overflow: hidden; }
.page-head__media, .page-head__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 16, 12, .72); }
.page-head__inner { padding-top: calc(var(--header) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head__title { color: #f6efe4; font-size: clamp(36px, 5vw, 58px); margin-bottom: 10px; }
.page-head__sub { margin: 0; color: var(--on-dark); font-size: 18px; }

/* ---------- Services page ---------- */
.service-list { display: grid; gap: clamp(48px, 7vw, 88px); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-row h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
@media (max-width: 800px) { .service-row { grid-template-columns: 1fr; } .service-row:nth-child(even) .service-row__media { order: 0; } }

/* ---------- Projects ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filters button { background: none; border: 1px solid var(--line); padding: 10px 20px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.filters button:hover { border-color: var(--brown); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.project.is-hidden { display: none; }
.project__media { display: block; overflow: hidden; background: var(--paper-2); }
.project__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.project:hover img { transform: scale(1.04); }
.project__name { font-size: 24px; margin: 16px 0 4px; }
.project__name a { text-decoration: none; }
.project__meta { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 900px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------- Project detail ---------- */
.project-detail { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.facts { margin: 0; display: grid; gap: 22px; }
.facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--ink); }
.main-photo { display: block; padding: 0; border: 0; background: none; width: 100%; }
.main-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.thumb { padding: 0; border: 0; background: none; overflow: hidden; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.thumb:hover img { transform: scale(1.04); }
.project-story { max-width: 720px; margin-top: 56px; }
.project-story h2 { font-size: 30px; margin-bottom: 14px; }
@media (max-width: 860px) { .project-detail { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; color: #f6efe4; overflow: visible; }
.lightbox::backdrop { background: rgba(14, 11, 8, .9); }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.lightbox__caption { text-align: center; margin: 12px 0 0; font-size: 14px; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(14, 11, 8, .6); border: 0; color: #f6efe4; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; }
.lightbox__close { top: -52px; right: 0; }
.lightbox__nav { top: 40%; }
.lightbox__nav--prev { left: 8px; } .lightbox__nav--next { right: 8px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.steps { display: grid; gap: 36px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
.step__num { display: grid; place-items: center; width: 48px; height: 48px; background: var(--brown); color: #f6efe4; font: 500 14px var(--sans); letter-spacing: .06em; }
.step h2 { font-size: 26px; margin-bottom: 6px; }
.step p { margin: 0; }
.process__media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } .process__media { order: -1; } .process__media img { aspect-ratio: 4 / 3; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about__media img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.about__text h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 20px; }
.checks { margin: 24px 0 32px; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px; border-left: 1.5px solid var(--brown); border-bottom: 1.5px solid var(--brown); transform: rotate(-45deg); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Quote form ---------- */
.quote { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.form { display: grid; gap: 20px; background: var(--paper-2); padding: clamp(24px, 4vw, 44px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 13px; letter-spacing: .06em; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid rgba(29, 26, 23, .25); background: #f1ece2; color: var(--ink); border-radius: 0; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brown); outline-offset: 0; border-color: var(--brown); }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
.form-status { display: none; margin: 0; padding: 14px 16px; background: var(--ink); color: var(--on-dark); font-size: 14px; }
.form-status.is-visible { display: block; }
.quote__aside h2 { font-size: 28px; margin-bottom: 18px; }
.contact-list { display: grid; gap: 14px; margin-bottom: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list svg { color: var(--brown); flex: none; }
.contact-list a { text-decoration: none; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Legal and 404 ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 30px; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.notfound { background: var(--ink); color: var(--on-dark); min-height: 80vh; display: grid; align-items: center; padding: calc(var(--header) + 40px) 0 80px; }
.notfound h1 { color: #f6efe4; font-size: clamp(40px, 6vw, 72px); margin-bottom: 14px; }
.notfound p { color: var(--on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 15px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand { display: grid; gap: 20px; align-content: start; justify-items: start; color: var(--on-dark); }
.footer-brand p { color: var(--on-dark-muted); max-width: 22em; margin: 0; }
.footer-title { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 18px; }
.footer-list { display: grid; gap: 10px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: #f6efe4; text-decoration: underline; }
.footer-contact { margin-bottom: 20px; }
.footer-bottom { display: flex; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(233, 227, 216, .14); font-size: 13px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; margin-right: auto; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom a { text-decoration: none; }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(233, 227, 216, .3); border-radius: 50%; color: var(--on-dark); }
@media (max-width: 1100px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.icon .move { transition: transform .6s ease; transform-box: fill-box; transform-origin: center; }
.value:hover .icon .move, .icon.is-played .move { transform: translateY(-1.5px) rotate(-6deg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
