/* ==========================================================================
   The Woodbodger — navy & brushed-steel theme, matched to the shop badge logo
   ========================================================================== */

:root {
  --walnut-dark:   #141c2c;  /* deep navy — badge plate shadow */
  --walnut:        #2c3f60;  /* primary navy — badge plate */
  --walnut-light:  #4c6089;  /* lighter navy — hover/accent */
  --cream:         #eef1f4;  /* cool steel-white — light text on navy */
  --cream-2:       #dde3ea;  /* steel-gray — alt section backgrounds ("From the Workshop") */
  --parchment:     #f4f6f8;  /* near-white steel — page background, cards */
  --gold:          #6b84a8;  /* steel-blue accent — badge highlight tone */
  --gold-light:    #cfd7e2;  /* pale brushed-steel highlight */
  --rust:          #3d5c8c;  /* slate-blue accent — links, badges */
  --ink:           #1c2430;  /* body text */
  --ink-soft:      #57606d;  /* soft body text */
  --border-soft:   rgba(44, 63, 96, 0.16);
  --shadow-soft:   0 12px 30px rgba(20, 28, 44, 0.16);
  --shadow-hard:   0 4px 14px rgba(20, 28, 44, 0.24);
  --radius: 6px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--walnut-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

.slogan-line { white-space: nowrap; font-size: clamp(0.95rem, 4vw, 2.15rem); }

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7em;
}

.section {
  padding: 84px 0;
}
.section--tight { padding: 56px 0; }
.section--dark {
  background: var(--walnut-dark);
  color: var(--cream);
}
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p { color: rgba(238,241,244,0.82); }
.section--cream2 { background: var(--cream-2); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { font-size: 1.08rem; }
.section-head--wide { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.7em;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--walnut-dark);
  box-shadow: var(--shadow-hard);
}
.btn-primary:hover { transform: translateY(-2px); color: var(--walnut-dark); box-shadow: 0 8px 20px rgba(20,28,44,0.3); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--cream);
}
.btn-outline:hover { background: rgba(238,241,244,0.1); color: var(--gold-light); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--walnut);
  color: var(--walnut);
}
.btn-outline-dark:hover { background: var(--walnut); color: var(--cream); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 248, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-logo { height: 58px; width: auto; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--walnut-dark);
  letter-spacing: 0.01em;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--walnut);
  font-weight: 600;
  font-size: 0.96rem;
}
.nav-links a.active, .nav-links a:hover { color: var(--rust); }
.nav-links .btn { margin-left: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--walnut-dark);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--walnut-dark);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(107,132,168,0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(61,92,140,0.25), transparent 50%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 90px 0 70px;
}
.hero h1 { color: var(--cream); }
.hero .lede { font-size: 1.18rem; color: rgba(238,241,244,0.85); max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-photo-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-photo-stack img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-photo-stack .ph1 { grid-row: 1 / 3; height: 100%; aspect-ratio: 3/4; }
.hero-photo-stack .ph2 { aspect-ratio: 4/3; align-self: end; }
.hero-photo-stack .ph3 { aspect-ratio: 4/3; }

.hero-banner {
  position: relative;
  border-top: 1px solid rgba(238,241,244,0.14);
  background: rgba(0,0,0,0.15);
}
.hero-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.hero-banner-text { color: var(--gold-light); font-weight: 600; font-size: 0.95rem; }
.hero-banner-text strong { color: var(--cream); }

/* ---------- Feature / value cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-card {
  background: var(--parchment);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.feature-card .icon {
  width: 46px; height: 46px;
  margin-bottom: 16px;
  color: var(--gold);
}
.feature-card h3 { margin-bottom: 0.4em; }
.feature-card p { margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Gallery teaser cards ---------- */
.gallery-teasers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.teaser-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  box-shadow: var(--shadow-soft);
}
.teaser-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.teaser-card:hover img { transform: scale(1.06); }
.teaser-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,20,32,0) 40%, rgba(12,16,26,0.88) 100%);
}
.teaser-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px;
  z-index: 2;
  color: var(--cream);
}
.teaser-card-body .eyebrow { color: var(--gold-light); }
.teaser-card-body h3 { color: var(--cream); margin-bottom: 0.25em; }
.teaser-card-body span.link {
  font-weight: 600; font-size: 0.9rem; color: var(--gold-light);
}

