/* =====================================================================
   ONE TREE GOOD DAY — landscape design practice
   Professional site. Shares the brand of evagildea.com:
   letterpress / blind-deboss on textured cream-ecru stock,
   bold tight Copperplate wordmark + wide-tracked uppercase labels,
   warm near-black ink on warm off-white, generous negative space.

   Single-page layout: full-bleed hero banner, then sections —
   About · Services · Process · Work · Contact. Each project
   opens as a standalone gallery page (gallery.js engine).

   RESPONSIVE: mobile-first. Base = 375px phone.
   Breakpoints (literal px in @media): 540px, 860px.
   ===================================================================== */

:root {
  --bg:        #f5f2ed;   /* warm cream ground (ecru card stock) */
  --bg-card:   #f0ece4;   /* slightly darker card surface */
  --ink:       #1a1714;   /* warm near-black — primary ink */
  --ink-mute:  rgba(26,23,20,0.50);
  --ink-faint: rgba(26,23,20,0.18);
  --scrim:     rgba(245,242,237,0.78);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display:      "Copperplate Gothic Light", "Copperplate", "Copperplate Gothic", serif;
  --font-display-bold: "Copperplate Gothic Bold", "Copperplate", "Copperplate Gothic Light", serif;

  --pad: 16px;
  --container: 1040px;
}

@font-face {
  font-family: "Copperplate Gothic Light";
  src: url("../fonts/COPRGTL.TTF") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Copperplate Gothic Bold";
  src: url("../fonts/COPRGTB.TTF") format("truetype");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ============================================================ RESET */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 13px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html { overflow-x: hidden; scroll-behavior: smooth; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================ LAYOUT */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--pad);
}
.section { padding: 72px 0; }
@media (min-width: 860px) { .section { padding: 112px 0; } }

.section-label {
  margin: 0 0 28px;
  font-family: var(--font-display); font-size: 10px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-mute);
}
.section h2 {
  margin: 0 0 20px;
  font-family: var(--font-display-bold); font-weight: 400;
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.14em;
  line-height: 1.3;
}
@media (min-width: 860px) { .section h2 { font-size: 24px; } }

/* ============================================================ HEADER / NAV
   Wordmark left, single hamburger right (every page). Wired by js/nav.js.
   On the hero the header floats transparent; once scrolled it gets a
   cream gradient backing (toggled by .scrolled on <body>).
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px var(--pad);
  transition: background 0.3s ease;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
body.scrolled .site-header,
body.solid-header .site-header {
  background: linear-gradient(rgba(245,242,237,0.96), rgba(245,242,237,0.82));
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

.site-logo {
  font-family: var(--font-display-bold); font-weight: 400;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink); white-space: nowrap;
}
@media (min-width: 540px) { .site-logo { font-size: 14px; letter-spacing: 0.20em; } }

/* Hamburger */
.menu-wrap { position: relative; display: flex; align-items: center; }
.menu-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  border: 0; background: none; cursor: pointer;
  width: 26px; padding: 8px 4px; margin: -8px -4px;
}
.menu-btn span {
  display: block; height: 1.5px; width: 100%;
  background: var(--ink); transition: opacity .2s ease, transform .25s ease;
}
.menu-btn:hover span { opacity: .55; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  display: none; flex-direction: column; min-width: 170px;
  background: var(--bg); border: 1px solid var(--ink-faint);
  box-shadow: 0 14px 40px rgba(26,23,20,0.12); padding: 6px 0;
}
.menu-panel.open { display: flex; }
.menu-panel a {
  font-family: var(--font-display); font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink-mute);
  padding: 11px 20px; transition: color .2s ease, background .2s ease;
}
.menu-panel a:hover { color: var(--ink); background: var(--bg-card); }

/* ============================================================ HERO BANNER
   Full-bleed banner. Background = a project image (set inline via
   style="--hero:url(...)") or a graceful cream field placeholder.
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 96px 20px 80px;
  background: var(--bg-card);
  background-image: var(--hero, none);
  background-size: cover; background-position: center;
}
/* legibility scrim over photographic heroes */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(26,23,20,0.10), rgba(26,23,20,0.34));
  opacity: var(--hero-scrim, 0);  /* 0 when no photo; nav.js raises it when a hero image is set */
}
.hero.has-photo { color: #f7f4ef; }
.hero.has-photo::before { opacity: 1; }
.hero > * { position: relative; z-index: 1; }

.hero-mark {
  font-family: var(--font-display-bold); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.18em; line-height: 1.15;
  font-size: clamp(26px, 7vw, 56px); margin: 0;
}
.hero-tag {
  margin: 22px 0 0; max-width: 30ch;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: clamp(11px, 2.4vw, 14px);
  color: inherit; opacity: 0.85;
}
.hero-cta {
  margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.btn {
  font-family: var(--font-display); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; padding: 13px 24px; border: 1px solid currentColor;
  color: inherit; transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero.has-photo .btn:hover { background: #f7f4ef; color: var(--ink); border-color: #f7f4ef; }
.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 18px; opacity: 0.6; z-index: 1;
}

/* ============================================================ ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.about-grid p { margin: 0 0 16px; font-size: 14px; line-height: 1.75; max-width: 60ch; }
.about-grid p:last-child { margin-bottom: 0; }
.about-lead {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 15px !important; line-height: 1.6 !important;
  color: var(--ink);
}

/* ============================================================ SERVICES */
.svc-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--ink-faint); border: 1px solid var(--ink-faint);
}
@media (min-width: 540px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc {
  background: var(--bg); padding: 28px 24px 30px;
}
.svc-num {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.16em;
  color: var(--ink-mute); display: block; margin-bottom: 14px;
}
.svc h3 {
  margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
}
.svc p { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-mute); max-width: 40ch; }

/* ============================================================ PROCESS */
.proc-list {
  display: grid; grid-template-columns: 1fr; gap: 0;
  counter-reset: step; border-top: 1px solid var(--ink-faint);
}
.proc {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 26px 0; border-bottom: 1px solid var(--ink-faint);
  counter-increment: step;
}
@media (min-width: 540px) { .proc { grid-template-columns: 56px 200px 1fr; gap: 24px; align-items: baseline; } }
.proc::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-mute);
}
.proc h3 {
  margin: 0; font-family: var(--font-display-bold); font-weight: 400;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em;
}
.proc p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-mute); max-width: 56ch; }

