/* ================================================================
   TreeHaus Woodworking — Dark Luxe Theme
   ================================================================ */

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

:root {
  /* Dark palette */
  --bg:          #0e0c0b;
  --bg-elevated: #171412;
  --bg-card:     #1c1916;
  --bg-subtle:   #231f1b;
  --border:      rgba(255,255,255,0.06);
  --border-light:rgba(255,255,255,0.1);

  /* Text */
  --text:        #f5f0eb;
  --text-muted:  #9a9089;
  --text-dim:    #6b6360;

  /* Accent */
  --accent:      #c8956c;
  --accent-hover:#daa882;
  --accent-glow: rgba(200,149,108,0.15);

  /* Wood tones */
  --walnut:      #4a3728;
  --maple:       #d4b896;
  --cherry:      #8b4513;

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing & Shape */
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 8px 40px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text); font-weight: 600; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; }
h3 { font-size: 1.3rem; }

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

::selection { background: var(--accent); color: var(--bg); }

/* ===== Section Utilities ===== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading { margin-bottom: 1rem; }
.section-sub { color: var(--text-muted); max-width: 540px; margin-bottom: 3rem; font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 36px; border-radius: 8px; font-weight: 500;
  text-decoration: none; font-size: 0.9rem; border: none;
  cursor: pointer; transition: all 0.3s ease; font-family: var(--font-body);
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
}
.btn-nav {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
  padding: 8px 18px; border-radius: 6px; font-size: 0.82rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-nav:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm {
  padding: 10px 20px; font-size: 0.82rem; border-radius: 6px;
  background: var(--accent); color: var(--bg); text-decoration: none;
  display: inline-flex; align-items: center; border: none; cursor: pointer;
  font-family: var(--font-body); transition: all 0.3s;
}
.btn-sm:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-full { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 0;
  background: rgba(14,12,11,0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s;
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(14,12,11,0.92);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo {
  text-decoration: none; font-family: var(--font-heading);
  font-size: 1.5rem; color: var(--text); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.logo-tree { color: var(--accent); }
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 0.85rem;
  font-weight: 400; transition: color 0.3s; letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--text);
  transition: all 0.3s; border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(74,55,40,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 80% 60%, rgba(139,69,19,0.1) 0%, transparent 60%),
    var(--bg);
}
.hero-grain {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 4px;
  color: var(--accent); margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05; margin-bottom: 24px; font-weight: 400;
}
.hero h1 em {
  font-style: italic; color: var(--accent);
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 520px; margin: 0 auto 40px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  margin-top: 60px; color: var(--text-dim);
  animation: bobDown 2s ease-in-out infinite;
}
@keyframes bobDown {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ===== Marquee Strip ===== */
.marquee-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0; overflow: hidden;
  background: var(--bg-elevated);
}
.marquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 2px; color: var(--text-dim);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Craft / About ===== */
.craft { padding: 140px 0; }
.craft-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.craft-text h2 { margin-bottom: 28px; }
.craft-text p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.02rem; line-height: 1.85; }
.craft-stats {
  display: flex; gap: 40px; margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-heading); font-size: 2.8rem; font-weight: 600;
  color: var(--accent); line-height: 1;
}
.stat-plus { font-family: var(--font-heading); font-size: 2rem; color: var(--accent); }
.stat-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; letter-spacing: 0.5px; }

.craft-images { position: relative; }
.craft-img img,
.craft-img .placeholder-img {
  border-radius: var(--radius-lg);
  display: block; width: 100%; object-fit: cover;
  color: var(--text-dim);
}
.craft-img .placeholder-img { display: flex; align-items: center; justify-content: center; }
.craft-img-1 {
  width: 75%;
}
.craft-img-1 img,
.craft-img-1 .placeholder-img {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--walnut), #2a1f16);
}
.craft-img-2 {
  position: absolute; bottom: -30px; right: -10px; width: 55%;
}
.craft-img-2 img,
.craft-img-2 .placeholder-img {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #3a2a1e, var(--walnut));
  border: 4px solid var(--bg);
}

