/* ========================================================= COMPONENTS.CSS | ROMULUS ACADEMY FC ========================================================= */
.photo_1 {
  will-change: clip-path, opacity, transform;
  contain: layout paint;
}

/* ========================== WhatsApp modal ========================== */
.whatsapp-modal {
  z-index: 100;
  pointer-events: none;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.whatsapp-modal__card {
  transition: all 0.6s cubic-bezier(0.625, 0.05, 0, 1);
  grid-column-gap: 1.25em;
  grid-row-gap: 1.25em;
  pointer-events: auto;
  background-color: var(--_colors---first);
  border-radius: 1.5em;
  flex-flow: column;
  align-items: center;
  width: 20em;
  padding: 4.5em 2em 3.26em;
  display: flex;
  position: relative;
  transform: translateY(25%) rotate(0.001deg);
  opacity: 0;
  visibility: hidden;
}

[data-whatsapp-modal-status="active"] .whatsapp-modal__card {
  transform: translateY(0%) rotate(0.001deg);
  opacity: 1;
  visibility: visible;
}

/* Social profiles are intentionally unlinked until destinations are approved. */
.socials_icons_wrapper a[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

/* Keep the complete crest visible at its original large scale. */
.regular_section.navbar .header_logo_wrapper {
  height: 150px;
  position: relative;
}

.regular_section.navbar .header_logo_wrapper > a {
  flex: none;
  width: clamp(200px, 18vw, 260px);
  height: clamp(200px, 18vw, 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

.regular_section.navbar .header_logo_wrapper > a > .svg.max_width {
  object-fit: contain;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

@media (max-width: 991px) {
  .regular_section.navbar .header_logo_wrapper {
    height: auto;
  }

  .regular_section.navbar .header_logo_wrapper > a {
    width: 120px;
    height: 120px;
    position: static;
  }
}

/* Keep programme-card headings legible without obscuring the photography. */
#programmes .card_1::after {
  content: "";
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.3) 42%, rgba(0, 0, 0, 0) 100%);
  width: 100%;
  height: 62%;
  position: absolute;
  inset: auto 0 0;
}

/* Club wordmark: keep the portrait slot fixed while spelling RFC. */
#coach .large_svg_wrapper > .svg_letter {
  aspect-ratio: 304.73 / 563.65;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
}

#coach .large_svg_wrapper > .svg_letter > svg {
  display: none;
}

#coach .large_svg_wrapper > .svg_letter:nth-child(1) {
  background-image: url("../assets/images/letter-r.svg");
}

#coach .large_svg_wrapper > .svg_letter:nth-child(3) {
  background-image: url("../assets/images/letter-f.svg");
}

#coach .large_svg_wrapper > .svg_letter:nth-child(4) {
  background-image: url("../assets/images/letter-c.svg");
}


#coach .letter_image {
  background-image: image-set(
    url("../assets/images/romulus-40-p-500.webp") 1x,
    url("../assets/images/romulus-40-p-1080.webp") 2x
  );
  background-position: center 24%;
  background-repeat: no-repeat;
  background-size: cover;
}

#coach .letter_image > .background_photo {
  opacity: 0;
}

/* Desktop reviews: vertical page progress reveals the horizontal card track. */
@media (min-width: 1025px) {
  #reviews.reviews-horizontal {
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    overflow: clip;
  }

  #reviews.reviews-horizontal .review_section {
    background-color: var(--_colors---first);
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100vh;
    margin: 0 auto;
    position: sticky;
    top: 0;
    overflow: hidden;
  }

  #reviews.reviews-horizontal .review_content_wrap,
  #reviews.reviews-horizontal .review_wrapper {
    flex-shrink: 0;
  }

  #reviews.reviews-horizontal .review_wrapper {
    will-change: transform;
  }
}

/* Tablet: the longer parent quotes need a little more height than Webflow's 425px. */
@media (min-width: 768px) and (max-width: 991px) {
  .review_card,
  .photo_review_card {
    height: 470px;
  }
}

.whatsapp-modal__qr-canvas {
  background-color: var(--_colors---second);
  width: 8.75em;
  height: 8.75em;
}

[data-whatsapp-modal-qr-canvas]:has(svg) {
  background-color: transparent;
}

[data-whatsapp-modal-qr-canvas] svg rect {
  fill: var(--_colors---second);
}

.whatsapp-modal__text {
  grid-column-gap: .75em;
  grid-row-gap: .75em;
  flex-flow: column;
  align-items: center;
  padding-top: 1em;
  display: flex;
  color: var(--_colors---second);
}

.whatsapp-modal__h2 {
  text-align: center;
  margin: 0;
  font-size: 1.75em;
  font-weight: 500;
  line-height: 1;
  color: var(--_colors---second);
}

