/* 
 * LV Power Solutions - Showpad Inspired Theme
 * Clean, Modern, Professional.
 */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Theme Colors adapted for LV Power */
    --primary: #003366;
    /* Deep Navy Blue (Text & Bg) */
    --accent: #ff3b3b;
    /* LV Red (Logo Accent) */
    --accent-blue: #2955ff;
    /* Vivid Blue (Logo Primary) */
    --success: #2ecc71;
    /* Solar Green */

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f4f6f8;
    /* Very subtle tech gray */
    --bg-dark: #0a192f;
    /* Dark navy for footer/hero */

    /* Typography */
    --text-primary: #121212;
    --text-secondary: #556677;
    --text-inverse: #ffffff;

    /* Spacing & Effects */
    --radius-sm: 4px;
    --radius-lg: 16px;
    /* Showpad style rounded cards */
    --radius-pill: 50px;
    /* Pill buttons */
    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 60px -15px rgba(0, 0, 0, 0.15);

    /* Cursor */
    --cursor-color: var(--accent-blue);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Public Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    /* Hidden by default */
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header - Sticky Transition */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
    background-color: var(--bg-white);
    /* Starts with white background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

header.scrolled {
    background-color: var(--bg-white);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Desktop Header Layout */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    height: 45px;
    width: auto;
}

.logo-text-img {
    height: 35px;
    width: auto;
    display: block;
}

/* Legacy rule cleanup if needed */
.logo-text {
    display: none;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-primary);
    /* Dark text by default */
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-blue);
    color: var(--text-inverse);
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(41, 85, 255, 0.3);
    background-color: #1a44e6;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    /* Space for fixed header */
    padding-bottom: 60px;
    background: var(--bg-dark);
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    color: #a0b0c0;
    /* Muted light blue */
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

/* Trust Bar */
.trust-bar {
    padding: 60px 0;
    background: var(--bg-white);
    border-bottom: 1px solid #eee;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.brand-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.brand-logo:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 85, 255, 0.15);
}

.trust-logos img {
    height: 40px;
    object-fit: contain;
}

/* Content Sections - Zig Zag */
.section {
    padding: 100px 0;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.row.reversed {
    direction: rtl;
    /* Flip visual order */
}

.row.reversed .text-col {
    direction: ltr;
    /* Reset text direction */
}

.text-col h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.text-col p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.why-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.why-item:hover {
    background: rgba(41, 85, 255, 0.05);
    transform: translateX(4px);
}

.image-col img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: transform 0.5s ease;
}

.image-col:hover img {
    transform: scale(1.02);
}

/* Dealerships/Features Grid */
.grid-section {
    background-color: var(--bg-light);
    padding: 100px 0;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(41, 85, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
}

/* Footer */
footer {
    background-color: var(--bg-white);
    padding: 80px 0 40px;
    border-top: 1px solid #eee;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    /* Logo Area + 3 Link Columns */
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 20px;
    line-height: 1.6;
}

.footer-col h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-blue);
}

/* Contact Page Specifics */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    min-height: 100vh;
}

