/* ==========================================================================
   Vilamoura Chauffeurs — Custom UI/UX Overrides
   Phase 5: Design Improvements
   ========================================================================== */

/* ---------- 0. SEO Helpers ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 1. WhatsApp Button: Gold → Green + Pulse ---------- */
.whatsapp_float {
    background-color: #25D366 !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-pulse 2s ease-in-out infinite;
}
.whatsapp_float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7); }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp_float { animation: none; }
}

/* ---------- 2. Trust Bar Below Hero ---------- */
.trust-bar {
    background: #1a1a1a;
    padding: 8px 0;
    text-align: center;
    border-bottom: none;
    position: absolute;
    bottom: 120px;
    width: 100%;
    z-index: 5;
}
.trust-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 0;
}
.trust-bar li {
    color: #d7d2bd;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0 15px;
    position: relative;
}
.trust-bar li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: #bf9c60;
}
.trust-bar li i {
    color: #bf9c60;
    margin-right: 8px;
}
@media (max-width: 767px) {
    .trust-bar {
        position: static;
        width: 100%;
        bottom: auto;
    }
    .trust-bar ul {
        gap: 6px 0;
    }
    .trust-bar li {
        font-size: 11px;
        padding: 0 10px;
    }
}

/* ---------- 3. "Why Choose Us" Section Polish ---------- */
.section-iconbox .iconbox {
    padding: 30px 20px;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}
.section-iconbox .iconbox:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.section-iconbox .iconbox-content p {
    line-height: 1.6;
    color: #666;
}

/* ---------- 4. Service Cards: Descriptions + CTAs ---------- */
.our_services .box-service {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}
/* Title fades out on hover */
.our_services .box-service .services_name {
    transition: opacity 0.3s ease !important;
}
.our_services .box-service:hover .services_name {
    opacity: 0 !important;
}
/* Overlay fades in at the bottom, replacing the title */
.our_services .box-service .service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
    padding: 60px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.our_services .box-service:hover .service-overlay {
    opacity: 1;
}
.our_services .box-service .service-overlay p {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 10px;
}
.our_services .box-service .service-overlay .cta-link {
    color: #bf9c60;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.our_services .box-service .service-overlay .cta-link:hover {
    color: #d7d2bd;
}

/* ---------- 5. Fleet Section: Clear Labels + Book Buttons ---------- */
.fleet-item .fleet-content {
    position: relative;
}
.fleet-item .vehicle-type-label {
    display: inline-block;
    background: #bf9c60;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}
.fleet-item .btn-book-fleet {
    display: inline-block;
    background: #bf9c60;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    transition: background 0.2s ease;
    cursor: pointer;
}
.fleet-item .btn-book-fleet:hover {
    background: #a8854e;
    color: #fff;
}

/* ---------- 6. Testimonials Section on Homepage ---------- */
.testimonials-section {
    background: #f7f6f2;
    padding: 60px 0 70px;
}
.testimonials-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}
.testimonials-section .section-title h3 {
    font-size: 30px;
    color: #222;
    margin-bottom: 5px;
}
.testimonials-section .section-title p {
    color: #888;
    font-size: 16px;
}
.testimonial-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin: 0 15px 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
}
.testimonial-card .stars {
    color: #bf9c60;
    font-size: 16px;
    margin-bottom: 12px;
}
.testimonial-card .quote {
    font-size: 15px;
    line-height: 1.65;
    color: #444;
    font-style: italic;
    margin-bottom: 16px;
}
.testimonial-card .client-name {
    font-weight: 600;
    color: #222;
    font-size: 14px;
}
.testimonial-card .client-info {
    color: #999;
    font-size: 13px;
}
.testimonials-cta {
    text-align: center;
    margin-top: 10px;
}
.testimonials-cta a {
    color: #bf9c60;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}
.testimonials-cta a:hover {
    color: #a8854e;
}

/* ---------- 7. Booking Flow UX ---------- */
.sdl-booking .form-booking label {
    font-weight: 500;
    letter-spacing: 0.3px;
}
.sdl-booking .btn-submit .submit-button {
    transition: background 0.2s ease, transform 0.15s ease;
}
.sdl-booking .btn-submit .submit-button:hover {
    transform: scale(1.03);
}

/* ---------- 8. Footer Redesign: 4-Column Layout ---------- */
.footer-02 .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0 20px;
}
.footer-02 .footer-col h4 {
    color: #d7d2bd;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bf9c60;
}
.footer-02 .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-02 .footer-col li {
    margin-bottom: 8px;
}
.footer-02 .footer-col li a {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-02 .footer-col li a:hover {
    color: #d7d2bd;
}
.footer-02 .footer-col .contact-item {
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
}
.footer-02 .footer-col .contact-item i {
    color: #bf9c60;
    width: 20px;
    margin-right: 8px;
}
.footer-02 .footer-col .contact-item a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-02 .footer-col .contact-item a:hover {
    color: #d7d2bd;
}
.footer-02 .footer-trust {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.footer-02 .footer-trust .trust-badge {
    background: rgba(255,255,255,0.08);
    color: #d7d2bd;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
@media (max-width: 991px) {
    .footer-02 .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .footer-02 .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 9. Mobile Sticky CTA Bar on Service Pages ---------- */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    padding: 10px 16px;
    z-index: 98;
    border-top: 2px solid #bf9c60;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.mobile-cta-bar .cta-flex {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}
.mobile-cta-bar .btn-cta-book {
    flex: 1;
    display: block;
    background: #bf9c60;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mobile-cta-bar .btn-cta-whatsapp {
    flex: 1;
    display: block;
    background: #25D366;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (max-width: 767px) {
    .mobile-cta-bar {
        display: block;
    }
    /* Adjust WhatsApp float position so it doesn't overlap */
    .whatsapp_float {
        bottom: 72px !important;
    }
    /* Give page bottom padding so content isn't hidden */
    .copyright {
        padding-bottom: 70px;
    }
}

/* ---------- 10. Typography & Contrast Improvements ---------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Improve body text line height */
.entry-customs p,
.entry-box p,
.iconbox-content p {
    line-height: 1.7;
}
/* Ensure accessible contrast on light backgrounds */
.template-title .subtitle {
    color: #666;
}

/* ---------- 11. Blog Page Layout Improvements ---------- */
.blog-grid-page .post {
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}
.blog-grid-page .post:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
/* Blog article pages: better readability */
.entry-customs h3 {
    margin-top: 30px;
}
.entry-customs ul, .entry-customs ol {
    margin-bottom: 20px;
}

/* ---------- 12. Sticky Header on Scroll ---------- */
#header.header-scrolled {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    border-top-color: #bf9c60;
}
/* Ensure header transition is smooth */
#header {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ---------- 13. Logo Vertical Centering ---------- */
.header-02 .container-fluid {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.header-02 #logo {
    float: none !important;
    padding-top: 0 !important;
    flex-shrink: 0;
}
.header-02 .navigation {
    flex-shrink: 0;
}

/* ---------- Utility: Inline footer links (old style, hidden when grid present) ---------- */
.footer-02 .footer-inline-links {
    display: none;
}
