/* ===================================================
   FONT FACES
   =================================================== */
@font-face {
  font-family: 'Smackattack';
  src: url('../FNT/smackattackbb_reg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Smackattack';
  src: url('../FNT/smackattackbb_bld.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Manga';
  src: url('../FNT/mangat.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Manga';
  src: url('../FNT/mangatb.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Manga';
  src: url('../FNT/mangati.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

/* ===================================================
   BASE
   =================================================== */
body {
  background: #d9d9d9;
  color: #121212;
  overflow-x: hidden;
}

/* ===================================================
   HEADER / NAV
   =================================================== */
#navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding-top: 18px;
  padding-bottom: 18px;
  z-index: 10;
  background: transparent;
}

.navbar-grid {
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

#logo {
  text-decoration: none;
}

#logo-img {
  width: 62px;
  height: auto;
  display: block;
}

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 52px;
}

.navbar-nav .nav-link {
  font-family: 'Smackattack', sans-serif;
  font-size: 24px;
  color: #121212;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.navbar-nav .nav-link.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  z-index: 30;
  justify-self: end;
  align-self: center;
}

.nav-toggle-bar {
  display: block;
  height: 3px;
  width: 100%;
  background: #121212;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.96);
  z-index: 20;
  padding: 96px 24px 32px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.mobile-menu .nav-link {
  font-family: 'Smackattack', sans-serif;
  font-size: 28px;
  color: #f4f4f4;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 16px;
}

.mobile-menu .nav-link.active {
  color: #e9cc11;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .mobile-menu {
  display: flex;
}

/* ===================================================
   HERO LAYOUT
   =================================================== */
.hero-layout {
  min-height: 100vh;
  background-image: url("../IMG/bg-hero.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 118px;
  padding-bottom: 40px;
}

.hero-grid {
  align-items: center;
}

.hero-arrow {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow img {
  width: 52px;
  height: auto;
}

/* ===================================================
   HERO CARD
   =================================================== */
.hero-card {
  background: rgba(233, 204, 17, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.36),
    0 34px 85px rgba(0, 0, 0, 0.48);
  position: relative;
  padding: 34px;
  overflow: visible;
}

/*
 * Inner .hero-card-grid is a strict 12-col grid with 3 explicit rows.
 * Left stack (cols 1-7) auto-flows into row 1, 2, 3:
 *   row 1: .hero-stack  (mini logo + COMIC. title)
 *   row 2: .hero-balloon
 *   row 3: .hero-button
 * Right column (cols 7-12) holds the pinup, which spans all 3 rows.
 * Pinup overlaps the left stack on column 7 and bleeds vertically.
 */
.hero-card-grid {
  position: relative;
  align-items: start;
  overflow: visible;
  grid-template-rows: auto auto auto;
  row-gap: 16px;
  column-gap: 16px;
}

.hero-stack {
  grid-row: 1;
  position: relative;
  z-index: 2;
}

/*
 * Pinup placement (strict 12-col grid):
 *   - HTML: .col-6 .col-start-7 → cols 7–12 (full right half).
 *   - Absolutely positioned so row heights follow the left stack only (image
 *     does not stretch the three rows).
 *   - left: 0 pins to the seam beside the text column; right: clamp(...) keeps
 *     open yellow space along the card's right edge (not full-bleed image).
 */
.hero-pinup {
  grid-row: 1 / -1;
  position: absolute;
  left: 0;
  right: clamp(28px, 5vw, 72px);
  top: clamp(-56px, -6vw, -32px);
  width: auto;
  margin: 0;
  z-index: 3;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 16px 25px rgba(0, 0, 0, 0.45);
  overflow: visible;
  transform: rotate(7deg);
  transform-origin: 50% 50%;
}

.hero-pinup img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  /* No object-fit / aspect-ratio: image keeps its natural ratio, full pixels. */
}

@media screen and (min-width: 481px) {
  .hero-card {
    padding-bottom: clamp(56px, 9vw, 88px);
  }
}

/* ===================================================
   HERO CONTENT (logo, title, balloon, button)
   =================================================== */
.hero-mini-logo {
  width: 86px;
  height: auto;
  margin-bottom: 16px;
  display: block;
}

.hero-comic-title {
  font-family: 'Manga', sans-serif;
  text-transform: uppercase;
  font-size: clamp(46px, 5.3vw, 81px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  opacity: 0.4;
  margin: 4px 0 0 0;
  white-space: nowrap;
  pointer-events: none;
}

.hero-balloon {
  grid-row: 2;
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0;
  justify-self: center;
  z-index: 4;
}

.hero-balloon img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.hero-balloon-text {
  position: absolute;
  inset: 22% 12% 12% 9%;
}

.hero-balloon-text h2 {
  margin: 0;
  font-family: 'Smackattack', sans-serif;
  font-size: clamp(15px, 1.4vw, 22px);
  text-transform: uppercase;
}

.hero-balloon-text p {
  margin-top: 6px;
  font-family: 'Smackattack', sans-serif;
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-highlight {
  background: #e9cc11;
  padding: 0 2px;
}

.hero-button {
  grid-row: 3;
  justify-self: center;
  margin: 0;
  border: 2px solid #121212;
  padding: 10px 22px;
  background: #111;
  color: #f0f0f0;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Smackattack', sans-serif;
  font-size: 24px;
  line-height: 1;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.35);
  transform: scale(0.85);
  transform-origin: center top;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS (component overrides only;
   grid utilities live in CSS/grid.css)
   =================================================== */

/* md: <=980 */
@media screen and (max-width: 980px) {
  .hero-layout { padding-top: 100px; }
  .hero-card {
    padding: 26px;
    padding-bottom: clamp(48px, 8vw, 72px);
  }
  .hero-comic-title { font-size: clamp(38px, 6.75vw, 58px); }
}

/* sm: <=768 */
@media screen and (max-width: 768px) {
  #navbar {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .navbar-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-layout {
    padding-top: 90px;
  }

  .hero-card {
    padding: 20px;
    padding-bottom: clamp(44px, 8vw, 64px);
  }

  .hero-pinup {
    transform: rotate(6deg);
    top: clamp(-44px, -5vw, -28px);
    right: clamp(20px, 4vw, 56px);
  }

  .hero-comic-title {
    font-size: clamp(31px, 8.68vw, 46px);
  }

  .hero-balloon {
    max-width: none;
  }
}

/* xs: <=480 - single column inside the card */
@media screen and (max-width: 480px) {
  .hero-card {
    padding-bottom: 24px;
  }

  .hero-card-grid {
    grid-template-rows: auto auto auto auto;
    row-gap: 12px;
  }

  .hero-stack,
  .hero-balloon,
  .hero-button,
  .hero-pinup {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .hero-stack { order: 1; text-align: center; }
  .hero-balloon { order: 2; }
  .hero-button { order: 3; }
  .hero-pinup { order: 4; }

  .hero-pinup {
    position: relative;     /* reset absolute -> back into normal flow for stacking */
    left: auto;
    right: auto;
    top: auto;
    transform: rotate(0);
    justify-self: center;
    width: 92%;
    max-width: 320px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .hero-mini-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-comic-title {
    font-size: clamp(27px, 8.19vw, 38px);
  }

  .hero-balloon {
    margin: 8px auto 0;
    max-width: 360px;
  }

  .hero-balloon-text {
    inset: 22% 9% 12% 9%;
    text-align: center;
  }

  .hero-button {
    justify-self: center;
    width: fit-content;
    margin: 12px auto 0;
    transform-origin: center top;
    font-size: 18px;
    padding: 7px 12px;
  }
}
