/* 
 * Limart Mobile Repair - Modern UI System
 * -----------------------------------------
 */

:root {
    /* Colors */
    --bg-color: #dbeafe;
    --card-bg: #151a23;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --surface-1: rgba(255, 255, 255, 0.7);
    --surface-2: rgba(255, 255, 255, 0.86);
    --surface-3: rgba(255, 255, 255, 0.92);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 22px 48px rgba(15, 23, 42, 0.18);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

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

ul {
    list-style: none;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--text-muted);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 72px 0;
}

.section-compact {
    padding-top: 52px;
    padding-bottom: 60px;
}

.section-header {
    max-width: 680px;
    margin-bottom: 2rem;
}

.section-header.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

.grid > .glass-card {
    height: 100%;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Utilities */
.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-responsive {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.15);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge.light {
    background: rgba(6, 182, 212, 0.15);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    padding: 8px 16px;
    background: var(--surface-1);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    background: var(--glass-bg);
}

.btn-ghost {
    background: var(--surface-1);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-ghost:hover {
    border-color: var(--primary-color);
    background: var(--surface-2);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.poster-alert {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    z-index: 2000;
    padding: 0;
}

.poster-alert.is-visible {
    display: flex;
}

.poster-alert__content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #0f172a;
}

.poster-alert__content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-glow);
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-color);
    font-size: 1.4rem;
}

.icon-box.secondary {
    background: rgba(124, 58, 237, 0.12);
    color: var(--secondary-color);
}

.icon-box.accent {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-color);
}

.icon-box.success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success-color);
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #f8fbff;
    backdrop-filter: none;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    white-space: nowrap;
    margin-right: 0;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-left: auto;
    justify-content: flex-end;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.98rem;
}

header .nav-links a {
    color: #0f172a;
}

header .nav-links a:hover,
header .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-cta {
    margin-left: 0.5rem;
}

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

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 2.5rem) 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-banner {
    padding: 0;
    margin-top: var(--header-height);
}

.hero-banner .hero-poster-full {
    padding: 12px 16px 16px;
}

.hero-banner .hero-poster-full img {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    background: var(--surface-1);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: start;
}

.hero-content {
    max-width: 560px;
    z-index: 1;
}

