/* =========================================
   Toyota Innova Rental - CSS Styles
   Theme: Dark Navy Blue & Gold (Premium)
   ========================================= */

/* --- CSS Variables & Tokens --- */
:root {
    /* Color Palette */
    --color-bg-dark: #0a192f;
    /* Deep Navy Blue */
    --color-bg-darker: #060e1a;
    /* Darker Navy for contrast */
    --color-bg-card: #112240;
    /* Card background */
    --color-primary: #ffd700;
    /* Gold/Yellow for branding */
    --color-primary-hover: #ffcc00;
    --color-whatsapp: #25D366;
    /* WhatsApp Green */
    --color-whatsapp-hover: #128C7E;

    /* Text Colors */
    --color-text-main: #ccd6f6;
    /* Off-white/Ice blue text */
    --color-text-muted: #8892b0;
    /* Muted grey-blue text */
    --color-text-white: #ffffff;
    --color-text-dark: #0a192f;
    /* For dark text on light buttons */

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Layout styling */
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

/* --- Resets & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-dark);
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-white);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.highlight {
    color: var(--color-primary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.2);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-text-white);
}

.btn-whatsapp:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.2);
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-white);
}

.logo i {
    color: var(--color-primary);
    font-size: 1.8rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--color-primary);
}

.btn-book-nav {
    border: 1px solid var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--color-primary);
}

.btn-book-nav:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 60px;
    background: radial-gradient(circle at 70% 50%, var(--color-bg-card) 0%, var(--color-bg-dark) 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    position: relative;
    z-index: 2;
    transform: scale(1.1);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    border-radius: 50%;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1.1);
    }

    50% {
        transform: translateY(-15px) scale(1.1);
    }

    100% {
        transform: translateY(0px) scale(1.1);
    }
}

/* Custom Shape Divider */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: var(--color-bg-darker);
}

/* --- Responsive Layouts --- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-image {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        /* Will handle mobile menu with JS */
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* --- Utilities & Sections --- */
.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.text-center {
    text-align: center !important;
}

.mb-4 {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* --- About Section --- */
.about-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-text {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-features i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    color: var(--color-bg-dark);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--color-text-muted);
}

/* --- Special Offer --- */
.special-offer {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ccaa00 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.special-offer::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}

.offer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.offer-content h2 {
    color: var(--color-text-dark);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.offer-content p {
    color: rgba(10, 25, 47, 0.8);
    font-size: 1.2rem;
    font-weight: 500;
}

.highlight-large {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-bg-dark);
    padding: 0 5px;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background-color: var(--color-bg-dark) !important;
    color: var(--color-primary) !important;
}

.btn-large:hover {
    background-color: var(--color-bg-darker) !important;
    color: var(--color-white) !important;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: var(--color-bg-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--color-primary);
    font-size: 2rem;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-normal);
}

.contact-card:hover {
    transform: translateX(10px);
    border-color: rgba(255, 215, 0, 0.3);
}

.whatsapp-card:hover {
    border-color: rgba(37, 211, 102, 0.5);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.whatsapp-card .icon-box {
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--color-whatsapp);
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-card p {
    color: var(--color-text-muted);
}

/* --- Footer --- */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- Responsive Layouts for new sections --- */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-map {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-container {
        flex-direction: column;
    }

    .offer-container {
        flex-direction: column;
        text-align: center;
    }
}