/* ==========================================================
   W BOY — Drumkit Funkhall — estilos gerais
   ========================================================== */

:root{
  --cream:#f7edcf;
  --cream-dark:#e7dcb6;
  --green:#3d9c3a;
  --green-dark:#1f5c1f;
  --green-darker:#153d15;
  --ink:#181510;
  --yellow:#f4d23a;
  --btn-green:#5aab34;
  --btn-green-dark:#3f7d24;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-hard: 6px 8px 0 rgba(0,0,0,.85);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.25);
  --header-h: 86px;
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  min-height:100vh;
  font-family:'Roboto Slab', serif;
  color:var(--ink);
  background-color: var(--green);
  background-image:url('../assets/bg-hero.jpg');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  overflow-x:hidden;
}

@media (max-width: 700px){
  body{
    background-image:url('../assets/bg-mobile.jpg');
    background-attachment:scroll;
  }
}

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

a{ text-decoration:none; color:inherit; }

ul{ margin:0; padding:0; list-style:none; }

/* ---------------- Header ---------------- */

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  padding: 14px clamp(14px, 4vw, 40px) 0;
}

.header-bar{
  max-width:1400px;
  margin:0 auto;
  background:var(--cream);
  border:3px solid var(--ink);
  border-radius: 60px;
  box-shadow: 0 6px 0 rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 34px;
  min-height: 64px;
  gap: 20px;
}

.logo img{
  height: 46px;
  width:auto;
}

.main-nav{
  display:flex;
  align-items:center;
  gap: 26px;
  flex-wrap:wrap;
}

.main-nav a{
  font-family:'Roboto Slab', serif;
  font-weight:700;
  font-size: 15px;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--ink);
  position:relative;
  padding: 4px 2px;
  transition: color .2s ease;
}

.main-nav a::after{
  content:"";
  position:absolute;
  left:0; right:100%;
  bottom:-4px;
  height:3px;
  background:var(--btn-green);
  transition: right .25s ease;
  border-radius:2px;
}

.main-nav a:hover{ color:var(--btn-green-dark); }
.main-nav a:hover::after,
.main-nav a.active::after{ right:0; }

.main-nav .sep{ color:var(--ink); opacity:.35; font-weight:400; }

.menu-toggle{
  display:none;
  background:none;
  border:none;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  color:var(--ink);
}

/* ---------------- Hero / Home ---------------- */

main{ display:block; }

.hero{
  padding: 40px clamp(14px, 4vw, 40px) 80px;
}

.hero-inner{
  max-width:1400px;
  margin:0 auto;
  display:flex;
  align-items:flex-end;
  gap: clamp(20px, 4vw, 60px);
  min-height: 60vh;
}

.artist-photo-wrap{
  flex: 1 1 42%;
  order:1;
  align-self:flex-end;
}

.artist-photo-wrap img{
  width:100%;
  height:auto;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,.35));
}

.product-card{
  flex: 1 1 56%;
  order:2;
  position:relative;
  display:flex;
  align-items:center;
  background: rgba(0,0,0,0);
  padding-bottom: 10px;
}

.product-cover-wrap{
  position:relative;
  z-index:2;
  flex: 0 0 auto;
  width: clamp(230px, 30vw, 420px);
  margin-right: clamp(-90px, -7vw, -55px);
}

.product-cover-wrap img{
  width:100%;
  border-radius: 22px;
  filter: drop-shadow(8px 12px 16px rgba(0,0,0,.45));
}

.product-info{
  position:relative;
  z-index:1;
  flex:1 1 auto;
  background:var(--cream);
  border:3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: 28px clamp(22px, 3vw, 32px) 28px clamp(95px, 11vw, 135px);
  min-width: 0;
}

.product-info h1{
  font-family:'Baloo 2', cursive;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight:800;
  margin: 0 0 4px;
  letter-spacing:.01em;
}

.product-info .price{
  font-family:'Baloo 2', cursive;
  font-weight:700;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--green-dark);
  margin: 0 0 14px;
}

.buy-btn{
  display:inline-block;
  background: var(--btn-green);
  color:#fff;
  font-family:'Baloo 2', cursive;
  font-weight:700;
  font-size: 18px;
  letter-spacing:.02em;
  padding: 10px 0;
  width: 100%;
  text-align:center;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 3px 4px 0 rgba(0,0,0,.75);
  margin-bottom: 18px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

.buy-btn:hover{
  background: var(--btn-green-dark);
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 rgba(0,0,0,.8);
}

.buy-btn:active{
  transform: translateY(1px);
  box-shadow: 1px 2px 0 rgba(0,0,0,.8);
}

.tracklist li{
  font-family:'Space Mono', monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink);
}

.total{
  font-family:'Space Mono', monospace;
  font-size: 13px;
  margin-top: 12px;
  opacity:.85;
  letter-spacing:.02em;
}

/* ---------------- Generic inner pages ---------------- */

