/* ═══════════════════════════════════════════
   LUMBERTHING — main.css
   Craft-oriented, warm, material-focused
   ═══════════════════════════════════════════ */

:root {
  --bg:         #141414;
  --bg-alt:     #0D0D0D;
  --bg-dark:    #0A0A0A;
  --bg-card:    #1A1A1A;
  --text:       #E8D5B7;
  --text-muted: #A09080;
  --text-light: #706050;
  --accent:     #E09A4E;
  --accent-hover:#EBA85E;
  --accent-light:rgba(224,154,78,0.12);
  --white:      #F5F0EB;
  --line:       rgba(255,255,255,0.08);
  --line-light: rgba(255,255,255,0.05);
  --success:    #4CAF7D;
  --error:      #E05555;

  --font-h:     'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'SF Mono', 'Cascadia Mono', Consolas, monospace;

  --max-w:      1200px;
  --max-w-narrow: 800px;
  --pad-x:      clamp(20px, 5vw, 72px);
  --section-y:  clamp(64px, 9vw, 120px);
  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.10);
  --transition: 0.25s ease;
}

/* ── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Typography ────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.4em; }
h4 { font-size: 1.15rem; margin-bottom: 0.3em; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Layout ────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container--narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section {
  padding: var(--section-y) 0;
}
.section--alt {
  background: var(--bg-alt);
}
/* Subtle accent divider between sections */
.section + .section--alt,
.section--alt + .section {
  border-top: 1px solid rgba(224,154,78,0.08);
}
.section--dark {
  background: var(--bg-alt);
  color: var(--white);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark .text-muted { color: var(--text-muted); }

/* ── Grid ──────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Navigation ────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav--scrolled {
  background: rgba(10,10,10,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav--scrolled .nav__inner { height: 56px; }
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height 0.3s ease;
}
.nav__logo {
  font-family: var(--font-h);
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__logo:hover { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__link:hover,
.nav__link--active { color: var(--accent); }
.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__link--active::after {
  transform: scaleX(1);
}
.nav__cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%),
    linear-gradient(160deg, #c87a30, var(--accent), var(--accent-hover));
  color: var(--white);
  border-radius: var(--radius);
  transition: all 0.35s ease;
  box-shadow: 0 2px 8px rgba(224,154,78,0.2);
}
.nav__cta:hover {
  color: var(--white);
  box-shadow: 0 4px 14px rgba(224,154,78,0.35);
  transform: translateY(-1px);
}

/* Mobile nav toggle — hamburger/X */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1002;
}
.nav__toggle span {
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1001;
  }
  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links .nav__link,
  .nav__links .nav__cta {
    font-family: var(--font-h);
    font-size: 1.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s;
  }
  .nav__links.open .nav__link,
  .nav__links.open .nav__cta {
    opacity: 1;
    transform: translateY(0);
  }
  .nav__links.open .nav__link:nth-child(1) { transition-delay: 0.05s; }
  .nav__links.open .nav__link:nth-child(2) { transition-delay: 0.10s; }
  .nav__links.open .nav__link:nth-child(3) { transition-delay: 0.15s; }
  .nav__links.open .nav__link:nth-child(4) { transition-delay: 0.20s; }
  .nav__links.open .nav__link:nth-child(5) { transition-delay: 0.25s; }
  .nav__links.open .nav__link:nth-child(6) { transition-delay: 0.30s; }
  .nav__links.open .nav__cta { transition-delay: 0.35s; font-size: 1.2rem; padding: 16px 40px; }
  .nav__link--active::after { display: none; }
}

/* ── Hero ──────────────────────────────── */
.hero {
  padding: calc(72px + var(--section-y)) 0 var(--section-y);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
.hero > * { position: relative; z-index: 2; }
.hero--bg {
  background: var(--bg);
  color: var(--white);
}
.hero--bg h1 {
  color: var(--accent);
  text-shadow:
    0 1px 0 #b07a30,
    0 2px 4px rgba(0,0,0,0.4),
    0 0 40px rgba(224,154,78,0.12);
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__content {
  max-width: 560px;
  animation: heroFadeIn 0.8s ease-out;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero--bg .hero__subtitle { color: var(--text-muted); }
.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { max-height: 400px; }
}

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all 0.35s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background:
    linear-gradient(135deg,
      rgba(255,255,255,0.12) 0%,
      transparent 40%,
      transparent 60%,
      rgba(255,255,255,0.06) 100%),
    linear-gradient(160deg, #c87a30 0%, var(--accent) 35%, var(--accent-hover) 70%, #c87a30 100%);
  background-size: 200% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(224,154,78,0.2);
}
.btn--primary:hover {
  background-position: 0% 0, 0 0;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(224,154,78,0.35);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(224,154,78,0.08) 0%,
    transparent 50%,
    rgba(224,154,78,0.04) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(224,154,78,0.25);
  transform: translateY(-1px);
}
.btn--outline:hover::before { opacity: 1; }
.btn--white {
  background: var(--white);
  color: var(--text);
}
.btn--white:hover { background: var(--bg-alt); color: var(--text); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Cards ─────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(224,154,78,0.12), 0 0 0 1px rgba(224,154,78,0.08);
  border-color: var(--accent);
}
.card__image {
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  overflow: hidden;
}
.card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card:hover .card__image img { transform: scale(1.06); }
.card__body { padding: 24px; }
.card__title {
  font-family: var(--font-h);
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--white);
}
.card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 12px;
}
.card__link::after { content: '\2192'; transition: transform var(--transition); }
.card__link:hover::after { transform: translateX(4px); }

