/* ====== Design tokens (override as needed) ====== */
:root {
  --rc-red: #f21c35;
  --rc-red-hover:#c91731;
  --rc-white:#fff;
  --rc-grey:#efefef;
  --rc-text:#7f7f7f;
  --rc-radius: 5px;
  --rc-transition: .25s;
  --rc-min-site-padding: 20px;
}

@font-face {
  font-family: Rubik;
  src: url("/webfonts/Rubik-Bold.ttf") format("truetype");
  font-weight: bold;
}
@font-face {
  font-family: Rubik;
  src: url("/webfonts/Rubik-Regular.ttf") format("truetype");
  font-weight: normal;
}
body {
  margin: 0;
  overflow-y: scroll;
  font-family: Rubik;
}

.site-wrapper {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  margin: 0;
}

.site-main {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-direction: column;
}
@media (min-width: 768px) {
  .site-main {
    gap: 40px;
    margin-bottom: 40px;
  }
}
@media (min-width: 1024px) {
  .site-main {
    gap: 80px;
    margin-bottom: 80px;
  }
}

.red-title {
  color: var(--rc-red);
  margin-bottom: 20px;
}

.default-btn {
  border: 1px solid black;
  padding: 10px;
  box-sizing: border-box;
  opacity: 0.5;
  display: block;
  border-radius: var(--rc-radius);
  text-decoration: none;
  color: black;
  cursor: pointer;
  cursor: hand;
  transition: all 0.25s;
  tex-align: center;
  width: 100%;
}
@media (min-width: 768px) {
  .default-btn {
    display: inline-block;
    width: auto;
  }
}

.default-btn:hover {
  opacity: 1;
}