/* ===== Process ===== */
.process {
  padding: 120px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process .section-heading { margin-bottom: 4rem; }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.process-step {
  padding: 36px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  transition: all 0.4s; position: relative; overflow: hidden;
}
.process-step:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(200,149,108,0.08);
}
.step-num {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--accent); margin-bottom: 20px; letter-spacing: 2px;
}
.step-icon { margin-bottom: 16px; color: var(--accent); }
.step-icon i { width: 28px; height: 28px; }
.process-step h3 { margin-bottom: 12px; font-size: 1.2rem; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== Products ===== */
.products { padding: 140px 0; }

.product-filters {
  display: flex; gap: 8px; margin-bottom: 3rem; flex-wrap: wrap;
}
.filter-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); padding: 10px 24px; border-radius: 100px;
  font-size: 0.82rem; cursor: pointer; transition: all 0.3s;
  font-family: var(--font-body);
}
.filter-btn:hover { border-color: var(--accent); color: var(--text); }
.filter-btn.active {
  background: var(--accent); color: var(--bg);
  border-color: var(--accent);
}

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  transition: all 0.4s;
}
.product-card:hover {
  border-color: rgba(200,149,108,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-card[data-hidden="true"] { display: none; }

.product-img {
  position: relative; overflow: hidden;
}
.product-img img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.6s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img .placeholder-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-subtle), var(--walnut));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: transform 0.6s;
}
.product-card:hover .product-img .placeholder-img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--accent); color: var(--bg);
  padding: 4px 14px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px;
}
.product-info { padding: 24px; }
.product-info h3 { margin-bottom: 4px; }
.product-wood { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 16px; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.product-price {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600;
  color: var(--accent);
}

/* ===== Board Builder ===== */
.builder {
  padding: 140px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.builder-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.builder-options { display: flex; flex-direction: column; gap: 28px; }
.builder-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-dim); margin-bottom: 12px; display: block;
  font-family: var(--font-mono);
}
.option-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 10px 20px; border-radius: 8px; font-size: 0.85rem;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: all 0.3s;
  font-family: var(--font-body); display: inline-flex; align-items: center; gap: 8px;
}
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill.active {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}
.pill-detail {
  font-size: 0.72rem; opacity: 0.7; margin-left: 2px;
}
.wood-swatch {
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-block; border: 2px solid rgba(255,255,255,0.15);
}
.builder-text-input {
  width: 100%; padding: 14px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color 0.3s;
}
.builder-text-input:focus { outline: none; border-color: var(--accent); }

/* Preview */
.builder-preview { position: sticky; top: 100px; }
.preview-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
}
.preview-visual {
  padding: 40px; display: flex; align-items: center; justify-content: center;
  min-height: 280px; background: var(--bg-subtle);
}
.preview-board { transition: all 0.5s ease; }
.board-surface {
  border-radius: var(--radius);
  transition: all 0.5s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.preview-summary { padding: 28px; }
.preview-summary h3 { margin-bottom: 16px; }
.preview-specs {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 24px;
}
.preview-specs li {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-muted);
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.preview-specs li span:last-child { color: var(--text); font-weight: 500; }
.preview-price {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-top: 8px;
}
.price-label { color: var(--text-dim); font-size: 0.9rem; }
.price-amount {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 600;
  color: var(--accent);
}

/* ===== Gallery ===== */
.gallery { padding: 140px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .placeholder-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-subtle), var(--walnut));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: transform 0.6s;
}
.gallery-item:hover .placeholder-img { transform: scale(1.06); }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }

/* ===== Testimonials ===== */
.testimonials {
  padding: 120px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonials .section-heading { margin-bottom: 3rem; }
.testimonial-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  transition: all 0.4s;
}
.testimonial-card:hover {
  border-color: rgba(200,149,108,0.3); transform: translateY(-2px);
}
.stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.8;
  margin-bottom: 24px; font-style: italic;
}
.testimonial-author {
  display: flex; flex-direction: column; gap: 2px;
}
.testimonial-author strong { color: var(--text); font-size: 0.9rem; }
.testimonial-author span { color: var(--text-dim); font-size: 0.78rem; }

/* ===== FAQ ===== */
.faq { padding: 140px 0; }
.faq .section-heading { margin-bottom: 3rem; }
.faq-list { max-width: 720px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 1.05rem; color: var(--text);
  text-align: left; transition: color 0.3s;
}
.faq-question:hover { color: var(--accent); }
.faq-question i { width: 20px; height: 20px; color: var(--text-dim); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(45deg); color: var(--accent); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 24px; }
.faq-answer p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.8; }

