/* ==============================================
   TACHEGANDO - Premium Design System
   Modern, Clean, Trustworthy
   ============================================== */

:root {
    /* Brand Colors */
    --primary: #4F46E5;
    /* Indigo 600 */
    --primary-hover: #4338CA;
    /* Indigo 700 */
    --primary-light: #EEF2FF;
    /* Indigo 50 */

    --secondary: #0EA5E9;
    /* Sky 500 */
    --secondary-hover: #0284C7;
    /* Sky 600 */

    --accent: #F59E0B;
    /* Amber 500 */

    /* Neutral Colors */
    --bg-body: #F8FAFC;
    /* Slate 50 */
    --bg-surface: #FFFFFF;
    --bg-surface-alt: #F1F5F9;
    /* Slate 100 */

    --text-main: #0F172A;
    /* Slate 900 */
    --text-muted: #64748B;
    /* Slate 500 */
    --text-light: #94A3B8;
    /* Slate 400 */
    --text-white: #FFFFFF;

    /* Status Colors */
    --success: #10B981;
    /* Emerald 500 */
    --success-bg: #ECFDF5;
    /* Emerald 50 */
    --error: #EF4444;
    /* Red 500 */
    --error-bg: #FEF2F2;
    /* Red 50 */
    --warning: #F59E0B;
    /* Amber 500 */
    --warning-bg: #FFFBEB;
    /* Amber 50 */
    --info: #3B82F6;
    /* Blue 500 */
    --info-bg: #EFF6FF;
    /* Blue 50 */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-primary: 0 10px 25px -5px rgba(79, 70, 229, 0.4);

    /* Typography */
    --font-sans: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Backward Compatibility Aliases */
    --primary-color: var(--primary);
    --primary-color-dark: var(--primary-hover);
    --text-color: var(--text-main);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

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

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

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

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

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

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

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

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

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

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.grid {
    display: grid;
}

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

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

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

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

.border-t {
    border-top: 1px solid var(--bg-surface-alt);
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.col-span-full {
    grid-column: 1 / -1;
}

/* More Spacing Utilities */
.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pt-8 {
    padding-top: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.w-full {
    width: 100%;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.w-auto {
    width: auto;
}

/* Color Utilities */
.bg-white {
    background-color: var(--bg-surface);
}

.bg-slate-50 {
    background-color: var(--bg-body);
}

.bg-slate-100 {
    background-color: var(--bg-surface-alt);
}

.border-slate-100 {
    border-color: var(--bg-surface-alt);
}

.border-slate-200 {
    border-color: #E2E8F0;
}

.bg-blue-50 {
    background-color: #EFF6FF;
}

.bg-indigo-50 {
    background-color: #EEF2FF;
}

.bg-orange-50 {
    background-color: #FFF7ED;
}

.border-orange-100 {
    border-color: #FFEDD5;
}

.text-orange-600 {
    color: #EA580C;
}

.text-blue-700 {
    color: #1D4ED8;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-90 {
    opacity: 0.9;
}

/* Effects */
.grayscale {
    filter: grayscale(100%);
}

.hover\:grayscale-0:hover {
    filter: grayscale(0%);
}

.transition-all {
    transition-property: all;
}

.duration-500 {
    transition-duration: 500ms;
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--bg-surface-alt);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-alt);
    border-color: var(--text-light);
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    padding: 0.75rem;
    border-radius: 50%;
}

/* Cards */
.card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--bg-surface-alt);
}

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

/* Inputs */
.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--bg-surface-alt);
    border-radius: var(--radius-full);
    background-color: var(--bg-surface);
    transition: var(--transition);
    color: var(--text-main);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Navbar */
.navbar {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--bg-surface-alt);
    position: relative;
    /* Changed from sticky to relative per user request */
    z-index: 50;
    padding: 0.5rem 0;
    /* Reduced from 1rem */
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand img {
    max-height: 80px;
    /* Increased from 55px per user request */
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

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

/* Hero Section */
.hero {
    padding: 3rem 0;
    /* Reduced from 6rem */
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, var(--primary-light) 0%, transparent 40%),
        radial-gradient(circle at bottom left, #E0F2FE 0%, transparent 40%);
}

.hero-title {
    font-size: 2.5rem;
    /* Reduced from 3.5rem */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    /* Reduced from 1.25rem */
    color: var(--text-muted);
    margin-bottom: 2rem;
    /* Reduced from 2.5rem */
    max-width: 600px;
}

/* Tracking Box */
.tracking-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    padding: 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.tracking-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 1.5rem;
    font-size: 1.125rem;
    color: var(--text-main);
}

