/* Myvi Malaysia - Main Stylesheet */
/* Mobile-first responsive design */

:root {
    --primary-color: #c41e3a;
    --primary-dark: #9a1830;
    --secondary-color: #1a1a1a;
    --accent-color: #25d366;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    display: block;
}

/* Navigation */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
}

.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 20px;
}

.main-nav.active {
    display: block;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-nav a {
    display: block;
    padding: 10px 0;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.header-cta {
    display: none;
}

/* Desktop Navigation */
@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }

    .main-nav {
        display: block;
        position: static;
        box-shadow: none;
        padding: 0;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 30px;
    }

    .main-nav a {
        padding: 0;
        border: none;
    }

    .header-cta {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-whatsapp {
    background: var(--accent-color);
    color: var(--bg-white);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    text-align: center;
    color: var(--bg-white);
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-price span {
    color: var(--primary-color);
    font-size: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

@media (min-width: 768px) {
    .hero {
        min-height: 600px;
    }

    .hero-content {
        text-align: left;
        max-width: 50%;
        padding: 80px 40px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .hero-image {
        width: 60%;
        opacity: 1;
    }
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-dark {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.section-light {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.section-dark .section-title h2 {
    color: var(--bg-white);
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-title p {
    color: rgba(255,255,255,0.8);
}

/* Variants Grid */
.variants-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .variants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .variants-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.variant-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.variant-image {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
}

.variant-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.variant-content {
    padding: 20px;
}

.variant-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.variant-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.variant-specs {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.variant-specs span {
    display: inline-block;
    margin-right: 15px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--bg-white);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.specs-table th,
.specs-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background: var(--secondary-color);
    color: var(--bg-white);
    font-weight: 600;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    background: var(--bg-light);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 20px;
    text-align: center;
    color: var(--bg-white);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background: var(--bg-light);
    margin-top: 70px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--primary-color);
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list .current {
    color: var(--text-light);
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

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

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--bg-white);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: var(--bg-white);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--bg-white);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: var(--bg-white);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #333 100%);
    padding: 100px 20px 60px;
    text-align: center;
    color: var(--bg-white);
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Styles */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.content-section h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.content-section p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-section ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.content-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.two-col img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Model Page Styles */
.model-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    padding: 120px 20px 80px;
    margin-top: 70px;
}

.model-hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .model-hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.model-info {
    color: var(--bg-white);
}

.model-info h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.model-price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.model-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.highlight-item {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.model-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mb-0 {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .btn {
        display: none;
    }

    .hero {
        margin-top: 0;
    }
}


/* Additional Form Styles */
.required {
    color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-full {
    width: 100%;
}

/* Contact Info Card */
.contact-info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon.whatsapp {
    background: var(--accent-color);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-white);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-item p {
    margin: 0;
    color: var(--text-color);
}

.contact-item p.small {
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary-color);
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Quick WhatsApp Section */
.quick-whatsapp {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.quick-whatsapp h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.quick-whatsapp p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--bg-white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.process-step p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Legal Content Styles */
.legal-content {
    padding: 0;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.legal-content h2:first-of-type {
    margin-top: 30px;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 25px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 30px;
}

.legal-content ul li::before {
    display: none;
}

.legal-content ul li {
    padding-left: 0;
}

/* Model Page Enhancements */
.model-info p {
    opacity: 0.9;
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .model-info h1 {
        font-size: 3rem;
    }
}

/* Safety Features List */
.content-section ul li strong {
    color: var(--secondary-color);
}

/* FAQ Styling */
.content-section h3 {
    color: var(--primary-color);
}

/* Gallery Enhancement */
.gallery-grid {
    margin-top: 30px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .page-header {
        padding: 80px 20px 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .model-hero {
        padding: 100px 20px 60px;
    }
    
    .model-info h1 {
        font-size: 2rem;
    }
    
    .model-price-tag {
        font-size: 1.5rem;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 8px 16px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Success/Error Messages */
.form-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
