/*
 * RunThrough UK Style Menu & Typography
 * Matching runthrough.co.uk header style
 * Place this file in: public/css/runthrough-menu.css
 * -----------------------------------------------------------------
 */

/* ========================================
   1. CSS VARIABLES (matching RunThrough UK)
   ======================================== */
:root {
  /* Colors - RunThrough UK palette (white header, blue accents) */
  --rt-primary: #ffffff;
  --rt-secondary: #ffffff;
  --rt-accent: #2a6dce;
  --rt-accent-hover: #1d5ab8;
  --rt-white: #ffffff;
  --rt-dark: #2c2c2c;
  --rt-text: #333333;
  --rt-text-muted: #777777;
  --rt-border: #e8e8e8;


  /* Typography - matching RunThrough UK */
  --rt-font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --rt-header-height: 75px;
  --rt-dropdown-width: 220px;

  /* Transitions */
  --rt-transition: all 0.3s ease;
}

/* ========================================
   2. BASE TYPOGRAPHY OVERRIDES
   ======================================== */
body[data-brand="rr"] {
  font-family: var(--rt-font-family) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--rt-text);
}

body[data-brand="rr"] h1,
body[data-brand="rr"] h2,
body[data-brand="rr"] h3,
body[data-brand="rr"] h4,
body[data-brand="rr"] h5,
body[data-brand="rr"] h6 {
  font-family: var(--rt-font-family) !important;
  font-weight: 600;
}

body[data-brand="rr"] p,
body[data-brand="rr"] span,
body[data-brand="rr"] a,
body[data-brand="rr"] li,
body[data-brand="rr"] td,
body[data-brand="rr"] th,
body[data-brand="rr"] label,
body[data-brand="rr"] input,
body[data-brand="rr"] select,
body[data-brand="rr"] button,
body[data-brand="rr"] div {
  font-family: var(--rt-font-family) !important;
}

/* ========================================
   3. HEADER & NAVIGATION
   ======================================== */
.rt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--rt-primary);
  border-bottom: 1px solid var(--rt-border);
  height: var(--rt-header-height);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rt-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
}

/* Logo */
.rt-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.rt-logo-img {
  height: 50px;
  width: auto;
}

/* Main Navigation */
.rt-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

.rt-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.rt-nav-item {
  position: relative;
}

.rt-nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  color: var(--rt-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--rt-transition);
  white-space: nowrap;
  font-family: var(--rt-font-family);
}

.rt-nav-link:hover,
.rt-nav-link:focus {
  color: var(--rt-accent);
  text-decoration: none;
}

/* Dropdown Arrow */
.rt-nav-link .dropdown-arrow {
  width: 10px;
  height: 10px;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.rt-nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* ========================================
   4. DROPDOWN MENUS
   ======================================== */
.rt-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: var(--rt-dropdown-width);
  background: var(--rt-white);
  border: 1px solid var(--rt-border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: var(--rt-transition);
  padding: 8px 0;
  z-index: 1060;
}

.rt-nav-item:hover .rt-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rt-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rt-dropdown-item {
  position: relative;
}

.rt-dropdown-link {
  display: block;
  padding: 9px 20px;
  color: var(--rt-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: var(--rt-transition);
  font-family: var(--rt-font-family);
}

.rt-dropdown-link:hover {
  background: #f5f8fd;
  color: var(--rt-accent);
  text-decoration: none;
}

/* Dropdown Header/Section Title */
.rt-dropdown-header {
  padding: 8px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rt-text-muted);
  font-family: var(--rt-font-family);
}

/* Dropdown Divider */
.rt-dropdown-divider {
  height: 1px;
  background: var(--rt-border);
  margin: 6px 0;
}

/* ========================================
   5. MOBILE MENU TOGGLE
   ======================================== */
.rt-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1051;
  margin-left: auto;
}

.rt-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--rt-dark);
  border-radius: 2px;
  transition: var(--rt-transition);
}

.rt-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.rt-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.rt-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   6. LAYOUT & CONTENT SPACING
   ======================================== */

/* Push the existing sub-navbar below the RT header */
.rt-sub-navbar.navbar-fixed,
.rt-wrapper .navbar-default.navbar-fixed {
  top: var(--rt-header-height) !important;
  z-index: 1040;
}

/* Push wrapper content down to account for RT header */
.rt-wrapper {
  padding-top: var(--rt-header-height);
}

/* ========================================
   7. RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1200px) {
  .rt-nav-link {
    padding: 10px 12px;
    font-size: 14px;
  }

  .rt-header-container {
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .rt-mobile-toggle {
    display: flex;
  }

  .rt-header-container {
    gap: 15px;
  }

  .rt-nav {
    position: fixed;
    top: var(--rt-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--rt-white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: var(--rt-transition);
    z-index: 1049;
    border-top: 1px solid var(--rt-border);
  }

  .rt-nav.active {
    transform: translateX(0);
  }

  .rt-nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .rt-nav-item {
    border-bottom: 1px solid var(--rt-border);
  }

  .rt-nav-link {
    padding: 14px 0;
    justify-content: space-between;
    font-size: 15px;
  }

  .rt-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8f9fa;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
  }

  .rt-nav-item.open .rt-dropdown {
    max-height: 500px;
    padding: 8px 0;
  }
}

@media (max-width: 576px) {
  .rt-header-container {
    padding: 0 15px;
  }

  .rt-logo-img {
    height: 40px;
  }
}

/* ========================================
   8. PAGE CONTENT TYPOGRAPHY
   ======================================== */