.whatsapp-modal__p {
  color: var(--_colors---second);
  text-align: center;
  font-size: 1em;
}

.whatsapp-modal__btn {
  grid-column-gap: .5em;
  grid-row-gap: .5em;
  color: #fff;
  cursor: pointer;
  background-color: #612c08;
  border-radius: 30em;
  padding: 1em 1.5em;
  text-decoration: none;
  display: flex;
  position: relative;
  overflow: hidden;
}

.whatsapp-modal__btn-span {
  color: #f8f6f3;
  font-size: 1em;
  font-weight: 500;
  line-height: 1;
}

.whatsapp-modal__overlay-link,
.whatsapp-modal__overlay-toggle {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.whatsapp-modal__close {
  cursor: pointer;
  justify-content: center;
  align-items: center;
  width: 2em;
  height: 2em;
  display: flex;
  position: absolute;
  top: 1.5em;
  right: 1.5em;
}

.whatsapp-modal__close-bar {
  background-color: var(--_colors---second);
  width: 1.5em;
  height: .09375em;
  position: absolute;
  transform: rotate(-45deg);
}

.whatsapp-modal__close-bar.is--duplicate {
  transform: rotate(45deg);
}

.whatsapp-modal__dark {
  transition: all 0.6s cubic-bezier(0.625, 0.05, 0, 1);
  pointer-events: auto;
  background-color: #0003;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
}

[data-whatsapp-modal-status="active"] .whatsapp-modal__dark {
  opacity: 1;
  visibility: visible;
}

.whatsapp-modal__btn.is--large {
  font-size: 1.25em;
}

.whatsapp-modal__icon-svg {
  width: 1.25em;
  margin-top: -.125em;
  margin-left: -.25em;
  display: block;
}

[data-whatsapp-modal-btn] [data-whatsapp-modal-link] {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  [data-whatsapp-modal] {
    display: none;
  }

  [data-whatsapp-modal-trigger] [data-whatsapp-modal-toggle] {
    display: none;
  }

  [data-whatsapp-modal-trigger] [data-whatsapp-modal-link] {
    display: block;
  }
}

/* ========================== Video wrappers ========================== */
.big_video_wrapper_card_variant {
  aspect-ratio: 9/16;
  position: absolute;
  width: 800px;
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--_spacing---border-radius--large);
  overflow: hidden;
}

.big_video_wrapper_card_variant_stand {
  aspect-ratio: 9/16;
  position: absolute;
  width: 500px;
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--_spacing---border-radius--large);
  overflow: hidden;
}

@media (max-width:1024px) {
  .big_video_wrapper_card_variant {
    width: 100%;
    max-height: 800px;
    aspect-ratio: 9/16;
  }
}

.big_video_wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--_spacing---border-radius--large);
  overflow: hidden;
}

.large_video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--_spacing---border-radius--large);
}

.large_video::-webkit-media-controls {
  display: none !important;
}

/* ========================== Underline link ========================== */
.underline_link::before,
.underline_link.is--alt::before,
.underline_link.is--alt::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: .0625em;
  background-color: #fff;
  transition: transform .735s cubic-bezier(0.625, 0.05, 0, 1);
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
}

.underline_link:hover::before {
  transform-origin: left;
  transform: scaleX(1) rotate(0.001deg);
}

.underline_link.is--alt::before {
  transform-origin: left;
  transform: scaleX(1) rotate(0.001deg);
  transition-delay: 0.3s;
}

.underline_link.is--alt:hover::before {
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
  transition-delay: 0s;
}

.underline_link.is--alt::after {
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
  transition-delay: 0s;
}

.underline_link.is--alt:hover::after {
  transform-origin: left;
  transform: scaleX(1) rotate(0.001deg);
  transition-delay: 0.3s;
}

/* ========================== Pill select ========================== */
.pill_select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 20px;
}

.pill_select:hover,
.pill_select:focus {
  border-color: white;
}

/* ========================== Checkbox pill ========================== */
.checkbox_pill_wrap {
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.checkbox_pill_wrap:hover {
  background-color: #1b1b1d;
  color: white;
}

.checkbox_pill_wrap.selected {
  border-color: var(--_colors---third);
  background-color: #1b1b1d;
}

.hidden_checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ========================== Cards (mobile) ========================== */
@media (max-width: 767px) {
  .card_1:nth-child(1) {
    top: 0;
    transform: rotate(0deg);
    z-index: 3;
  }

  .card_1:nth-child(2) {
    top: 1rem;
    scale: 0.95;
    transform: rotate(-2deg);
    z-index: 2;
  }

  .card_1:nth-child(3) {
    top: 2rem;
    scale: 0.9;
    transform: rotate(2deg);
    z-index: 1;
  }
}

/* ========================== Card images ========================== */
.first_card img,
.second_card img,
.third_card img,
.fourth_card img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 900ms, transform 4000ms ease;
}

