/* ─────────────────────────────────────────
   BILD — The Pursuit of U  |  Shared Styles
   ───────────────────────────────────────── */

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

:root {
  --charcoal:    #3a3a3a;
  --coral:       #d4614a;
  --teal:        #4a8f8c;
  --steel-blue:  #5b7fa6;
  --sage:        #7a8c6e;
  --mauve:       #b08090;
  --gold:        #c9a84c;
  --cream:       #f5f0e8;
  --dark:        #1e1e1e;
  --dark2:       #252525;
  --off-white:   #faf8f4;
}

html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: var(--off-white); color: var(--charcoal); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(30,30,30,0.94);
  backdrop-filter: blur(10px);
}
.nav-logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: 0.18em; color: var(--cream); text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,240,232,0.65); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; background: var(--coral); color: white; padding: 0.6rem 1.25rem; text-decoration: none; transition: background 0.2s; }
.nav-cta:hover { background: #bf5040; }

/* ── UTILITY ── */
.section-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--coral); margin-bottom: 1rem; display: block; }
.callout { background: var(--dark); border-left: 3px solid var(--coral); padding: 1.75rem 2rem; margin: 2.5rem 0; }
.callout p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem; color: var(--cream); line-height: 1.7; }
.callout.gold { border-left-color: var(--gold); }
.callout.gold p { color: rgba(245,240,232,0.85); }

/* ── FOOTER ── */
.site-footer { background: var(--dark); padding: 2.5rem 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.18em; color: var(--cream); text-decoration: none; }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,240,232,0.38); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.68rem; color: rgba(245,240,232,0.22); width: 100%; margin-top: 0.75rem; text-align: center; }

/* ── PILLAR PAGE HERO ── */
.pillar-hero { background: var(--dark); min-height: 52vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 8rem 3rem 4rem; position: relative; overflow: hidden; }
.pillar-hero::before { content: ''; position: absolute; inset: 0; background: var(--hero-grad, none); }
.hero-inner { position: relative; max-width: 860px; }
.pillar-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--pillar-color, var(--coral)); color: white; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; padding: 0.33rem 0.9rem; margin-bottom: 1.4rem; }
.pillar-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; color: var(--cream); line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.pillar-tagline { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(245,240,232,0.58); max-width: 580px; line-height: 1.65; border-left: 2px solid var(--pillar-color, var(--coral)); padding-left: 1.2rem; }

/* ── PILLAR TAB NAV ── */
.tab-nav { background: var(--dark2); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 0 2.5rem; display: flex; gap: 0; overflow-x: auto; position: sticky; top: 62px; z-index: 50; scrollbar-width: none; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,240,232,0.42); background: none; border: none; padding: 1.1rem 1.4rem; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; margin-bottom: -1px; }
.tab-btn:hover { color: rgba(245,240,232,0.75); }
.tab-btn.active { color: var(--pillar-color, var(--coral)); border-bottom-color: var(--pillar-color, var(--coral)); }

