/* Custom CSS to override jekyll-agency theme defaults */
header.masthead {
  position: relative;
  background-position: center 40%;  /* Show more of the top of the image */
  background-size: cover;
  background-repeat: no-repeat;
  padding-top: 150px;
  padding-bottom: 100px;
  display: block !important;
  min-height: 600px;
  transition: background-image 0ms ease-in-out;  /* No transition on the base element */
}

/* Add a dark overlay and blur effect */
header.masthead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Darkening overlay */
  backdrop-filter: blur(0.5px);
  z-index: 1;
}

/* Ensure content stays above the overlay */
header.masthead .container {
  position: relative;
  z-index: 2;
}

/* Mobile optimizations for header */
@media (max-width: 768px) {
  header.masthead {
    background-position: center 35%;
    background-size: cover;
    padding-top: 120px;
    padding-bottom: 70px;
    min-height: 500px; /* Shorter on mobile */
  }
  
  /* More aggressive styling for mobile text */
  .intro-lead-in {
    font-size: 28px !important;
    line-height: 1.4;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    padding: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    max-width: 100%;
    word-break: break-word;
  }
  
  /* Fixed container for mobile */
  .intro-heading-container {
    container-type: inline-size;
    width: 90% !important;
    margin: 0 auto 40px !important;
    padding: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 5px !important;
    height: 240px !important;
    max-height: 240px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important; /* Force hidden overflow */
    box-sizing: border-box !important;
    /* Maintain container shape */
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
  }
  
  /* Fixed size rotating text container */
  #rotating-text-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }
  
  /* Make all text elements the same fixed size */
  .intro-heading, .rotating-text {
    font-size: 5px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.3px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    width: 90% !important;
    max-width: 90% !important;
    padding: 5px !important;
    margin: 0 auto !important;
    height: 100% !important; /* Fill full height */
    min-height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: absolute !important; /* All elements absolute positioned */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    word-break: break-word !important;
    hyphens: auto !important;
    box-sizing: border-box !important;
    will-change: opacity !important; /* Only opacity changes */
    transition: opacity 1000ms linear !important; /* Smooth opacity transitions only */
    /* Prevent rendering issues */
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    -webkit-font-smoothing: subpixel-antialiased !important;
  }
  
  /* Simplify font size rules based on text length */
  .rotating-text[data-length="short"] {
    font-size: 20px !important;
  }
  
  .rotating-text[data-length="medium"] {
    font-size: 24px !important;
  }
  
  .rotating-text[data-length="long"] {
    font-size: 16px !important;
  }
  
  .rotating-text[data-length="very-long"] {
    font-size: 15px !important;
  }
  
  /* Force visibility of active text */
  .rotating-text[style*="opacity: 1"] {
    visibility: visible !important;
    display: flex !important;
    flex-wrap: wrap !important;
    opacity: 1 !important;
    z-index: 5 !important;
  }
  
  /* Hide inactive text completely */
  .rotating-text[style*="opacity: 0"] {
    visibility: hidden !important;
    display: none !important;
    opacity: 0 !important;
    z-index: 1 !important;
  }
  
  /* Hide any fixed overlays or fallback text */
  .intro-heading:not(.rotating-text) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  
  /* Ensure the intro text container has proper spacing */
  .intro-text {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Make sure all content is spaced properly */
  .intro-text > div {
    margin-bottom: 20px;
    width: auto;
    max-width: 100%;
  }
  
  /* Ensure button has proper spacing on mobile */
  .intro-text > div:last-child {
    margin-top: 20px; /* Reduced margin for desktop */
    position: relative;
    z-index: 20; /* Ensure button is above other elements */
  }
  
  .rotating-text {
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.3px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
  }
}

/* Extra small devices (phones) - even more spacing */
@media (max-width: 576px) {
  .intro-lead-in {
    font-size: 20px !important;
    padding: 12px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  .intro-heading-container {
    width: 95% !important;
    height: 230px !important;
    max-height: 230px !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    padding: 0 !important;
  }
  
  /* Simplify font size rules for small devices */
  .rotating-text[data-length="short"] {
    font-size: 40px !important;
  }
  
  .rotating-text[data-length="medium"] {
    font-size: 30px !important;
  }
  
  .rotating-text[data-length="long"] {
    font-size: 26px !important;
  }
  
  .rotating-text[data-length="very-long"] {
    font-size: 18px !important;
  }
  
  /* Add more space for the button */
  .btn-primary {
    margin-top: 15px !important;
  }
  
  .rotating-text {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }
}

/* Custom font for logo text */
.bungee-outline-regular {
  font-family: "Bungee Outline", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Split logo styling */
.navbar-brand {
  font-weight: 400 !important;
  font-style: normal;
}

.navbar-brand .after {
  font-family: "Bungee Outline", sans-serif !important;
}

.navbar-brand .ware {
  font-family: "Bungee", sans-serif !important;
}

/* Change button color to orange */
.btn-primary {
  background-color: #FF6B35 !important;
  border-color: #FF6B35 !important;
}

/* Custom header text styling */
.intro-lead-in {
  font-size: 40px !important;
  margin-bottom: 10px; /* Reduced space before rotating text */
  font-family: 'Montserrat', sans-serif;
  color: white;
  line-height: 1.6;
}

.intro-heading {
  font-size: 35px !important;
  font-weight: 700;
  margin-bottom: 50px;
  line-height: 1.5;
}

/* Services Section */
.page-section {
  padding: 80px 0;
}

.section-heading {
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 15px;
}

.section-subheading {
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 75px;
  text-transform: none;
  font-family: 'Droid Serif', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

.service-heading {
  margin: 15px 0;
  text-transform: none;
}

.text-primary {
  color: #FF6B35 !important;
}

/* Solutions section styles */
#solutions .solution-item {
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#solutions .solution-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

#solutions .features-title {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #212529;
    font-weight: 600;
}

#solutions .feature-list {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
    margin-bottom: 1.5rem;
}

#solutions .feature-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

#solutions .feature-list li i {
    position: absolute;
    left: 0;
    top: 5px;
}

#solutions .fa-stack {
    margin-bottom: 1rem;
}

