/*
Theme Name: WIN MOTORS 匯能車業
Theme URI: https://winmotors.co
Author: Debby @ WIN MOTORS
Description: Custom theme for WIN MOTORS 匯能車業 — Tesla-inspired clean white minimal design
Version: 1.1
License: Private
Text Domain: winmotors
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER — Tesla-style minimal
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #eee;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo { display: flex; align-items: center; }

.logo-img {
    height: 28px;
    width: auto;
}

/* Navigation */
.main-nav .nav-menu {
    display: flex;
    gap: 32px;
}

.main-nav .nav-menu a {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    text-transform: uppercase;
}

.main-nav .nav-menu a:hover,
.main-nav .nav-menu .current a {
    color: #000000;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

/* ============================================
   HERO — Clean white, centered
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: #ffffff;
}

.hero-content {
    max-width: 700px;
}

.hero-logo {
    margin-bottom: 32px;
}

.hero-logo-img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

.hero-title-en {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title-cn {
    font-size: 24px;
    font-weight: 300;
    color: #888888;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 14px;
    color: #666666;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 16px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* Buttons — Tesla-style */
.btn {
    display: inline-block;
    padding: 12px 36px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
    min-width: 200px;
}

.btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

.btn-primary:hover {
    background: #333;
}

.btn-outline {
    background: transparent;
    color: #000000;
    border: 2px solid #000;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

.hero-status {
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.status-badge {
    font-size: 12px;
    color: #666666;
    letter-spacing: 1px;
}

/* ============================================
   SERVICES — Clean card layout
   ============================================ */
.services {
    padding: 100px 0;
    background: #f9f9f9;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: #666666;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: #000;
    transform: translateY(-4px);
}

.service-card.featured {
    border: 1px solid #000;
    position: relative;
}

.service-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.service-desc {
    font-size: 13px;
    color: #888888;
    line-height: 1.7;
}

.service-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #000000;
    border: 1px solid #000;
    text-transform: uppercase;
}

/* ============================================
   LOCATION
   ============================================ */
.location {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
}

.location-details {
    max-width: 400px;
    margin: 0 auto;
}

.location-details p {
    font-size: 15px;
    color: #444444;
    line-height: 2;
    letter-spacing: 0.5px;
}

.location-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666666;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 100px 0;
    background: #f9f9f9;
    text-align: center;
}

.cta-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.cta-text {
    font-size: 15px;
    color: #888888;
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-small {
    margin-top: 20px;
    font-size: 12px;
    color: #bbb;
    letter-spacing: 0.5px;
}

/* ============================================
   FOOTER — Minimal, black
   ============================================ */
.site-footer {
    background: #000;
    color: #fff;
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-tagline {
    font-size: 14px;
    color: #888888;
    line-height: 1.8;
    margin-top: 16px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-contact h4,
.footer-services h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
}

.footer-contact p,
.footer-services li {
    font-size: 13px;
    color: #888888;
    line-height: 2;
}

.footer-contact a {
    color: #888888;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #555;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
    padding: 120px 0 80px;
    max-width: 800px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #eee;
        padding: 20px 24px;
    }
    
    .main-nav.active { display: block; }
    
    .main-nav .nav-menu {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-nav .nav-menu a {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .hero-title-en { font-size: 32px; letter-spacing: 3px; }
    .hero-title-cn { font-size: 20px; }
    .hero-logo-img { max-width: 160px; }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .services-grid .service-card:first-child,
    .services-grid .service-card:nth-child(2) {
        /* First 2 rows show on mobile */
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-logo-img { margin: 0 auto; }
    
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 320px; }
    
    .section-title { font-size: 24px; }
    .cta-title { font-size: 22px; }
}

@media (max-width: 480px) {
    .hero-title-en { font-size: 26px; letter-spacing: 2px; }
    .hero-logo-img { max-width: 140px; }
    .hero { padding: 100px 16px 60px; }
}


/* Vehicle Showcase */
.vehicle-showcase {
    padding: 40px 0;
    background: #ffffff;
    text-align: center;
}

.vehicle-art {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
}

/* Page Templates — Services, About, Contact */

.page-hero {
    padding: 120px 0 60px;
    text-align: center;
    background: #f8f9fa;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
}

.page-title-en {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #444444;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.page-subtitle {
    font-size: 18px;
    color: #555;
    margin: 0;
}

.page-section {
    padding: 80px 0;
}

.page-section:nth-child(even) {
    background: #f8f9fa;
}

/* Services Detail Grid */
.services-detail-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 900px) {
    .services-detail-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .services-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 16px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.highlight-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.highlight-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: box-shadow 0.3s;
}

.contact-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 12px;
}

.contact-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.contact-card a {
    color: #3b82f6;
    text-decoration: none;
}

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

.contact-note {
    font-size: 13px !important;
    color: #999 !important;
    margin-top: 8px !important;
}

/* Location Light */
.location-light {
    text-align: center;
}

.info-card {
    display: inline-block;
    padding: 40px 60px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111;
}

.info-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 8px;
}

.info-card .note {
    font-size: 13px;
    color: #666666;
}

.info-card a {
    color: #3b82f6;
    text-decoration: none;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .page-hero { padding: 80px 0 40px; }
    .page-title { font-size: 28px; }
    .page-section { padding: 40px 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .info-card { padding: 30px 24px; }
}

/* Gutenberg Block Fixes */
.wp-block-cover.service-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: box-shadow 0.3s, transform 0.3s;
}
.wp-block-cover.service-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.wp-block-cover.service-card .wp-block-heading {
    margin-top: 12px;
    margin-bottom: 8px;
}

/* Columns gap fix */
.wp-block-columns {
    gap: 20px;
}

/* Page section backgrounds */
.wp-block-group.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Buttons */
.wp-block-button__link {
    border-radius: 50px;
    text-decoration: none;
}
.wp-block-button__link:not(.has-background) {
    background: transparent;
}

/* Contact page cards */
.wp-block-cover a {
    color: #3b82f6;
    text-decoration: none;
}
.wp-block-cover a:hover {
    text-decoration: underline;
}

/* EV Welcome Badge */
.ev-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 auto 40px;
    text-align: center;
    width: fit-content;
}
/* ============================================
   MEMBERSHIP LOUNGE
   ============================================ */
.membership {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
}

.membership-intro-text {
    max-width: 600px;
    margin: 0 auto 50px;
}

.membership-intro-text p {
    font-size: 15px;
    color: #666666;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.membership-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.membership-feature {
    background: #f9f9f9;
    padding: 48px 32px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.membership-feature:hover {
    border-color: #000;
    transform: translateY(-4px);
}

.membership-feature .feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.membership-feature h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.membership-feature p {
    font-size: 13px;
    color: #888888;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .membership-features {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}