/* FAQ accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.faq-item.is-open .faq-content {
    opacity: 1;
}

.faq-item.is-open .faq-trigger-icon {
    transform: rotate(180deg);
}

/* Global pill buttons with subtle lift/shine */
.btn-pill {
    border-radius: 9999px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    /* overflow: hidden; */
}

/* .btn-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% -20%, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
} */

.btn-pill:hover {
    transform: translateY(-1px);
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); */
}

.btn-pill:hover::after {
    opacity: 0.7;
}

.btn-pill:active {
    transform: translateY(0);
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14); */
}

.btn-pill:focus-visible {
    outline: none;
    /* box-shadow: 0 0 0 3px rgba(80, 160, 161, 0.35), 0 10px 28px rgba(0, 0, 0, 0.2); */
}

/* Variant helpers if needed elsewhere */
.btn-pill--primary {
    background: var(--primary, #1f6b6c);
    color: #fff;
}

.btn-pill--warning {
    background: var(--warning, #f4b400);
    color: #111827;
}

.btn-pill--light {
    background: #ffffff;
    color: var(--primary, #1f6b6c);
}

/* Why Choose - staggered cards */
.why-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 6px solid rgba(80, 160, 161, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.why-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-left-color: #50A0A1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(80, 160, 161, 0.2), rgba(80, 160, 161, 0.05));
    color: #50A0A1;
    flex-shrink: 0;
}

.why-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 0 6px 0;
    color: var(--foreground, #fff);
}

.why-text {
    color: var(--muted-foreground, #a0aec0);
    font-size: 0.95rem;
    margin: 0;
}

/* CTA background image overlay */
.cta-with-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    background-color: #0000006b;
    z-index: -1;
}

/* Hero responsiveness fix around 1200px so CTAs never collide with the image */
@media (max-width: 1199px) {
    .hero .grid {
        /* grid-template-columns: 1fr !important; */
        /* gap: 28px !important; */
    }

    /* .hero .order-2 {
        order: 1 !important;
    }


    .hero .order-1 {
        order: 2 !important;
    } */

    /* image second */
    .hero .max-w-md,
    .hero .max-w-lg {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Unify other buttons visually without altering existing content */
button.rounded-md,
button.rounded,
a button.rounded,
a button.rounded-md {
    border-radius: 9999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

button.rounded-md:hover,
button.rounded:hover,
a button.rounded:hover,
a button.rounded-md:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

/* Alternating section backgrounds with light primary tint for better rhythm */
main>section:nth-of-type(even):not([class*="bg-"]) {
    background-color: rgba(80, 160, 161, 0.06);
}



.bg-layer {
    position: absolute;
    
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0000006b;
    z-index: 1;
}

/* CTA section background image */
.cta-with-bg {
    background-image: url("../images/home-cta.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    position: relative;
}


/* Header phone button visibility:
   - Hidden by default
   - Show between 576px and 1279px
   - Hide below 576px and at/above 1280px (desktop) */
#header-phone-btn {
    /* display: none; */
}

@media (min-width: 576px) and (max-width: 1279.98px) {
    #header-phone-btn {
        display: inline-flex;
    }
}




@media (min-width: 280px) and (max-width: 576px) {
    #header-phone-btn {
        display: none;
    }
}

/* Force no background/shadow/hover effects for header phone button */
#header-phone-btn,
#header-phone-btn:hover,
#header-phone-btn:focus,
#header-phone-btn:active {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
}

/* Active nav state when section is in view */
header nav a.active {
    color: #50A0A1 !important;
}
.select2-container .select2-selection--single {
    height: 48px !important;
    border-radius: 0.75rem; 
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
  }
  .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    position: relative;
  }
  
  .select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: 1px solid #e2e8f0 !important; 
    border-radius: 0.75rem !important;
    min-height: 48px !important;
    font-size: 14px;
    font-weight: 500;
  }
  
  .select2-selection__arrow {
    top: 10px !important;
    right: 8px !important;
  }
  
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px; 
    color: #334155; 
    padding-right: 2rem;
    padding-left: 12px !important;
    letter-spacing: 0.02em;
  }
  
  .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #334155 transparent transparent transparent !important; /* slate-700 */
    border-width: 5px 4px 0 4px !important;
    margin-left: -4px;
    margin-top: -2px;
  }
  .select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: rotate(180deg);
  }
  
  .select2-container--default .select2-selection--single .select2-selection__clear { display: none !important; }
  
  .select2-container--default.select2-container--focus .select2-selection--single,
  .select2-container--open .select2-selection--single {
    box-shadow: 0 0 0 4px hsla(var(--primary), 0.15);
    border-color: hsl(var(--primary)) !important;
    outline: 0;
  }
  

  .select2-container .select2-dropdown {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0; 
    overflow: hidden;
  }
  .select2-container .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
  }
  .select2-results__option[aria-selected="true"] {
    background-color: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
  }
  
  .select2-container--default .select2-results > .select2-results__options {
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.16),
                -1px 0px 4px rgba(0, 0, 0, 0.08),
                 1px 0px 4px rgba(0, 0, 0, 0.08) !important;
  }
  

  .select2-container .select2-search--dropdown .select2-search__field {
    border-radius: 8px !important;
    border: 1px solid hsl(var(--primary)) !important;
    background-color: transparent !important;
  }
  .select2-container .select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-color: hsl(var(--primary)) !important;
  }

/* Truck drive animation for mobile van image */
.truck-drive-animation {
    animation: truck-drive 1.8s ease-out forwards;
}

.recaptcha-responsive {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 78px;
}

@media (max-width: 420px) {
    .recaptcha-responsive {
        transform: scale(0.9);
        transform-origin: center;
    }
}