/* ====== Main Hero Container ====== */
.hero-container {
  display: flex;
  flex-direction: column-reverse;
  position: relative;
  gap: 20px;
  box-sizing: border-box;
  width: calc(100% - 40px);
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .hero-container {
    display: grid;
    grid-template-areas: "stack";
    position: relative;
    gap: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-bg {
  border-radius: var(--rc-radius);
  overflow: hidden;
  grid-area: stack;
  position: relative;
  justify-self: start;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  aspect-ratio: 9/16;
  box-sizing: border-box;
  padding-bottom: 0;
}
@media (min-width: 768px) {
  .hero-bg {
    width: 80%;
    aspect-ratio: 1/1;
  }
}
@media (min-width: 1024px) {
  .hero-bg {
    width: 70%;
    aspect-ratio: 16/9;
  }
}
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero-bg .video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

.hero-content {
  grid-area: stack;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}
@media (min-width: 768px) {
  .hero-content {
    position: static;
    display: grid;
    align-content: center;
    justify-items: end;
    width: 40%;
    justify-self: end;
    padding: 0;
    height: auto;
  }
}

/* ==========================================================================
   2. The Background Image
   ========================================================================== */
.hero-bg-image {
  border-radius: var(--rc-radius);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1/1;
  box-sizing: border-box;
  background-size: cover;
  background-position: left center;
  /* Desktop overrides */
}
@media (min-width: 768px) {
  .hero-bg-image {
    grid-area: stack;
    justify-self: start;
    z-index: 1;
    width: 80%;
    background-position: center center;
  }
}
@media (min-width: 1024px) {
  .hero-bg-image {
    width: 70%;
    aspect-ratio: 16/9;
  }
}

/* ==========================================================================
   3. The Text Wrapper Container
   ========================================================================== */
.hero-content-title-lg {
  width: 100%;
  box-sizing: border-box;
  padding: 0; /* Clear mobile restrictions */
  /* Desktop overrides */
}
@media (min-width: 768px) {
  .hero-content-title-lg {
    grid-area: stack;
    z-index: 2; /* Layer on top of the image */
    display: grid;
    align-content: center;
    justify-items: end;
    width: 60%;
    justify-self: end;
    height: auto;
  }
}

.hero-title-lg {
  text-align: left;
  padding: 0;
  margin: 0;
  color: var(--rc-red);
}
@media (min-width: 768px) {
  .hero-title-lg {
    text-align: right;
    font-size: 5vw;
  }
}

/* ====== Dynamic Logo Scaling Engine ====== */
.hero-logo-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
}
@media (min-width: 768px) {
  .hero-logo-wrapper {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    width: 80%; /* Fits perfectly over the 80% tablet video box */
    height: 100%; /* Grabs 100% of the video box height */
    max-width: none;
    max-height: none;
    transform: none;
    padding: 30px;
    z-index: 2;
  }
}
@media (min-width: 1024px) {
  .hero-logo-wrapper {
    width: 70%; /* Fits perfectly over the 70% desktop video box */
  }
}

.hero-logo {
  display: block;
  max-width: 100%;
  max-height: 85%;
  object-fit: contain;
}
@media (min-width: 768px) {
  .hero-logo {
    width: 100%;
    max-width: 350px;
    /* ====== THE FORCED CEILING FIX ====== */
    /* Swapping 'max-height' for an explicit 'height' value breaks the 
       browser's calculation loop. The logo is now structurally forced 
       to shrink to exactly 60% of the video window height. */
    height: 60% !important;
  }
}

/* ====== Form Card Wrapper ====== */
.signup-card-wrapper {
  border-radius: var(--rc-radius);
  box-shadow: none;
  background: white;
  box-sizing: border-box;
  height: fit-content;
  flex: 0 0 auto;
  width: 100%;
  z-index: 3;
}
@media (min-width: 768px) {
  .signup-card-wrapper {
    flex: none;
    background: var(--rc-red);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    margin: 0;
  }
}

/* ====== Email Container ====== */
.email-card {
  box-sizing: border-box;
  padding: 20px;
  width: 100%;
  /* 3. Helper Sections (Hidden/Toggle) */
  /* 4. Volunteer Toggle (Div acting as button) */
  /* 5. Submit Button */
  /* 6. Footer / Legal Text */
  /* 7. Error Messages */
}
.email-card .title-card-header {
  padding: 10px;
  color: var(--rc-red);
  margin: 0px;
  padding-bottom: 20px;
}
.email-card .title-card-header.text-center {
  text-align: center;
}
@media (min-width: 768px) {
  .email-card .title-card-header {
    color: white;
  }
}
.email-card .response-box-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 5px;
}
.email-card .response-box-row > div {
  flex: 1;
}
.email-card .response-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 5px;
}
.email-card .response-box input[type=text],
.email-card .response-box .input-firstname,
.email-card .response-box .input-surname {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--rc-border, #ddd);
  border-radius: var(--rc-radius, 4px);
  box-sizing: border-box; /* Ensures padding doesn't break layout */
  transition: border-color 0.2s ease;
}
.email-card .response-box input[type=text]:focus,
.email-card .response-box .input-firstname:focus,
.email-card .response-box .input-surname:focus {
  outline: none;
  border-color: var(--rc-primary, #007bff);
}
.email-card .response-box input[type=text]::placeholder,
.email-card .response-box .input-firstname::placeholder,
.email-card .response-box .input-surname::placeholder {
  color: #aaa;
}
.email-card .additionalinfo {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.email-card .additionalinfo.emailhidden {
  display: none;
}
.email-card .additionalinfo-section {
  /* Specific styling for the hidden section inputs if needed */
}
.email-card .additionalinfo-section {
  overflow: hidden; /* Important for smooth jQuery slide animation */
}
.email-card .additionalinfo-section.emailhidden {
  display: none;
}
.email-card .additionalinfo-section.emailshow {
  display: block;
}
.email-card .will-volunteer {
  cursor: pointer;
  padding: 10px;
  border: 1px solid var(--rc-border, #ccc);
  border-radius: var(--rc-radius, 4px);
  text-align: center;
  font-weight: 500;
  transition: background-color 0.2s;
}
@media (min-width: 768px) {
  .email-card .will-volunteer {
    color: white;
  }
}
.email-card .will-volunteer:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.email-card .will-volunteer.no-volunteer {
  color: var(--rc-text-muted, #666);
}
@media (min-width: 768px) {
  .email-card .will-volunteer.no-volunteer {
    color: white;
  }
}
.email-card .will-volunteer.yes-volunteer {
  background-color: var(--rc-success-light, #d4edda);
  color: var(--rc-success-dark, #155724);
  border-style: solid;
}
.email-card .btn-mail-signup {
  width: 100%;
  padding: 12px;
  background-color: var(--rc-red-hover);
  color: white !important; /* Kept your !important from HTML */
  border: none;
  border-radius: var(--rc-radius, 4px);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.email-card .btn-mail-signup:hover {
  background-color: var(--rc-primary-dark, #333);
}
.email-card .email-card-additional-information {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.5); /* Dark text for mobile (white background) */
  text-align: center;
  /* Only put what CHANGES on desktop inside the media query */
}
.email-card .email-card-additional-information a {
  color: inherit; /* Automatically inherits the parent's text color */
  text-decoration: underline;
}
.email-card .email-card-additional-information a:hover {
  color: var(--rc-primary, #000);
}
@media (min-width: 768px) {
  .email-card .email-card-additional-information {
    color: rgba(255, 255, 255, 0.5); /* Shifts to light text for desktop (red background) */
  }
}
.email-card .error-message {
  color: var(--rc-danger, #dc3545);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: none; /* Usually hidden by default until JS toggles it */
}
.email-card .error-message.visible {
  display: block;
}
@media (min-width: 768px) {
  .email-card .error-message {
    color: white;
  }
}

/* ==========================================================================
   UPDATED: High Specificity Wrapper Layout
   ========================================================================== */
.panel.mid-dvw.row.shorts-section-wrapper {
  display: flex;
  box-sizing: border-box;
  /* MOBILE-ONLY RULES */
  /* DESKTOP-ONLY RULES */
  /* TARGET THE H1 INSIDE THE WRAPPER */
}
@media (max-width: 999px) {
  .panel.mid-dvw.row.shorts-section-wrapper {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
}
@media (min-width: 1000px) {
  .panel.mid-dvw.row.shorts-section-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
}
.panel.mid-dvw.row.shorts-section-wrapper h1 {
  color: var(--rc-red);
  margin: 0;
  padding: 0;
  /* Centers the title on mobile layout */
}
@media (max-width: 999px) {
  .panel.mid-dvw.row.shorts-section-wrapper h1 {
    text-align: center;
  }
}

.short-title-container {
  width: 100%; /* Full width on mobile */
}
@media (min-width: 1000px) {
  .short-title-container {
    flex: 0 0 auto;
    width: auto;
  }
}

/* ==========================================================================
   FIXED: Shorts Section Carousel Container
   ========================================================================== */
.shorts-flex-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-left: calc(50% - 157.5px);
  scrollbar-width: none;
}
@media (max-width: 999px) {
  .shorts-flex-container {
    max-width: 100%;
  }
}
@media (min-width: 1000px) {
  .shorts-flex-container {
    flex: 1;
    justify-content: center;
    padding-left: 0;
    overflow-x: visible;
    scroll-snap-type: none;
    /* FIX: Overrides the default flex behavior to allow this container to shrink */
    min-width: 0;
  }
}

.shorts-flex-container::after {
  content: "";
  display: block;
  flex-shrink: 0;
  width: calc(50% - 157.5px);
  pointer-events: none;
}
@media (min-width: 1000px) {
  .shorts-flex-container::after {
    display: none;
  }
}

@media (max-width: 370px) {
  .shorts-flex-container {
    padding-left: calc(50% - 42.5vw);
  }
  .shorts-flex-container::after {
    width: calc(50% - 42.5vw);
  }
}
.shorts-flex-container::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   FIXED: Clean Outer Card Wrapper & Gesture Fixes
   ========================================================================== */
.short-card {
  flex-shrink: 0;
  width: 315px;
  max-width: 85vw;
  height: auto;
  aspect-ratio: 9/16;
  border-radius: var(--rc-radius);
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  z-index: 10;
  touch-action: manipulation;
}
@media (min-width: 1000px) {
  .short-card {
    scroll-snap-align: none;
    touch-action: auto;
    /* FIX: Makes the cards perfectly fluid on desktop rescale */
    width: 100%;
    max-width: 315px;
    flex: 1 1 315px;
  }
}

/* ==========================================================================
   RETAINED: Fixed Video Element (Full View & Clickable)
   ========================================================================== */
.short-card iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 15;
  pointer-events: auto !important;
}

/* ====== Feature Card ====== */
.mobile-padding {
  margin-left: auto;
  margin-right: auto;
  flex: 0 0 calc(100% - 40px);
}

.feature-card {
  background-color: var(--rc-grey);
  border-radius: var(--rc-radius);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: auto;
  margin-right: auto;
  flex: 0 0 calc(100% - 40px);
}
@media (min-width: 768px) {
  .feature-card {
    background-color: transparent;
    align-items: center;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .panel:nth-child(even) .feature-card {
    flex-direction: row-reverse;
  }
}
.feature-card-image {
  aspect-ratio: 4/3;
  background: #ccc;
  flex: 0 0 100%;
  background-size: cover;
  border-top-left-radius: var(--rc-radius);
  border-top-right-radius: var(--rc-radius);
  background-position: center center;
  position: relative;
}
@media (min-width: 768px) {
  .feature-card-image {
    flex: 0 0 40%;
    border-radius: var(--rc-radius);
    min-width: 200px;
  }
}

.feature-card-tag {
  position: absolute;
  bottom: 10%;
  left: -5px;
  margin: 0;
  transform: rotate(-3deg);
  padding: 3px 8px;
  border-radius: var(--rc-radius);
  background-color: var(--rc-red);
  color: white;
}
@media (min-width: 768px) {
  .feature-card-tag {
    font-size: 2.5vw;
    left: -20px;
  }
}

.panel:nth-child(even) .feature-card-tag {
  left: auto;
  right: -5px;
  transform: rotate(3deg);
}
@media (min-width: 768px) {
  .panel:nth-child(even) .feature-card-tag {
    left: auto;
    right: -20px;
  }
}

.feature-card-text {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 20px;
}
.feature-card-text h1 {
  color: var(--rc-red);
  padding: 0px;
  margin: 0px;
}
@media (min-width: 768px) {
  .feature-card-text {
    flex: 1 1 0%;
  }
}

.feature-card-image-100 {
  width: 100%;
  aspect-ratio: 4/3;
  background: #ccc;
  box-sizing: border-box;
  background-size: cover;
  border-radius: var(--rc-radius);
}

/* ====== Header ====== */
.logo {
  width: 100px;
}

@media (min-width: 768px) {
  .logo {
    width: 120px;
  }
}
#navigationBar {
  min-height: 80px;
  display: flex;
  padding: 0 var(--rc-min-site-padding);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#navigationBar:not(.nav-sticky) {
  margin: var(--rc-min-site-padding) 0;
}

@media (min-width: 768px) {
  #navigationBar {
    padding: 0 80px;
  }
}
.btn-clear-red,
.btn-clear-white {
  background: none;
  border: 0;
  opacity: 0.8;
  transition: opacity var(--rc-transition);
  cursor: pointer;
}

.btn-clear-red {
  color: var(--rc-red);
}

.btn-clear-white {
  color: var(--rc-white);
}

.btn-clear-red:hover,
.btn-clear-white:hover {
  opacity: 1;
}

.nav-sticky {
  position: fixed;
  top: -80px;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--rc-grey);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-sticky .logo {
  width: 70px !important;
}

/* ====== Mobile menu overlay ====== */
.menu-options {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  padding: 40px;
  box-sizing: border-box;
  z-index: 110;
  color: var(--rc-white);
  background-color: rgba(242, 28, 53, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform var(--rc-transition) ease-out;
  overflow: auto;
}

.menu-options.is-open {
  transform: translateX(0);
}

/* Desktop: docked panel with a right gap */
@media (min-width: 768px) {
  .menu-options {
    width: min(100%, 450px);
    right: 0;
    transform: translateX(100%);
  }
  .menu-options.is-open {
    transform: translateX(0);
  }
}
.menu-options a,
.menu-options-dropdown-title {
  color: var(--rc-white);
  opacity: 0.8;
  font-family: Rubik, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  display: block;
  padding-bottom: 20px;
  transition: opacity var(--rc-transition);
}

.menu-options a:hover,
.menu-options-dropdown-title:hover {
  opacity: 1;
}

.menu-option-button {
  background: var(--rc-white);
  color: var(--rc-red);
  border-radius: 2px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  opacity: 0.8;
}

.menu-options-dropdown {
  margin-bottom: 20px;
}

.menu-options-dropdown a {
  color: var(--rc-red);
  font-weight: 700;
  font-size: 0.9rem;
}

.menu-options-blackout {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 105;
  background-color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* When menu is open, add .is-open to <body> or a wrapper */
.is-open .menu-options {
  transform: translateX(0);
}

.is-open .menu-options-blackout {
  display: block;
}

.nav-menu-close {
  float: right;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity var(--rc-transition);
}

.nav-menu-close:hover {
  opacity: 1;
}

.navigation-header {
  height: 30px;
  line-height: 30px;
  margin-bottom: 30px;
}

.navigation-logo {
  opacity: 0.5;
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
}

.white-logo {
  width: 80px;
}

/* ====== Footer ====== */
.footer-container {
  background: var(--rc-red);
  color: var(--rc-white);
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media (min-width: 992px) {
  .footer-container {
    padding: 80px;
    flex-direction: row;
  }
}
.text-footer {
  text-align: center;
}

@media (min-width: 992px) {
  .text-footer {
    text-align: left;
  }
}
.authorised-line {
  opacity: 0.66;
}

/* Footer links */
.footer-container a {
  color: var(--rc-white);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity var(--rc-transition);
}

.footer-container a:hover {
  color: var(--rc-white);
  opacity: 1;
}

/* Social icons: tidy layout, remove inline overflow */
.socials-container {
  display: flex;
  min-height: 40px;
  flex-direction: row;
  align-items: center;
  gap: var(--rc-min-site-padding);
}

.socials-container a {
  color: var(--rc-white);
  opacity: 0.75;
  transition: opacity var(--rc-transition);
}

.socials-container a:hover {
  opacity: 1;
}

/* ====== layout helpers ====== */
.full-dvw,
.max-dvw,
.mid-dvw,
.min-dvw {
  width: 100dvw;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .full-dvw,
  .max-dvw,
  .mid-dvw,
  .min-dvw {
    margin-inline: auto;
  }
}

@media (min-width: 768px) {
  .full-dvw {
    width: 100%;
  }
  .max-dvw {
    width: 80dvw;
  }
  .mid-dvw {
    width: 60dvw;
  }
  .min-dvw {
    width: 40dvw;
  }
}
.row {
  display: flex;
  flex-direction: row;
}

.underlap {
  display: flex;
}

.overlap {
  display: flex;
}

/* ====== Small helpers ====== */
.mob-center {
  text-align: center;
}

@media (min-width: 768px) {
  .mob-center {
    text-align: left;
  }
}

/*# sourceMappingURL=rogercook-2025.css.map */
