/* Extra styles for logo animation and version history */

.hero-logo-container{position:absolute;left:50%;transform:translateX(-50%);top:96px;display:inline-flex;align-items:center;gap:12px;transition:transform .45s cubic-bezier(.2,.9,.3,1),top .45s,opacity .35s;z-index:4}
.hero-logo{max-width:280px;height:auto;display:block}
.hero-wordmark{font-weight:700;letter-spacing:2px;font-size:1.1rem;opacity:0;transform:translateY(6px);transition:opacity .35s,transform .35s;color:var(--accent)}

/* State when user has scrolled far enough to overlap */
body.logo-overlap .hero-logo-container{transform:translateX(-50%) translateY(-18px) scale(.95)}
body.logo-overlap .hero-wordmark{opacity:1;transform:translateY(0)}

/* NOTE: Pinned logo behavior removed — keep logo inside hero only. */
/* No-op placeholders kept to avoid unexpected selector matches in other code. */
body.logo-fixed .hero-logo-container{/* pinned behavior removed */}
body.logo-fixed .hero-wordmark{/* pinned behavior removed */}
body.logo-fixed .navbar .logo{/* pinned behavior removed */}

/* Version history list */
.version-list{list-style:none;margin-top:16px;padding:0}
.version-list li{background:#fff;color:var(--primary);padding:12px;border-radius:8px;margin-bottom:8px;box-shadow:0 2px 6px rgba(0,0,0,0.04);display:flex;justify-content:space-between;align-items:center}
.version-meta{font-weight:700;margin-right:12px;color:var(--primary)}
.version-summary{flex:1;color:#444;font-size:.95rem}
.btn.small{padding:8px 12px;font-size:.9rem;border-radius:6px}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero-logo-container, .hero-wordmark, .navbar .logo{transition:none}
}

/* --- Make the banner background appear fixed, keep the hero content in flow so it scrolls normally --- */
.hero{position:relative;height:clamp(320px,60vh,720px);z-index:900;background-attachment:fixed}
main{margin-top:0}

/* Ensure mobile accessibility: avoid problematic backgrounds on very small screens */
@media (max-width:480px){
  .hero{height:auto;background-attachment:scroll}
  main{margin-top:0}
  body.logo-fixed .hero-logo-container{top:8vh}
}

/* When logo is fixed — removed. Keep hero logo in-flow only. */
body.logo-fixed .hero-logo-container{/* removed pinned placement */}

/* --- Thin fixed black top banner for navigation (promo-aware) --- */
:root{--promo-offset:0px}

.promo-banner{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:48px;
  background:#333; /* Lighter grey */
  color:#fff;
  display:flex;
  align-items:center;
  z-index:1450;
  transform:translateY(-100%);
  opacity:0;
  transition:transform .28s ease,opacity .22s linear;
}
.promo-inner{display:flex;justify-content:center;align-items:center;width:100%;padding:0 18px}
.promo-info{font-size:0.95rem}
.promo-info a{color:#fff;text-decoration:underline}
.promo-close{background:transparent;border:0;color:#fff;font-size:20px;line-height:1;cursor:pointer}

body.promo-visible .promo-banner{transform:translateY(0);opacity:1}
body.promo-hidden .promo-banner{display:none}

.navbar{
  position:fixed;
  top:var(--promo-offset,0px);
  left:0;
  width:100%;
  height:48px;
  background:#000;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:0 18px;
  z-index:1300;
  transition:top .28s ease;
}

body.promo-visible{--promo-offset:48px}

.navbar .burger{order:1;margin-right:8px;margin-left:auto}
.nav-links{display:flex;gap:18px;align-items:center;height:100%}
.nav-links a{color:#fff;text-decoration:none;padding:0 6px;font-weight:600}
.burger span{background:#fff}

/* Centered outlined logo that appears when hero logo scrolls off-screen */
.navbar .nav-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) translateY(-4px);max-height:156px;opacity:0;transition:opacity .25s ease,transform .25s ease;pointer-events:none;filter:none;object-fit:contain;width:auto;height:auto;z-index:1350}
body.show-navbar-logo .navbar .nav-logo{opacity:1;transform:translate(-50%,-50%) translateY(0)}

/* For small screens ensure the logo remains visible and not overlapped by the burger */
@media (max-width:420px){
  .navbar .nav-logo{max-height:40px}
}

/* When mobile nav is open, position it under the top bar */
.nav-links.open{position:absolute;top:48px;left:0;right:0;background:#000;padding:0;flex-direction:column;align-items:stretch;gap:0}

@media (max-width:480px){
  .navbar{height:auto;padding:8px 12px}
  .nav-links.open{position:static}
} 

/* Hide nav links and use burger on small/condensed screens (fixed overlay reveal) */
@media (max-width:1199px){
  .burger{display:block;margin-left:auto;margin-right:8px;order:2}

  /* Mobile menu container (collapsed by default). Use fixed overlay so all anchors are visible. */
  .nav-links{display:flex;position:fixed;top:48px;left:0;right:0;background:#000;height:auto;max-height:0;overflow:hidden;transition:transform .28s ease,opacity .22s linear;transform:translateY(-6px);opacity:0;flex-direction:column;align-items:stretch;gap:0;z-index:1400;padding:0}

  /* Open state: reveal by restoring transform and opacity + allow inner scrolling */
  .nav-links.open{transform:translateY(0);opacity:1;max-height:60vh;overflow:auto}

  .nav-links li{width:100%;margin:0;border:0}
  .nav-links li a{display:block;padding:12px 18px;color:#fff;text-decoration:none;border:none;background:transparent;text-align:right;transition:padding .18s cubic-bezier(.2,.9,.3,1),background .12s linear,font-weight .12s linear}
  .nav-links li a:focus, .nav-links li a:hover{background:rgba(255,255,255,0.03);padding:16px 24px;font-weight:700}

  /* allow inner scrolling without affecting body scroll */
  .nav-links.open::-webkit-scrollbar{height:6px}
} 

@media (min-width:1200px){
  .nav-links{display:flex}
  .burger{display:none}
}

/* Services banner: make expertise cards float over banner */
#services{
  position: relative;
  background-image: url('banner-stories.jpg');
  background-size: cover;
  background-position: center;
  padding: 64px 0;
  overflow: visible;
}

#services::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(0,0,0,0.08));
  z-index: 0;
}

#services .container{position: relative; z-index: 2;}

#services .grid{position: relative; z-index: 2;}

#services .card{
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 20px;
}

/* Shop banner: make products float over banner */
#shop{
  position: relative;
  background-image: url('banner-shop.png');
  background-size: cover;
  background-position: center;
  padding: 64px 0;
  overflow: visible;
}

#shop::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.25), rgba(0,0,0,0.08));
  z-index: 0;
}

#shop .container{position: relative; z-index: 2;}

#shop .products{position: relative; z-index: 2; margin-top: -36px; gap: 24px; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}

#shop .product{
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 18px;
  transform: translateY(-18px);
}

