/* ==========================================================
   TRUE PENNY CABINETRY — STYLESHEET
   Palette, type, and spacing are all defined as variables
   below in one place, so recoloring or resizing later is a
   find-and-replace, not a rewrite.
========================================================== */

:root {
  /* Color */
  --ink:            #2C2927;
  --tone-deep:      #332E2A;
  --tone-mid:       #665E58;
  --canvas:         #F1EFEB;
  --canvas-alt:     #E3E0DB;
  --paper:          #FBFAF7;
  --copper:         #75675D;
  --copper-light:   #C4BBB2;
  --verdigris:      #88847F;
  --line:           rgba(44, 41, 39, 0.15);
  --line-on-dark:   rgba(251, 250, 247, 0.2);

  /* Type */
  --font-display: 'Zilla Slab', Georgia, serif;
  --font-body:    'Zilla Slab', Georgia, serif;
  --font-ui:      'Work Sans', sans-serif;

  /* Layout */
  --edge:      clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --radius:    3px;
  --header-h:  76px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body, h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  font-size: 1.04rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
section[id] { scroll-margin-top: var(--header-h); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.018em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Shared type utilities ---------- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow.light { color: var(--copper-light); }
.eyebrow.center { text-align: center; }

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0.5rem 0 1rem; }
.section-note { color: var(--tone-mid); font-size: 0.97rem; }

/* Reveal-on-scroll (progressive; content is visible without JS) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--copper);
  color: var(--paper);
}
.btn-primary:hover { background: var(--copper-light); transform: translateY(-1px); }
.btn-ghost {
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn.full { width: 100%; }

/* ==========================================================
   HEADER
========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.95);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark { display: flex; align-items: center; height: 40px; position: relative; }
.logo-img { height: 34px; width: auto; transition: opacity 0.25s ease; }
.logo-img--on-light { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.site-header.is-scrolled .logo-img--on-dark { opacity: 0; }
.site-header.is-scrolled .logo-img--on-light { opacity: 1; }
.logo-mark.small { height: auto; }
.footer-logo { height: 30px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2.25rem; }
.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--paper);
  transition: color 0.2s ease, opacity 0.2s ease;
}
.site-header.is-scrolled .main-nav a { color: var(--ink); }
.main-nav a:not(.nav-cta):hover { opacity: 0.7; }
.main-nav a.nav-cta {
  background: var(--copper);
  color: var(--paper) !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.main-nav a.nav-cta:hover { background: var(--copper-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: background 0.2s ease, transform 0.25s ease, opacity 0.25s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(35, 32, 30, 0.9) 0%, rgba(35, 32, 30, 0.36) 52%, rgba(35, 32, 30, 0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 var(--edge) clamp(3.5rem, 9vh, 6rem);
  color: var(--paper);
}
.hero-content .eyebrow { color: var(--copper-light); margin-bottom: 1rem; }
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.04;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 46ch;
  color: rgba(251, 250, 247, 0.88);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================
   VALUES / WHY TRUE PENNY
========================================================== */
.values {
  max-width: none;
  padding: var(--section-y) var(--edge);
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgba(44, 41, 39, 0.04) 50%, transparent 50.1%),
    var(--paper);
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(480px, 1.35fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.values > * { width: 100%; }
.values-intro { max-width: 420px; justify-self: end; position: sticky; top: calc(var(--header-h) + 2rem); }
.values-intro h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.55rem);
  line-height: 1.02;
  margin: 0.8rem 0 1.4rem;
  text-wrap: balance;
}
.values-intro > p:last-child { max-width: 34ch; color: var(--tone-mid); }
.values-grid {
  display: grid;
  max-width: 700px;
  gap: 0;
}
.value-card {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-top: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.value-card:last-child { border-bottom: 1px solid var(--line); }
.value-card:hover { transform: translateX(0.55rem); border-color: rgba(44, 41, 39, 0.32); }
.value-number {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--copper);
  padding-top: 0.35rem;
}
.value-card h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--tone-deep);
}
.value-card p { color: var(--tone-mid); max-width: 48ch; }

/* ==========================================================
   PORTFOLIO
========================================================== */
.portfolio {
  padding: var(--section-y) var(--edge);
  max-width: 1240px;
  margin: 0 auto;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 16vw, 220px);
  gap: 1.1rem;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 1;
  grid-row: span 1;
}
.portfolio-item.featured { grid-column: span 2; grid-row: span 2; }
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-item:hover img,
.portfolio-item:focus-within img { transform: scale(1.06); }
.portfolio-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 0.9rem;
  color: var(--paper);
  background: linear-gradient(to top, rgba(31, 29, 27, 0.88), transparent);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  line-height: 1.35;
}
.portfolio-caption span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--copper-light);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(160px, 34vw, 240px); }
  .portfolio-item, .portfolio-item.featured { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 900px) {
  .values { grid-template-columns: 1fr; gap: 2.75rem; background: var(--paper); }
  .values-intro { position: static; justify-self: start; max-width: 560px; }
  .values-grid { max-width: none; }
}

/* ==========================================================
   ABOUT
========================================================== */
.about {
  padding: var(--section-y) var(--edge);
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canvas-alt);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
}
.about-img { width: 100%; height: 100%; object-fit: cover; }
.about-img--drill { object-position: 54% center; }
.about-img--level { object-position: 50% center; }

.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0.5rem 0 1.25rem; }
.about-copy p { color: var(--tone-mid); margin-bottom: 1rem; max-width: 54ch; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy em { color: var(--ink); font-style: normal; border-bottom: 1px dashed var(--copper); }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
}

/* ==========================================================
   BID / CONTACT
========================================================== */
.bid {
  background: var(--tone-deep);
  color: var(--paper);
  padding: var(--section-y) var(--edge);
}
.bid-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.bid-intro h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: 0.5rem 0 1rem; }
.bid-intro > p { color: rgba(251, 250, 247, 0.8); max-width: 40ch; margin-bottom: 2rem; }
.bid-direct { border-top: 1px solid var(--line-on-dark); padding-top: 1.5rem; }
.bid-direct p { font-size: 0.95rem; color: rgba(251, 250, 247, 0.85); margin-bottom: 0.75rem; line-height: 1.6; }
.bid-direct a { color: var(--copper-light); border-bottom: 1px solid rgba(196, 187, 178, 0.4); }
.bid-direct a:hover { border-color: var(--copper-light); }

.bid-form { display: flex; flex-direction: column; gap: 1.1rem; }
.hp-field { position: absolute; left: -9999px; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-light);
}
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  transition: box-shadow 0.2s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--copper);
}
.bid-form .btn { margin-top: 0.5rem; }

@media (max-width: 760px) {
  .bid-inner { grid-template-columns: 1fr; }
}

/* ==========================================================
   FOOTER
========================================================== */
.site-footer {
  background: var(--tone-deep);
  border-top: 1px solid var(--line-on-dark);
  padding: 2.25rem var(--edge);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer-meta { font-size: 0.85rem; color: rgba(251, 250, 247, 0.6); }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { font-size: 0.85rem; color: rgba(251, 250, 247, 0.75); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--paper); }

/* ==========================================================
   MOBILE NAV
========================================================== */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--edge) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav a { color: var(--ink) !important; width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a.nav-cta { margin-top: 0.85rem; text-align: center; border-bottom: none; }
}

@media (max-width: 620px) {
  .value-card { grid-template-columns: 3rem 1fr; padding: 1.8rem 0; }
}