.contact-visual {
    background: var(--bg-dark);
    /* Match hero logic */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.contact-form-section {
    padding: 80px 60px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-form-card {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    max-width: 550px;
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-input-modern {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(41, 85, 255, 0.1);
}

.radio-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.radio-label:hover {
    border-color: var(--accent-blue);
    background: rgba(41, 85, 255, 0.03);
}

.radio-label input[type="radio"] {
    accent-color: var(--accent-blue);
}

/* Legacy form input for backwards compatibility */
.form-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #eee;
    font-size: 1.1rem;
    font-family: inherit;
    margin-bottom: 30px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Scroll Animation Class */
[data-animate] {
    opacity: 0;
    transition: all 0.8s ease-out;
}

[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate].animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section on Homepage */
.contact-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-layout-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-visual-inline {
    background: var(--bg-dark);
    padding: 60px;
    border-radius: var(--radius-lg);
    color: var(--text-inverse);
}

.contact-form-inline {
    display: flex;
    justify-content: center;
}

/* Mobile Navigation & Responsive Styles */

/* Hamburger Menu (Hidden by default) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
    z-index: 1001;
    padding: 10px;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Success Message Card */
.success-card {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    font-size: 3.5rem;
    color: var(--success);
    margin-bottom: 20px;
}

.success-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.success-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* Responsive Media Queries - More Specific */
@media (max-width: 968px) {

    /* Header & Navigation */
    header {
        padding: 10px 0;
    }

    /* Mobile Logo - Responsive Sizing */
    /* Mobile Logo - Dual Image Responsive */
    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        /* Space between icon and text */
    }

    .logo-icon {
        height: 30px;
        /* Smaller icon on mobile */
        width: auto;
    }

    .logo-text-img {
        height: 25px !important;
        /* Force text height to match/scale */
        width: auto;
        max-width: 140px;
        /* Ensure text fits */
        object-fit: contain;
    }

    /* Mobile Button - Compact & One Line */
    header .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
        /* Force one line */
        width: auto !important;
        /* Prevent huge width */
        min-width: 0;
        /* Allow shrinking */
    }

    nav {
        gap: 10px;
        /* Tighter gap */
    }

    header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Mobile Navigation Restoration */
    .hamburger {
        display: block;
        order: -1;
        margin-right: 0;
    }

    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.25rem;
        font-weight: 600;
    }

    /* Global Reset for layout grids in mobile */
    .hero-layout,
    .footer-top,
    .contact-layout,
    .contact-layout-inline {
        grid-template-columns: 1fr;
    }

    /* Content Layouts - FORCE VERTICAL STACK */
    .row,
    .row.reversed {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
        margin-bottom: 60px;
    }

    .row .text-col,
    .row.reversed .text-col {
        order: -1;
        width: 100%;
    }

    .row .image-col,
    .row.reversed .image-col {
        order: 1;
        width: 100%;
    }

    /* Typography Adjustments */
    .text-col h2 {
        font-size: 1.75rem;
    }

    /* Hero Image Optimization */
    .hero-image {
        max-width: 100%;
        margin: 0 auto;
        border-radius: var(--radius-lg);
        overflow: hidden;
        display: block;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
        display: block;
    }

    /* Section Padding */
    .section,
    .contact-section {
        padding: 50px 0;
    }

    /* Features Grid Stacking */
    .card-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
        margin: 30px auto 0;
    }

    .feature-card {
        text-align: center;
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        /* Ensure full width in flex container */
    }

    .why-choose-grid {
        justify-content: center;
        gap: 15px;
    }

    .why-item {
        justify-content: center;
    }

    /* Contact Section */
    .contact-layout-inline {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-visual-inline {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 40px 20px;
        text-align: center;
    }

    .contact-form-card {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        padding: 30px 20px;
        box-shadow: none;
        border: 1px solid #eee;
        border-top: none;
        max-width: 100%;
    }

    .contact-form-inline {
        display: block;
    }

    /* Footer Optimization */
    .footer-top {
        display: flex;
        /* Use flex for footer top too to stack columns effectively */
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .location-text a {
        word-break: break-all;
    }

    .footer-brand h4 {
        justify-content: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-col ul {
        list-style: none;
        /* Ensure no bullets */
        padding: 0;
        text-align: center;
    }

    .footer-col h5 {
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
    }

    /* Decorative underline */
    .footer-col h5::after {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: var(--accent-blue);
        margin: 8px auto 0;
        border-radius: 2px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .logo-text {
        display: none;
        /* Hide full text on small screens if needed, or adjust size */
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .btn {
        width: auto;
        /* Allow button to size to content rather than 100% */
    }

    header .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .trust-logos {
        gap: 20px;
    }

    .trust-logos img {
        height: 25px;
    }
}