body[data-brand="rr"] .content {
  font-family: var(--rt-font-family) !important;
}

body[data-brand="rr"] .content h1,
body[data-brand="rr"] .content h2,
body[data-brand="rr"] .content h3 {
  font-family: var(--rt-font-family) !important;
  font-weight: 600;
}

/* Table styling */
body[data-brand="rr"] .table {
  font-family: var(--rt-font-family) !important;
}

body[data-brand="rr"] .table th {
  font-weight: 600;
  font-size: 13px;
}

/* Button overrides */
body[data-brand="rr"] .btn-primary {
  background-color: var(--rt-accent);
  border-color: var(--rt-accent);
  font-family: var(--rt-font-family) !important;
  font-weight: 500;
}

body[data-brand="rr"] .btn-primary:hover {
  background-color: var(--rt-accent-hover);
  border-color: var(--rt-accent-hover);
}

/* Form styling */
body[data-brand="rr"] .form-control {
  font-family: var(--rt-font-family) !important;
}

body[data-brand="rr"] label {
  font-family: var(--rt-font-family) !important;
  font-weight: 500;
}

/* Navbar brand/title font */
body[data-brand="rr"] .navbar-brand {
  font-family: var(--rt-font-family) !important;
}

body[data-brand="rr"] .nav>li>a {
  font-family: var(--rt-font-family) !important;
}

/* ===== FOOTER BASE ===== */

.footer {
  background: #ffffff;
  color: #666;
  width: 100%;
  border-top: 1px solid #e5e5e5;
  font-size: 14px;
}

/* ===== FOOTER SECTION TITLES ===== */

.footer__title {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

/* Mobile refinement */

@media (max-width: 1024px) {
  .footer__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
  }
}

/* ===== FOOTER LINKS ===== */

.footer__link {
  display: block;
  color: #666;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer__link:hover {
  color: #000;
  opacity: 0.85;
}

/* ===== FOOTER LAYOUT SPACING ===== */

.footer .col {
  margin-bottom: 20px;
}

/* ===== MOBILE ACCORDION BEHAVIOUR ===== */

.footer__mobile_wrapper {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

/* Optional chevron animation */

.footer__title_wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.footer__title_wrapper svg {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.footer__title_wrapper.active svg {
  transform: rotate(180deg);
}

/* ===== RESPONSIVE VISIBILITY HELPERS ===== */

.footer__desktop {
  display: none;
}

.footer__mobile {
  display: block;
}

@media (min-width: 576px) {
  .footer__desktop {
    display: block;
  }

  .footer__mobile {
    display: none;
  }
}

.newsletter {
  background-color: var(--rt-accent);
  padding: 65px 0;
}

.newsletter__heading {
  color: var(--rt-primary);
  font-size: 52px;
  font-weight: 700;
  text-align: center
}

.newsletter__subtitle {
  color: var(--rt-primary);
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  padding-top: 30px;
}

.newsletter2__info {
  display: flex;
  flex-wrap: wrap;
  padding-left: 50px;
  padding-top: 0px;
}

.newsletter2__info p {
  font-size: 22px;
  font-weight: 300;
  padding-left: 20px;
}

.newsletter__video {
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  max-height: 470px;
  height: 470px;
  width: 100%;
}

.newsletter__video_wrapper {
  position: relative;
  transition: all 1s ease-out;
}

.newsletter2__info p,
.newsletter2__info h1,
.newsletter2__info h2,
.newsletter2__info h3,
.newsletter2__info h4,
.newsletter2__info h5 {
  color: var(--rt-white) !important;
}

@media only screen and (max-width: 1024px) {
  .newsletter__heading {
    font-size: 40px;
  }
}

@media only screen and (max-width: 768px) {
  .newsletter__heading {
    text-align: center;
    font-size: 30px;
    padding: 10px 15px;
    line-height: 1.5;
  }
}

#mc_embed_shell {
  width: 100%;
}

#mc_embed_signup {
  padding: 0px !important;
  padding-bottom: 5px !important;
}

#mc_embed_signup .mc-field-group input {
  padding: 4px 0 !important;
}

#mc_embed_signup div.mce_inline_error {
  margin: 0px !important;
}

.youtube-subscribe {
  text-align: center;
}

.youtube-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.youtube-logo svg {
  display: block;
  max-width: 166px;
  height: auto;
}

.button-youtube {
  background-color: #FF0000;
  color: #FFFFFF;
  border: 1px solid #FF0000;
  height: 44px;
  padding: 12px 24px;
  border-radius: 12px;
}