/* ============================================================ WORK (portfolio grid) */
.work-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 540px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; } }
@media (min-width: 860px) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 48px 32px; } }
.work-cell { display: block; cursor: pointer; }
.wc-media {
  position: relative; width: 100%; aspect-ratio: 3 / 2;
  overflow: hidden; background: var(--bg-card);
}
.wc-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .5s ease, transform .4s ease;
}
.wc-media img.loaded { opacity: 1; }
.work-cell:hover .wc-media img { opacity: .92; transform: scale(1.02); }
.wc-media.wc-empty {
  display: flex; align-items: center; justify-content: center; padding: 0 20px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em;
  font-size: 10px; color: var(--ink-mute); text-align: center;
}
.wc-cap { padding-top: 12px; }
.wc-1 { margin: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wc-title {
  font-family: var(--font-display-bold); font-weight: 400; text-transform: uppercase;
  letter-spacing: .1em; font-size: 12px; color: var(--ink);
}
.wc-year { font-family: var(--font-display); font-size: 12px; letter-spacing: .04em; color: var(--ink-mute); }
.wc-mat { margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: var(--ink-mute); }

/* ============================================================ CONTACT */
.contact-inner { text-align: center; max-width: 540px; margin-inline: auto; }
.contact-inner p { margin: 0 0 12px; font-size: 14px; letter-spacing: 0.02em; }
.contact-inner a.line { border-bottom: 1px solid var(--ink-faint); transition: border-color .2s ease; }
.contact-inner a.line:hover { border-color: var(--ink); }
.contact-loc {
  margin-top: 22px; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 11px; color: var(--ink-mute);
}

/* ============================================================ FOOTER */
.site-footer {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 36px var(--pad); border-top: 1px solid var(--ink-faint);
  font-size: 11px; color: var(--ink-mute); letter-spacing: 0.06em;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer nav a {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 10px; color: var(--ink-mute); transition: color .2s ease;
}
.site-footer nav a:hover { color: var(--ink); }
@media (min-width: 540px) {
  .site-footer { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================================ PROJECT PAGE (concord-residence.html) */
.proj-hero {
  padding-top: 92px; padding-bottom: 8px;
}
.proj-head { border-bottom: 1px solid var(--ink-faint); padding-bottom: 22px; margin-bottom: 32px; }
.proj-back {
  font-family: var(--font-display); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-mute); display: inline-block; margin-bottom: 22px;
}
.proj-back:hover { color: var(--ink); }
.proj-head h1 {
  margin: 0 0 8px; font-family: var(--font-display-bold); font-weight: 400;
  font-size: 22px; text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.25;
}
.proj-meta {
  font-family: var(--font-display); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-mute); margin: 0 0 18px;
}
.proj-desc { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink); max-width: 64ch; }
.proj-desc p { margin: 0 0 14px; }

/* gallery grid + lazy items (gallery.js) */
.gallery-section { padding-top: 8px; padding-bottom: 96px; }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 3px; }
@media (min-width: 540px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; } }
.gallery-item {
  position: relative; overflow: hidden; background: var(--bg-card); cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .45s ease, transform .4s ease;
}
.gallery-item img.loaded { opacity: 1; }
.gallery-item:hover img { transform: scale(1.02); opacity: .92; }
.gallery-item-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(transparent, rgba(26,23,20,0.55));
  font-size: 10px; letter-spacing: 0.04em; color: rgba(245,242,237,0.92);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.gallery-item:hover .gallery-item-caption { opacity: 1; }
.gallery-empty {
  grid-column: 1 / -1; padding: 64px 0; text-align: center;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* lightbox (gallery.js) */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; gap: 16px;
  background: rgba(26,23,20,0.88); padding: 20px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-inner {
  flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-height: 90vh; overflow: hidden;
}
.lightbox-inner img { max-width: 100%; max-height: 80vh; width: auto; height: auto; object-fit: contain; }
.lightbox-caption {
  margin: 10px 0 0; font-size: 11px; letter-spacing: 0.06em;
  color: rgba(245,242,237,0.55); text-align: center; min-height: 1em;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  flex-shrink: 0; border: 0; background: none; color: rgba(245,242,237,0.55);
  cursor: pointer; font-size: 22px; line-height: 1; transition: color .2s ease;
  -webkit-user-select: none; user-select: none;
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: rgba(245,242,237,1); }
.lightbox-close { position: absolute; top: 14px; right: 16px; font-size: 26px; padding: 8px; min-width: auto; min-height: auto; }
.lightbox-prev { order: -1; }
.lightbox-next { order: 1; }
