/* ===== VARIABLES ===== */
:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --accent-color: #3182ce;
    --text-color: #1a202c;
    --text-light: #4a5568;
    --background: #ffffff;
    --background-alt: #f7fafc;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--background);
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 16px;
}

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

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

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

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

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

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* ===== HEADER ===== */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 2px solid #3182ce;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #3182ce;
}

.nav-menu .btn-outline {
    color: #ffffff;
    border-color: #3182ce;
}

.nav-menu .btn-outline:hover {
    background: #3182ce;
    color: #ffffff;
    border-color: #3182ce;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.lang-switcher a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-switcher a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-switcher a.active {
    color: #ffffff;
    background: #3182ce;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* Mobile language switcher */
.mobile-lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-lang-switcher a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-lang-switcher a:hover {
    background: var(--background-alt);
}

.mobile-lang-switcher a.active {
    color: #ffffff;
    background: #3182ce;
}

.mobile-lang-switcher .lang-divider {
    color: var(--border-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/img/hero-bmw.jpg') center/cover;
    opacity: 0.3;
}

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

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: #3182ce;
    color: white;
}

.hero .btn-primary:hover {
    background: #2563eb;
    color: white;
}

.hero .btn-secondary {
    border-color: #3182ce;
    color: white;
}

.hero .btn-secondary:hover {
    background: #3182ce;
    color: white;
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* ===== PROCESS ===== */
.process {
    background: var(--background-alt);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.step h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--accent-color);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== CHATBOT PROMO ===== */
.chatbot-promo {
    background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%);
    color: white;
}

.promo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.promo-badge {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.promo-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.promo-text p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.promo-text ul {
    list-style: none;
    margin-bottom: 30px;
}

.promo-text li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.promo-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.chat-preview {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    max-width: 85%;
    font-size: 14px;
    color: var(--text-color);
}

.chat-bubble.user {
    background: var(--accent-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
    background: var(--background-alt);
    border-bottom-left-radius: 4px;
}

/* ===== REVIEWS ===== */
.reviews {
    background: var(--background-alt);
}

.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-stars {
    font-size: 24px;
    color: #fbbf24;
}

.rating-count {
    color: var(--text-light);
    font-size: 14px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}

.review-author {
    font-weight: 600;
    color: var(--text-color);
}

.review-date {
    font-size: 12px;
    color: var(--text-light);
}

.review-stars {
    color: #fbbf24;
    margin-bottom: 10px;
}

.review-text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

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

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.about-content h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    background: #1f1f1f;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-info p {
    opacity: 0.8;
}

.footer h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.6;
    font-size: 14px;
}

.footer-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 15px;
}

.footer-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.footer-action-btn:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

.footer-action-btn svg {
    opacity: 0.8;
}

/* ===== CHATBOT MODAL ===== */
.chatbot-modal {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.chatbot-modal.active {
    display: block;
}

.chatbot-container {
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background: #1f1f1f;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.chatbot-input input:focus {
    border-color: var(--accent-color);
}

.chatbot-input button {
    margin-left: 10px;
    padding: 12px 20px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.chatbot-input button:hover {
    background: var(--primary-light);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .process-steps,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-content {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .process-steps,
    .services-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .about-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .chatbot-container {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
    }

    .section-title {
        font-size: 28px;
    }

    .rating-summary {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .rating-number {
        font-size: 36px;
    }

    .footer-actions {
        flex-direction: column;
    }
}

/* ===== SMALL PHONES (iPhone 13 mini, SE) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Hero */
    .hero {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        gap: 12px;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* Steps */
    .step {
        padding: 20px 15px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .step h3 {
        font-size: 17px;
    }

    .step p {
        font-size: 13px;
    }

    /* Services */
    .service-card {
        padding: 20px 15px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-card h3 {
        font-size: 17px;
    }

    /* Chatbot promo */
    .promo-text h2 {
        font-size: 24px;
    }

    .promo-text p,
    .promo-text li {
        font-size: 14px;
    }

    .chat-preview {
        padding: 15px;
    }

    .chat-bubble {
        font-size: 13px;
        padding: 10px 14px;
    }

    /* Reviews */
    .rating-summary {
        padding: 15px;
        width: 100%;
    }

    .rating-number {
        font-size: 32px;
    }

    .rating-stars {
        font-size: 20px;
    }

    .review-card {
        padding: 20px;
    }

    .review-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* About */
    .about-content h2 {
        font-size: 24px;
    }

    .about-grid {
        gap: 30px;
        margin-bottom: 40px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-action-btn {
        padding: 10px 14px;
        font-size: 14px;
        justify-content: center;
    }

    /* Chatbot modal - fullscreen on small phones */
    .chatbot-modal {
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
    }

    .chatbot-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .chatbot-messages {
        padding: 15px;
    }

    .chatbot-input {
        padding: 10px;
    }

    .chatbot-input input {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .chatbot-input button {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Mobile menu */
    .mobile-menu {
        top: 60px;
    }

    .logo img {
        height: 35px;
    }
}