#solutions .btn-outline-primary {
    color: #FF6B35;
    border-color: #FF6B35;
    transition: all 0.3s ease;
}

#solutions .btn-outline-primary:hover {
    background-color: #FF6B35;
    color: white;
}

/* Language picker styles */
.nav-item.lang-picker {
    margin-left: 5px;
}

.nav-item.lang-picker .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    font-size: 90%;
    position: relative;
}

.nav-item.lang-picker .nav-link:after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Responsive adjustments for language picker */
@media (max-width: 991px) {
    .nav-item.lang-picker {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .nav-item.lang-picker .nav-link {
        display: inline-flex;
        width: auto;
        justify-content: flex-start;
        padding-left: 0.75rem;
    }
}

.flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 6px;
}

/* Flag icons with relative paths */
.flag-icon-us {
  background-image: url('../../img/flags/us.svg');
}

.flag-icon-es {
  background-image: url('../../img/flags/es.svg');
}

.flag-icon-fr {
  background-image: url('../../img/flags/fr.svg');
}

.flag-icon-jp {
  background-image: url('../../img/flags/jp.svg');
  border: 1px solid #ccc;
}

.flag-icon-de {
  background-image: url('../../img/flags/de.svg');
}

.flag-icon-cn {
  background-image: url('../../img/flags/cn.svg');
}

.dropdown-menu {
    min-width: 150px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1030;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #212529;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.lang-name {
    font-size: 14px;
}