.tracking-box input:focus {
    outline: none;
}

.tracking-box button {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
}

/* Features */
.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--bg-surface-alt);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 3px solid var(--text-light);
    z-index: 10;
}

.timeline-item.active .timeline-dot {
    border-color: var(--primary);
    background-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-content {
    background-color: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-surface-alt);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

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

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.success {
    background-color: var(--success-bg);
    color: var(--success);
}

.status-badge.warning {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.status-badge.info {
    background-color: var(--info-bg);
    color: var(--info);
}

/* Footer */
.footer {
    background-color: var(--bg-surface);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--bg-surface-alt);
    margin-top: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .tracking-box {
        flex-direction: column;
        padding: 1rem;
        border-radius: var(--radius-lg);
    }

    .tracking-box input {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--bg-surface-alt);
        margin-bottom: 0.5rem;
    }

    .tracking-box button {
        width: 100%;
    }
}
/* ============================================
   Utilitários complementares
   Classes usadas nos templates que não tinham
   definição — sem elas o mobile estourava a
   largura e a faixa de lojas/rodapé ficava crua.
   ============================================ */
.hidden { display: none; }
.list-none { list-style: none; }
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.mx-2 { margin-left: .5rem; margin-right: .5rem; }
.mb-16 { margin-bottom: 4rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.gap-3 { gap: .75rem; }
.items-start { align-items: flex-start; }
.rounded-lg { border-radius: .5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 3px rgba(19, 33, 58, .08); }
.hover\:shadow-md:hover { box-shadow: 0 6px 18px rgba(19, 33, 58, .12); }
.transition-shadow { transition: box-shadow .3s ease; }
.object-contain { object-fit: contain; }
.max-w-full { max-width: 100%; }
.max-h-full { max-height: 100%; }
.min-h-screen { min-height: 100vh; }
.grayscale { filter: grayscale(1); }
.opacity-70 { opacity: .7; }
.hover\:grayscale-0:hover { filter: grayscale(0); }
.hover\:opacity-100:hover { opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Garante que nada estoure a largura no mobile */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

@media (min-width: 768px) {
    /* Definidos depois de .hidden para vencer na cascata */
    .md\:block { display: block; }
    .md\:flex { display: flex; }
    .md\:items-center { align-items: center; }
}

/* Rodapé com mais identidade */
.footer { background-color: #F7FAFE; }
.footer h4 { color: var(--text-main, #13213A); font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.footer ul a { color: #6B7686; text-decoration: none; transition: color .2s ease; }
.footer ul a:hover { color: #0068D1; }

/* Rodapé: coluna da marca mais larga no desktop */
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.footer .nav-brand img { max-height: 64px; }
.h-16 { height: 4rem; }

/* Faixa de lojas: cartões uniformes */
.stores-strip-card { min-width: 110px; text-align: center; }

/* ============================================
   Breadcrumbs — estilo canônico
   Separadores são <li> literais do componente;
   a blindagem abaixo anula qualquer CSS antigo
   que injete separadores via pseudo-elemento.
   ============================================ */
.breadcrumbs { padding: 0.875rem 0; font-size: 0.875rem; }
.breadcrumbs li::before,
.breadcrumbs li::after { content: none !important; }
.breadcrumbs a { color: #6B7686; text-decoration: none; transition: color .2s ease; }
.breadcrumbs a:hover { color: #0068D1; }
.breadcrumbs li[aria-hidden="true"] { color: #B6C2D2 !important; }
.breadcrumbs .active { color: #13213A; }

/* Logo do topo: versão horizontal recortada, maior sem inflar o header
   (navbar tem padding 0.5rem; alturas calibradas por viewport) */
#nav-logo { height: 52px; width: auto; display: block; }
@media (min-width: 768px) {
    #nav-logo { height: 62px; }
}

/* Blocos AdSense (templates/components/adsense-unit.php) */
.tc-ad {
    margin-bottom: 1.5rem;
    text-align: center;
    overflow: hidden;
}

.tc-ad-timeline {
    margin-left: -2rem;
    margin-bottom: 2.5rem;
}

.tc-ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, #F1F5F9, #F1F5F9 12px, #E8EDF3 12px, #E8EDF3 24px);
    border: 2px dashed #CBD5E1;
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tc-ad-placeholder span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