/* ── Service card (pillar link) ────────── */
.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── Feature blocks ────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature { text-align: center; padding: 32px 20px; }
.feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 50%;
  font-size: 1.5rem;
  transition: transform 0.4s ease, background 0.4s ease;
}
.feature:hover .feature__icon {
  transform: scale(1.12) rotate(5deg);
  background: rgba(224,154,78,0.2);
}
.feature__title { font-family: var(--font-h); font-size: 1.15rem; margin-bottom: 8px; }
.feature__text { font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; }
}

/* ── Equipment grid ──────────────────────── */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.equipment-card {
  text-align: center;
  padding: 32px 20px 28px;
  border-radius: 12px;
  border: 1px solid rgba(224,154,78,0.08);
  background: rgba(224,154,78,0.02);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.equipment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224,154,78,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.equipment-card__illustration {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}
.equipment-card__illustration img {
  width: 100%;
  height: 100%;
}
.equipment-card:hover .equipment-card__illustration {
  transform: scale(1.08);
}
.equipment-card__title {
  font-family: var(--font-h);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.equipment-card__spec {
  font-size: 0.78rem;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.equipment-card__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 992px) {
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .equipment-grid { grid-template-columns: 1fr; gap: 16px; }
  .equipment-card { padding: 24px 16px 20px; }
}

/* ── Process steps ─────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; padding: 24px 16px; counter-increment: step; position: relative; }
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-h);
  font-size: 1.3rem;
}
.step__title { font-family: var(--font-h); font-size: 1.05rem; margin-bottom: 6px; }
.step__text { font-size: 0.85rem; color: var(--text-muted); }
/* Connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -12px;
  width: calc(100% - 48px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(224,154,78,0.15) 100%);
  transform: translateX(100%);
  z-index: 0;
}
@media (max-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Materials grid ────────────────────── */
.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.material {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.material__icon { font-size: 2rem; margin-bottom: 10px; }
.material__name { font-weight: 600; font-size: 0.95rem; }
.material__desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 640px) {
  .materials { grid-template-columns: repeat(2, 1fr); }
}

/* ── Pricing table ─────────────────────── */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 2px solid var(--line);
}
.price-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text);
}
.price-table .price {
  font-family: var(--font-h);
  font-size: 1.15rem;
  color: var(--accent);
}
@media (max-width: 640px) {
  .price-table { font-size: 0.85rem; }
  .price-table td, .price-table th { padding: 10px 8px; }
}

/* ── FAQ ───────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-h);
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text);
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: 20px;
}
.faq-a p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ── Breadcrumbs ───────────────────────── */
.breadcrumbs {
  padding: calc(72px + 16px) 0 0;
  font-size: 0.8rem;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 6px; }

/* ── CTA Block ─────────────────────────── */
.cta-block {
  background: var(--bg-card);
  color: var(--white);
  text-align: center;
  padding: var(--section-y) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(224,154,78,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: border-color 0.4s ease;
}
.cta-block:hover { border-color: rgba(224,154,78,0.2); }
.cta-block h2 { color: var(--white); margin-bottom: 12px; }
.cta-block p { color: var(--text-muted); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── Forms ─────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--white);
  transition: border-color var(--transition);
}
.form-select option { background: var(--bg-card); color: var(--white); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; }

/* ── Project gallery ───────────────────── */
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ── Blog list ─────────────────────────── */
.blog-card__meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* ── Service area tags ─────────────────── */
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.area-tag {
  padding: 6px 16px;
  font-size: 0.8rem;
  background: var(--bg-card);
  border-radius: 100px;
  color: var(--text-muted);
  border: 1px solid var(--line);
}

