/* Mobile4Ever - Serene Accessibility Design Language v2.0 */
/* Optimized for seniors, accessibility, and tourism customers */

/* ========================================
   CSS VARIABLES - Serene Color Palette
   ======================================== */
:root {
    /* Primary Colors - Calming Teal/Sage */
    --primary: #2D8B7A;
    --primary-dark: #1F6B5C;
    --primary-light: #E8F5F2;

    /* Secondary - Warm Coral for CTAs */
    --secondary: #E07A5F;
    --secondary-dark: #C45A3F;
    --secondary-light: #FDF0ED;

    /* WhatsApp - Keep recognizable */
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;

    /* Neutrals - Warm tones for accessibility */
    --text-primary: #2C3E50;
    --text-secondary: #5D6D7E;
    --text-muted: #8395A7;

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-warm: #FDFCFB;
    --bg-light: #F8F6F4;
    --bg-accent: #E8F5F2;

    /* Borders & Shadows */
    --border-light: #E8E4E0;
    --border-medium: #D1CBC5;

    /* Shadows - Softer for calming effect */
    --shadow-sm: 0 2px 8px rgba(45, 139, 122, 0.08);
    --shadow-md: 0 4px 16px rgba(45, 139, 122, 0.12);
    --shadow-lg: 0 8px 32px rgba(45, 139, 122, 0.16);
    --shadow-hover: 0 12px 40px rgba(45, 139, 122, 0.20);

    /* Typography - Larger for accessibility */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-base: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;
    --font-size-4xl: 52px;

    /* Spacing - Generous for breathing room */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 100px;

    /* Border Radius - Soft, rounded */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-warm);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1400px;
}

/* ========================================
   TYPOGRAPHY - Accessibility Optimized
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-4xl); margin-bottom: var(--space-md); }
h2 { font-size: var(--font-size-3xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--font-size-2xl); margin-bottom: var(--space-sm); }
h4 { font-size: var(--font-size-xl); margin-bottom: var(--space-sm); }

p {
    margin-bottom: var(--space-md);
    max-width: 70ch; /* Optimal reading width */
}

/* Lead text for important paragraphs */
.text-lead {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   HEADER - Simplified & Accessible
   ======================================== */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

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

/* Trust Badges - More prominent */
.trust-badges {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-light);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.trust-badge:hover,
.trust-badge:focus {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.trust-badge .rating {
    color: #F59E0B;
    font-size: var(--font-size-sm);
}

/* Contact in Header */
.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.header-phone:hover {
    color: var(--primary-dark);
}

.language-switcher {
    display: flex;
    gap: var(--space-xs);
}

.language-switcher a {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.language-switcher a:hover,
.language-switcher a.active {
    background: var(--primary);
    color: white;
}

/* ========================================
   NAVIGATION - Large Touch Targets
   ======================================== */
.nav {
    background: var(--primary);
    padding: var(--space-xs) 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.nav-menu li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-base);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    min-height: 48px; /* Minimum touch target */
    display: flex;
    align-items: center;
}

.nav-menu li a:hover,
.nav-menu li a:focus,
.nav-menu li a.active {
    background: var(--primary-dark);
    color: white;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: var(--font-size-xl);
    padding: var(--space-sm);
    cursor: pointer;
    min-width: 48px;
    min-height: 48px;
}

/* ========================================
   HERO - Welcoming & Reassuring
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-warm) 100%);
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative elements */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--primary);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.hero h1 {
    font-size: var(--font-size-4xl);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.hero h1 span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Trust indicators below hero image */
.hero-trust {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
    justify-content: center;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.hero-trust-item svg {
    color: var(--primary);
}

/* ========================================
   BUTTONS - Large & Accessible
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 56px; /* Large touch target */
    min-width: 160px;
    text-align: center;
}

.btn-lg {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-lg);
    min-height: 64px;
    min-width: 200px;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    border-color: var(--whatsapp);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: var(--whatsapp-dark);
    border-color: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

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

.btn-coral:hover,
.btn-coral:focus {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
}

/* ========================================
   SECTIONS - Generous Spacing
   ======================================== */
.section {
    padding: var(--space-2xl) 0;
}

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

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

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.section-title {
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

/* ========================================
   SERVICE CARDS - Clear & Spacious
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.service-card h3 {
    font-size: var(--font-size-xl);
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    margin: 0;
}

/* ========================================
   MODEL CARDS - Product Showcase
   ======================================== */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.model-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    border: 2px solid var(--border-light);
    transition: all var(--transition-normal);
    position: relative;
}

.model-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.model-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.model-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--secondary);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.model-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: var(--space-md);
}

