/* ==========================================================================
   CONDOR PERFORMANCE - GLOBAL REUSABLE COMPONENTS
   1. Site Header & Offcanvas Navigation Drawer
   2. Team Carousel Component (Slider only)
   3. Contact Form & "What We Do" Section
   4. Site Footer, Directory Tabs Cloud & Mobile Sticky CTA
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL HEADER & OFFCANVAS NAVIGATION DRAWER
   ========================================================================== */
.top-header-bar {
  width: 100%;
  height: 105px;
  background-color: #FFFFFF;
  position: relative;
  z-index: 90;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.header-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1190px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  position: relative;
}

.header-logo {
  display: block;
  width: 382px;
  max-width: 382px;
  margin-top: 17px;
  text-decoration: none;
  pointer-events: auto;
}

.header-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  position: absolute;
  top: 105px; /* Exactly on the boundary of the 105px top bar */
  right: 20px;
  transform: translateY(-50%); /* Centered on the seam between white and dark */
  pointer-events: auto;
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #CB0404;
  color: #FFFFFF;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px 12px 32px;
  height: 57px;
  border-radius: 12px;
  text-decoration: none;
  line-height: 1;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-contact-btn:hover {
  background-color: #FFFFFF;
  color: #121212;
  border-color: #FFFFFF;
}

.header-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #CB0404;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
  transition: fill 0.2s ease;
}

.header-menu-toggle:hover {
  background-color: #FFFFFF;
}

.header-menu-toggle:hover svg path {
  fill: #121212;
}

/* Offcanvas Navigation Drawer (Popup 9825) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 414px;
  max-width: 100vw;
  height: 100vh;
  background-color: #121212;
  z-index: 2001;
  padding: 45px 36px;
  overflow-y: auto;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  display: flex;
  flex-direction: column;
}

.nav-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.nav-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-drawer-close svg {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
  transition: fill 0.2s ease;
}

.nav-drawer-close:hover svg {
  fill: #CB0404;
}

.nav-drawer-logo {
  display: block;
  width: 182px;
  max-width: 100%;
  margin-bottom: 24px;
}

.nav-drawer-logo img {
  width: 100%;
  height: auto;
}

.nav-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.nav-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-menu-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-menu-link {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #FFFFFF;
  text-decoration: none;
  padding: 10px 0;
  text-transform: uppercase;
  transition: color 0.2s ease;
  flex-grow: 1;
}

.nav-menu-link:hover,
.nav-menu-link.active {
  color: #CB0404;
}

.nav-submenu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-submenu-toggle svg {
  width: 14px;
  height: 14px;
  fill: #FFFFFF;
  transition: transform 0.3s ease, fill 0.2s ease;
}

.nav-menu-item.open .nav-submenu-toggle svg {
  transform: rotate(180deg);
  fill: #CB0404;
}

.nav-submenu {
  list-style: none;
  padding: 0 0 0 16px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.nav-menu-item.open .nav-submenu {
  max-height: 900px;
  opacity: 1;
  padding-bottom: 10px;
}

.nav-submenu-link {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #BDBDBD;
  text-decoration: none;
  padding: 6px 0;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-submenu-link:hover {
  color: #CB0404;
  transform: translateX(4px);
}


/* ==========================================================================
   2. TEAM CAROUSEL ONLY COMPONENT
   ========================================================================== */
