/*
  STYLE.CSS
  Theme: Car Rental
  Design System: Futuristic, Eco-minimalism
  Color Scheme: Monochrome
  Animation: Scroll-triggered effects
*/

/* ---------------------------------- */
/*          CSS VARIABLES             */
/* ---------------------------------- */
:root {
    /* Colors */
    --color-background: #0d0d0d;
    --color-surface: #1a1a1a;
    --color-primary: #ffffff;
    --color-secondary: #00ff9d; /* A subtle eco-friendly accent for highlights if needed, otherwise stick to monochrome */
    --color-text-primary: #f0f0f0;
    --color-text-secondary: #a0a0a0;
    --color-border: #333333;
    --color-overlay: rgba(0, 0, 0, 0.6);
    --color-overlay-light: rgba(13, 13, 13, 0.85);

    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;

    /* Sizing & Spacing */
    --header-height: 80px;
    --container-width: 1140px;
    --container-padding: 0 20px;
    --section-padding: 100px 0;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

/* ---------------------------------- */
/*           GLOBAL STYLES            */
/* ---------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: var(--line-height-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.3;
    margin: 0 0 1rem 0;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1.5rem 0; color: var(--color-text-secondary); }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--color-text-secondary); }
img { max-width: 100%; height: auto; display: block; }

/* ---------------------------------- */
/*         LAYOUT & UTILITIES         */
/* ---------------------------------- */
.main-container {
    width: 100%;
}

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

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    opacity: 0.5;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -3rem auto 3rem;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.is-two-thirds {
    max-width: 66.66%;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll Animation Initial State */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------- */
/*         HEADER & NAVIGATION        */
/* ---------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    background-color: transparent;
}

.site-header.scrolled {
    background-color: var(--color-overlay-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 1.5rem;
}

.nav-menu a {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* ---------------------------------- */
/*          BUTTON STYLES (GLOBAL)    */
/* ---------------------------------- */
.button {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    letter-spacing: 1px;
    text-align: center;
}

.button-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
    border-color: var(--color-primary);
}

.button-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.button-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.button-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

/* ---------------------------------- */
/*           HERO SECTION             */
/* ---------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--color-primary);
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF; /* IMPORTANT: Hero text must be white */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #FFFFFF; /* IMPORTANT: Hero text must be white */
    opacity: 0.9;
}

/* ---------------------------------- */
/*          PRICING SECTION           */
/* ---------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text */
}

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

.card-image {
    width: 100%;
    height: 250px; /* Fixed height for image container */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: auto 0 1.5rem 0;
    color: var(--color-primary);
}

/* ---------------------------------- */
/*       SUSTAINABILITY SECTION       */
/* ---------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-background);
    border: 3px solid var(--color-border);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--color-surface);
    position: relative;
    border-radius: var(--border-radius);
}

.timeline-content h3 {
    margin-top: 0;
}

/* ---------------------------------- */
/*           AWARDS SECTION           */
/* ---------------------------------- */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.image-gallery figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: var(--color-primary);
    padding: 2rem 1rem 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.image-gallery figure:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------- */
/*      EXTERNAL RESOURCES SECTION    */
/* ---------------------------------- */
.resources-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.resource-link {
    display: block;
    width: 100%;
    max-width: 600px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.resource-link:hover {
    background-color: var(--color-surface);
    border-color: var(--color-primary);
}

/* ---------------------------------- */
/*             FAQ SECTION            */
/* ---------------------------------- */
.faq-accordion details {
    background-color: var(--color-surface);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    border-left: 3px solid transparent;
    transition: border-color var(--transition-speed);
}

.faq-accordion details[open] {
    border-left-color: var(--color-primary);
}

.faq-accordion summary {
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    list-style: none;
    position: relative;
}

.faq-accordion summary::-webkit-details-marker {
    display: none;
}

.faq-accordion summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.8rem;
    transition: transform var(--transition-speed) ease;
}

.faq-accordion details[open] summary::after {
    transform: rotate(45deg);
}

.faq-accordion p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--color-text-secondary);
}

/* ---------------------------------- */
/*          CONTACT SECTION           */
/* ---------------------------------- */
.contact-section {
    position: relative;
}
.contact-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--color-overlay-light);
}
.contact-section .container {
    position: relative;
    z-index: 2;
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--color-border);
    color: var(--color-primary);
    font-size: 1.1rem;
    font-family: var(--font-body);
    outline: none;
    position: relative;
    z-index: 1;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--color-text-secondary);
    transition: all var(--transition-speed) ease;
    z-index: 0;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -16px;
    font-size: 0.8rem;
    color: var(--color-primary);
}

.contact-form .button {
    width: 100%;
    padding: 15px;
}

/* ---------------------------------- */
/*              FOOTER                */
/* ---------------------------------- */
.site-footer {
    background-color: #000;
    padding: 5rem 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    position: relative;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--color-text-secondary);
}

.footer-column a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.social-links a {
    font-weight: 700;
}

/* ---------------------------------- */
/*      STATIC & SUCCESS PAGES        */
/* ---------------------------------- */
.static-page-content {
    padding-top: var(--header-height); /* Offset for fixed header */
    min-height: calc(100vh - 200px); /* Ensure content doesn't get hidden by footer */
}
.static-page-content .container {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}
.success-page h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.success-page p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* ---------------------------------- */
/*         RESPONSIVE STYLES          */
/* ---------------------------------- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .is-two-thirds { max-width: 100%; }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }
    .nav-menu.active {
        transform: translateX(0);
    }
    .nav-menu li {
        margin: 1.5rem 0;
    }
    .nav-menu a {
        font-size: 1.5rem;
    }
    .nav-toggle {
        display: block;
    }
    .nav-open .hamburger {
        background-color: transparent;
    }
    .nav-open .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .nav-open .hamburger::after {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Timeline on Mobile */
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 21px;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 60px 0;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column ul {
        margin: 0 auto;
    }
}