/*
Theme Name: Start2Finish Premium Auto Body Theme - Multi-Location
Theme URI: https://start2finish.app
Description: Premium auto body shop theme with comprehensive SEO, accessibility, and conversion optimization. Enhanced with multi-location support and Virtual Estimate feature.
Author: Start2Finish
Author URI: https://start2finish.app
Template: blankslate
Version: 5.8.7-generic-cta-text
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: s2f-theme

Phase 1 Features:
- Complete Schema Markup (LocalBusiness, AutoRepair, AggregateRating, FAQ, Breadcrumbs)
- WCAG 2.1 AA Accessibility Compliance
- Dynamic Meta Descriptions & Open Graph
- Breadcrumb Navigation System
- Proper Heading Hierarchy
- Performance Optimizations

Phase 2 Features (v5.2.0):
- Virtual Estimate Feature (ACF-controlled photo upload form)
- Client-side image compression for faster uploads
- Conditional homepage action grid (2 or 3 columns)
- SVG vehicle diagrams for upload guidance
*/

/* ========================================
   PREMIUM THEME ENHANCEMENTS - PHASE 1
   ======================================== */

/* Accessibility: Skip to Content Link - Hidden per client request */
.skip-to-content,
.skip-link,
a[href="#content"].skip-to-content,
a.skip-link {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.skip-to-content:focus,
.skip-link:focus {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    top: -9999px !important;
    left: -9999px !important;
}

/* Accessibility: Focus Indicators */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* Accessibility: Screen Reader Only Text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   HEADER LOGO STYLES
   ======================================== */

/* Desktop logo - default styles */
.navbar-brand img,
.navbar-brand .custom-logo {
    max-width: 350px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ========================================
   TOP ADDRESS BAR - Uses CSS Variable
   ======================================== */

.top-address-bar {
    background: var(--s2f-header-bar-bg, #000000);
    color: #FFFFFF;
    font-size: 0.95rem;
    border-bottom: 1px solid #333333;
    font-weight: 500;
}

.top-address-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-address-link:hover {
    color: #C0C0C0;
    transform: translateY(-1px);
}

.top-address-bar i {
    color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.top-address-link:hover i {
    color: #C0C0C0;
}

/* Mobile - slightly smaller text */
@media (max-width: 767px) {
    .top-address-bar {
        font-size: 0.85rem;
    }

    .top-address-bar i {
        font-size: 0.85rem;
    }
}

/* ========================================
   HEADER CALL BUTTON - Uses CSS Variable
   ======================================== */

/* Call button in header - Uses brand color, inverts on hover */
header .btn-primary,
header .dropdown .btn-primary,
header .btn.header-call-btn,
a.btn.header-call-btn,
.header-call-btn {
    background: var(--s2f-header-button, #000000) !important;
    border: 2px solid var(--s2f-header-button, #000000) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: max-content;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: unset !important;
    text-decoration: none;
}

/* Phone button span - prevent wrapping */
header .btn-primary span,
header .dropdown .btn-primary span {
    white-space: nowrap !important;
    display: inline-block;
}

/* Specific fix for header phone button */
a.header-phone-btn,
.header-phone-btn {
    width: auto !important;
    max-width: none !important;
    min-width: fit-content !important;
    white-space: nowrap !important;
    padding: 0.65rem 1.25rem !important;
    border-radius: 8px !important;
    height: auto !important;
    line-height: 1.2 !important;
}

a.header-phone-btn span,
.header-phone-btn span {
    white-space: nowrap !important;
    display: inline !important;
}

header .btn-primary:hover,
header .dropdown .btn-primary:hover,
header .btn.header-call-btn:hover,
a.btn.header-call-btn:hover,
.header-call-btn:hover {
    background: #FFFFFF !important;
    border-color: var(--s2f-header-button, #000000) !important;
    color: var(--s2f-header-button, #000000) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 0, 0, 0.2);
}

/* Dropdown menu styling for multi-location */
header .dropdown-menu {
    border: 1px solid #000000;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

header .dropdown-item:hover {
    background: #f8f9fa;
}

/* Single Service Page Intro */
.service-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.service-intro p {
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

/* Breadcrumb Navigation Styling */
.breadcrumb-navigation {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb-navigation .container-xl {
    display: flex;
    align-items: center;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #6c757d;
    font-size: 16px;
}

.breadcrumb-list a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #004499;
    text-decoration: underline;
}

.breadcrumb-list .current {
    color: #6c757d;
}

/* ========================================
   NAVBAR CUSTOMIZATION (ACF-Controlled)
   ======================================== */

/* Dark navbar - white text and icons */
.navbar.navbar-dark .nav-link,
.navbar.navbar-dark .nav-link.active,
.navbar.navbar-dark .nav-item.current-menu-item > .nav-link,
.navbar.navbar-dark .nav-item.current_page_item > .nav-link,
.navbar.navbar-dark .current-menu-item > a,
.navbar.navbar-dark .current_page_item > a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar.navbar-dark .nav-link:hover,
.navbar.navbar-dark .nav-link:focus,
.navbar.navbar-dark .nav-link.active:hover,
.navbar.navbar-dark .nav-link.active:focus {
    color: #ffffff !important;
}

.navbar.navbar-dark .navbar-brand-text {
    color: #ffffff !important;
}

.navbar.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.navbar-dark .dropdown-menu {
    background-color: #333;
    border-color: #444;
}

.navbar.navbar-dark .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

.navbar.navbar-dark .dropdown-item:hover {
    background-color: #444;
    color: #ffffff;
}

/* Dark navbar - Call button with light background needs dark text */
.navbar.navbar-dark .btn-primary,
.navbar.navbar-dark .dropdown .btn-primary,
.navbar.navbar-dark .s2f-header-call-btn {
    color: var(--s2f-navbar-bg, #1a4b9c) !important;
}

.navbar.navbar-dark .btn-primary:hover,
.navbar.navbar-dark .dropdown .btn-primary:hover,
.navbar.navbar-dark .s2f-header-call-btn:hover {
    background: var(--s2f-navbar-bg, #1a4b9c) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Dark navbar - Mobile menu fix */
@media (max-width: 991.98px) {
    .navbar.navbar-dark .navbar-collapse {
        background: #ffffff;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .navbar.navbar-dark .navbar-nav .nav-link,
    .navbar.navbar-dark .navbar-nav .nav-link.active,
    .navbar.navbar-dark .navbar-nav .nav-item.current-menu-item > .nav-link,
    .navbar.navbar-dark .navbar-nav .nav-item.current_page_item > .nav-link,
    .navbar.navbar-dark .navbar-nav .current-menu-item > a,
    .navbar.navbar-dark .navbar-nav .current_page_item > a {
        color: #333333 !important;
    }

    .navbar.navbar-dark .navbar-nav .nav-link:hover,
    .navbar.navbar-dark .navbar-nav .nav-link:focus {
        color: #000000 !important;
    }

    .navbar.navbar-dark .navbar-nav .dropdown-menu {
        background: #f8f9fa !important;
    }

    .navbar.navbar-dark .navbar-nav .dropdown-item {
        color: #333333 !important;
    }

    .navbar.navbar-dark .navbar-nav .dropdown-item:hover {
        background-color: #e9ecef !important;
        color: #000000 !important;
    }

    .navbar.navbar-dark .navbar-nav .dropdown-arrow {
        color: #999 !important;
    }
}

/* Navigation Menu Items - Side by Side */
.navbar-nav .nav-link {
    white-space: nowrap;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
}

.navbar-nav .nav-item {
    white-space: nowrap;
    margin: 0 0.2rem;
}

/* Mobile Header - Logo Centered, Hamburger on Left */
@media (max-width: 991px) {
    .navbar > .container-xl {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        position: relative;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Hamburger menu - positioned left */
    .navbar-toggler {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        order: -1;
    }

    /* Logo - centered */
    .navbar-brand {
        margin: 0 auto;
        padding: 0;
        display: flex;
        justify-content: center;
    }

    .navbar-brand img,
    .navbar-brand .custom-logo {
        max-width: 260px;
        max-height: 75px;
        width: auto;
        height: auto;
    }

    /* Hide the collapse container from affecting layout */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
}

@media (max-width: 575px) {
    .navbar-brand img,
    .navbar-brand .custom-logo {
        max-width: 220px;
        max-height: 65px;
    }

    .navbar-toggler {
        left: 10px;
    }
}

/* Improved Button Accessibility */
button,
.btn,
input[type="submit"],
input[type="button"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Enhanced Form Accessibility */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[required]::after,
select[required]::after,
textarea[required]::after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
}

.form-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.form-success {
    color: #28a745;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    a:focus,
    button:focus {
        outline: 4px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile-First Responsive Enhancements */
@media (max-width: 768px) {
    .breadcrumb-navigation {
        font-size: 12px;
        padding: 10px 0;
    }
    
    .breadcrumb-list li:not(:last-child)::after {
        margin: 0 5px;
    }
}

/* Print Styles */
@media print {
    .skip-to-content,
    .breadcrumb-navigation,
    nav,
    button,
    .btn {
        display: none;
    }
}

/* ========================================
   ACTION GRID - HOMEPAGE CONVERSION SECTION
   ======================================== */

/* Action Box Base Styles */
.action-box {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Action Box Hover Effects */
.action-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}

/* Icon Hover Effect */
.action-box:hover i {
    transform: scale(1.1);
}

.action-box i {
    transition: transform 0.3s ease;
}

/* SVG Icon Color Control (for future custom icons) */
.action-box svg {
    width: 80px;
    height: 80px;
    fill: var(--bs-primary, #0d6efd);
    transition: fill 0.3s ease;
}

.action-box:hover svg {
    fill: var(--bs-primary-dark, #0a58ca);
}

/* Button Hover Enhancement */
.action-box .btn {
    transition: all 0.3s ease;
}

.action-box:hover .btn {
    transform: scale(1.05);
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .action-box {
        margin-bottom: 1rem;
    }
    
    .action-grid h2 {
        font-size: 1.75rem;
    }
}

/* ========================================
   SERVICES PREVIEW SECTION
   ======================================== */

/* Service Card Base Styles */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Service Card Hover Effects - Uses Brand Primary Color */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
    border-color: var(--s2f-primary, #c70000);
}

/* Service Icon Hover Effect - Uses Brand Primary Color */
.service-card:hover .service-icon i {
    transform: scale(1.1);
    color: var(--s2f-primary, #c70000) !important;
}

.service-icon i {
    transition: all 0.3s ease;
}

/* Service Icon Image */
.service-icon img {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

/* Button Hover in Service Cards - Uses Brand Primary Color */
.service-card .btn {
    transition: all 0.3s ease;
}

.service-card:hover .btn {
    background-color: var(--s2f-primary, #c70000) !important;
    border-color: var(--s2f-primary, #c70000) !important;
    color: white !important;
    transform: translateX(5px);
}

/* Finesse Style Service Cards - Uses Brand Secondary Color */
.service-card-finesse {
    transition: all 0.3s ease;
    border-color: #dee2e6 !important;
}

.service-card-finesse:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: var(--s2f-secondary, #dc3545) !important;
}

.service-card-finesse:hover .service-icon i {
    color: var(--s2f-secondary, #dc3545) !important;
    transform: scale(1.1);
}

.service-card-finesse .service-icon img {
    transition: transform 0.3s ease;
}

.service-card-finesse:hover .service-icon img {
    transform: scale(1.05);
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .services-preview h2 {
        font-size: 1.75rem;
    }

    .service-card,
    .service-card-finesse {
        margin-bottom: 1rem;
    }
}

/* ========================================
   REVIEWS / SOCIAL PROOF SECTION
   ======================================== */

/* Rating Display */
.rating-display .stars {
    font-size: 1.5rem;
    letter-spacing: 0.25rem;
}

.rating-display .stars i {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Testimonial Card Base Styles */
.testimonial-card {
    transition: all 0.3s ease;
    position: relative;
}

/* Testimonial Card Hover Effects */
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Testimonial Stars */
.testimonial-stars {
    font-size: 1rem;
}

/* Testimonial Quote Marks Effect */
.testimonial-text p::before {
    content: '\201C';
    font-size: 3rem;
    line-height: 0;
    vertical-align: -0.4em;
    color: var(--bs-primary, #0d6efd);
    opacity: 0.3;
    margin-right: 0.25rem;
}

/* Testimonial Author */
.testimonial-author {
    border-top: 2px solid #dee2e6;
    padding-top: 1rem;
}

/* Finesse Style Testimonial Cards - White background with subtle border */
.testimonial-card-new {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    background-color: #fff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.testimonial-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #ccc !important;
}

.testimonial-card-new .testimonial-stars {
    font-size: 1.1rem;
}

.testimonial-card-new .testimonial-content {
    color: #333;
    line-height: 1.7;
    flex-grow: 1;
}

.quote-mark-yellow {
    color: #ffc107;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: Georgia, serif;
    margin-right: 2px;
}

.testimonial-author-new {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid #dee2e6;
}

.testimonial-author-new p.fw-bold {
    color: #212529;
    font-size: 1rem;
}

.testimonial-author-new p.text-muted {
    font-size: 0.875rem;
}

/* Review Platform Buttons */
.review-platforms .btn {
    transition: all 0.3s ease;
}

.review-platforms .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Testimonials Page Specific Styles */
.testimonials-section .testimonial-card {
    border: 1px solid #e9ecef;
}

.testimonials-section .testimonial-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.testimonials-section .testimonial-rating {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonials-section .testimonial-rating .fa-star {
    color: #ffc107 !important;
}

.testimonials-section .testimonial-content p {
    line-height: 1.7;
    color: #333;
}

.testimonials-section .testimonial-author {
    min-height: 60px;
}

.testimonials-section .author-avatar {
    background-color: #1a2744 !important;
}

/* Review Platform Cards */
.review-platform-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.review-platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .reviews-section h2 {
        font-size: 1.75rem;
    }

    .testimonial-card {
        margin-bottom: 1rem;
    }

    .rating-display .stars {
        font-size: 1.25rem;
    }
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */

/* Final CTA Base Styles */
.final-cta {
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* No background pattern - solid black */
.final-cta::before {
    display: none;
}

/* CTA Text Styling */
.final-cta h2 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.final-cta .lead {
    opacity: 0.95;
}

/* CTA Button Styles */
.final-cta .btn-light {
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.final-cta .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.final-cta .btn-outline-light {
    font-weight: 600;
    border-width: 2px;
    transition: all 0.3s ease;
}

.final-cta .btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: rgba(255,255,255,0.1);
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .final-cta h2 {
        font-size: 1.75rem;
    }
    
    .final-cta .lead {
        font-size: 1rem;
    }
}

/* ========================================
   CERTIFICATIONS CAROUSEL SECTION
   ======================================== */

.certifications-section {
    background-color: #f8f9fa;
}

.cert-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.cert-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* ========================================
   GOOGLE MAPS SECTION
   ======================================== */

.map-section {
    position: relative;
}

.map-container {
    width: 100%;
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* ========================================
   ENHANCED FOOTER
   ======================================== */

.site-footer {
    background-color: var(--s2f-footer-bg, #1a1a1a);
}

.site-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #ffffff;
}

/* Footer Heading Red Accent Lines */
.footer-main h3 {
    position: relative;
    padding-bottom: 12px;
}

.footer-main h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--s2f-secondary, #dc3545);
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    display: block;
    padding: 0.25rem 0;
}

.footer-hours p {
    font-size: 0.95rem;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .map-container {
        height: 300px;
    }
    
    .footer-main .col-lg-3,
    .footer-main .col-lg-5,
    .footer-main .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Contact Header */
.contact-header {
    background-color: #f8f9fa;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    transition: box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

/* Contact Information Items */
.contact-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item i {
    font-size: 1.25rem;
    width: 24px;
}

.contact-item a {
    color: #212529;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #0d6efd;
}

.contact-item address {
    line-height: 1.6;
}

/* Business Hours */
.hours-row {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.hours-row:last-child {
    border-bottom: none;
}

/* Social Links */
.contact-details .social-links .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.contact-details .social-links .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Quick Contact CTA */
.quick-contact-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #0d6efd;
}

.quick-contact-cta .btn {
    min-width: 140px;
}

/* Contact Map */
.contact-map {
    margin-top: 0;
}

.contact-map .map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.contact-map .map-container:hover {
    transform: scale(1.01);
}

.contact-map iframe {
    display: block;
}

.contact-map h2 {
    position: relative;
    display: inline-block;
}

.contact-map h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    border-radius: 2px;
}

/* Gravity Forms Styling for Contact Page */
.contact-form-wrapper .gform_wrapper {
    margin: 0 !important;
}

.contact-form-wrapper .gfield_label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper input[type="tel"]:focus,
.contact-form-wrapper textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
    outline: 0;
}

.contact-form-wrapper .gform_button {
    background-color: #0d6efd;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-wrapper .gform_button:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Contact Page Responsive */
@media (max-width: 991px) {
    .contact-info-wrapper {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-form-wrapper,
    .contact-details,
    .business-hours {
        padding: 1.5rem !important;
    }
    
    .contact-map .map-container {
        height: 300px;
    }
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */

/* About Page Header */
.about-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Company Story Section */
.company-story .story-content {
    line-height: 1.8;
}

.company-story .years-badge {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-story .years-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(13,110,253,0.3);
}

.about-image-wrapper img {
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.02);
}

/* Mission Statement */
.mission-statement {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.mission-quote {
    font-style: italic;
    color: #495057;
    line-height: 1.6;
}

/* Why Choose Us Cards */
.why-choose-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.why-choose-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
    border-color: #0d6efd;
}

.why-choose-card .icon-wrapper {
    transition: transform 0.3s ease;
}

.why-choose-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* Values Cards */
.value-card {
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
}

.value-icon {
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: rotate(10deg) scale(1.1);
}

/* About CTA Section */
.about-cta .cta-box {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    box-shadow: 0 8px 16px rgba(13,110,253,0.3);
}

.about-cta .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.about-cta .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* About Page Responsive */
@media (max-width: 991px) {
    .company-story .row {
        flex-direction: column-reverse;
    }
    
    .about-image-wrapper {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .about-header h1 {
        font-size: 2rem;
    }

    .years-badge {
        width: 100%;
        text-align: center;
    }

    .why-choose-card,
    .value-card {
        margin-bottom: 1rem;
    }

    .about-cta .cta-box {
        padding: 2rem 1.5rem !important;
    }

    .about-cta .d-flex {
        flex-direction: column !important;
    }

    .about-cta .btn {
        width: 100%;
    }
}

/* ========================================
   ONLINE AUTHORIZATION FORM STYLES
   Matches Finesse Auto Body styling
   ======================================== */

/* Authorization Form Container */
.gform_wrapper.gravity-theme {
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Authorization Page Wrapper */
.authorization-form {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Section Headers - Simple text style like Finesse */
.gform_wrapper .gsection_title {
    background: none !important;
    color: #1a2744 !important;
    padding: 0 !important;
    margin: 30px 0 20px 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-transform: none;
    letter-spacing: 0;
    border: none !important;
    border-bottom: none !important;
}

/* Section Wrapper - No box */
.gform_wrapper .gsection {
    background: none;
    border: none;
    border-radius: 0;
    margin-bottom: 10px;
    box-shadow: none;
    padding: 0;
    border-bottom: none !important;
}

/* HTML Field Sections - Clean style */
.gform_wrapper .gfield_html {
    background: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: none;
}

/* Simple section headers like "Your Details", "Vehicle Details" - Plain text */
.gform_wrapper .gfield_html h2 {
    background-color: transparent;
    color: #1a2744 !important;
    padding: 0;
    margin: 20px 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    text-align: left;
    border-radius: 0;
}

/* H2 with inline styles (like REPAIR AUTHORIZATION AGREEMENT) - preserve their styling */
.gform_wrapper .gfield_html h2[style] {
    all: revert;
}

/* H3 headers - plain by default */
.gform_wrapper .gfield_html h3 {
    background-color: transparent;
    color: #1a2744 !important;
    padding: 0;
    margin: 15px 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 0;
}

/* H3 with inline styles (numbered sections) - preserve their styling */
.gform_wrapper .gfield_html h3[style] {
    all: revert;
}

/* Preserve inline styled elements */
.gform_wrapper .gfield_html div[style],
.gform_wrapper .gfield_html p[style],
.gform_wrapper .gfield_html ul[style],
.gform_wrapper .gfield_html li[style],
.gform_wrapper .gfield_html strong[style] {
    all: revert;
}

/* Warning/Notice Boxes - Yellow */
.gform_wrapper .gfield_html div[style*="background"][style*="ffc"],
.gform_wrapper .gfield_html div[style*="background"][style*="FFC"],
.gform_wrapper .gfield_html div[style*="warning"],
.gform_wrapper .gfield_html .warning-box {
    background-color: #fff3cd !important;
    border: 1px solid #ffc107 !important;
    border-radius: 4px;
    padding: 15px !important;
    margin: 15px 0 !important;
}

/* Bullet Lists */
.gform_wrapper .gfield_html ul {
    margin: 10px 0 10px 20px;
    padding-left: 0;
    list-style-type: disc;
}

.gform_wrapper .gfield_html ul li {
    margin-bottom: 8px;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

/* Paragraphs in HTML fields */
.gform_wrapper .gfield_html p {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.7;
    font-size: 14px;
}

/* Strong/Bold text */
.gform_wrapper .gfield_html strong {
    font-weight: 700;
    color: #000;
}

/* Form Inputs */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper select,
.gform_wrapper textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
    border-color: #1a2744;
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
    outline: none;
}

/* Signature Field */
.gform_wrapper .gfield_signature_container {
    border: 2px dashed #ccc;
    border-radius: 4px;
    background-color: #fafafa;
}

/* Checkbox Styling */
.gform_wrapper .gfield_checkbox label,
.gform_wrapper .gfield_radio label {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

/* Submit Button */
.gform_wrapper input[type="submit"],
.gform_wrapper .gform_button {
    background-color: #dc3545 !important;
    color: #fff !important;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.gform_wrapper input[type="submit"]:hover,
.gform_wrapper .gform_button:hover {
    background-color: #c82333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Section Dividers */
.gform_wrapper .gsection {
    border-bottom: 2px solid #1a2744;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Required Field Indicator */
.gform_wrapper .gfield_required {
    color: #dc3545;
}

/* File Upload Styling */
.gform_wrapper .gform_fileupload_rules {
    font-size: 11px;
    color: #6c757d;
}

/* Customer Acknowledgment - light blue styling (applied via JS class) */
.customer-acknowledgment-box {
    background: #e8f4fc !important;
    border: 2px solid #1a2744 !important;
    border-radius: 8px !important;
}

.customer-acknowledgment-box h2 {
    color: #1a2744 !important;
}

.customer-acknowledgment-box p {
    color: #1a2744 !important;
}

.customer-acknowledgment-box ul li {
    color: #333333 !important;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .gform_wrapper .gfield_html h2 {
        font-size: 18px;
        margin: 15px 0 10px 0;
    }

    .gform_wrapper .gfield_html h3 {
        font-size: 16px;
    }

    .gform_wrapper .gfield_html p {
        font-size: 12px;
    }
}

/* ========================================
   BRAND LANDING PAGES (Tesla, Land Rover, etc.)
   ======================================== */

/* Hero Section */
.tesla-hero,
.brand-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.brand-hero .hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
}

/* Certification Cards */
.cert-card {
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Service Cards on Landing Pages */
.tesla-services .service-card,
.brand-services .service-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tesla-services .service-card:hover,
.brand-services .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

/* Equipment Showcase */
.equipment-showcase .equipment-item {
    text-align: center;
    padding: 2rem;
}

/* FAQ Accordion */
.tesla-faq .accordion-button:not(.collapsed) {
    background-color: rgba(227, 25, 55, 0.1);
    color: #e31937;
}

.tesla-faq .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(227, 25, 55, 0.25);
}

/* Comparison Table */
.comparison-table th {
    background-color: #1a2744;
    color: white;
}

.comparison-table .table-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

/* Contact Form on Landing Pages */
#tesla-contact-form,
#brand-contact-form {
    scroll-margin-top: 100px;
}

/* Bounce Animation for Scroll Indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Brand Landing Page Responsive */
@media (max-width: 991px) {
    .tesla-hero,
    .brand-hero {
        min-height: 80vh;
    }

    .tesla-hero h1,
    .brand-hero h1 {
        font-size: 2.5rem !important;
    }

    .tesla-hero .lead,
    .brand-hero .lead {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 767px) {
    .tesla-hero,
    .brand-hero {
        min-height: 100vh;
        padding: 2rem 0;
    }

    .tesla-hero h1,
    .brand-hero h1 {
        font-size: 2rem !important;
    }

    .tesla-hero .btn-lg,
    .brand-hero .btn-lg {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }

    .cert-card {
        padding: 1.5rem !important;
    }
}

/* ========================================
   NAVIGATION DROPDOWN - HOVER TO OPEN
   Click navigates to page, hover shows dropdown
   ======================================== */

/* Desktop: Show dropdown on hover */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar-nav .dropdown-menu {
        margin-top: 0;
        border-top: 3px solid #dc3545;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        animation: dropdownFadeIn 0.2s ease;
    }

    @keyframes dropdownFadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-nav .dropdown-item {
        padding: 10px 20px;
        transition: background-color 0.2s ease, padding-left 0.2s ease;
    }

    .navbar-nav .dropdown-item:hover {
        background-color: #f8f9fa;
        padding-left: 25px;
        color: #dc3545;
    }

    /* Keep the arrow on dropdown toggle but allow clicking through to link */
    .navbar-nav .dropdown-toggle::after {
        margin-left: 6px;
    }
}

/* ========================================
   SERVICES PAGE - QUICK NAV CARDS
   ======================================== */

.services-quick-nav {
    margin-top: -1rem;
}

.service-nav-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-nav-card:hover {
    border-color: var(--s2f-primary, #c70000);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.service-nav-card:hover .service-nav-icon {
    background: var(--s2f-primary, #c70000);
    color: #fff;
}

.service-nav-card:hover .service-nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-nav-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.2s ease;
}

.service-nav-icon i {
    font-size: 1.25rem;
    color: var(--s2f-primary, #c70000);
    transition: color 0.2s ease;
}

.service-nav-card:hover .service-nav-icon i {
    color: #fff;
}

.service-nav-content {
    flex: 1;
    min-width: 0;
}

.service-nav-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.service-nav-content p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-nav-arrow {
    color: var(--s2f-primary, #c70000);
    font-size: 0.875rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .service-nav-card {
        padding: 0.875rem 1rem;
    }

    .service-nav-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-right: 0.75rem;
    }

    .service-nav-icon i {
        font-size: 1rem;
    }

    .service-nav-content h3 {
        font-size: 0.85rem;
    }

    .service-nav-content p {
        display: none;
    }

    .service-nav-arrow {
        display: none;
    }
}

/* ========================================
   AUTHORIZATION - LOCATION SELECTOR
   ======================================== */

.location-selector {
    max-width: 800px;
    margin: 0 auto;
}

.location-choice-btn {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    min-height: 120px;
}

.location-choice-btn:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.location-choice-btn .location-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.location-choice-btn .location-icon i {
    font-size: 1.5rem;
    color: #0d6efd;
}

.location-choice-btn:hover .location-icon {
    background: #0d6efd;
}

.location-choice-btn:hover .location-icon i {
    color: #fff;
}

.location-choice-btn .location-info {
    flex: 1;
}

.location-choice-btn .location-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #212529;
    line-height: 1.3;
}

.location-choice-btn .location-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
}

.location-choice-btn .location-phone {
    font-size: 0.85rem;
    color: #0d6efd;
    font-weight: 500;
}

.location-choice-btn .location-arrow {
    color: #dee2e6;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.location-choice-btn:hover .location-arrow {
    color: #0d6efd;
    transform: translateX(5px);
}

/* Selected Location Header */
.selected-location-header {
    background: #e7f1ff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    border-left: 4px solid #0d6efd;
}

/* Authorization form legal name styling */
.legal-business-name {
    font-weight: bold;
    color: #212529;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .location-choice-btn {
        padding: 1rem;
    }

    .location-choice-btn .location-icon {
        width: 50px;
        height: 50px;
    }

    .location-choice-btn .location-info h3 {
        font-size: 1rem;
    }

    .selected-location-header {
        padding: 0.875rem 1rem;
    }

    .selected-location-header .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ========================================
   MOBILE BUTTON FIXES
   ======================================== */

/* Remove webkit tap highlight that can cause color issues */
.btn {
    -webkit-tap-highlight-color: transparent;
}

/* Fix btn-outline-dark mobile tap state - text turns grey on tap */
.btn-outline-dark:active,
.btn-outline-dark:focus,
.btn-outline-dark:active:focus,
.btn-outline-dark.active,
.btn-outline-dark:not(:disabled):not(.disabled):active,
.btn-outline-dark:not(:disabled):not(.disabled).active {
    background-color: #212529 !important;
    border-color: #212529 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Ensure action-box buttons maintain proper mobile tap state */
.action-box .btn-outline-dark:active,
.action-box .btn-outline-dark:focus,
.action-box .btn-outline-dark:active:focus {
    background-color: #212529 !important;
    border-color: #212529 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ========================================
   CONTACT BAR - CALL NOW BUTTON
   ======================================== */

/* Desktop: Display inline with colon separator */
.contact-bar .btn-lg .btn-text-line::after {
    content: ':';
    margin-right: 0.35rem;
}

/* Fix: Phone number gets cut off on mobile - stack text on two lines */
@media (max-width: 575.98px) {
    .contact-bar .btn-lg {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 1rem 1.5rem;
        line-height: 1.3;
    }

    .contact-bar .btn-lg .btn-text-line::after {
        content: none;
    }

    .contact-bar .btn-lg i {
        margin-right: 0.5rem !important;
    }

    .contact-bar .btn-lg .phone-display {
        font-size: 1.1rem;
        font-weight: 600;
    }
}

/* ========================================
   GRAVITY FORMS - SELECT/DROPDOWN FIXES
   Ensure dropdown options display correctly
   ======================================== */

/* Base select styling - clean, modern look */
.gform_wrapper select,
.gform_wrapper .gfield_select select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    color: #333 !important;
    padding: 12px 40px 12px 14px !important;
    font-size: 14px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    width: 100% !important;
    cursor: pointer !important;
    min-height: 46px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

/* Ensure options inside select are visible */
.gform_wrapper select option {
    background-color: #fff !important;
    color: #333 !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
}

/* Selected option styling */
.gform_wrapper select option:checked,
.gform_wrapper select option:hover {
    background-color: #0d6efd !important;
    color: #fff !important;
}

/* Focus state */
.gform_wrapper select:focus {
    border-color: #0d6efd !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15) !important;
}

/* Disabled placeholder styling */
.gform_wrapper select option[value=""],
.gform_wrapper select option:disabled {
    color: #999 !important;
}

/* Mobile-specific: ensure dropdown is tappable and visible */
@media (max-width: 767.98px) {
    .gform_wrapper select {
        font-size: 16px !important; /* Prevents iOS zoom */
        min-height: 50px !important; /* Touch-friendly size */
        padding: 14px 40px 14px 14px !important;
    }
}

/* ========================================
   APPOINTMENT PAGE - CALL BUTTON STYLING
   Matches Finesse design (black rounded pill)
   ======================================== */

.appointment-call-btn {
    background: #000 !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 1rem 2.5rem !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

.appointment-call-btn:hover {
    background: #333 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
}

.appointment-call-btn i {
    font-size: 1.2rem !important;
}

/* Mobile adjustments - override contact-bar column layout */
@media (max-width: 767.98px) {
    .appointment-call-btn {
        font-size: 0.9rem !important;
        padding: 0.875rem 1.5rem !important;
        letter-spacing: 0.5px !important;
        flex-direction: row !important;
    }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .appointment-call-btn {
        flex-direction: row !important;
        gap: 0 !important;
    }
}

@media (max-width: 375px) {
    .appointment-call-btn {
        font-size: 0.8rem !important;
        padding: 0.75rem 1.25rem !important;
        flex-direction: row !important;
    }
}

/* ========================================
   PAGE HERO BANNER - REUSABLE COMPONENT
   Used across: About, Contact, Testimonials,
   Success Stories, Certifications
   ======================================== */

.s2f-page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

/* Background image version */
.s2f-page-hero.has-background {
    background-color: #1a1a1a;
}

/* No background version - solid dark or light */
.s2f-page-hero.no-background {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Dark overlay for background images */
.s2f-page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Content wrapper */
.s2f-page-hero .container-xl {
    position: relative;
    z-index: 2;
}

/* Hero title */
.s2f-page-hero .hero-title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero subtitle */
.s2f-page-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .s2f-page-hero {
        min-height: 280px;
        padding: 50px 0;
    }

    .s2f-page-hero .hero-title {
        font-size: 2.75rem;
    }

    .s2f-page-hero .hero-subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 767.98px) {
    .s2f-page-hero {
        min-height: 240px;
        padding: 40px 0;
    }

    .s2f-page-hero .hero-title {
        font-size: 2rem;
    }

    .s2f-page-hero .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
}

/* ========================================
   CERTIFICATIONS HERO - BACKGROUND SUPPORT
   Exception: keeps existing layout but adds
   optional background image capability
   ======================================== */

.cert-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
}

.cert-hero-section.has-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.cert-hero-section.has-bg-image > .container-xl {
    position: relative;
    z-index: 1;
}

/* ========================================
   MOBILE NAVIGATION MENU - DROPDOWN STYLING
   Adds arrow indicators for dropdown menus
   ======================================== */

/* Hide dropdown arrow on desktop */
@media (min-width: 992px) {
    .navbar-nav .dropdown-arrow {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    /* Style the collapsed mobile menu */
    .navbar-collapse {
        padding: 15px 0;
    }

    /* Mobile nav items */
    .navbar-nav .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        font-size: 16px;
        font-weight: 600;
        color: #333 !important;
    }

    /* COMPLETELY remove the Bootstrap dropdown caret (border-based triangle) */
    .navbar-nav .dropdown-toggle::after,
    .navbar .dropdown-toggle::after,
    .nav-link.dropdown-toggle::after,
    a.dropdown-toggle::after {
        display: none !important;
        content: none !important;
        border: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        visibility: hidden !important;
    }

    /* Add custom Font Awesome arrow for dropdown items on mobile */
    .navbar-nav .nav-item.dropdown > .nav-link {
        position: relative;
        padding-right: 50px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Custom chevron arrow on the right */
    .navbar-nav .nav-item.dropdown > .nav-link .dropdown-arrow {
        position: absolute;
        right: 20px;
        font-size: 14px;
        color: #999;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    /* Rotate arrow when dropdown is open */
    .navbar-nav .nav-item.dropdown.show > .nav-link .dropdown-arrow {
        transform: rotate(90deg);
        color: #dc3545;
    }

    /* Style the dropdown menu */
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    /* Dropdown items */
    .navbar-nav .dropdown-item {
        padding: 12px 20px 12px 35px;
        font-size: 15px;
        color: #555;
        border-bottom: 1px solid #eee;
    }

    .navbar-nav .dropdown-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background-color: #e9ecef;
        color: #dc3545;
    }

    /* Active dropdown item */
    .navbar-nav .dropdown-item.active,
    .navbar-nav .dropdown-item:active {
        background-color: #dc3545;
        color: #fff;
    }
}

/* ==========================================================================
   HOMEPAGE HERO SECTION
   ========================================================================== */

.homepage-hero-fullsize {
    position: relative;
    width: 100%;
}

.hero-background {
    position: relative;
    min-height: 70vh;
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay - 50% opacity */
.hero-background .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Content layer above overlay */
.hero-background .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 0;
}

.hero-background .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-background .hero-content .lead {
    font-size: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Video background specific styles */
.hero-video-background {
    background-image: none !important;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* Ensure overlay and content are above video */
.hero-video-background .hero-overlay {
    z-index: 1;
}

.hero-video-background .hero-content {
    z-index: 2;
}

/* Mobile responsive for homepage hero */
@media (max-width: 767px) {
    .hero-background {
        min-height: 350px;
        height: 50vh !important;
    }

    .hero-background .hero-content h1 {
        font-size: 2rem;
    }

    .hero-background .hero-content .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    .hero-background .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-background .hero-content .lead {
        font-size: 1rem;
    }
}

/* ========================================
   HEADER CERTIFICATION BAR
   ======================================== */

.header-certification-bar {
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.header-certification-bar .carousel {
    padding: 0;
}

.header-certification-bar .carousel-indicators {
    position: relative;
    bottom: 0;
    margin-top: 10px;
    margin-bottom: 0;
}

.header-certification-bar .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 4px;
    transition: background-color 0.3s ease;
}

.header-certification-bar .carousel-indicators button.active {
    background-color: #333;
}

.cert-bar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
}

.cert-bar-logo img {
    max-height: 80px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: all 0.3s ease;
}

.cert-bar-logo:hover img {
    transform: scale(1.05);
}

/* Static display (when fewer logos than per-slide setting) */
.cert-bar-static {
    flex-wrap: nowrap;
    justify-content: space-evenly !important;
    overflow-x: auto;
}

/* Mobile responsiveness */
@media (max-width: 991px) {
    .cert-bar-logo img {
        max-height: 70px;
        max-width: 160px;
    }

    .cert-bar-logo {
        padding: 5px 10px;
    }
}

@media (max-width: 767px) {
    .header-certification-bar .d-flex {
        gap: 10px !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding: 0 15px;
    }

    .cert-bar-logo img {
        max-height: 55px;
        max-width: 100px;
    }

    .cert-bar-logo {
        padding: 3px 5px;
        flex-shrink: 0;
    }
}

@media (max-width: 575px) {
    .header-certification-bar .d-flex {
        gap: 8px !important;
    }

    .cert-bar-logo img {
        max-height: 45px;
        max-width: 80px;
    }
}