.team-carousel {
  position: relative;
  width: 100%;
  margin: 0 auto;
  user-select: none;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  gap: 32px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc((100% - (3 * 32px)) / 4);
  width: calc((100% - (3 * 32px)) / 4);
  box-sizing: border-box;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: #FFFFFF;
  border-radius: 4px;
  padding: 32px 20px 28px 20px;
  text-decoration: none;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.team-card-image {
  width: 170px;
  height: 170px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card-image img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.team-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #121212;
  text-transform: uppercase;
  line-height: 1.15em;
  margin: 0 0 8px 0;
  text-align: center;
  text-wrap: balance;
  transition: color 0.2s ease;
}

.team-card:hover .team-card-name {
  color: #CB0404;
}

.team-card-role {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #444444;
  line-height: 1.3em;
  margin: 0;
  text-align: center;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 48px;
  background: transparent;
  border: none;
  color: #CCCCCC;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: color 0.2s ease, transform 0.2s ease;
  outline: none;
  padding: 0;
}

.carousel-arrow:hover {
  color: #121212;
  transform: translateY(-50%) scale(1.15);
}

.carousel-arrow-prev {
  left: 8px;
}

.carousel-arrow-next {
  right: 8px;
}

/* Pagination Dots */
.carousel-pagination {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.carousel-dot:hover {
  background-color: #CB0404;
  transform: scale(1.2);
}

.carousel-dot.active {
  background-color: #FFFFFF;
  transform: scale(1.15);
}


/* ==========================================================================
   3. CONTACT FORM & WHAT WE DO COMPONENT
   ========================================================================== */
.contact-form-section {
  position: relative;
  background-color: #F8F9FA;
  background-image: url('../assets/images/strong-man-weightlifting.webp');
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.contact-form-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 0.65) 60%, rgba(255, 255, 255, 0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

.contact-form-section:has(.contact-form-overlay)::before {
  display: none !important;
  content: none !important;
}

.contact-form-container {
  position: relative;
  z-index: 2;
  max-width: 1190px;
  margin: 0 auto;
  padding: 90px 20px 100px 20px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 55px;
  font-weight: 700;
  line-height: 1.1em;
  color: #121212;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  text-wrap: balance;
  text-align: center;
}

.contact-form-subtitle {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9em;
  color: #333333;
  max-width: 620px;
  margin: 0 auto 30px auto;
  text-align: center;
  text-wrap: pretty;
}

.contact-form-subtitle strong {
  font-weight: 700;
  color: #121212;
}

/* Form Card */
.contact-form-card {
  background-color: #FFF8D2;
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-sizing: border-box;
  margin-bottom: 60px;
  text-align: left;
}

.form-group-title {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-variation-settings: 'wght' 700;
  line-height: 1.35em;
  color: #333333;
  margin: 18px 0 10px 0;
  padding: 0 2px;
  text-wrap: balance;
}

.form-group-title:first-child {
  margin-top: 0;
}

.form-field-group {
  margin-bottom: 12px;
  width: 100%;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: #FFFFFF;
  border: 1px solid rgba(51, 51, 51, 0.08);
  font-family: 'Roboto Flex', sans-serif;
  font-size: 16px;
  color: #121212;
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input {
  height: 48px;
  padding: 8px 16px;
}

.form-textarea {
  padding: 12px 16px;
  resize: vertical;
}

.form-select {
  height: 48px;
  padding: 8px 36px 8px 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 571.4 571.4' fill='%23333333'%3E%3Cpath d='M571 393Q571 407 561 418L311 668Q300 679 286 679T261 668L11 418Q0 407 0 393T11 368 36 357H536Q550 357 561 368T571 393Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  cursor: pointer;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #CB0404;
  box-shadow: 0 0 0 2px rgba(203, 4, 4, 0.15);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 24px 0;
}

.form-checkbox {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #CB0404;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox-label {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  line-height: 1.6em;
  color: #333333;
  cursor: pointer;
}

.form-submit-group {
  width: 100%;
}

.contact-form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  background-color: #CB0404;
  color: #FFFFFF;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(203, 4, 4, 0.3);
  transition: all 0.2s ease;
}

.contact-form-submit-btn:hover {
  background-color: #121212;
  box-shadow: 0 4px 15px rgba(18, 18, 18, 0.3);
}

/* Part B: What Do Performance Psychologists Do */
.what-we-do-wrapper {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.what-we-do-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 55px;
  font-weight: 700;
  line-height: 1.1em;
  color: #121212;
  text-transform: uppercase;
  margin: 0 auto 24px auto;
  text-wrap: balance;
  text-align: center;
}

.what-we-do-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 440px;
  text-align: left;
}

.what-we-do-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.what-we-do-item:last-child {
  margin-bottom: 0;
}

.what-we-do-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: #CB0404;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.what-we-do-icon svg {
  width: 100%;
  height: 100%;
}

.what-we-do-text {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9em;
  color: #333333;
}


/* ==========================================================================
   4. SITE FOOTER, DIRECTORY CLOUD & MOBILE STICKY CTA
   ========================================================================== */
.site-footer {
  width: 100%;
  background-color: #121212;
  color: #CCCCCC;
  position: relative;
  overflow: hidden;
}

/* --- Top Section --- */
.footer-top-section {
  width: 100%;
  background-color: #121212;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px 50px 24px;
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.1fr 1.6fr;
  gap: 48px;
  align-items: start;
  box-sizing: border-box;
}

.footer-col-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2em;
  color: #FFFFFF;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
  text-wrap: balance;
}