.page-hero{
  padding: 60px clamp(14px,4vw,40px) 100px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-panel{
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  padding: clamp(28px, 5vw, 56px);
}

.page-panel h1{
  font-family:'Baloo 2', cursive;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 18px;
}

.page-panel p{
  font-family:'Roboto Slab', serif;
  font-size: 16px;
  line-height:1.7;
  margin: 0 0 16px;
}

.page-panel a.inline-link{
  color: var(--green-dark);
  font-weight:700;
  text-decoration: underline;
}

.contact-list{
  margin-top: 24px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  font-family:'Space Mono', monospace;
  font-size: 15px;
}

.catalog-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.catalog-card{
  background: var(--cream-dark);
  border: 3px dashed var(--ink);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align:center;
  font-family:'Baloo 2', cursive;
  font-weight:700;
  color: var(--ink);
  opacity:.75;
}

/* ---------------- Footer ---------------- */

.site-footer{
  text-align:center;
  padding: 30px 20px 40px;
  font-family:'Space Mono', monospace;
  font-size: 12.5px;
  color: rgba(255,255,255,.85);
}

/* ==========================================================
   Animações de entrada (2D)
   ========================================================== */

@keyframes fadeUp{
  from{ opacity:0; transform: translateY(28px); }
  to{ opacity:1; transform: translateY(0); }
}

@keyframes fadeDown{
  from{ opacity:0; transform: translateY(-24px); }
  to{ opacity:1; transform: translateY(0); }
}

@keyframes slideInLeft{
  from{ opacity:0; transform: translateX(-60px) rotate(-3deg); }
  to{ opacity:1; transform: translateX(0) rotate(0); }
}

@keyframes slideInRight{
  from{ opacity:0; transform: translateX(60px) rotate(2deg); }
  to{ opacity:1; transform: translateX(0) rotate(0); }
}

@keyframes popIn{
  0%{ opacity:0; transform: scale(.7); }
  70%{ opacity:1; transform: scale(1.04); }
  100%{ opacity:1; transform: scale(1); }
}

/* estado inicial (escondido) antes do JS marcar body.is-ready */
.header-bar,
.logo,
.artist-photo-wrap,
.product-cover-wrap,
.product-info,
.page-panel,
.site-footer{
  opacity:0;
}

/* sem JS, garante que tudo fique visível */
.no-js .header-bar,
.no-js .logo,
.no-js .artist-photo-wrap,
.no-js .product-cover-wrap,
.no-js .product-info,
.no-js .page-panel,
.no-js .site-footer{
  opacity:1;
}

body.is-ready .header-bar{
  animation: fadeDown .7s cubic-bezier(.2,.7,.3,1) .05s forwards;
}

body.is-ready .logo{
  animation: popIn .7s cubic-bezier(.2,.7,.3,1) .25s forwards;
}

body.is-ready .artist-photo-wrap{
  animation: slideInLeft .8s cubic-bezier(.2,.7,.3,1) .3s forwards;
}

body.is-ready .product-cover-wrap{
  animation: popIn .7s cubic-bezier(.2,.7,.3,1) .55s forwards;
}

body.is-ready .product-info{
  animation: slideInRight .8s cubic-bezier(.2,.7,.3,1) .5s forwards;
}

body.is-ready .page-panel{
  animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) .3s forwards;
}

body.is-ready .site-footer{
  animation: fadeUp .6s ease .8s forwards;
}

@media (prefers-reduced-motion: reduce){
  .header-bar, .logo, .artist-photo-wrap,
  .product-cover-wrap, .product-info, .page-panel, .site-footer{
    opacity:1 !important;
    animation:none !important;
  }
}

/* Scroll reveal (used on inner pages / extra blocks) */
.reveal{
  opacity:0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view{
  opacity:1;
  transform: translateY(0);
}

/* ==========================================================
   Responsivo — Mobile
   ========================================================== */

@media (max-width: 900px){
  .header-bar{ border-radius: 40px; padding: 10px 20px; }
  .main-nav{
    position:absolute;
    top: calc(100% + 10px);
    left:0; right:0;
    background: var(--cream);
    border:3px solid var(--ink);
    border-radius: 22px;
    box-shadow: var(--shadow-hard);
    flex-direction:column;
    align-items:flex-start;
    padding: 16px 22px;
    gap: 14px;
    display:none;
  }
  .main-nav.open{ display:flex; }
  .menu-toggle{ display:block; }

  .hero-inner{
    flex-direction:column;
    align-items:stretch;
    min-height:0;
  }
  .product-card{
    order:1;
    flex-direction:row;
  }
  .artist-photo-wrap{
    order:2;
    margin-top: -10px;
  }
}

@media (max-width: 620px){
  .product-card{
    flex-direction:column;
  }
  .product-cover-wrap{
    width: 60%;
    margin: 0 auto -30px;
    z-index:2;
  }
  .product-info{
    text-align:left;
    padding: 40px clamp(22px,6vw,32px) 26px;
  }
}
