/* =========================================================
   Wood Framers Inc. — site styles
   Palette pulled from logo:
     Forest green:  #0F5132 (primary)
     Deep green:    #0A3A23 (depth)
     Copper/wood:   #B07842 (accent)
     Light wood:    #E8C9A0
     Off-white:     #FAF7F2
   ========================================================= */

:root {
  --green-900: #0A3A23;
  --green-700: #0F5132;
  --green-600: #1B6B43;
  --copper:    #B07842;
  --copper-soft: #C68B5C;
  --wood-light: #E8C9A0;
  --cream:     #FAF7F2;
  --ink:       #14201A;
  --ink-soft:  #4A5651;
  --line:      #E5DED2;
  --white:     #ffffff;

  --shadow-sm: 0 1px 2px rgba(10, 58, 35, 0.06), 0 2px 8px rgba(10, 58, 35, 0.04);
  --shadow-md: 0 4px 14px rgba(10, 58, 35, 0.08), 0 12px 32px rgba(10, 58, 35, 0.06);
  --shadow-lg: 0 12px 40px rgba(10, 58, 35, 0.14);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--copper); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.accent { color: var(--green-700); font-style: italic; font-family: 'Fraunces', serif; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 24px;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}
.btn--primary:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}
.btn--lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--green-900);
}
.brand__logo {
  height: 58px;
  width: auto;
  display: block;
}
/* Logo already contains the WOOD FRAMERS INC wordmark, so hide the text beside it */
.brand__name { display: none; }

.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav__links a:hover { color: var(--green-700); }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform .25s ease;
  transform-origin: left;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { padding: 10px 18px; font-size: .9rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(15,81,50,0.06), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(176,120,66,0.08), transparent 40%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero__copy h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
}
.lede {
  font-size: 1.1rem;
  max-width: 560px;
  color: var(--ink-soft);
}
.hero__ctas {
  display: flex;
  gap: 12px;
  margin: 28px 0 40px;
  flex-wrap: wrap;
}
.hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__stats strong {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  color: var(--green-700);
  font-weight: 700;
}
.hero__stats span {
  font-size: .85rem;
  color: var(--ink-soft);
}

.hero__visual {
  display: flex;
  justify-content: center;
}
.hero__card {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  background: #0a0a0a;
  border-radius: var(--radius-lg);
  padding: 32px 32px 64px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(15,81,50,0.35), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(176,120,66,0.2), transparent 50%);
}
.hero__logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: 400px;
  filter: drop-shadow(0 10px 30px rgba(176,120,66,0.25));
}

.hero__card-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wood-light);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.hero__card-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.25);
}

/* ---------- Strip ---------- */
.strip {
  background: var(--green-900);
  color: var(--wood-light);
  padding: 28px 0;
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.strip__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  font-weight: 500;
}
.strip__num {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--copper-soft);
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}
.section--alt {
  background: var(--cream);
}
.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__sub {
  max-width: 560px;
  font-size: 1.05rem;
}
.section__head--center .section__sub {
  margin-left: auto;
  margin-right: auto;
}
.section__sub code {
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  color: var(--green-900);
}

.section__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.section__head h2 { margin-bottom: 0; }
.section__body p:last-child { margin-bottom: 0; }