.model-card h3 {
    font-size: var(--font-size-2xl);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.model-specs {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-md);
}

.model-specs li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-base);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.model-specs li .icon {
    font-size: 24px;
}

/* ========================================
   USE CASES - Who It's For
   ======================================== */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.use-case {
    background: var(--bg-white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.use-case:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

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

/* ========================================
   CTA SECTION - Prominent & Clear
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-2xl) 0;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: var(--font-size-3xl);
    color: white;
    margin-bottom: var(--space-sm);
}

.cta-section p {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 220px;
}

/* ========================================
   CONTACT BAR - Floating Action
   ======================================== */
.contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: var(--space-sm);
    display: none; /* Show on mobile */
    z-index: 900;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.contact-bar-inner {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    max-width: 500px;
    margin: 0 auto;
}

.contact-bar .btn {
    flex: 1;
    min-height: 52px;
}

/* ========================================
   FOOTER - Simple & Accessible
   ======================================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer h4 {
    color: white;
    margin-bottom: var(--space-md);
    font-size: var(--font-size-lg);
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-base);
}

.footer a {
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
}

/* ========================================
   BOOKING ASSISTANT - Friendly Chat
   ======================================== */
#booking-assistant {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    z-index: 1000;
}

.assistant-button {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: var(--whatsapp);
    color: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.assistant-chat {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    max-height: 550px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.assistant-chat.active {
    display: flex;
}

.assistant-header {
    background: var(--primary);
    color: white;
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assistant-header h3 {
    font-size: var(--font-size-base);
    color: white;
    margin: 0;
}

.assistant-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: var(--space-xs);
    min-width: 48px;
    min-height: 48px;
}

.assistant-messages {
    flex: 1;
    padding: var(--space-md);
    overflow-y: auto;
    max-height: 380px;
}

.message {
    margin-bottom: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    max-width: 85%;
    font-size: var(--font-size-base);
}

.message.bot {
    background: var(--bg-light);
    margin-right: auto;
    border-bottom-left-radius: var(--radius-sm);
}

.message.user {
    background: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: var(--radius-sm);
}

.assistant-input {
    padding: var(--space-md);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: var(--space-sm);
}

.assistant-input input {
    flex: 1;
    padding: var(--space-sm);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    outline: none;
    min-height: 48px;
}

.assistant-input input:focus {
    border-color: var(--primary);
}

.assistant-input button {
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    min-width: 80px;
    min-height: 48px;
    transition: background var(--transition-fast);
}

.assistant-input button:hover {
    background: var(--primary-dark);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --font-size-4xl: 44px;
        --font-size-3xl: 36px;
        --space-2xl: 80px;
    }

    .hero-content {
        gap: var(--space-lg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 36px;
        --font-size-3xl: 30px;
        --font-size-2xl: 26px;
        --space-2xl: 60px;
        --space-xl: 48px;
    }

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

    .header-contact {
        align-items: center;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

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

    .nav-menu li a {
        text-align: center;
        justify-content: center;
    }

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

    .hero-text {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .btn {
        width: 100%;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-bar {
        display: block;
    }

    /* Add padding to bottom for fixed contact bar */
    body {
        padding-bottom: 80px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .assistant-chat {
        width: calc(100vw - 32px);
        right: calc(-50vw + 50% + 16px);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --font-size-4xl: 30px;
        --font-size-3xl: 26px;
        --font-size-base: 17px;
    }

    .trust-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #006B5A;
        --text-primary: #000000;
        --border-light: #000000;
    }

    .btn {
        border-width: 3px;
    }
}

/* Print styles */
@media print {
    .header,
    .nav,
    .contact-bar,
    #booking-assistant,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
}