/* Make the CONTACT button more prominent */
.navbar-nav .nav-item-contact .nav-link {
    background-color: #006400;
    color: white;
    border-radius: 8px;
    padding: 6px 14px;
    line-height: 1.1;
    margin-left: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar-nav .nav-item-contact .nav-link:hover {
    background-color: #008000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* What We Do Timeline styles */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    margin-left: -1.5px;
    content: '';
    background-color: #e9ecef;
}

@media (min-width: 768px) {
    .timeline:before {
        left: 50%;
    }
}

.timeline > li {
    position: relative;
    margin-bottom: 50px;
    min-height: 50px;
}

.timeline > li:after, .timeline > li:before {
    display: table;
    content: ' ';
}

.timeline > li:after {
    clear: both;
}

/* Default (mobile) - always text on right */
.timeline > li .timeline-panel {
    position: relative;
    float: right;
    width: 100%;
    padding: 0 20px 0 100px;
    text-align: left;
}

.timeline > li .timeline-panel:before {
    right: auto;
    left: -15px;
    border-right-width: 15px;
    border-left-width: 0;
}

.timeline > li .timeline-panel:after {
    right: auto;
    left: -14px;
    border-right-width: 14px;
    border-left-width: 0;
}

/* Desktop - alternating left and right */
@media (min-width: 768px) {
    /* First, reset the default mobile styles for desktop view */
    .timeline > li .timeline-panel {
        position: relative;
        width: 41%;
        padding: 0 20px 20px;
        text-align: left;
    }
    
    /* Non-inverted items - panels on the left */
    .timeline > li:not(.timeline-inverted) .timeline-panel {
        float: left;
        padding: 0 20px 20px 30px;
        text-align: right;
    }
    
    /* Inverted items - panels on the right */
    .timeline > li.timeline-inverted .timeline-panel {
        float: right;
        padding: 0 30px 20px 20px;
        text-align: left;
    }
    
    /* Reset the panel arrow positions for left-sided panels */
    .timeline > li:not(.timeline-inverted) .timeline-panel:before,
    .timeline > li:not(.timeline-inverted) .timeline-panel:after {
        right: -15px;
        left: auto;
        border-right-width: 0;
        border-left-width: 15px;
    }
}

.timeline > li .timeline-image {
    position: absolute;
    z-index: 100;
    left: 0;
    width: 80px;
    height: 80px;
    margin-left: 0;
    text-align: center;
    color: white;
    border: 7px solid #e9ecef;
    border-radius: 100%;
    background-color: #FF6B35;
}

.timeline > li .timeline-image h4 {
    font-size: 10px;
    line-height: 14px;
    margin-top: 12px;
}

@media (min-width: 768px) {
    .timeline > li .timeline-image {
        left: 50%;
        width: 100px;
        height: 100px;
        margin-left: -50px;
    }
    .timeline > li .timeline-image h4 {
        font-size: 13px;
        line-height: 18px;
        margin-top: 16px;
    }
}

@media (min-width: 992px) {
    .timeline > li .timeline-image {
        width: 150px;
        height: 150px;
        margin-left: -75px;
    }
    .timeline > li .timeline-image h4 {
        font-size: 18px;
        line-height: 26px;
        margin-top: 30px;
    }
}

.timeline > li:last-child {
    margin-bottom: 0;
}

.timeline .timeline-heading h4 {
    margin-top: 0;
    color: inherit;
}

.timeline .timeline-heading h4.subheading {
    text-transform: none;
    margin-top: 5px;
}

.timeline .timeline-body > p,
.timeline .timeline-body > ul {
    margin-bottom: 0;
}

.timeline > li:last-child .timeline-image {
    background-color: #006400;
}

.timeline > li:last-child .timeline-image:hover {
    background-color: #008000;
    cursor: pointer;
    transform: scale(1.05);
}

a.timeline-image {
    text-decoration: none;
    color: white;
    display: block;
    transition: all 0.3s ease;
}

a.timeline-image:hover {
    text-decoration: none;
    color: white;
}

/* Carousel overlay styles */
.carousel-overlay {
  z-index: 0 !important; /* Between the background and the darkening overlay */
}

/* Make mobile menu button orange to match other buttons */
.navbar-toggler {
  background-color: #FF6B35 !important;
  border-color: #FF6B35 !important;
  color: black !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Fix Contact button on mobile */
@media (max-width: 991px) {
    .navbar-nav .nav-item-contact .nav-link {
        padding: 8px 16px;
        margin: 8px 0;
        display: inline-block;
        min-width: 100px;
        text-align: center;
    }
}

/* Add more custom styles here */

/* Logo Ribbon styles */
.logo-ribbon-section {
  background-color: #f8f9fa;
  overflow: hidden;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  position: relative; /* Ensure proper stacking context */
  cursor: pointer; /* Show pointer cursor on the ribbon */
  z-index: 10; /* Ensure it's above other content */
  -webkit-tap-highlight-color: rgba(0,0,0,0); /* Remove tap highlight on mobile */
}

.logo-ribbon-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  min-height: 140px; /* Ensure there's always space to click */
  cursor: pointer; /* Show pointer cursor on the container */
}

.logo-ribbon-track {
  display: flex;
  width: max-content;
  animation-play-state: paused;
  z-index: 5; /* Below the section but above other content */
}

.logo-ribbon-track.animate {
  animation-play-state: running;
}

.logo-ribbon-row1 {
  animation: scroll-left var(--scroll-time, 30s) linear infinite;
}

.logo-ribbon-row2 {
  animation: scroll-right var(--scroll-time, 30s) linear infinite;
  display: none; /* Hidden by default, shown on mobile */
}

.logo-ribbon-item {
  flex: 0 0 200px;
  height: 100px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  position: relative; /* Add this to ensure proper stacking */
  pointer-events: none; /* Make logos non-interactive to let clicks pass through to the section */
}

.logo-ribbon-item:hover {
  transform: scale(1.1);
}

.logo-ribbon-item img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: all 0.3s ease;
  display: block; /* Add this to ensure image is visible */
}

