/* Imperial Millwork — Homepage styles */

/* ── Site header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  color: var(--header-ink);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}
.logo-img--full {
  height: 56px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}
.site-nav a {
  color: var(--header-ink);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: .8;
  transition: opacity var(--duration-fast) var(--ease);
}
.site-nav a:hover { opacity: 1; }
.header-cta { margin-left: var(--space-2); font-size: var(--text-sm); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--header-ink);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
              background: var(--header-bg); padding: var(--space-2) var(--space-3);
              flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .site-nav.open { display: flex; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-12);
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.hero-video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, #1c1408 0%, #2e1f0a 50%, #100d06 100%);
  opacity: .9;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,13,10,.85) 0%, rgba(16,13,10,.2) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--header-ink);
}
.hero-eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-2);
}
.hero-content h1 {
  color: var(--header-ink);
  margin-bottom: var(--space-2);
}
.hero-sub {
  font-size: var(--text-lg);
  opacity: .8;
  margin-bottom: var(--space-4);
  max-width: 480px;
}
.hero-btn, .hero-btn-secondary { margin-right: var(--space-2); margin-top: var(--space-1); }

/* ── Section shared ──────────────────────────────────────────────────────── */
.section-sub {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}

/* ── Shape entry ─────────────────────────────────────────────────────────── */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-2);
}
.shape-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
  text-align: center;
}
.shape-card:hover {
  border-color: var(--brass);
  box-shadow: var(--shadow-sm);
}
.shape-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass);
}
.shape-icon svg { width: 100%; height: 100%; }
.shape-card > span:nth-of-type(1) { font-weight: 600; font-size: var(--text-sm); }
.shape-hint { font-size: var(--text-xs); color: var(--ink-faint); }
.shape-card--more { border-style: dashed; }

/* ── Popular vents ───────────────────────────────────────────────────────── */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}
.popular-card {
  display: block;
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: box-shadow var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}
.popular-card:hover { box-shadow: var(--shadow-md); border-color: var(--brass-soft); }
.popular-img {
  height: 200px;
  background: var(--forest-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.popular-info { padding: var(--space-2) var(--space-3); }
.popular-info h3 { font-size: var(--text-xl); margin-bottom: 4px; }
.popular-info p  { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: var(--space-1); }
.popular-price   { font-size: var(--text-2xl); font-weight: 600; color: var(--brass); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.popular-note    { margin-top: var(--space-3); text-align: center; color: var(--ink-soft); }

/* ── Category grid ───────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-3);
}
.category-card {
  display: block;
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: box-shadow var(--duration-fast) var(--ease);
}
.category-card:hover { box-shadow: var(--shadow-md); }
.category-img {
  height: 220px;
  background: var(--forest-soft);
  overflow: hidden;
}
.category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.category-img--shutters { background: var(--brass-soft); }
.category-img--corbels  { background: var(--line-soft); }
.category-info { padding: var(--space-3); }
.category-info h3 { font-size: var(--text-2xl); margin-bottom: var(--space-1); }
.category-info p  { font-size: var(--text-base); color: var(--ink-soft); margin-bottom: var(--space-2); }
.category-link    { font-weight: 600; color: var(--brass); font-size: var(--text-sm); }
.category-card--coming .category-link { color: var(--ink-faint); }

/* ── How it works ────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.step { position: relative; padding-top: var(--space-4); }
.step-num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 600;
  color: var(--line);
  line-height: 1;
  user-select: none;
}
.step h3  { font-size: var(--text-xl); margin-bottom: var(--space-1); }
.step p   { color: var(--ink-soft); }

/* ── Proof gallery ───────────────────────────────────────────────────────── */
.proof-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-2);
}
.proof-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--forest-soft);
}
.proof-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.proof-placeholder {
  grid-column: 1/-1;
  padding: var(--space-6);
  background: var(--forest-soft);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  border: 1.5px dashed var(--line);
}

/* ── CTA strip ───────────────────────────────────────────────────────────── */
.cta-strip {
  background: var(--header-bg);
  padding-block: var(--space-8);
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.cta-strip h2 { color: var(--header-ink); }
.cta-strip p  { color: var(--header-ink); opacity: .7; margin-top: 4px; }
@media (max-width: 640px) {
  .cta-strip-inner { flex-direction: column; text-align: center; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--header-bg);
  padding-block: var(--space-8);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: start;
}
.footer-brand p   { color: var(--header-ink); opacity: .6; font-size: var(--text-sm); margin-top: var(--space-1); }
.footer-nav       { display: flex; flex-direction: column; gap: var(--space-1); }
.footer-nav a     { color: var(--header-ink); opacity: .7; text-decoration: none; font-size: var(--text-sm); }
.footer-nav a:hover { opacity: 1; }
.footer-legal     { text-align: right; }
.footer-legal p   { font-size: var(--text-xs); color: var(--header-ink); opacity: .5; }
.footer-legal a   { color: inherit; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { text-align: left; }
}
