/* =========================================
   YARENT ERP - PREMIUM DESIGN SYSTEM
   ========================================= */

:root {
    /* Color Palette: Professional Blue & Emerald */
    --primary: #001A37;          /* Requested Dark Blue */
    --primary-light: #003366;
    --primary-dark: #000c1a;
    --secondary: #0f172a;        /* Deep Slate */
    --secondary-light: #1e293b;
    --accent: #10b981;           /* Emerald Green */
    --accent-hover: #059669;
    
    /* Backgrounds & Surfaces */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-alt: #f1f5f9;
    
    /* Text Colors */
    --text-heading: #0f172a;
    --text-body: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    /* Spacing */
    --space-xs: 0.5rem;   /*  8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2.5rem;   /* 40px */
    --space-xl: 4rem;     /* 64px */
    --space-2xl: 8rem;    /* 128px */
    
    /* Geometry */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* =========================================
   COMPONENTS
   ========================================= */
   
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
    color: var(--text-inverse);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: var(--text-inverse);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-inverse);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-grid-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .form-grid, .form-grid-select {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.section-title .badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   LAYOUT
   ========================================= */

/* Header */
.erp-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.erp-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.erp-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-container img {
    height: 40px;
}

.erp-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.erp-nav a {
    font-weight: 500;
    color: var(--text-heading);
}

.erp-nav a:hover {
    color: var(--primary);
}

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

.phone-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.1rem;
}

.phone-cta i {
    color: var(--accent);
    font-size: 1.25rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary);
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-surface);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    padding: var(--space-xl) var(--space-md);
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-heading);
}

.mobile-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.mobile-sidebar nav a {
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid var(--bg-alt);
    padding-bottom: 0.5rem;
}

.mobile-sidebar .phone-cta {
    margin-top: auto;
    margin-bottom: var(--space-lg);
}

.overlay {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Footer */
.erp-footer {
    background-color: var(--secondary);
    color: var(--text-inverse);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand p {
    color: #94a3b8;
    margin: var(--space-md) 0;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--text-inverse);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col a {
    color: #94a3b8;
}

.footer-col a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: #94a3b8;
    margin-bottom: var(--space-sm);
}

.footer-contact i {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
}


/* =========================================
   HOME PAGE SECTIONS
   ========================================= */

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(to bottom right, #f8fafc, #e0e7ff);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, rgba(255,255,255,0) 70%);
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--secondary);
}

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

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: var(--space-lg);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Why Yarent (Advantages) */
.advantages {
    padding: var(--space-2xl) 0;
    background-color: var(--bg-surface);
}

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

.adv-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background-color: var(--bg-alt);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.adv-card:hover {
    transform: translateY(-10px);
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.1);
}

.adv-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.adv-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

/* Features List */
.features {
    padding: var(--space-2xl) 0;
    background-color: var(--bg-main);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
    border-left: 4px solid var(--primary);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-item h4 {
    margin-bottom: 0.25rem;
}

/* How it Works */
.how-it-works {
    padding: var(--space-2xl) 0;
    background-color: var(--bg-surface);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: var(--shadow-glow);
}

/* Statistics */
.stats {
    padding: var(--space-xl) 0;
    background-color: var(--primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: var(--space-xs);
}

.stat-item p {
    font-weight: 500;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    padding: var(--space-2xl) 0;
    background-color: var(--bg-main);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.testi-card {
    background: var(--bg-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testi-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: var(--bg-alt);
    font-family: Georgia, serif;
    line-height: 1;
}

.stars {
    color: #fbbf24;
    margin-bottom: var(--space-md);
}

.testi-card p {
    font-style: italic;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 2;
}

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

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h5 {
    margin-bottom: 0;
}

.user-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Pricing */
.pricing {
    padding: var(--space-2xl) 0;
    background-color: var(--bg-surface);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    align-items: center;
}

.price-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.price-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    position: relative;
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.price-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
}

.price span {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-features {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.price-features li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.price-features i {
    color: var(--accent);
}

/* Final CTA */
.cta-final {
    padding: var(--space-2xl) 0;
    background-color: var(--secondary);
    color: white;
    text-align: center;
}

.cta-final h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.cta-final p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-inline: auto;
}

/* =========================================
   CHATBOT STYLES
   ========================================= */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chatbot-bubble {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,26,55,0.3);
    transition: transform 0.3s ease;
}

.chatbot-bubble:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    transform-origin: bottom right;
    animation: chatPopUp 0.3s ease;
}

@keyframes chatPopUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.chatbot-window.active {
    display: flex;
}

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

.close-chat {
    cursor: pointer;
    font-size: 18px;
}

.chatbot-messages {
    height: 300px;
    background: #f8fafc;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-msg {
    background: white;
    color: var(--secondary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-msg {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 20px;
    margin-top: 8px;
    font-weight: 500;
}

.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.chatbot-input input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-family: inherit;
}

.chatbot-input button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    padding: 0 10px;
}

/* FAQ */
.faq {
    padding: var(--space-2xl) 0;
    background: var(--bg-main);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    transition: transform var(--transition-fast);
}

.faq-answer {
    padding: 0 var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-body);
}

.faq-item.active .faq-answer {
    padding-bottom: var(--space-md);
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* =========================================
   UTILITIES & ANIMATIONS
   ========================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .erp-nav, .header-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        margin-inline: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .price-card.featured {
        transform: scale(1);
    }
    .price-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    :root {
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-contact li {
        justify-content: center;
    }
}