.hero p {
    font-size: 1.15rem;
    color: #334155;
    margin: 1.5rem 0 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-metrics {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.hero-metric {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--surface-1);
}

.hero-metric strong {
    display: block;
    font-size: 1.3rem;
    color: var(--text-main);
}

.hero-media {
    display: grid;
    gap: 1.25rem;
    position: relative;
    align-content: start;
    justify-items: stretch;
}

.poster-card {
    padding: 1rem;
    background: var(--surface-1);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    justify-self: stretch;
}

.poster-card img {
    width: 100%;
    border-radius: 14px;
}

.hero-poster {
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
}

.hero-poster img {
    border-radius: 0;
}

.poster-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.poster-full img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-poster-full {
    margin: 0;
}

.hero-poster-full img {
    border-radius: 0;
}

.hero-card {
    background: var(--surface-3);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.1rem;
    display: grid;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    min-height: 140px;
}

.hero-card .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.hero-card .chips {
    gap: 0.5rem;
}

.hero-card .chip {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.hero-card .status {
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-card.small {
    width: 100%;
    margin-left: 0;
}

.hero-bg-glow {
    position: absolute;
    top: 45%;
    left: 65%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Service Cards */
.service-card {
    display: grid;
    gap: 1rem;
    height: 100%;
    align-content: start;
    grid-template-rows: auto auto 1fr auto auto;
    min-height: 260px;
}

.service-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.service-card p {
    color: var(--text-muted);
}

.service-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Protection */
.protection-banner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
}

.protection-highlights {
    display: grid;
    gap: 1rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.step-card {
    padding: 2rem;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    height: 100%;
    min-height: 220px;
}

.step-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Stats */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    border-radius: 18px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    height: 100%;
    min-height: 150px;
}

.stat h3 {
    font-size: 2rem;
}

.stat span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Testimonials */
.testimonial {
    display: grid;
    gap: 1rem;
    height: 100%;
    grid-template-rows: auto 1fr auto;
    min-height: 220px;
}

.testimonial strong {
    margin-top: auto;
}

.testimonial p {
    color: var(--text-muted);
}

.rating {
    color: #fbbf24;
    display: flex;
    gap: 0.2rem;
}

/* Forms */
.form-card {
    max-width: 900px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contact-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 1200;
}

.icon-action {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    border: none;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.icon-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.38);
}

.icon-action.whatsapp {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.35);
}

/* Footer */
footer {
    background: rgba(59, 130, 246, 0.12);
    padding: 2.5rem 0 1.25rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.footer-links li {
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.85rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Page Hero */
.page-hero {
    min-height: unset;
    align-items: flex-start;
    padding: calc(var(--header-height) + 1.1rem) 0 1rem;
}

.page-hero .section-header {
    margin-bottom: 0;
}

.protection-page .page-hero,
.services-page .page-hero {
    padding: calc(var(--header-height) + 1rem) 0 0.85rem;
}

/* Contact Page */
.contact-page .grid-2 {
    align-items: start;
}

.contact-page .glass-card .section-header {
    margin-bottom: 1.75rem;
}

.contact-page .highlight {
    align-items: flex-start;
}

.contact-page .highlight p {
    margin-top: 0.35rem;
    word-break: break-word;
}

.contact-page .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-1);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-page .contact-link:hover {
    border-color: var(--primary-color);
    background: var(--surface-2);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-media {
        order: -1;
    }

    .stat-grid,
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    body {
        font-size: 0.98rem;
    }

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 40px 0;
    }

    .container {
        padding: 0 6px;
    }

    .section-header {
        margin-bottom: 1.1rem;
    }

    .section-header.center {
        text-align: left;
    }

    .logo {
        margin-right: auto;
        text-align: left;
    }

    nav {
        justify-content: space-between;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(219, 234, 254, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transition: var(--transition);
        border-top: 1px solid var(--glass-border);
        gap: 1.5rem;
        padding: 1.5rem 1.5rem 2.5rem;
        text-align: left;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        text-align: left;
    }

    .nav-cta {
        width: 100%;
        text-align: left;
        max-width: 100%;
    }

    .nav-links .btn {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .flex-responsive {
        flex-direction: column;
    }

    .grid-2,
    .grid-3,
    .steps,
    .form-grid,
    .protection-banner {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        margin-top: 1.2rem;
    }

    .hero {
        min-height: unset;
        padding: calc(var(--header-height) + 1.5rem) 0 3rem;
    }

    .hero-banner + .hero {
        padding-top: 1rem;
    }

    .page-hero {
        padding-bottom: 0.6rem;
    }

    .page-hero + section {
        padding-top: 16px;
    }

    .poster-full {
        width: 100%;
        margin-left: 0;
        padding: 0;
    }

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

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero-card,
    .poster-card,
    .glass-card {
        border-radius: 16px;
        padding: 0.9rem;
    }

    .service-card {
        grid-template-rows: auto auto auto;
    }

    .step-card,
    .stat,
    .highlight,
    .testimonial {
        border-radius: 16px;
        padding: 0.9rem;
    }

    .grid,
    .steps,
    .stat-grid {
        gap: 0.65rem;
    }

    .form-footer {
        margin-top: 1rem;
    }

    footer {
        padding: 1.1rem 0 0.6rem;
    }

    .footer-grid {
        gap: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .footer-title {
        margin-bottom: 0.5rem;
    }

    .footer-links li {
        margin-bottom: 0.25rem;
    }

    .footer-bottom {
        padding-top: 0.45rem;
    }

    section {
        padding: 40px 0;
    }

    .service-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-footer .btn {
        width: 100%;
        text-align: center;
    }

    .contact-actions {
        right: 16px;
        bottom: 16px;
    }

    .icon-action {
        width: 48px;
        height: 48px;
        border: 1px solid rgba(255, 255, 255, 0.7);
        background: linear-gradient(145deg, #3b82f6, #1d4ed8);
        box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
    }

    .icon-action.whatsapp {
        background: linear-gradient(145deg, #22c55e, #16a34a);
        box-shadow: 0 10px 20px rgba(34, 197, 94, 0.28);
    }

    .contact-page .section-header {
        text-align: left;
    }

    .contact-page .glass-card {
        padding: 0.75rem;
    }

    .contact-page .highlight {
        padding: 0.75rem;
    }

    .contact-page .section-header {
        margin-bottom: 1rem;
    }

    .contact-page .contact-link {
        width: 100%;
        justify-content: center;
    }

    .contact-page .highlight {
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact-page .icon-box {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }

    .contact-page iframe {
        height: 280px;
    }

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

    .footer-links li {
        margin-bottom: 0.35rem;
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .stat-grid,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-card.small {
        width: 100%;
    }

    .icon-box {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 24px;
    }

    .contact-page iframe {
        height: 240px;
    }
}