/* TITAN RV - Main Stylesheet */

/* ====================================================================
   CSS Custom Properties (Theme Variables)
   ==================================================================== */

:root {
    --primary: #1a1a1a; /* Deep Charcoal */
    --secondary: #f9b234; /* Vibrant Gold */
    --accent: #d64541; /* Strong Red */
    --light: #f8f9fa; /* Off-white */
    --dark: #212529; /* Near Black */
    --text-muted: #6c757d; /* Grey for less important text */
    --gradient: linear-gradient(135deg, var(--primary) 0%, #2b2b2b 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
}

/* ====================================================================
   Reset & Base Styles
   ==================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Smooth scrolling for anchor links */
    scroll-behavior: smooth;
    /* Base font size for easier rem calculations */
    font-size: 16px;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7; /* Slightly increased line-height for readability */
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased; /* Smoother fonts on macOS/iOS */
    -moz-osx-font-smoothing: grayscale;
}

/* ====================================================================
   Utility Classes
   ==================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem; /* Consistent padding */
}

.section {
    padding: 6rem 0; /* Increased vertical padding */
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900; /* Bolder title */
    margin-bottom: 4rem; /* More space below title */
    position: relative;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Lowered the underline */
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Slightly shorter */
    height: 4px; /* Thinner */
    background-color: var(--secondary);
    border-radius: 2px;
}

.cta-button {
    background-color: var(--secondary);
    color: var(--primary); /* Better contrast */
    padding: 0.9rem 2.2rem; /* Slightly adjusted padding */
    border: none;
    border-radius: 50px; /* Pill shape */
    font-weight: 700; /* Bolder */
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover,
.cta-button:focus { /* Added focus style */
    background-color: var(--accent);
    color: white;
    transform: translateY(-4px); /* More lift */
    box-shadow: var(--shadow-md);
    outline: none; /* Remove default outline */
}

/* ====================================================================
   Header & Navigation
   ==================================================================== */

.site-header {
    background: var(--gradient);
    color: white;
    padding: 1rem 0;
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem; /* Align with container padding */
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2.2rem;
    font-weight: 900; /* Extra bold */
    color: var(--secondary);
    text-decoration: none; /* Ensure logo is not underlined if wrapped in <a> */
}

.logo span {
    color: white;
    font-weight: 700; /* Slightly less bold */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
    border-radius: 5px;
    position: relative; /* For potential underline effect */
}

.nav-links li a:hover,
.nav-links li a:focus {
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover background */
    outline: none;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ====================================================================
   Hero Section
   ==================================================================== */

.hero {
    min-height: 90vh; /* Slightly taller */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/ChatGPT Image Apr 12, 2025, 06_49_14 PM.png'); /* Overlay using gradient */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    z-index: 1;
    /* Added subtle animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.hero h1 {
    font-size: 4.5rem; /* Larger */
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.6rem; /* Larger */
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 700px; /* Control line length */
    margin-left: auto;
    margin-right: auto;
}

/* ====================================================================
   Generic Grid & Card Styles
   ==================================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem; /* Slightly increased gap */
}

.card {
    background: white;
    border-radius: 15px; /* More rounded */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex; /* Flex column for better content control */
    flex-direction: column;
    height: 100%; /* Ensure full height of the card */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 500px; /* Increased height */
    background-size: contain; /* Changed to contain to show full image */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa; /* Light background to ensure visibility */
}

.pioneer-img {
    height: 400px !important;
}

.card-content {
    padding: 2rem;
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.card-text {
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Push buttons/features down */
}

.card-price {
    font-size: 2rem; /* Bigger price */
    color: var(--accent);
    font-weight: 700; /* Bolder price */
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 0; /* Remove default padding */
}

.feature-list li {
    padding: 0.6rem 0; /* Increased padding */
    border-bottom: 1px solid #eee;
    display: flex; /* Align icon and text */
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: "✓"; /* Checkmark */
    color: var(--secondary);
    margin-right: 0.8rem; /* More space */
    font-weight: bold;
    font-size: 1.2rem; /* Larger checkmark */
}

.card .cta-button {
    margin-top: auto; /* Push button to bottom of card */
    align-self: flex-start; /* Align button left */
}

/* ====================================================================
   Specific Section Styles
   ==================================================================== */

/* Intro Section */
#intro h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

#intro p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

#intro .grid > div {
   padding: 1rem;
}

/* Package / Add-on Specifics */
.packages, .add-ons {
    background-color: #fff; /* White background for these sections */
}

.customization-note {
    text-align: center;
    margin-top: 4rem; /* More space */
    background-color: var(--light); /* Use theme light color */
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.customization-note h3 {
     font-size: 1.8rem;
     margin-bottom: 1rem;
     color: var(--primary);
}

/* Benefits Section */
.benefits {
    background-color: var(--primary);
    color: white;
}

.benefits .section-title {
    color: white;
}

.benefits .section-title::after {
    background-color: var(--secondary);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    gap: 1.5rem; /* Gap between icon and content */
}

.benefit-icon {
    font-size: 2.5rem; /* Larger icon */
    color: var(--secondary);
    flex-shrink: 0; /* Prevent icon shrinking */
    width: 50px; /* Fixed width */
    text-align: center;
}

.benefit-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.benefit-content p {
    color: #e0e0e0; /* Lighter grey for paragraph text */
    margin-bottom: 0.5rem;
}

.benefit-content strong {
    color: var(--secondary); /* Highlight cost */
}

/* Performance Section */
#performance ul {
    list-style: none;
    padding-left: 0;
}

#performance li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #eee;
}