.first_card img.is_active,
.second_card img.is_active,
.third_card img.is_active,
.fourth_card img.is_active {
  opacity: 1;
  transform: scale(1.08);
}

/* ========================== Navigation programmes menu ========================== */
.nav_link_wrapper.gap_6 {
  gap: var(--_spacing---section--6);
}

.buttons_wrapper.gap_4,
.mobile_buttons_wrapper.gap_4 {
  gap: var(--_spacing---section--4);
}

/* Keep the shared site chrome independent from page-level type resets. */
:is(.regular_section.navbar, .full_screen_mobile_menu, #footer) :is(h1, h2, h3, h4, h5, h6),
:is(.regular_section.navbar, .full_screen_mobile_menu, #footer) :is(.text_main, .text_large, .text_small) {
  display: flow-root;
}

:is(.regular_section.navbar, .full_screen_mobile_menu, #footer) :is(h1, h2, h3, h4, h5, h6)::before {
  content: "";
  display: table;
  margin-bottom: calc(-0.5lh + var(--_typography---headings--top-trim));
}

:is(.regular_section.navbar, .full_screen_mobile_menu, #footer) :is(h1, h2, h3, h4, h5, h6)::after {
  content: "";
  display: table;
  margin-bottom: calc(-0.5lh + var(--_typography---headings--bottom-trim));
}

:is(.regular_section.navbar, .full_screen_mobile_menu, #footer) :is(.text_main, .text_large, .text_small)::before {
  content: "";
  display: table;
  margin-bottom: calc(-0.5lh + var(--_typography---paragraphs--top-trim));
}

:is(.regular_section.navbar, .full_screen_mobile_menu, #footer) :is(.text_main, .text_large, .text_small)::after {
  content: "";
  display: table;
  margin-bottom: calc(-0.5lh + var(--_typography---paragraphs--bottom-trim));
}

.nav_programmes_dropdown {
  position: relative;
}

.nav_programmes_toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav_programmes_toggle svg {
  width: 0.75rem;
  height: 0.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 300ms cubic-bezier(0.77, 0, 0.175, 1);
}

.nav_programmes_menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  z-index: 20;
  min-width: 13.75rem;
  padding: 0.5rem;
  border: 1px solid rgba(244, 243, 237, 0.18);
  border-radius: 8px;
  background: var(--_colors---first);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 0.75rem);
  transition: opacity 300ms ease, visibility 300ms ease,
    transform 300ms cubic-bezier(0.77, 0, 0.175, 1);
}

.nav_programmes_menu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 1rem;
}

.nav_programmes_dropdown:hover .nav_programmes_menu,
.nav_programmes_dropdown:focus-within .nav_programmes_menu,
.nav_programmes_dropdown.is-open .nav_programmes_menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav_programmes_dropdown:hover .nav_programmes_toggle svg,
.nav_programmes_dropdown:focus-within .nav_programmes_toggle svg,
.nav_programmes_dropdown.is-open .nav_programmes_toggle svg {
  transform: rotate(180deg);
}

.nav_programmes_item {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 6px;
  color: var(--_colors---second);
  font-family: var(--_typography---paragraphs--font-family);
  font-size: var(--_typography---font-size--text-main);
  line-height: var(--_typography---line-height--text-main);
  text-decoration: none;
  white-space: nowrap;
  transition: color 250ms ease, background-color 250ms ease;
}

.nav_programmes_item:hover,
.nav_programmes_item:focus-visible {
  color: var(--_colors---first);
  background: var(--_colors---third);
  outline: none;
}

/* The mobile menu is one flat list of pages, so every line is a link at the
   same size; the desktop nav keeps its own Programmes / About dropdowns. */
.nav_mobile_subtext {
  margin: 0;
  color: var(--_colors---second);
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.05;
}

