/* erpnexai Website - Optimized CSS */
:root {
    --primary-blue: #2459a5;
    --primary-blue-dark: #1e4a8a;
    --accent-yellow: #ffd25c;
    --accent-yellow-hover: #ffe46e;
    --white: #ffffff;
    --dark: #1a1a1a;
    --light-gray: #f7f9fc;
    --border-gray: #e5e7eb;
    --text-gray: #6b7280;
    --success-green: #10b981;
    --error-red: #e11d48;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Performance: Only use will-change during hover/interaction */
.card:hover, .pricing-card:hover, .btn:hover, .btn:focus {
    will-change: transform;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(36, 89, 165, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    color: var(--accent-yellow);
    -webkit-text-fill-color: var(--accent-yellow);
    filter: drop-shadow(0 2px 4px rgba(255, 210, 92, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* Beautiful Hamburger Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue), #1e4a8a);
    border-radius: 12px;
    border: none;
    padding: 0;
    box-shadow: 0 4px 12px rgba(36, 89, 165, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.mobile-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(36, 89, 165, 0.4);
}

.mobile-toggle:active {
    transform: scale(0.95);
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-toggle span:nth-child(1) {
    top: 14px;
}

.mobile-toggle span:nth-child(2) {
    top: 22.5px;
}

.mobile-toggle span:nth-child(3) {
    bottom: 14px;
}

/* Animated X when menu is open */
.mobile-toggle.active {
    background: linear-gradient(135deg, #1e4a8a, var(--primary-blue));
}

.mobile-toggle.active span:nth-child(1) {
    top: 22.5px;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.mobile-toggle.active span:nth-child(3) {
    bottom: 22.5px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.7;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background: var(--accent-yellow-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 210, 92, 0.4);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 800;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* Grid */
.grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

.card i {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 700;
}

.card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-weight: 700;
}

.card p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.card .btn {
    margin-top: auto;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.pricing-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--dark);
}

.price {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.price-period {
    color: var(--text-gray);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.price-yearly {
    color: var(--success-green);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.features-list {
    list-style: none;
    margin: 2.5rem 0;
    text-align: left;
    flex-grow: 1;
}

.features-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list i {
    color: var(--success-green);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.pricing-card .btn {
    margin-top: auto;
}

/* Forms */
form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.75rem;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--dark);
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(36, 89, 165, 0.1);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    padding: 1.5rem;
    background: var(--light-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background: #e5e7eb;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.open .accordion-content {
    max-height: 1000px;
    padding: 1.5rem;
}

.accordion-item.open .accordion-header {
    background: var(--primary-blue);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    color: var(--accent-yellow);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-yellow);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid #374151;
    opacity: 0.7;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.bg-light { background: var(--light-gray); }

/* Utility Classes for Inline Styles Cleanup */
.numbered-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.stat-card {
    text-align: center;
    border-left: 4px solid var(--primary-blue);
}

.stat-number {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    padding: 5rem 2rem;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 800;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trust-badges {
    margin-top: 2rem;
    opacity: 0.9;
    font-size: 1rem;
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.contact-icon.phone {
    background: var(--accent-yellow);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255, 210, 92, 0.3);
}

.contact-icon.email {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(36, 89, 165, 0.3);
}

.contact-icon.whatsapp {
    background: #25d366;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.contact-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.contact-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.bordered-card {
    border-left: 4px solid var(--primary-blue);
    padding: 2rem;
}

.card-title-blue {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.contact-info-box {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.contact-info-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    color: var(--text-gray);
}

.contact-info-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-info-list i {
    color: var(--success-green);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.icon-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.icon-header i {
    font-size: 1.3rem;
}

.contact-details {
    margin-left: 2.3rem;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.section-title {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 1rem 0;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
    pointer-events: all;
}

.toast.success {
    border-color: var(--success-green);
}

.toast.error {
    border-color: var(--error-red);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success-green);
}

.toast.error .toast-icon {
    color: var(--error-red);
}

.toast-message {
    flex: 1;
    color: var(--dark);
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--dark);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form Error Messages */
.error-message {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-left-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        padding: 2rem;
        gap: 1.5rem;
    }

    .nav-menu.open { left: 0; }
    .mobile-toggle { display: flex; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1.1rem; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
    .grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
    .two-column-grid { grid-template-columns: 1fr; gap: 2rem; }
    .toast { right: 1rem; left: 1rem; min-width: auto; }
    .cta-section h2 { font-size: 2rem; }
    .cta-section p { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .stat-number { font-size: 2.5rem; }
    .numbered-badge { width: 40px; height: 40px; font-size: 1.25rem; }
    .contact-icon { width: 60px; height: 60px; font-size: 1.5rem; }
}

/* Accessibility */
*:focus-visible {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 100;
    border-radius: 0 0 8px 0;
}

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

/* Visually hidden but accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    header, footer, .cta-buttons { display: none; }
}