#performance li strong {
    color: var(--primary);
    min-width: 150px; /* Align values */
    display: inline-block;
}

#performance h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

/* ====================================================================
   FAQ Section - Accordion
   ==================================================================== */

.accordion {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0; /* Softer border */
    border-radius: 8px; /* Slightly rounded */
    overflow: hidden; /* Ensure content clip */
    background-color: white;
}

.accordion-header {
    background: #f8f9fa; /* Use theme light color */
    padding: 1.2rem 1.5rem; /* More padding */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700; /* Bolder header */
    font-size: 1.1rem;
    transition: background-color var(--transition-speed) ease;
}

.accordion-header:hover {
    background-color: #e9ecef; /* Subtle hover */
}

.accordion-header .icon {
    transition: transform var(--transition-speed) ease;
    font-weight: bold;
    font-size: 1.2rem;
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Smoother transition */
    font-size: 1rem;
    color: var(--text-muted);
}

.accordion-content p {
    padding: 1.5rem 0; /* Add padding only when open */
}

.accordion.active .accordion-header .icon {
    transform: rotate(45deg); /* Rotate '+' to 'x' */
}

.accordion.active .accordion-content {
    max-height: 1000px; /* Sufficient max height */
}

/* ====================================================================
   Testimonials
   ==================================================================== */

.testimonials {
    background: var(--light);
}

.testimonial {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.25rem; /* Slightly larger */
    margin-bottom: 2rem;
    color: var(--text-muted);
    position: relative;
    padding: 0 1rem; /* Add padding */
    max-width: 600px; /* Prevent very long lines */
}

/* Adding quote marks */
.testimonial-text::before {
     content: '"';
     position: absolute;
     left: -10px;
     top: -10px;
     font-size: 4rem;
     color: var(--secondary);
     opacity: 0.3;
}

.testimonial-text::after {
     content: '"';
     position: absolute;
     right: -10px;
     bottom: -20px;
     font-size: 4rem;
     color: var(--secondary);
     opacity: 0.3;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    margin-top: auto; /* Push author down if text varies */
}

.testimonial-author::before {
    content: "— "; /* Em dash before author */
}

/* ====================================================================
   Contact Section
   ==================================================================== */

.contact {
    background: var(--gradient);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background-color: var(--secondary);
}

.contact-form {
    max-width: 700px; /* Slightly wider form */
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1); /* Subtle background */
    padding: 3rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.8rem; /* More space between fields */
}

