/* 
   Theme: MaxiCare Transport (Premium Yellow & Black)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

:root {
    --primary-yellow: #FECF32;
    --primary-hover: #E8B400;
    --black: #1A1A1A;
    --dark-grey: #2E2E2E;
    --light-grey: #F5F5F5;
    --white: #FFFFFF;
    --whatsapp-green: #25D366;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius-md: 12px;
    --radius-lg: 16px;

    --container-max: 1280px;
    --header-height: 80px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base size */
}

body {
    font-family: var(--font-body);
    color: var(--dark-grey);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Global Blurred Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-bg.jpg') no-repeat center center/cover;
    filter: blur(8px);
    z-index: -1;
    opacity: 0.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.2rem, 5vw + 1rem, 4rem);
    /* Responsive H1 */
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    /* Standard readable size */
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-yellow {
    color: var(--primary-yellow);
}

.bg-light {
    background-color: rgba(245, 245, 245, 0.85);
}

.section {
    padding: 60px 0;
    /* Standard section padding */
}

@media (min-width: 992px) {
    .section {
        padding: 80px 0;
        /* Larger padding on desktops */
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;

    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-size: 1rem;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Page Transition */
body {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Book Online Button - Yellow with Blue Glow */
.btn-animate {
    background: var(--primary-yellow);
    color: var(--black) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(254, 207, 50, 0.4);
    transition: all 0.3s ease;
}

.btn-animate:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(254, 207, 50, 0.6);
    color: var(--black);
}


.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--black);
    border: 2px solid var(--primary-yellow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(254, 207, 50, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--black);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background-color: var(--primary-yellow);
    transform: translateY(-2px);
}

.btn-black {
    background-color: var(--black);
    color: var(--primary-yellow);
    border: 2px solid var(--black);
}

.btn-black:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    border: 2px solid var(--whatsapp-green);
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header */
.header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    /* Reset padding, handled by container */
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
    flex: 0 0 auto;
    z-index: 1002;
    /* Ensure logo is above mobile menu */
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* The Pill Container */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--white);
    padding: 5px 8px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-grey);
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--black);
    background-color: rgba(0, 0, 0, 0.03);
}

.nav-link.active {
    background-color: var(--primary-yellow);
    color: var(--black);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(254, 207, 50, 0.3);
}

.header-cta {
    flex: 0 0 auto;
    display: block;
    /* Visible by default on desktop */
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    /* Above mobile menu overlay */
    padding: 10px;
    /* Hit area */
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Prevent overflow issues */
}

.hero .container {
    max-width: 100%;
    /* Allow wider usage */
    padding: 0 5%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Removed fixed height dependency */
}

.hero-content h1 {
    margin-bottom: 1rem;
    /* Removed whitespace: nowrap to allow wrapping on mobile */
    line-height: 1.1;
}

.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--primary-hover);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.hero-support {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #444;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.badge {
    background-color: var(--light-grey);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.badge i {
    color: var(--primary-hover);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Carousel Styles */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* About Section */
.about-preview {
    background-color: rgba(245, 245, 245, 0.85);
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
    box-shadow: 0 0 25px rgba(254, 207, 50, 0.5);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-hover);
}

/* Services Grid & Page */
.page-header {
    padding: 6rem 0 3rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 1));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on desktop as requested */
    gap: 2rem;
}


.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card p {
    flex-grow: 1;
    /* Pushes button to bottom */
}

.service-card:hover {
    border-color: var(--primary-yellow);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card .btn {
    margin-top: 1.5rem;
    width: 100%;
}

/* Booking Page */
.booking-section {
    background-color: transparent;
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid #eee;
}

.tab-header {
    display: flex;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    border: none;
    background: var(--light-grey);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary-yellow);
    color: var(--black);
}

.booking-form {
    padding: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(254, 207, 50, 0.2);
}

/* Contact Options */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
}

/* Footer */
.footer {
    background-color: rgba(26, 26, 26, 0.95);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
    text-align: left;
}

.footer h3 {
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-copyright {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: var(--whatsapp-green);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    display: none;
    /* Active via media query */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sticky-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1.5fr;
    /* Give more space to WhatsApp */
}


.sticky-btn {
    border: none;
    padding: 12px 4px;
    /* Reduced side padding */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    /* Slightly smaller font */
    cursor: pointer;
    text-align: center;
    color: white;
    text-decoration: none;
}


.sticky-call {
    background-color: var(--black);
    color: var(--primary-yellow);
}

.sticky-wa {
    background-color: var(--whatsapp-green);
}

.sticky-book {
    background-color: var(--primary-yellow);
    color: var(--black);
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Large Tablets / Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablets/laptops */
    }

}

/* Tablets / Mobile Landscape (max-width: 900px) */
@media (max-width: 900px) {

    /* Header Changes */
    .mobile-toggle {
        display: block;
        color: var(--black);
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-200%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-cta {
        display: none;
        /* Hide top CTA on mobile, use sticky bar */
    }

    /* Hero Changes */
    .hero {
        padding: 2rem 0 2rem 0;
        /* Added small bottom padding */
        min-height: auto;
    }



    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        /* order: 2; Removed to show text first on mobile */
        padding: 2rem 1.5rem;
    }


    .hero-badges,
    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        min-height: auto;
        /* Remove fixed constraint so it hugs the image */
        height: auto;
    }



    .carousel-slide img {
        object-fit: contain;
        /* Show full image without cropping */
        height: 100%;
        /* Fill the container height */
        max-height: 600px;
    }




    /* Forms */
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices (max-width: 600px) */
@media (max-width: 600px) {

    /* Global Padding */
    .section {
        padding: 40px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* Hero */
    .hero-content {
        padding: 1.5rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .badge {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Sticky Bar & WhatsApp */
    .mobile-sticky-bar {
        display: block;
    }

    body {
        padding-bottom: 0;
        /* Remove space from body */
    }

    .footer {
        padding-bottom: 80px;
        /* Add space to footer so black bg extends */
    }

    /* Service Card Mobile Tweaks */
    .service-card {
        padding: 1.2rem;
        /* Reduce padding to give text more space */
    }

    .service-card h3 {
        font-size: 1rem;
        /* Smaller font to fit on one line */
        white-space: nowrap;
        /* Force single line */
        margin-bottom: 0.5rem;
    }



    .floating-whatsapp {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }

    /* Booking Form Tabs */
    .tab-header {
        flex-direction: column;
    }

    .tab-btn {
        padding: 1rem;
        border-bottom: 1px solid #ddd;
    }

    /* Contact Buttons */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }

}

/* =========================================
   DESKTOP HERO REFINEMENTS
   ========================================= */
@media (min-width: 992px) {

    /* 1. Force Single Line Heading */
    .hero-content h1 {
        white-space: nowrap;
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    /* 2. Fix Image Cropping & Height Balance */
    .hero-grid {
        grid-template-columns: 42% 58%;
        /* Wider image column to increase natural height */
        align-items: stretch;
        /* Stretch container height */
    }

    .hero-image {
        height: 100%;
        align-self: auto;
        display: block;
    }

    .carousel-container,
    .carousel-track,
    .carousel-slide {
        height: 100%;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Cover ensures fill without empty space */
        object-position: center;
    }
}