/* ============================================================
   Mactronic — Estilos globais compartilhados
   ============================================================ */

/* ============================================================
   Century Gothic — arquivos TTF originais hospedados em /assets/fonts/
     GOTHIC.TTF     → 400 normal
     GOTHICB.TTF    → 700 normal (bold)
     GOTHICI.TTF    → 400 italic
     GOTHICBI.TTF   → 700 italic (bold italic)
   ============================================================ */
@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/GOTHIC.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/GOTHICB.TTF') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/GOTHICI.TTF') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/GOTHICBI.TTF') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ---- Skip to main content (acessibilidade) ---- */
.skip-to-main {
    position: absolute;
    left: -9999px;
    top: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    white-space: nowrap;
}
.skip-to-main:focus {
    left: 1rem;
    outline: 3px solid white;
    outline-offset: 2px;
}

/* ---- Reset & Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:       #053A6B;
    --primary-dark:  #02375f;
    --primary-light: #d4d4d4;
    --gray-50:  #f6f6f6;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --green:        #22c55e;
    --green-light:  #dcfce7;
    --yellow:       #facc15;
    --yellow-light: #fef9c3;
    --red:          #ef4444;
    --red-light:    #fee2e2;
    --blue:         #3b82f6;
    --blue-light:   #dbeafe;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius-lg: 1rem;
}

body {
    /* Century Gothic é auto-hospedada (@font-face acima) — funciona em qualquer
       dispositivo. Os fallbacks abaixo só entram em ação se os arquivos da fonte
       não estiverem em /assets/fonts/. */
    font-family: 'Century Gothic', CenturyGothic, 'Apple Gothic', 'Trebuchet MS', sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    scroll-behavior: smooth;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Announce Bar ---- */
.announce-bar {
    background: var(--primary);
    color: white;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    letter-spacing: 0.02em;
}

/* ---- Top Bar ---- */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.contact-info a,
.social-icons a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.contact-info a:hover,
.social-icons a:hover { opacity: 0.8; }
.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---- Site Header ---- */
.site-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    gap: 1rem;
}
.logo {
    height: 52px;
    width: auto;
/*    max-width: 180px;*/
    object-fit: contain;
}
.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}
.main-nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s;
    font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav a.active { color: var(--primary); }
.cart-link {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.cart-link i { font-size: 1rem; }
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray-700);
}

/* ---- Botões ---- */
.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-detail {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: 0.2s;
    cursor: pointer;
}
.btn-detail:hover { background: var(--primary); color: white; }

.btn-quote {
    background: var(--primary-dark);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: 0.2s;
    cursor: pointer;
}
.btn-quote:hover { background: var(--primary); transform: translateY(-2px); }

.btn-catalog {
    background: white;
    color: var(--primary-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
}
.btn-catalog:hover { background: #e2e8f0; color: var(--primary-dark); transform: translateY(-2px); }

.btn-talk {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}
.btn-talk:hover { background: #128C7E; transform: translateY(-2px); }

/* ---- Section Title ---- */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 1rem;
    border-left: 5px solid var(--primary);
    padding-left: 1.25rem;
    color: var(--primary-dark);
}

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    min-height: 300px;
    display: flex;
    align-items: center;
    text-align: left;
}
.page-hero > .container { width: 100%; }
.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 3rem 0;
    align-items: center;
}
.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}
.pagination a {
    background: white;
    color: var(--primary);
    border: 1px solid var(--gray-200);
}
.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.pagination span { background: var(--primary); color: white; box-shadow: var(--shadow-sm); }
.pagination .dots { background: transparent; border: none; color: var(--gray-400); cursor: default; min-width: auto; }

/* ---- Card genérico ---- */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---- Footer ---- */
.footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.footer-column h4 { color: white; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links.cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
}
.footer-links a { color: #e2e8f0; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.social-icons-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.social-icons-footer a { font-size: 1.3rem; color: white; transition: opacity 0.2s; }
.social-icons-footer a:hover { opacity: 0.8; }
.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d5a7c;
    margin-top: 2rem;
    font-size: 0.8rem;
}

/* ---- WhatsApp flutuante ---- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    text-decoration: none;
    transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ---- Mensagens de alerta ---- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.alert-success { background: var(--green-light); color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: var(--red-light);   color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: var(--blue-light);  color: #1e40af; border: 1px solid #bfdbfe; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 768px) {
    .mobile-toggle  { display: block; }
    .main-nav       { display: none; width: 100%; }
    .main-nav.open  { display: block; }
    .main-nav ul    { flex-direction: column; align-items: center; gap: 1rem; padding: 1rem 0; }
    .footer-links.cols-2 { grid-template-columns: 1fr; }
    .page-hero h1   { font-size: 1.8rem; }
    .section-title  { font-size: 1.5rem; }
}
@media (min-width: 769px) { .main-nav { display: block !important; } }

/* ---- Prefers Reduced Motion (acessibilidade) ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto !important; }
}