#shop .product img{
  flex: 0 0 40%;
  width: 40%;
  height: auto;
  object-fit: contain;
  margin: 0;
}

#shop .product-info{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: left;
}

#shop .product .buy{align-self: flex-start}

@media (max-width: 768px){
  #shop{padding: 40px 0}
  #shop .products{margin-top: -12px; gap: 16px}
  #shop .product{transform: translateY(-8px); flex-direction: column; text-align: center; align-items: center}
  #shop .product img{width: 60%; max-width: 220px; margin-bottom: 12px}
  #shop .product-info{align-items: center}
  #shop .product .buy{align-self: center}
} 

/* ================================
   ABOUT PAGE STYLES
   ================================ */

/* About Hero with Parallax Effect */
.about-hero{
  position: relative;
  min-height: 500px;
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('banner.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.about-hero-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.about-hero-content{
  text-align: center;
  padding: 32px;
}

.about-hero-headline{
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0 0 16px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
  letter-spacing: -0.5px;
}

.about-hero-subtext{
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Two Worlds Split Section */
.two-worlds{
  padding: 64px 0;
  background: #fafafa;
}

.section-title{
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 48px;
  color: var(--dark);
}

.two-worlds-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.world-card{
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.world-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.world-icon{
  font-size: 3rem;
  margin-bottom: 16px;
}

.world-card h3{
  font-size: 1.6rem;
  margin: 0 0 16px;
  color: var(--dark);
}

.world-card p{
  margin: 0 0 24px;
  line-height: 1.6;
  color: var(--muted);
}

.world-creator{
  border-top: 4px solid #1f6f3b;
}

.world-consultant{
  border-top: 4px solid #0b0b0b;
}

/* Timeline Section */
.timeline-section{
  padding: 64px 0;
}

.timeline{
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before{
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.timeline-item{
  position: relative;
  margin-bottom: 40px;
  padding-left: 32px;
}

.timeline-dot{
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 2;
}

.timeline-content h3{
  margin: 0 0 4px;
  font-size: 1.4rem;
  color: var(--dark);
}

.timeline-date{
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 8px;
}

.timeline-content p{
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

/* Maker's Grid Section */
.makers-grid{
  padding: 64px 0;
  background: #fafafa;
}

.makers-grid-layout{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.maker-card{
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.maker-card:hover{
  transform: translateY(-4px);
}

.maker-card-header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eee;
}

.maker-card-header.tech{
  border-bottom-color: #0b0b0b;
}

.maker-card-header.nature{
  border-bottom-color: #1f6f3b;
}

.maker-card-header.thought{
  border-bottom-color: #666;
}

.maker-icon{
  font-size: 1.8rem;
}

.maker-card h3{
  margin: 0;
  font-size: 1.2rem;
  color: var(--dark);
}

.maker-card p{
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

/* Responsive adjustments for About page */
@media (max-width: 768px){
  .about-hero{
    min-height: 400px;
    background-attachment: scroll;
  }
  
  .two-worlds-grid{
    gap: 24px;
  }
  
  .timeline{
    padding-left: 32px;
  }
  
  .timeline::before{
    left: 7px;
  }
  
  .timeline-dot{
    width: 16px;
    height: 16px;
    left: 0;
  }
  
  .makers-grid-layout{
    gap: 20px;
  }
}

@media (max-width: 480px){
  .about-hero{
    min-height: 320px;
  }
  
  .section-title{
    margin-bottom: 32px;
  }
  
  .two-worlds, .timeline-section, .makers-grid{
    padding: 40px 0;
  }
}