.footer-desc {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9em;
  color: #CCCCCC;
  margin: 0;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list li a {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8em;
  color: #CCCCCC;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-list li a:hover {
  color: #CB0404;
  text-decoration: none;
}

.footer-col-connect {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-wrapper {
  margin-bottom: 18px;
  width: 100%;
}

.footer-logo-img {
  max-width: 250px;
  width: 100%;
  height: auto;
  display: block;
}

.footer-email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.footer-email-icon {
  color: #CB0404;
  flex-shrink: 0;
}

.footer-email-link {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 15px;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-email-link:hover {
  color: #CB0404;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #CB0404;
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer-social-btn:hover {
  background-color: #A30303;
  transform: translateY(-2px);
}

/* --- Directory Section (Tabs + Multi-Column Links) --- */
.footer-directory-section {
  width: 100%;
  background-color: #121212;
}

.footer-directory-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 70px 24px;
  box-sizing: border-box;
}

.directory-tabs-nav {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  gap: 8px;
  margin-bottom: 36px;
}

.directory-tab-btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 6px;
  background-color: #FFFFFF;
  color: #121212;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.directory-tab-btn:hover {
  background-color: #CB0404;
  color: #FFFFFF;
}

.directory-tab-btn.active {
  background-color: #CB0404;
  color: #FFFFFF;
}

.directory-tab-pane {
  display: none;
}

.directory-tab-pane.active {
  display: block;
}

.directory-links-grid {
  display: block;
  column-count: 4;
  column-gap: 32px;
}

#tab-australia .directory-links-grid {
  display: block;
  column-count: 3;
  column-gap: 32px;
}

.directory-link {
  display: block;
  break-inside: avoid;
  page-break-inside: avoid;
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45em;
  color: #CCCCCC;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.directory-link:hover {
  color: #CB0404;
  text-decoration: none;
}

.directory-empty-msg {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 15px;
  color: #FFFFFF;
  font-style: italic;
  margin: 0;
  padding: 10px 0;
}

/* --- Bottom Copyright Bar --- */
.footer-bottom-bar {
  width: 100%;
  background-color: #FFFFFF;
  border-top: 1px solid #EBEBEB;
}

.footer-bottom-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.footer-copyright-text {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  margin: 0;
}

.footer-agency-wrapper {
  display: flex;
  align-items: center;
}

.footer-agency-logo {
  height: 24px;
  width: auto;
  display: block;
}

/* --- Mobile Sticky Contact Bar --- */
.mobile-sticky-bar {
  display: none;
}


/* ==========================================================================
   5. RESPONSIVE OVERRIDES - TABLET (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Header (Tablet) */
  .top-header-bar {
    display: none;
  }
  .header-container {
    padding: 16px 20px;
    max-width: 1190px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
  }
  .header-logo {
    width: 210px;
    max-width: 210px;
    margin-top: 0;
  }
  .header-actions {
    position: static;
    transform: none;
    top: auto;
    right: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .header-contact-btn {
    font-size: 16px;
    padding: 7px 14px 5px 14px;
    height: 32px;
    border-radius: 12px;
    width: auto;
  }
  .header-menu-toggle {
    width: 32px;
    height: 32px;
    padding: 5px;
    border-radius: 12px;
  }
  .header-menu-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* Team Carousel (Tablet) */
  .carousel-track {
    gap: 24px;
  }
  .carousel-slide {
    flex: 0 0 calc((100% - 24px) / 2);
    width: calc((100% - 24px) / 2);
  }
  .team-card-image {
    width: 150px;
    height: 150px;
  }
  .team-card-image img {
    width: 150px;
    height: 150px;
  }
  .team-card-name {
    font-size: 24px;
  }

  /* Contact Form & What We Do (Tablet) */
  .contact-form-container {
    padding: 64px 20px 72px 20px;
  }
  .contact-form-title {
    font-size: 36px;
  }
  .contact-form-card {
    max-width: 600px;
    padding: 28px 24px;
    margin-bottom: 50px;
  }
  .what-we-do-wrapper {
    max-width: 600px;
  }
  .what-we-do-list {
    max-width: 440px;
  }
  .what-we-do-title {
    font-size: 36px;
  }
  .what-we-do-text {
    font-size: 16px;
    line-height: 1.75em;
  }

  /* Footer (Tablet) */
  .footer-top-container {
    padding: 60px 20px 40px 20px;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 36px;
  }
  .footer-col-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .footer-directory-container {
    padding: 30px 20px 60px 20px;
  }
  .directory-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    margin-bottom: 32px;
  }
  .directory-tab-btn {
    flex: 1 1 calc(25% - 8px);
    min-width: 130px;
    font-size: 18px;
    padding: 10px 8px;
    text-align: center;
  }
  .directory-links-grid {
    display: block;
    column-count: 4;
    column-gap: 20px;
  }
  #tab-australia .directory-links-grid {
    display: block;
    column-count: 3;
    column-gap: 20px;
  }
  .footer-bottom-container {
    padding: 12px 20px;
  }
}