.button-youtube:hover {
  background-color: #CC0000;
  border-color: #CC0000;
  color: #FFFFFF;
}

.section__head {
  background-color: var(--rt-border);
}

.header__title {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-top: 20px;
  font-size: 52px;
  line-height: 1.16667;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--rt-accent);
}

/* ===== FOOTER BOTTOM BAR ===== */

.footer__bottom {
  border-top: 1px solid #eee;
  margin-top: 20px;
  padding-top: 15px;
  font-size: 13px;
  color: #888;
}

.footer__bottom a {
  color: inherit;
  text-decoration: none;
}

.footer__bottom a:hover {
  color: #000;
}

.brand {
  margin: 0 -1px -1px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.brand>* {
  margin: 10px;
}

.brand__item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  width: 165px;
  background-color: var(--rt-white);
  border-radius: 12px;
}

.brand__item img {
  max-width: 166px;
  max-height: 125px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.footer-container {
  padding: 40px 0;
}

.logo-container {
  margin-bottom: 25px;
}

.footer__logo {
  max-width: 180px;
  margin-bottom: 15px;
}

.footer__socials {
  margin-top: 10px;
}

.footer__socials a {
  display: inline-block;
  margin: 6px 10px;
  font-size: 20px;
  color: #ccc;
}

.footer__socials a:hover {
  color: #fff;
}

.footer__title {
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 10px;
}

.footer__link {
  display: block;
  margin-bottom: 6px;
  color: #bbb;
}

.footer__link:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}


.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 4px !important;
}

.mb-2 {
  margin-bottom: 8px !important;
}

.mb-3 {
  margin-bottom: 16px !important;
}

.mb-4 {
  margin-bottom: 24px !important;
}

.mb-5 {
  margin-bottom: 48px !important;
}


.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 4px !important;
}

.mt-2 {
  margin-top: 8px !important;
}

.mt-3 {
  margin-top: 16px !important;
}

.mt-4 {
  margin-top: 24px !important;
}

.mt-5 {
  margin-top: 48px !important;
}

.ml-1 {
  margin-left: 4px !important;
}

.ml-2 {
  margin-left: 8px !important;
}

.ml-3 {
  margin-left: 16px !important;
}

.mr-1 {
  margin-right: 4px !important;
}

.mr-2 {
  margin-right: 8px !important;
}

.mr-3 {
  margin-right: 16px !important;
}

.ml-1 {
  margin-left: 4px !important;
}

.ml-2 {
  margin-left: 8px !important;
}

.ml-3 {
  margin-left: 16px !important;
}

.mr-1 {
  margin-right: 4px !important;
}

.mr-2 {
  margin-right: 8px !important;
}

.mr-3 {
  margin-right: 16px !important;
}

.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 4px !important;
}

.p-2 {
  padding: 8px !important;
}

.p-3 {
  padding: 16px !important;
}

.p-4 {
  padding: 24px !important;
}

/* Floating Menu Styles */
.static-header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  visibility: hidden;
  /* Hidden by default */
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.static-header-overlay.active {
  visibility: visible;
  opacity: 1;
}

.static-header {
  position: fixed;
  top: 140px;
  left: 0;
  height: calc(100vh - 140px);
  width: 85%;
  max-width: 320px;
  background: #fff;
  z-index: 1000;
  transform: translateX(-100%);
  /* Hidden by default */
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.static-header.active {
  transform: translateX(0);
}

/* Close Button */
.static-header-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  z-index: 1001;
}

/* Toggle Button */
.static-header-toggle-btn {
  position: fixed;
  /* or absolute depending on desired flow */
  top: 110px;
  /* Adjust based on navbar */
  left: 15px;
  z-index: 990;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Adjusting internal layout for vertical drawer */
.static-header .row.filter-header {
  margin: 0;
  width: 100%;
}

.static-header .nav-tabs {
  border-bottom: none;
  display: block;
}

.static-header .nav-tabs>li {
  float: none;
  margin-bottom: 5px;
}

.static-header .nav-tabs>li>a {
  border: none;
  padding: 10px 15px;
}

.static-header .mobile-row {
  padding: 0 15px;
}

.static-header .form-horizontal .form-group {
  margin-right: 0;
  margin-left: 0;
}

/* Override text-center/pull-rights inside drawer if needed */
.static-header .col-md-3,
.static-header .col-md-2,
.static-header .col-md-1,
.static-header .col-md-6,
.static-header .col-md-9,
.static-header .col-md-8,
.static-header .col-md-4,
.static-header .col-md-12 {
  width: 100%;
  float: none;
}

/* Wrapper for the content inside drawer to ensure it has padding */
.drawer-content-wrapper {
  padding-top: 0px;
  /* Space for close button */
}

#staticHeaderToggle {
  position: inherit;
}

.filter-header .control-label {
  line-height: 10px;
  text-align: left;
  margin-bottom: 5px;
}

@media (max-width: 992px) {
  .filter-header .col-md-12 {
    padding: 0px 30px;
  }
}

@media (min-width: 992px) {
  .filter-header .nav-tabs-mobile {
    display: block;
  }
}