/* ── CONTENT PANEL ── */
.content-area { display: none; max-width: 860px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.content-area.visible { display: block; animation: fadeIn 0.3s ease; }
.content-title { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--dark); line-height: 1.25; margin-bottom: 1.4rem; }
.lead { font-size: 1.02rem; font-weight: 300; line-height: 1.9; color: #5a5a5a; margin-bottom: 1.5rem; }
.lead strong { color: var(--charcoal); font-weight: 600; }

/* ── TABLES ── */
.bild-table { width: 100%; border-collapse: collapse; margin: 2.5rem 0; font-size: 0.88rem; }
.bild-table th { background: var(--dark); color: var(--cream); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.85rem 1.2rem; text-align: left; }
.bild-table td { padding: 1rem 1.2rem; font-weight: 300; line-height: 1.6; border-bottom: 1px solid #ede7dc; color: var(--charcoal); vertical-align: top; }
.bild-table tr:nth-child(odd) td { background: white; }
.bild-table tr:last-child td { border-bottom: none; }

/* ── QUESTION CARDS ── */
.q-list { display: flex; flex-direction: column; gap: 0.9rem; margin: 2rem 0; }
.q-card { padding: 1.5rem 1.75rem; border: 1px solid #e5dfd4; background: white; position: relative; transition: border-color 0.25s, transform 0.2s; }
.q-card:hover { border-color: var(--pillar-color, var(--coral)); transform: translateX(4px); }
.q-card p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1rem; color: var(--charcoal); line-height: 1.58; }

/* ── STEP LIST ── */
.step-list { display: flex; flex-direction: column; gap: 1px; margin: 2.5rem 0; }
.step-item { display: grid; grid-template-columns: 64px 1fr; background: white; border: 1px solid #e5dfd4; border-bottom: none; }
.step-item:last-child { border-bottom: 1px solid #e5dfd4; }
.step-num { background: var(--pillar-color, var(--coral)); color: white; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 900; }
.step-body { padding: 1.2rem 1.5rem; }
.step-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dark); margin-bottom: 0.4rem; }
.step-desc { font-size: 0.88rem; font-weight: 300; line-height: 1.65; color: #666; }

/* ── INTERACTIVE INVENTORY ── */
.inv-item { background: white; border: 1px solid #e5dfd4; padding: 1.75rem 2rem; margin-bottom: 1.5rem; }
.inv-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.inv-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 900; color: var(--pillar-color, var(--coral)); opacity: 0.2; line-height: 1; flex-shrink: 0; }
.inv-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark); padding-top: 0.5rem; }
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.inv-field { display: flex; flex-direction: column; gap: 0.3rem; }
.inv-field label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #aaa; }
.inv-field input, .inv-field textarea { width: 100%; font-family: 'Barlow', sans-serif; font-size: 0.88rem; font-weight: 300; color: var(--charcoal); background: var(--off-white); border: 1px solid #ddd; padding: 0.7rem 0.9rem; outline: none; resize: vertical; transition: border-color 0.2s; }
.inv-field input:focus, .inv-field textarea:focus { border-color: var(--pillar-color, var(--coral)); }
.inv-field textarea { min-height: 68px; }
.inv-full { grid-column: 1 / -1; }

.commit-block { background: var(--dark); padding: 2.5rem; margin-top: 2.5rem; }
.commit-block h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.commit-block p { font-size: 0.9rem; font-weight: 300; color: rgba(245,240,232,0.58); line-height: 1.75; margin-bottom: 1.25rem; }
.commit-input { width: 100%; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1rem; color: var(--cream); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); padding: 0.9rem 1.2rem; outline: none; margin-bottom: 1rem; transition: border-color 0.2s; }
.commit-input:focus { border-color: var(--gold); }
.commit-btn { background: var(--pillar-color, var(--coral)); color: white; border: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; padding: 0.9rem 2rem; cursor: pointer; transition: opacity 0.2s, transform 0.2s; }
.commit-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.commit-confirm { display: none; margin-top: 1.2rem; font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold); font-size: 1rem; }

/* ── PILLAR NAV ── */
.pillar-nav { background: var(--dark); padding: 2.5rem 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.pnav-back { text-decoration: none; color: rgba(245,240,232,0.45); font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; transition: color 0.2s; }
.pnav-back:hover { color: var(--cream); }
.pnav-next { text-decoration: none; background: var(--dark2); border: 1px solid rgba(255,255,255,0.1); padding: 1rem 1.75rem; display: flex; flex-direction: column; align-items: flex-end; transition: border-color 0.2s; }
.pnav-next:hover { border-color: var(--next-color, var(--teal)); }
.pnav-next .next-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.63rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--next-color, var(--teal)); margin-bottom: 0.3rem; }
.pnav-next .next-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); }

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .pillar-hero { padding: 7.5rem 1.5rem 3rem; }
  .tab-nav { padding: 0 1rem; }
  .content-area { padding: 2.5rem 1.25rem 5rem; }
  .inv-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .pillar-nav { padding: 2rem 1.5rem; }
}