/* ==========================================================================
   6. RESPONSIVE OVERRIDES - MOBILE (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
  /* Header (Mobile) */
  .header-container {
    padding: 14px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
  }
  .header-logo {
    width: 143px;
    max-width: 143px;
    margin-top: 0;
  }
  .header-actions {
    position: static;
    transform: none;
    top: auto;
    right: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .header-contact-btn {
    font-size: 15px;
    padding: 6px 12px 5px 12px;
    height: 32px;
    border-radius: 12px;
    width: auto !important;
  }
  .header-menu-toggle {
    width: 32px;
    height: 32px;
    padding: 5px;
    border-radius: 12px;
  }
  .header-menu-toggle svg {
    width: 18px;
    height: 18px;
  }
  .nav-drawer {
    width: 100vw;
    padding: 30px 20px;
  }

  /* Team Carousel (Mobile) */
  .carousel-track {
    gap: 16px;
  }
  .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
  }
  .team-card {
    padding: 28px 16px 24px 16px;
  }
  .team-card-image {
    width: 150px;
    height: 150px;
  }
  .team-card-image img {
    width: 150px;
    height: 150px;
  }
  .team-card-name {
    font-size: 23px;
  }
  .team-card-role {
    font-size: 14px;
  }
  .carousel-arrow {
    display: none;
  }
  .carousel-pagination {
    margin-top: 24px;
    gap: 8px;
  }

  /* Contact Form & What We Do (Mobile) */
  .contact-form-container {
    width: 100%;
    max-width: 100%;
    padding: 48px 15px 56px 15px;
    box-sizing: border-box;
  }
  .contact-form-title {
    font-size: 32px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
  }
  .contact-form-subtitle {
    font-size: 16px;
    line-height: 1.7em;
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px;
  }
  .contact-form-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 16px;
    margin-bottom: 40px;
    box-sizing: border-box;
  }
  .form-group-title {
    font-size: 18px;
    font-weight: 700;
    font-variation-settings: 'wght' 700;
    line-height: 1.3em;
    margin: 14px 0 10px 0;
  }
  .form-input,
  .form-select {
    height: 48px;
    font-size: 15px;
  }
  .form-textarea {
    font-size: 15px;
  }
  .contact-form-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    height: 52px;
    font-size: 22px;
    border-radius: 12px;
  }
  .what-we-do-title {
    font-size: 32px;
    margin-bottom: 18px;
  }
  .what-we-do-list {
    max-width: 100%;
  }
  .what-we-do-item {
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .what-we-do-icon {
    width: 22px;
    height: 22px;
    margin-top: 3px;
  }
  .what-we-do-text {
    font-size: 15px;
    line-height: 1.75em;
  }

  /* Footer (Mobile) */
  .footer-top-container {
    padding: 50px 20px 30px 20px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-col-brand {
    grid-column: auto;
  }
  .footer-col-title {
    font-size: 22px;
    margin-bottom: 14px;
    text-align: left;
  }
  .footer-desc {
    font-size: 15px;
    line-height: 1.8em;
    text-align: left;
  }
  .footer-nav-list {
    text-align: left;
  }
  .footer-col-connect {
    align-items: flex-start;
  }
  .footer-directory-container {
    padding: 20px 20px 50px 20px;
  }
  .directory-tabs-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 28px;
  }
  .directory-tab-btn {
    font-size: 16px;
    padding: 8px 6px;
    text-align: center;
    border-radius: 6px;
  }
  .directory-tab-btn:last-child {
    grid-column: 1 / -1;
  }
  .directory-links-grid,
  #tab-australia .directory-links-grid {
    display: block;
    column-count: 1;
    column-gap: 0;
  }
  .directory-link {
    font-size: 14px;
    line-height: 1.5em;
    margin-bottom: 10px;
    text-align: left;
  }
  .footer-bottom-bar {
    padding-bottom: 60px; /* Space for sticky mobile bar */
  }
  .footer-bottom-container {
    flex-direction: column-reverse;
    gap: 12px;
    text-align: center;
    padding: 12px 20px;
  }
  .footer-agency-wrapper {
    justify-content: center;
  }

  /* Mobile Sticky CTA Bar */
  .mobile-sticky-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #CB0404;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
  }
  .mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 50px;
    background-color: #CB0404;
    color: #FFFFFF;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
  }
}
.contact-form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-form-status { margin: 13px 0 0; min-height: 1.5em; color: #333; font-size: 14px; line-height: 1.5; }
.contact-form-status.is-success { color: #167535; }
.contact-form-status.is-error { color: #a40000; }
.contact-form-submit-btn:disabled { cursor: wait; opacity: .72; }
