@font-face {
  font-family: Grained;
  src: url(../fonts/Grained-Demo.ttf);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0b0404;
  min-height: 100vh;
  font-family: Grained, serif;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-visible {
  opacity: 1;
}

/* ─── HERO ─── */
.faq-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #0b0404;
  position: relative;
}

.faq-title {
  color: white;
  font-size: 8vw;
  text-align: center;
  font-family: Grained;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.faq-title span {
  display: block;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  color: #555;
  font-size: 1.2rem;
  font-family: Grained;
  text-decoration: none;
  transition: color 0.3s ease;
}

.scroll-down:hover {
  color: white;
}

/* ─── FAQ CONTENT ─── */
.faq-content {
  padding: 0;
}

/* ─── SPLIT SECTION ─── */
.faq-section {
  display: flex;
  min-height: 100vh;
  background-color: #0b0404;
}

.faq-section:last-of-type {
  min-height: unset;
  height: auto;
}

/* Flipped: text left, image right */
.faq-flip {
  flex-direction: row-reverse;
}

.faq-img {
  flex: 1;
  overflow: hidden;
  min-height: 100vh;
}

.faq-img img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.faq-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px;
  background-color: #0b0404;
}

.faq-q {
  color: white;
  font-size: 5vw;
  line-height: 1.1;
  margin-bottom: 30px;
  font-family: Grained;
}

.faq-a {
  color: #888;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 16px;
  font-family: Grained;
  max-width: 380px;
}


/* ─── NEXT ARROW ─── */
.faq-next {
  display: inline-block;
  margin-top: 30px;
  color: #555;
  font-size: 2.5rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
}

.faq-next:hover {
  color: white;
  transform: translateY(4px);
}

/* ─── HOME BUTTON ─── */
.home-btn {
  display: block;
  width: fit-content;
  margin: 60px auto;
  padding: 15px 40px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-family: Grained;
}

.home-btn:hover {
  background-color: white;
  color: #0b0404;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b0404; }
::-webkit-scrollbar-thumb { background: #3d1a1a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #5c2a2a; }

/* ─── RESPONSIVE ─── */
@media screen and (max-width: 1024px) {
  .faq-title { font-size: 9vw; }
  .faq-q { font-size: 6vw; }
  .faq-text { padding: 50px 40px; }
}

@media screen and (max-width: 768px) {
  ::-webkit-scrollbar { width: 6px; }

  .faq-title { font-size: 11vw; }
  .scroll-down { font-size: 1rem; }

  .faq-section,
  .faq-section.faq-flip {
    flex-direction: column;
  }

  .faq-img { min-height: 50vh; }
  .faq-img img { height: 50vh; }

  .faq-text {
    padding: 40px 30px;
    min-height: auto;
  }

  .faq-q { font-size: 8vw; }
  .faq-a { font-size: 1.1rem; }

  .home-btn { padding: 12px 30px; font-size: 1rem; }
}

@media screen and (max-width: 480px) {
  .faq-title { font-size: 13vw; }
  .scroll-down { font-size: 0.9rem; bottom: 30px; }
  .faq-text { padding: 36px 20px; }
  .faq-q { font-size: 10vw; }
  .faq-a { font-size: 1rem; }
  .home-btn { padding: 10px 25px; font-size: 0.9rem; }
}