/* ---------- Why grid ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.why__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--copper-soft);
}
.why__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(15, 81, 50, 0.08);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.why__icon svg { width: 24px; height: 24px; }
.why__card h3 { margin-bottom: 8px; color: var(--green-900); }
.why__card p { margin: 0; font-size: .95rem; }

/* ---------- Projects ---------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.project__image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.project__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,58,35,0.4) 100%);
}
/* Each project gets a different placeholder gradient until real photos drop in */
.project__image[data-project="1"] { background: linear-gradient(135deg, #0F5132, #1B6B43); }
.project__image[data-project="2"] { background: linear-gradient(135deg, #1B6B43, #B07842); }
.project__image[data-project="3"] { background: linear-gradient(135deg, #B07842, #C68B5C); }
.project__image[data-project="4"] { background: linear-gradient(135deg, #0A3A23, #0F5132); }
.project__image[data-project="5"] { background: linear-gradient(135deg, #C68B5C, #E8C9A0); }
.project__image[data-project="6"] { background: linear-gradient(135deg, #0F5132, #B07842); }
.project__image[data-project="7"] { background: linear-gradient(135deg, #0A3A23, #B07842 60%, #E8C9A0); }

/* Featured "currently building" card */
.project--feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-top: 28px;
  border: 1px solid var(--copper-soft);
  background: linear-gradient(180deg, var(--white), var(--cream));
}
.project__image--feature {
  aspect-ratio: auto;
  min-height: 280px;
  position: relative;
}
.project--feature .project__body {
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project--feature h3 {
  font-size: 1.75rem;
}
.project--feature p {
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.project__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--copper);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.project__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,.04) 30px 31px),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,.04) 30px 31px);
}
.project__body {
  padding: 24px 24px 28px;
}
.project__type {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
}
.project h3 {
  margin-bottom: 8px;
  color: var(--green-900);
}
.project p {
  margin-bottom: 14px;
  font-size: .95rem;
}
.project__meta {
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.gallery__item {
  position: relative;
  margin: 0;
  grid-column: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0a;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery__item--wide {
  grid-column: span 4;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
  transition: transform .5s ease;
}
.gallery__item:hover img {
  transform: scale(1.04);
}
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 18px 14px;
  font-size: .85rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 58, 35, 0.85));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery__item:hover figcaption,
.gallery__item:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 16, 0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  cursor: default;
}
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--wood-light);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  background: rgba(10,58,35,0.7);
  padding: 8px 16px;
  border-radius: 999px;
  max-width: 90vw;
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  backdrop-filter: blur(8px);
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.06);
}

/* ---------- CTA Band ---------- */
.ctaband {
  background: var(--green-900);
  color: var(--white);
  padding: 64px 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(176,120,66,0.18), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(15,81,50,0.5), transparent 50%);
}
.ctaband__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ctaband h2 {
  color: var(--white);
  margin-bottom: 6px;
}
.ctaband p {
  margin: 0;
  color: var(--wood-light);
  font-size: 1.05rem;
}
.ctaband .btn--primary {
  background: var(--copper);
  border-color: var(--copper);
}
.ctaband .btn--primary:hover {
  background: var(--copper-soft);
  border-color: var(--copper-soft);
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact__info p {
  font-size: 1.05rem;
  max-width: 440px;
}
.contact__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact__list li:last-child { border-bottom: 0; }
.contact__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--copper);
}
.contact__list a, .contact__list span {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}
.contact__list a:hover { color: var(--green-700); }

.contact__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: span 2; }
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(15,81,50,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.contact__form .btn { grid-column: span 2; justify-self: start; }
.form__note {
  grid-column: span 2;
  margin: 0;
  padding: 12px 16px;
  background: rgba(15,81,50,.08);
  color: var(--green-900);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.8);
  padding: 40px 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.footer__brand strong {
  display: block;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
}
.footer__brand span {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .9rem;
}
.footer__contact a {
  color: rgba(255,255,255,.85);
}
.footer__contact a:hover { color: var(--copper-soft); }
.footer__copy {
  text-align: right;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner.is-open + .nav__menu { display: flex; }
  .nav__inner.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }

  .hero { padding: 56px 0 72px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__visual { order: -1; }
  .hero__card { max-width: 380px; }
  .hero__stats { gap: 28px; }

  .strip__inner { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 72px 0; }
  .section__grid { grid-template-columns: 1fr; gap: 32px; }

  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .project--feature { grid-template-columns: 1fr; }
  .project--feature .project__body { padding: 32px 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery__item, .gallery__item--wide { grid-column: span 1; }
  .gallery__item figcaption { opacity: 1; transform: none; padding: 18px 14px 12px; font-size: .8rem; }

  .ctaband__inner { flex-direction: column; align-items: flex-start; }

  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__form { grid-template-columns: 1fr; }
  .field--full, .contact__form .btn, .form__note { grid-column: span 1; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { justify-content: center; }
  .footer__copy { text-align: center; }
}

@media (max-width: 560px) {
  .hero__stats { flex-wrap: wrap; gap: 20px; }
  .hero__stats li { flex: 1 1 40%; }
  .strip__inner { grid-template-columns: 1fr; }
  .why__grid, .projects__grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
}
