:root {
    --mq-primary: #4f46e5;
    --mq-primary-dark: #4338ca;
    --mq-accent: #06b6d4;
    --mq-dark: #0f172a;
    --mq-muted: #64748b;
    --mq-light: #f8fafc;
    --mq-border: #e2e8f0;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
}

a {
    text-decoration: none;
}

/* Buttons */
.btn-mq {
    background: linear-gradient(135deg, var(--mq-primary), var(--mq-accent));
    color: #fff;
    border: none;
    font-weight: 600;
}

.btn-mq:hover {
    background: linear-gradient(135deg, var(--mq-primary-dark), var(--mq-primary));
    color: #fff;
}

.btn-outline-mq {
    border: 1px solid var(--mq-primary);
    color: var(--mq-primary);
    font-weight: 600;
}

.btn-outline-mq:hover {
    background: var(--mq-primary);
    color: #fff;
}

.text-mq {
    color: var(--mq-primary) !important;
}

.bg-mq-light {
    background-color: var(--mq-light);
}

/* Navbar */
.navbar-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--mq-primary), var(--mq-accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.navbar .nav-link {
    font-weight: 500;
    color: #334155;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--mq-primary);
}

/* Hero */
.hero {
    background: radial-gradient(1200px 600px at 80% -10%, rgba(6, 182, 212, .12), transparent),
        radial-gradient(900px 500px at 0% 0%, rgba(79, 70, 229, .12), transparent);
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Cards */
.feature-card,
.product-card,
.service-card,
.post-card {
    border: 1px solid var(--mq-border);
    border-radius: 16px;
    transition: transform .2s ease, box-shadow .2s ease;
    background: #fff;
    height: 100%;
}

/*
 * position:relative is required for Bootstrap's .stretched-link to work correctly.
 * Bootstrap 5.3+ columns (col-*) do NOT have position:relative, so without this
 * the stretched-link::after has no containing block inside the card and escapes
 * to the viewport, causing clicks to land on the wrong item.
 * Bootstrap's own .card component includes position:relative for this reason.
 */
.product-card,
.service-card {
    position: relative;
}

.feature-card:hover,
.product-card:hover,
.service-card:hover,
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(79, 70, 229, .1);
    color: var(--mq-primary);
}

/* Pricing */
.pricing-card.popular {
    border: 2px solid var(--mq-primary);
    box-shadow: 0 12px 30px rgba(79, 70, 229, .15);
}

.pricing-badge {
    background: linear-gradient(135deg, var(--mq-primary), var(--mq-accent));
    color: #fff;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

/* Footer */
.footer {
    background: var(--mq-dark);
    color: #cbd5e1;
}

.footer a {
    color: #cbd5e1;
}

.footer a:hover {
    color: #fff;
}

/* ===================== Premium homepage ===================== */
.text-gradient-mq {
    background: linear-gradient(135deg, var(--mq-primary), var(--mq-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bar-gradient-mq {
    background: linear-gradient(135deg, var(--mq-primary), var(--mq-accent));
}

.hero-visual {
    box-shadow: 0 30px 60px rgba(15, 23, 42, .12);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--mq-dark);
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-size: .78rem;
    color: var(--mq-primary);
}

/* Soft icon variants */
.icon-soft-primary {
    background: rgba(79, 70, 229, .1);
    color: var(--mq-primary);
}

.icon-soft-accent {
    background: rgba(6, 182, 212, .12);
    color: var(--mq-accent);
}

.icon-soft-success {
    background: rgba(16, 185, 129, .12);
    color: #10b981;
}

.icon-soft-warning {
    background: rgba(245, 158, 11, .14);
    color: #f59e0b;
}

/* Testimonials */
.testimonial-card {
    border: 1px solid var(--mq-border);
    border-radius: 16px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.rating i {
    color: #f59e0b;
}

.avatar-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--mq-primary), var(--mq-accent));
}

/* Call to action band */
.cta-band {
    background: linear-gradient(135deg, var(--mq-primary), var(--mq-accent));
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(79, 70, 229, .25);
}

/* =================== Sale Badge =================== */
.badge-sale {
    position: absolute;
    top: 8px;
    right: 8px;
    /* Explicit size guards — prevents Bootstrap .ratio>* from stretching to 100%x100% */
    width: auto !important;
    height: auto !important;
    left: auto !important;
    /* Appearance */
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.6;
    letter-spacing: 0.02em;
    z-index: 5;
    display: inline-block;
}

/* =================== Floating WhatsApp Button =================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
    z-index: 1055;
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 28px rgba(37, 211, 102, .6);
    color: #fff;
}

.whatsapp-float-tooltip {
    position: absolute;
    right: 66px;
    background: #1f2937;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.whatsapp-float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1f2937;
    border-right: none;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
}
