/* Live Edge Oak Co — warm wood / cream / charcoal */
:root {
  --cream: #f5f0e8;
  --cream-dark: #ebe4d6;
  --wood: #3d2a1f;
  --wood-mid: #5c4033;
  --wood-light: #8b6b4a;
  --charcoal: #1a1614;
  --charcoal-soft: #2c2622;
  --accent: #c4a574;
  --accent-soft: #d4bc94;
  --text: #2a2420;
  --text-muted: #5a5048;
  --white: #fffcf7;
  --shadow: 0 8px 32px rgba(26, 22, 20, 0.12);
  --radius: 6px;
  --nav-h: 68px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ——— Nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(26, 22, 20, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 165, 116, 0.25);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.logo span {
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(245, 240, 232, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: rgba(196, 165, 116, 0.08);
}

.nav-cta {
  display: none;
  color: var(--charcoal) !important;
  background: var(--accent) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-soft) !important;
  color: var(--charcoal) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(196, 165, 116, 0.4);
  color: var(--cream);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
}

@media (min-width: 720px) {
  .nav-cta {
    display: inline-block;
    margin-left: 0.5rem;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .logo {
    font-size: 1.05rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--charcoal);
    padding: 1rem;
    border-bottom: 1px solid rgba(196, 165, 116, 0.25);
    gap: 0.25rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    display: block;
    text-align: center;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* ——— Layout ——— */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  color: var(--wood);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  background: var(--charcoal);
  color: var(--cream);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 22, 20, 0.88) 0%, rgba(61, 42, 31, 0.72) 55%, rgba(26, 22, 20, 0.85) 100%),
    url("../images/05-finished-oiled.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(196, 165, 116, 0.45);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-soft);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(245, 240, 232, 0.82);
  margin-bottom: 2rem;
  max-width: 32rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--charcoal);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.35);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-dark {
  background: var(--wood);
  color: var(--cream);
  border-color: var(--wood);
}

.btn-dark:hover {
  background: var(--wood-mid);
  border-color: var(--wood-mid);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.65);
  letter-spacing: 0.02em;
}

.hero-meta strong {
  display: block;
  color: var(--accent-soft);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

/* ——— Story ——— */
.story {
  background: var(--white);
}

.story-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.story-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-body p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.story-body p:last-of-type {
  margin-bottom: 0;
}

.story-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.pill {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wood);
  background: var(--cream-dark);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

/* ——— Gallery teaser (homepage) ——— */
.gallery-teaser {
  background: var(--cream);
}

.gallery-teaser-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .teaser-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.teaser-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal-soft);
  box-shadow: var(--shadow);
}

.teaser-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.teaser-card:hover img {
  transform: scale(1.04);
}

.teaser-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(26, 22, 20, 0.85));
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 500;
}

.teaser-cta {
  text-align: center;
  margin-top: 2.25rem;
}

/* ——— Full gallery page ——— */
.page-hero {
  background: var(--charcoal);
  color: var(--cream);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid rgba(196, 165, 116, 0.2);
}

.page-hero .section-label {
  color: var(--accent);
}

.page-hero .section-title {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero .section-lead {
  color: rgba(245, 240, 232, 0.75);
}

.gallery-page {
  background: var(--cream);
  padding: 3rem 0 4.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .gallery-item:nth-child(8) {
    grid-column: 1 / -1;
  }

  .gallery-item:nth-child(8) img {
    aspect-ratio: 21 / 9;
  }
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--charcoal-soft);
}

.gallery-item figcaption {
  padding: 1.1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--cream-dark);
}

.gallery-step {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin-bottom: 0.35rem;
}

.gallery-caption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--wood);
  font-weight: 600;
  margin-bottom: 0.35rem;
  min-height: 2.6em; /* ~2 lines — keeps Mill / short titles same height as neighbors */
  line-height: 1.3;
}

.gallery-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  min-height: 3.1em; /* ~2 lines */
}



/* ——— Process time-lapses ——— */
.timelapse-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cream-dark);
}

.gallery-grid.timelapse-grid {
  /* Beat .gallery-grid 2-col rules — one large inline player per clip */
  grid-template-columns: 1fr !important;
  gap: 2rem;
  max-width: none;
  width: 100%;
}

.gallery-grid.timelapse-grid .gallery-item {
  width: 100%;
  max-width: none;
}

.gallery-grid.timelapse-grid .gallery-item video {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: min(56vw, 480px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #1a1612;
  display: block;
}

@media (min-width: 960px) {
  .gallery-grid.timelapse-grid {
    grid-template-columns: 1fr !important;
  }

  .gallery-grid.timelapse-grid .gallery-item video {
    min-height: 520px;
  }
}

/* ——— Contact ——— */
.contact {
  background: var(--charcoal);
  color: var(--cream);
}

.contact .section-label {
  color: var(--accent);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-lead {
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--charcoal-soft);
  border: 1px solid rgba(196, 165, 116, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.2s;
}

.contact-card:hover {
  border-color: rgba(196, 165, 116, 0.5);
}

.contact-card h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.contact-card a,
.contact-card p {
  font-size: 1.05rem;
  color: var(--cream);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--accent-soft);
}

.contact-card .hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.55);
}

.contact-note {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(196, 165, 116, 0.15);
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.65);
  max-width: 40rem;
}

/* ——— Footer ——— */
.site-footer {
  background: #120f0d;
  color: rgba(245, 240, 232, 0.5);
  padding: 1.75rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-brand {
  color: rgba(245, 240, 232, 0.75);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--wood);
  border-color: rgba(61, 42, 31, 0.3);
}

.btn-outline:hover {
  border-color: var(--wood);
  background: rgba(61, 42, 31, 0.06);
}

.gallery-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.75rem;
}


/* ——— Extra yard / shop photos (below locked process grid) ——— */
.yard-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--cream-dark);
}

.yard-head {
  margin-bottom: 2rem;
}

.yard-grid {
  /* Reuses .gallery-grid; three cards sit cleanly in 1 / 2-col layouts */
}

@media (min-width: 960px) {
  .yard-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Portrait Drive shots — keep tall crops readable in the yard row */
  .yard-grid .gallery-item img {
    aspect-ratio: 3 / 4;
  }
}


/* ——— Gritz mill & yard gallery (dense) ——— */
.gritz-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--cream-dark);
}

.gritz-grid {
  gap: 1rem;
}

@media (min-width: 560px) {
  .gritz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .gritz-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 1100px) {
  .gritz-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Don't force collage-wide rule from process grid onto gritz items */
.gritz-grid .gallery-item:nth-child(8) {
  grid-column: auto;
}

.gritz-grid .gallery-item:nth-child(8) img {
  aspect-ratio: 1 / 1;
}

.gritz-grid .gallery-item img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gritz-grid .gallery-item figcaption {
  padding: 0.85rem 1rem 1rem;
}

.gritz-grid .gallery-caption {
  font-size: 1rem;
  min-height: 2.4em;
}

.gritz-grid .gallery-desc {
  font-size: 0.82rem;
  min-height: 2.9em;
}