@media (max-width: 767px) {
  /* Auto margins centre the menu when it fits and let it scroll when it does
     not; justify-content: center would clip the top of the overflow. */
  .full_screen_mobile_menu {
    --menu-type: clamp(1.75rem, 11vw, 3rem);
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 5.5rem;
    padding-bottom: 7rem;
  }

  /* SplitText sizes each line box to the cap height, so the reveal mask's
     overflow: hidden cuts the tail off the Q in FAQS. Pad the clip box and take
     the same amount back off the margin, so nothing moves. */
  .full_screen_mobile_menu .nav_text_mask {
    padding-bottom: calc(var(--menu-type) * 0.2);
    margin-bottom: calc(var(--menu-type) * -0.2);
  }

  .full_screen_mobile_menu > .div-block {
    margin-block: auto;
  }

  /* One uniform size for every menu line. */
  .nav_mobile_subtext {
    font-size: var(--menu-type);
    line-height: 1.05;
  }

  /* Founder section: use a compact editorial stack on small screens. */
  #coach.regular_section.red._100vh {
    min-height: 0;
    padding: 4rem 1.25rem calc(7rem + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  #coach .regular_container.flex_top {
    align-items: stretch;
    width: 100%;
    min-height: 0;
    overflow: visible;
  }

  #coach .coach_section {
    order: 1;
    align-items: flex-start;
    margin: 0 0 2rem;
  }

  #coach .coach_section .small_text_wrap {
    gap: 1.25rem;
    max-width: none;
    margin-top: 0;
  }

  #coach .coach_section h3 {
    font-size: 3rem;
    line-height: 0.86;
  }

  #coach .coach_section .text_small {
    font-size: 1rem;
    line-height: 1.6;
  }

  #coach [data-highlight-text] div,
  #coach .card_h6_text.uppercase {
    opacity: 1 !important;
    visibility: visible !important;
  }

  #coach .read_more {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  #coach .large_svg_wrapper {
    order: 2;
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 0;
    pointer-events: none;
  }

  #coach .large_svg_wrapper > .svg_letter {
    display: none;
  }

  #coach .image_block {
    order: 1;
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    padding: 0;
  }

  #coach .letter_image {
    aspect-ratio: 3 / 4;
    background-position: center 24%;
    width: 100%;
    height: auto;
    outline: 1px solid rgba(0, 0, 0, 0.1);
  }

  #coach .large_svg_wrapper::after {
    content: "RFC";
    order: 2;
    color: var(--_colors---first);
    font-family: var(--_typography---headings--font-family);
    font-size: clamp(7.25rem, 54vw, 13.5rem);
    font-weight: 700;
    line-height: 0.72;
    letter-spacing: 0;
    white-space: nowrap;
    margin-top: -0.02em;
  }

  #coach .letter_image::after {
    content: "";
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 42%);
    position: absolute;
    inset: 45% 0 0;
  }

  #coach .letter_image > .background_photo {
    object-position: center 24%;
    transform: none !important;
  }

  #coach .small_content_wrap.inside_element {
    z-index: 2;
    left: 1rem;
    bottom: 1rem;
  }

  #coach .my_story_wrapper {
    z-index: 2000;
    align-items: flex-start;
    width: 100%;
    height: 100dvh;
    padding: 1.25rem;
    position: fixed;
    inset: 0;
    overflow-y: auto;
  }

  #coach .content_wrapper_story {
    align-items: stretch;
    width: 100%;
    max-width: none;
    padding: 3.5rem 0 2rem;
  }

  #coach .paragraph_wrap {
    gap: 1rem;
  }

  #coach .name_autograph {
    margin-top: 1.5rem;
  }
}

@media (max-width: 479px) {
  #coach .coach_section h3 {
    font-size: 2.75rem;
  }

  #coach .large_svg_wrapper::after {
    font-size: clamp(7rem, 54vw, 13.5rem);
  }
}

/* ========================== Text selection ========================== */
::selection,
::-moz-selection,
::-o-selection,
::-ms-selection,
::-webkit-selection {
  background-color: var(--_colors---third);
  color: var(--_colors---first);
}

/* ===================== Mobile menu: Academy / Community groups =====================
   The menu carries both sides of the site now, so the flat list is grouped under
   small labels. Links keep .nav_mobile_subtext so the existing SplitText reveal
   still picks them up; the labels use their own class so they stay out of it. */
.mobile_nav_group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--_spacing---section--3);
}

.mobile_nav_group_label {
  color: var(--_colors---third);
  font-family: var(--_typography---paragraphs--font-family);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

@media (max-width: 767px) {
  /* The menu has eight links, so they can run large and fill the phone
     screen. The container still scrolls on very short screens. */
  .full_screen_mobile_menu {
    --menu-type: clamp(2.25rem, min(13vw, 6.5vh), 3.5rem);
  }

  .full_screen_mobile_menu .navigation_links_wrapper {
    grid-row-gap: var(--_spacing---section--5);
  }

  .full_screen_mobile_menu .nav_mobile_subtext {
    font-size: var(--menu-type);
    line-height: 1.02;
    letter-spacing: 0.01em;
  }

  .mobile_nav_group {
    gap: 0.6rem;
  }

  .mobile_nav_group_label {
    font-size: 0.75rem;
  }
}