/* ── Footer ────────────────────────────── */
.footer {
  background: #0A0A0A;
  color: var(--text-muted);
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand { font-family: var(--font-h); font-size: 1.5rem; color: var(--white); margin-bottom: 12px; }
.footer__desc { font-size: 0.9rem; line-height: 1.6; max-width: 300px; }
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--accent); }
.footer__bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ── Utility ───────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.pb-0 { padding-bottom: 0; }

/* ── Page content (pillar/cluster) ─────── */
.page-content {
  padding-top: calc(72px + 24px);
}
.page-content h2 { margin-top: 2.5rem; }
.page-content p { max-width: 720px; }
.page-content ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.page-content ul li { margin-bottom: 0.4em; color: var(--text-muted); }

/* ── Related links ─────────────────────── */
.related-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.related-link {
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.related-link span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.3s;
}
.related-link:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224,154,78,0.2);
}
.related-link:hover span { color: rgba(255,255,255,0.8); }

/* ── Project single page ───────────────── */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.project-gallery img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
@media (max-width: 640px) {
  .project-gallery { grid-template-columns: 1fr; }
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
}
.project-meta dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); }
.project-meta dd { font-size: 1rem; font-weight: 500; margin-top: 2px; }

/* ── Blog single ───────────────────────── */
.article-content { max-width: 720px; margin: 0 auto; }
.article-content h2 { margin-top: 2.5rem; }
.article-content > p:first-of-type::first-letter {
  font-family: var(--font-h);
  font-size: 3.2em;
  float: left;
  line-height: 0.8;
  margin: 0.06em 0.12em 0 0;
  color: var(--accent);
}
.article-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.article-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(224,154,78,0.3);
  transition: text-decoration-color 0.25s;
}
.article-content a:hover {
  text-decoration-color: var(--accent);
}
.article-content ul, .article-content ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.article-content li { margin-bottom: 0.3em; }
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ── Placeholder image ─────────────────── */
.placeholder-img {
  background: #1E1E1E;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.85rem;
  font-style: italic;
}

/* ── Sticky mobile CTA bar (mobile only) ── */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(20,20,20,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px var(--pad-x);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  display: none;
}
@media (max-width: 768px) {
  .mobile-bar { display: block; }
}
.mobile-bar.visible { transform: translateY(0); }
.mobile-bar__quote {
  display: block;
  text-align: center;
  padding: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%),
    linear-gradient(160deg, #c87a30, var(--accent), var(--accent-hover));
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(224,154,78,0.25);
}
.mobile-bar__quote:hover {
  color: var(--bg);
  box-shadow: 0 4px 14px rgba(224,154,78,0.4);
}
.footer { padding-bottom: 80px; }

/* ── Scroll reveal animations ���────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered card reveal */
.reveal.visible .card,
.reveal.visible .feature,
.reveal.visible .equipment-card,
.reveal.visible .step,
.reveal.visible .material {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.5s ease forwards;
}
.reveal.visible .card:nth-child(1),
.reveal.visible .feature:nth-child(1),
.reveal.visible .equipment-card:nth-child(1),
.reveal.visible .step:nth-child(1),
.reveal.visible .material:nth-child(1) { animation-delay: 0s; }
.reveal.visible .card:nth-child(2),
.reveal.visible .feature:nth-child(2),
.reveal.visible .equipment-card:nth-child(2),
.reveal.visible .step:nth-child(2),
.reveal.visible .material:nth-child(2) { animation-delay: 0.1s; }
.reveal.visible .card:nth-child(3),
.reveal.visible .feature:nth-child(3),
.reveal.visible .equipment-card:nth-child(3),
.reveal.visible .step:nth-child(3),
.reveal.visible .material:nth-child(3) { animation-delay: 0.2s; }
.reveal.visible .card:nth-child(4),
.reveal.visible .feature:nth-child(4),
.reveal.visible .equipment-card:nth-child(4),
.reveal.visible .step:nth-child(4),
.reveal.visible .material:nth-child(4) { animation-delay: 0.3s; }
@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Pillar Body (long-form SEO content) ─ */
.pillar-body { max-width: var(--max-w-narrow); }
.pillar-body h2 { margin-top: 2.5em; }
.pillar-body h2:first-child { margin-top: 0; }
.pillar-body h3 { margin-top: 1.5em; color: var(--accent); }
.pillar-body h3 a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pillar-body h3 a:hover { color: var(--accent-hover); }
.pillar-body ul, .pillar-body ol { margin-bottom: 1.5em; }
.pillar-body li { margin-bottom: 0.5em; line-height: 1.7; }
.pillar-body strong { color: var(--white); }