/* Make SVG images visible */
.logo-ribbon-item svg,
.logo-ribbon-item img[src$=".svg"] {
  width: 100%;
  height: 80px;
  max-width: 180px;
  display: block;
}

.logo-ribbon-item:hover img {
  filter: grayscale(0) opacity(1);
}

/* But make the SVGs or images inside visible */
.logo-ribbon-item > svg,
.logo-ribbon-item > img,
.logo-ribbon-item > a {
  pointer-events: auto; /* Re-enable pointer events for the actual content */
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Mobile styles for logo ribbon */
@media (max-width: 768px) {
  .logo-ribbon-container {
    display: flex; /* Add this to enable flex layout */
    flex-direction: column;
    padding: 10px 0;
  }
  
  .logo-ribbon-row2 {
    display: flex; /* Show the second row on mobile */
    margin-top: 15px;
  }
  
  .logo-ribbon-item {
    flex: 0 0 150px;
    height: 80px;
    margin: 0 15px;
  }
  
  .logo-ribbon-item img {
    max-height: 60px;
  }
}

/* Rotating Text Styles */
.rotating-text {
  /* Apply only opacity transitions, nothing else */
  transition: opacity 1000ms linear !important;
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  will-change: opacity !important;
  box-sizing: border-box !important;
  /* Prevent any size/position changes during transition */
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  -webkit-font-smoothing: subpixel-antialiased !important;
  color: white !important;
}

/* Container for rotating text - make it a fixed height container */
.intro-heading-container {
  position: relative !important;
  min-height: 100px !important;
  height: 100px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important; /* Hide overflow to prevent position shifting */
  margin-bottom: 30px !important;
  width: 100% !important;
  /* Maintain container shape */
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
}

#rotating-text-container {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
}