/* ===== Contact ===== */
.contact { padding: 140px 0; background: var(--bg-elevated); border-top: 1px solid var(--border); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contact-info h2 { margin-top: 8px; margin-bottom: 20px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; line-height: 1.8; }
.contact-details {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
}
.contact-details li {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 0.92rem;
}
.contact-details i { width: 18px; height: 18px; color: var(--accent); }
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: var(--font-body);
  font-size: 0.9rem; transition: border-color 0.3s; width: 100%;
}
.contact-form select { appearance: none; cursor: pointer; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form .btn { align-self: flex-start; }

/* ===== Footer ===== */
.footer {
  padding: 80px 0 40px; border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-links-col h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-dim); margin-bottom: 16px; font-family: var(--font-mono);
}
.footer-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a {
  text-decoration: none; color: var(--text-muted); font-size: 0.88rem;
  transition: color 0.3s;
}
.footer-links-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--border); text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-dim); }

/* ===== Placeholder Image Utility ===== */
.placeholder-img {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}

/* ===== Hero text stagger (initial hidden state) ===== */
.hero-animate {
  opacity: 0;
  transform: translateY(30px);
}

/* ===== Social Proof Banner ===== */
.social-proof {
  padding: 48px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.social-proof-label {
  text-align: center; font-family: var(--font-mono);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--text-dim); margin-bottom: 28px;
}
.social-proof-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.proof-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.85rem;
  transition: color 0.3s;
}
.proof-item:hover { color: var(--accent); }
.proof-item i { width: 20px; height: 20px; }
.proof-divider {
  width: 1px; height: 20px; background: var(--border);
}
@media (max-width: 768px) {
  .social-proof-logos { gap: 16px; }
  .proof-divider { display: none; }
  .proof-item { flex: 1 1 calc(50% - 16px); justify-content: center; }
}

/* ===== Page Loader ===== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo { color: var(--accent); margin-bottom: 24px; animation: loaderPulse 1.5s ease-in-out infinite; }
@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}
.loader-bar {
  width: 120px; height: 2px; background: var(--border);
  border-radius: 2px; overflow: hidden; margin: 0 auto;
}
.loader-progress {
  height: 100%; width: 0; background: var(--accent);
  border-radius: 2px; animation: loaderFill 1.2s ease-out forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ===== Cursor Glow ===== */
.cursor-glow {
  position: fixed; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none; z-index: 0; opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}
.cursor-glow.visible { opacity: 1; }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--accent); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
}
.back-to-top i { width: 20px; height: 20px; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: var(--text); cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }
.lightbox-close i { width: 28px; height: 28px; }
.lightbox-content {
  max-width: 90vw; max-height: 85vh; border-radius: var(--radius-lg); overflow: hidden;
}
.lightbox-img {
  width: 70vw; height: 60vh;
  background-size: cover; background-position: center;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-lg);
  transform: scale(0.9); transition: transform 0.4s ease;
}
.lightbox.active .lightbox-img { transform: scale(1); }

/* Gallery Zoom Icon */
.gallery-zoom {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity 0.3s;
}
.gallery-zoom i { width: 20px; height: 20px; }
.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-item { position: relative; cursor: pointer; }

/* ===== Scroll offset for fixed navbar ===== */
section[id] { scroll-margin-top: 80px; }

/* ===== Animations (initial state for GSAP) ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
}
[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-track { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%; background: var(--bg);
    padding: 24px 28px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }

  .hero h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); }

  .craft-grid { grid-template-columns: 1fr; gap: 48px; }
  .craft-images { display: flex; gap: 16px; }
  .craft-img-2 { position: static; width: 50%; }
  .craft-img-1 .placeholder-img { width: 100%; }

  .process-steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .builder-grid { grid-template-columns: 1fr; }
  .builder-preview { position: static; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gallery-wide { grid-column: span 2; }
  .gallery-tall { grid-row: span 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .craft-stats { flex-direction: column; gap: 20px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .product-filters { justify-content: center; }
}
