/* ========== Reset ========== */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;        /* stop horizontal scroll when sections open */
}

/* ========== Hero & Background ========== */

.hero {
  position: relative;
  width: 100%;               /* use normal width to avoid vw-scrollbar bug */
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ========== Logos ========== */

/* Wrapper positioned around the swirl/logo area */
.logo-wrapper {
  position: absolute;
  left: 50%;
  top: 18%;                  /* your tuned position */
  transform: translate(-50%, -50%);
  text-align: center;
}

/* White MasterChef hero logo – capped at 350px */
.overlay-logo {
  display: block;
  width: 100%;
  max-width: 425px;
  height: auto;
}

.overlay-logo-top {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 25px);
  transform: translateX(-50%);

  width: 75px;     /* <-- SET SIZE YOU WANT */
  height: auto;

  max-width: none !important;   /* disable all responsive scaling */
}

/* ========== Buttons Below the Swirl ========== */

.swirl-buttons {
  position: absolute;
  left: 50%;
  top: 58%;                  /* your tuned position */
  transform: translateX(-50%);
}

/* Stack buttons vertically, centered */
.tab-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 75px;                /* distance between APPLY and FAQ */
}

/* Hide radios; labels are the visual buttons */
.tab-input {
  display: none;
}

/* Base button style (white pill with orange stripe) */
.tab-btn {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 22px;
  cursor: pointer;

  background: #ffffff;
  color: #000000;
  padding: 10px 20px;

  border: none;
  display: inline-block;
  text-align: center;

  border-bottom: 6px solid #ffa400; /* yellow-orange stripe */
  transition: all 0.15s ease;
}

/* Larger primary button hook */
.big-btn {
  /* empty for now; tweak if needed */
}

/* Smaller secondary button (CASTING FAQs & base HOME size) */
.small-btn {
  font-size: 13px;           /* ~60% of 22px */
  padding: 6px 14px;
}

/* Hover effect */
.tab-btn:hover {
  opacity: 0.8;
}

/* Selected state – if you ever want radio selection visuals */
.tab-input:checked + .tab-btn {
  background: #fff3cc;       /* subtle highlight */
  border-bottom-color: #ff7f00;
}

/* ========== Application iframe section ========== */

.application-container {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background: #000;
  transition: max-height 0.6s ease;
}

.application-container.open {
  max-height: 4300px;        /* larger to avoid cutting off form */
}

/* ========== FAQ section ========== */

.faq-container {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background: #ffffff;       /* white background */
  color: #000000;
  transition: max-height 0.6s ease;
}

.faq-container.open {
  max-height: 4000px;        /* big so nothing gets cut off */
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Vertical MCC logo leading FAQ */
.faq-logo {
  display: block;
  width: 100px;
  height: auto;
  margin: 0 auto 20px;
}

.faq-content h2 {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  text-align: center;
  color: #eb6723;
}

.faq-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.faq-content p {
  margin: 0 0 10px;
  font-size: 15px;
}

.faq-content a {
  color: #000000;
  text-decoration: underline;
}

.faq-content a:hover {
  text-decoration: none;
}

/* ========== FAQ Accordion ========== */

.faq-item {
  border-top: 1px solid #ccc;
  padding-top: 10px;
  margin-top: 10px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: #ffffff;
  color: #000000;
  border: none;
  border-bottom: 3px solid #ffa400;
  padding: 10px 14px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.faq-question:focus {
  outline: 2px solid #ffa400;
  outline-offset: 2px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 14px;
  background: #ffffff;       /* make sure answer body is white too */
  margin-top: 5px;           /* extra separation from question */
}

.faq-item.open .faq-answer {
  max-height: 800px;         /* large enough for the longest answer */
  padding-bottom: 10px;
}

/* ========== Floating HOME button (custom inverted style) ========== */

.home-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;

  /* override base tab-btn colors for HOME */
  background: #000000;
  color: #ffffff;
  border-bottom-color: #ffa400;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.home-button.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========== Mobile / Short-Screen Tweaks ========== */

@media (max-width: 600px) {

  /* Hero logo adjustments */
  .overlay-logo {
    max-width: 80vw;
  }

  /* CTV logo above MCC */
  .overlay-logo-top {
    bottom: calc(100% + 10px);
  }

  /* Move button group slightly higher */
  .swirl-buttons {
    top: 58%;
  }

  /* Reduce giant 200px spacing so both buttons fit onscreen */
  .tab-buttons {
    gap: 40px;
  }

  .tab-btn {
    font-size: 18px;
    padding: 8px 18px;
  }

  .small-btn {
    font-size: 12px;
    padding: 5px 12px;
  }

  .faq-content {
    padding: 30px 16px 50px;
  }
}

/* Very short devices (e.g., iPhone landscape, small Androids) */
@media (max-height: 600px) {

  /* Pull logo cluster down a bit */
  .logo-wrapper {
    top: 28%;
  }

  /* Resize hero logos */
  .overlay-logo {
    max-width: 32vw;
  }

  .overlay-logo-top {
    max-width: 18vw;
    bottom: calc(100% + 8px);
  }

  /* Buttons slightly higher for cramped height */
  .swirl-buttons {
    top: 70%;
  }

  /* Reduce spacing again to guarantee both buttons fit */
  .tab-buttons {
    gap: 40px;
  }
}

.corner-logos {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: row;   /* or row if you want them side-by-side */
  gap: 10px;
  z-index: 3000;
}

/* Semi-transparent dark backing behind the logos */
.corner-logos-bg {
  position: absolute;
  inset: -10px;                  /* padding around logo group */
  background: rgba(0, 0, 0, 0.5);/* 50% black */
  border-radius: 12px;
  z-index: -1;                   /* sits behind logos */
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;          /* <-- important: do NOT block clicks */
}

.corner-logos-bg.visible {
  opacity: 1;
}

.corner-logos img {
  width: 90px;
  height: auto;
  display: block;
}

/* Make anchors behave like blocks so the whole logo is clickable */
.corner-logos a {
  display: block;
}

/* Optional: smaller on phones */
@media (max-width: 900px), (max-height: 600px) {
  .corner-logos img {
    width: 70px;
  }
  .overlay-logo-top {
  width: 50px;      /* <-- your mobile size */
  max-width: none;  /* prevent scaling */
  }
}