label {
    display: block;
    margin-bottom: 0.7rem; /* More space below label */
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 1rem; /* More padding */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border */
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.2); /* Darker input background */
    color: white;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(249, 178, 52, 0.3); /* Focus ring */
}

textarea {
    height: 180px; /* Taller textarea */
    resize: vertical;
}

.contact-form .cta-button {
   width: 100%;
   padding: 1rem;
   font-size: 1.2rem;
}

/* Form Success/Error Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
    color: #22c55e;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    color: #ef4444;
}

/* ====================================================================
   Media Sections (Video/Image)
   ==================================================================== */

.media-container {
    max-width: 1000px; /* Limit width */
    margin: 4rem auto; /* Add spacing */
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-radius: 15px;
    overflow: hidden; /* Clip corners */
}

.responsive-media {
    display: block; /* Remove extra space below */
    width: 100%;
    height: auto;
}

/* ====================================================================
   Footer
   ==================================================================== */

.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7); /* Lighter text */
    text-align: center;
    padding: 3rem 1.5rem;
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 0.5rem;
}

.site-footer strong {
    color: var(--secondary); /* Highlight TITAN RV in footer */
}

.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer .footer-link {
    color: var(--secondary);
    text-decoration: none;
    margin-left: 1rem;
}

/* ====================================================================
   Cookie Consent Banner
   ==================================================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-consent-content p {
    margin: 0;
    flex: 1;
}

.cookie-consent-content a {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-accept {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.cookie-accept:hover {
    background-color: var(--accent);
    color: white;
}

/* ====================================================================
   Animations
   ==================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Class added by Intersection Observer */
.fade-in-element {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform: translateY(20px);
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================================================
   Responsive Styles
   ==================================================================== */

@media (max-width: 992px) {
     .hero h1 { font-size: 3.5rem; }
     .hero p { font-size: 1.4rem; }
     .grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .section { padding: 4rem 0; }
    .section-title { font-size: 2.2rem; margin-bottom: 3rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.2rem; }
    .grid { grid-template-columns: 1fr; }

    /* Mobile Navigation */
    .nav-toggle {
        display: block; /* Show hamburger */
        z-index: 1001; /* Above nav links */
        position: relative; /* Needed for potential animation */
    }

    .nav-links {
        position: fixed; /* Fixed position menu */
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%; /* Menu width */
        height: 100vh;
        background: var(--primary); /* Solid background */
        flex-direction: column;
        padding: 6rem 2rem 2rem; /* Adjust padding */
        transition: right var(--transition-speed) ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0; /* Slide in */
    }

    .nav-links li {
        margin-bottom: 1.5rem; /* Space out links */
    }

    .nav-links li a {
        font-size: 1.2rem; /* Larger font size */
    }

    .contact-form {
        padding: 2rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
     .hero h1 { font-size: 2.2rem; letter-spacing: 1px; }
     .hero p { font-size: 1.1rem; }
     .cta-button { font-size: 1rem; padding: 0.8rem 1.8rem; }
     .section-title { font-size: 1.8rem; }
     .card-content { padding: 1.5rem; }
     .card-title { font-size: 1.4rem; }
     .card-price { font-size: 1.8rem; }
     .testimonial-text { font-size: 1.1rem; }
     .testimonial-text::before, .testimonial-text::after { font-size: 3rem; }
     .contact-form { padding: 1.5rem; }
     .nav-links { width: 85%; }
     .pioneer-img { height: 220px !important; }
}

@media (min-width: 577px) and (max-width: 992px) {
    .pioneer-img { height: 300px !important; }
}

/* New Styles for Customization Modules */
.modules {
    background-color: #fff;
}

.module {
    margin-bottom: 2rem;
}

.module h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.module-price {
    font-size: 1.2rem;
    color: var(--accent);
}

.module ul {
    list-style: none;
    padding-left: 0;
}

.module li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.module li:last-child {
    border-bottom: none;
}