/* Active and inactive text states */
.rotating-text.active {
  z-index: 5 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.rotating-text.inactive {
  z-index: 1 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Mobile styles */
@media (max-width: 768px) {
  .intro-heading-container {
    min-height: 240px !important;
    height: 240px !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 5px !important;
  }
  
  .rotating-text {
    font-size: 20px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.3px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .intro-heading-container {
    min-height: 230px !important;
    height: 230px !important;
  }
  
  .rotating-text {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }
}

/* Base rotating text styles */
.rotating-text {
  /* Apply only opacity transitions, nothing else */
  transition: opacity 1000ms linear !important;
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  margin: 0 0 0 15px !important;
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  will-change: opacity !important;
  box-sizing: border-box !important;
  /* Prevent any size/position changes during transition */
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  -webkit-font-smoothing: subpixel-antialiased !important;
  color: white !important;
}

/* Desktop-specific styles - apply ONLY to desktop */
@media (min-width: 769px) {
  .rotating-text.intro-heading[class][class][class],
  .rotating-text[class][class][class],
  html body .intro-heading-container .rotating-text,
  html body #rotating-text-container .rotating-text {
    font-size: 36px !important;
  }
}

/* Mobile styles - make sure to reset colors back to white */
@media (max-width: 768px) {
  .rotating-text,
  .intro-heading,
  #rotating-text-container .rotating-text,
  .intro-heading-container .rotating-text,
  .rotating-text.intro-heading {
    color: white !important;
    font-size: 28px !important;
  }
}

/* Prevent nav items from wrapping on tablet screens */
@media (max-width: 991px) and (min-width: 768px) {
  #mainNav .navbar-nav .nav-item .nav-link {
    white-space: nowrap;
    font-size: 14px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Specifically target "What we do" to ensure it doesn't wrap */
#mainNav .navbar-nav .nav-item .nav-link[href="#whatwedo"] {
  white-space: nowrap;
}

/* Add some spacing adjustments for iPad */
@media only screen and (device-width: 768px) and (device-height: 1024px) {
  #mainNav .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
  }
  
  #mainNav .navbar-nav .nav-item {
    display: flex;
  }
}

/* Custom mobile order for contact form fields */
@media (max-width: 767px) {
  /* Force mobile-specific ordering for contact form */
  #contactForm .row {
    display: flex;
    flex-direction: column;
  }
  
  #contactForm .order-1 { order: 1 !important; }
  #contactForm .order-2 { order: 2 !important; }
  #contactForm .order-3 { order: 3 !important; }
  #contactForm .order-4 { order: 4 !important; }
  #contactForm .order-5 { order: 5 !important; }
  #contactForm .order-6 { order: 6 !important; }
  #contactForm .order-7 { order: 7 !important; }
}

/* More dropdown menu styles */
.nav-item.dropdown .dropdown-menu {
  background-color: #212529;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;
  min-width: 160px;
}

.nav-item.dropdown.show .dropdown-menu,
.nav-item.dropdown .dropdown-menu.show {
  display: block !important;
  visibility: visible !important;
}

.nav-item.dropdown .dropdown-item {
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 400;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  clear: both;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.nav-item.dropdown .dropdown-item:hover {
  background-color: #FF6B35;
  color: #ffffff;
  text-decoration: none;
}

.nav-item.dropdown .nav-link .fa-chevron-down {
  font-size: 0.75rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.nav-item.dropdown.show .nav-link .fa-chevron-down {
  transform: rotate(180deg);
}

/* Ensure dropdown works on mobile */
@media (max-width: 991px) {
  .nav-item.dropdown .dropdown-menu {
    background-color: transparent;
    border: none;
    box-shadow: none;
    margin-top: 0;
    padding-left: 1rem;
    position: static;
    display: none;
  }
  
  .nav-item.dropdown.show .dropdown-menu {
    display: block;
  }
  
  .nav-item.dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-item.dropdown .dropdown-item:hover {
    background-color: transparent;
    color: #FF6B35;
  }
} 