/* ---------- Build-process stages (galleries page) ---------- */
.stage { margin-bottom: 56px; }
.stage h3 { margin-bottom: 0.5em; }
.stage > p { max-width: 760px; }

/* ---------- Photo grid (gallery pages) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.photo-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  background: var(--walnut-dark);
  cursor: zoom-in;
  position: relative;
}
.photo-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(20, 24, 30, 0.78);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 4px;
  pointer-events: none;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.photo-grid figure:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 14, 22, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 22px; right: 28px;
  color: var(--cream);
  font-size: 2rem;
  background: none; border: none; cursor: pointer;
  line-height: 1;
  z-index: 10;
}
.lightbox-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  width: 72px;
  max-width: 18vw;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  z-index: 5;
}
.lightbox-nav svg { width: 100%; height: 42px; }
.lightbox-nav:hover { color: var(--walnut-light); }
.lightbox-prev { left: 0; justify-content: flex-start; padding-left: 8px; }
.lightbox-next { right: 0; justify-content: flex-end; padding-right: 8px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(238,241,244,0.75);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* ---------- Book page ---------- */
.book-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.book-cover {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(20,28,44,0.4), 0 0 0 1px rgba(207,215,226,0.45);
  background: #fff;
  line-height: 0;
}
.book-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.cover-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--rust);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(20,28,44,0.35);
}

.book-facts {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.book-facts li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.book-facts li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Signup form ---------- */
.signup-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 44px;
  border: 1px solid var(--border-soft);
}
.signup-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.signup-form input[type="email"],
.signup-form input[type="text"] {
  flex: 1 1 260px;
  padding: 0.9em 1.1em;
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
}
.signup-form input.signup-full { flex: 1 1 100%; }
.signup-form input.signup-half { flex: 1 1 140px; }
.signup-form input[type="email"]:focus,
.signup-form input[type="text"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.signup-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 12px; margin-bottom: 0; }
.signup-success {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(107,132,168,0.15);
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--walnut-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.signup-success.show { display: block; }

/* ---------- Pricing table (galleries page) ---------- */
.pricing-box {
  background: var(--parchment);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 34px;
}
.pricing-box dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
  margin: 18px 0 0;
}
.pricing-box dt { font-weight: 700; color: var(--walnut-dark); white-space: nowrap; }
.pricing-box dd { margin: 0; color: var(--ink-soft); }

/* ---------- About / quote ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--walnut-dark);
  border-left: 4px solid var(--gold);
  padding-left: 24px;
  margin: 28px 0;
  line-height: 1.4;
}

/* ---------- Book excerpts ---------- */
.book-excerpts {
  display: grid;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.book-excerpt {
  background: var(--parchment);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.book-excerpt p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 14px;
}
.book-excerpt p:last-of-type { margin-bottom: 0; }
.excerpt-label {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-item .icon {
  width: 22px; height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-item strong { display: block; color: var(--walnut-dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--walnut-dark);
  color: rgba(238,241,244,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(238,241,244,0.12);
}
.footer-brand .brand-text { color: var(--cream); }
.footer-brand .brand-logo { height: 74px; }
.footer-brand p { color: rgba(238,241,244,0.65); max-width: 34ch; margin-top: 14px; }
.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(238,241,244,0.75); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(238,241,244,0.5);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--walnut-dark);
  color: var(--cream);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero h1 { color: var(--cream); }
.page-hero p { color: rgba(238,241,244,0.8); max-width: 60ch; margin: 0 auto; }

.cta-narrow {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.tabs a {
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid var(--border-soft);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--walnut);
}
.tabs a.active { background: var(--walnut-dark); color: var(--cream); border-color: var(--walnut-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-photo-stack { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery-teasers { grid-template-columns: 1fr; }
  .book-hero { grid-template-columns: 1fr; }
  .book-cover { max-width: 340px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: var(--parchment);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 30px;
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
    gap: 18px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .section { padding: 56px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .lightbox-nav { width: 48px; max-width: 22vw; }
  .lightbox-nav svg { height: 30px; }
}
