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

:root {
    --bg: #ffffff;
    --bg-2: #fafaf8;
    --bg-3: #fff7ed;
    --bg-card: #ffffff;
    --border: #e7e5e4;
    --border-light: #d6d3d1;
    --text: #1c1917;
    --text-muted: #78716c;
    --text-dim: #a8a29e;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #fff7ed;
    --orange-mid: #fed7aa;
    --green: #16a34a;
    --amber: #d97706;
    --red: #dc2626;
    --blue: #2563eb;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.site-logo {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.site-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
    padding: 7px 14px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--orange); background: var(--orange-light); }
.site-nav a.active { color: var(--orange); font-weight: 600; }

.site-header-contacts {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.site-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}
.site-contact-item i {
    color: var(--orange);
    font-size: 13px;
    flex-shrink: 0;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}
.contact-info a {
    color: var(--text-muted);
    transition: color 0.15s;
    font-weight: 500;
    font-size: 13px;
}
.contact-info a:hover { color: var(--orange); }
.contact-name {
    color: var(--text-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

/* ── Container ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 580px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 130px;
    padding-bottom: 80px;
}
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.hero-dot.active { background: var(--orange); transform: scale(1.3); }
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(249,115,22,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 18px;
    max-width: 640px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--orange); }
.hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Stats bar (Contactos) ────────────────────────────────────────────── */
.stats-bar {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    margin-top: 0;
}
.stats-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-around;
    gap: 60px;
}
.stat-item {
    flex: 0 1 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.stat-item:last-child { border-right: none; }
.stat-label {
    font-size: 10px;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}
.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--orange);
    text-decoration: none;
    transition: color 0.15s;
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.02em;
}
.stat-value:hover { color: var(--orange-dark); }
.stat-email {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.stat-email:hover { color: var(--orange); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-title { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.section-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; }

/* ── About Section ────────────────────────────────────────── */
.about-section {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
}
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.category-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}
.category-box:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-md);
}
.category-box i {
    font-size: 28px;
    color: var(--orange);
}
.category-box span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Página Contactos ────────────────────────────────────── */
.contacto-section { padding: 64px 0; }
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.contacto-left { display: flex; flex-direction: column; gap: 24px; }
.contacto-right { display: flex; flex-direction: column; gap: 24px; }
.contacto-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}
.contacto-card-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--orange-light);
}
.contacto-items { display: flex; flex-direction: column; gap: 18px; }
.contacto-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contacto-row i {
    font-size: 16px;
    color: var(--orange);
    margin-top: 2px;
    flex-shrink: 0;
}
.contacto-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    font-weight: 600;
}
.contacto-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
    font-family: 'DM Mono', monospace;
}
.contacto-value:hover { color: var(--orange); }

.contacto-hours { display: flex; flex-direction: column; gap: 12px; }
.hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.hour-row:last-child { border-bottom: none; }
.hour-row.closed { opacity: 0.6; }
.hour-day {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}
.hour-time {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
}

.contacto-form { display: flex; flex-direction: column; gap: 16px; }
.btn-full { width: 100%; justify-content: center; }


/* ── Category tabs ────────────────────────────────────────── */
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-tab {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    background: var(--bg-card);
}
.cat-tab:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.cat-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 600; }

/* ── Stock grid ───────────────────────────────────────────── */
.stock-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filtros-sidebar {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 88px;
    box-shadow: var(--shadow);
}
.filtros-sidebar h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* ── Viatura card (public) ────────────────────────────────── */
.viatura-pub-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
}
.viatura-pub-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.viatura-pub-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--bg-3); }
.viatura-pub-img-placeholder {
    width: 100%; aspect-ratio: 16/9; background: var(--bg-3);
    display: flex; align-items: center; justify-content: center;
    color: var(--orange-mid); font-size: 48px;
}
.viatura-pub-body { padding: 16px 18px 12px; }
.viatura-pub-cat {
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--orange); margin-bottom: 4px;
}
.viatura-pub-titulo { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.viatura-pub-specs { display: flex; flex-wrap: wrap; gap: 5px; }
.spec-pill {
    font-size: 11px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: 20px;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
    font-weight: 500;
}
.viatura-pub-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-2);
}
.viatura-pub-price { font-size: 20px; font-weight: 800; color: var(--orange); font-family: 'DM Mono', monospace; }
.viatura-pub-price.sem-preco { font-size: 13px; color: var(--text-muted); font-family: inherit; font-weight: 400; }

.estado-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 20px; }

/* ── Detalhe viatura ──────────────────────────────────────── */
.detalhe-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.detalhe-ficha {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.ficha-title {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--orange);
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--orange-light);
}
.ficha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ficha-item label { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.ficha-item span { font-size: 14px; color: var(--text); font-family: 'DM Mono', monospace; font-weight: 500; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 22px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.15s; border: none; font-family: inherit; text-decoration: none;
}
.btn-gold, .btn-orange { background: var(--orange); color: #fff; box-shadow: 0 2px 8px rgba(249,115,22,0.3); }
.btn-gold:hover, .btn-orange:hover { background: var(--orange-dark); color: #fff; box-shadow: 0 4px 12px rgba(249,115,22,0.4); }
.btn-outline {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.form-control {
    width: 100%; background: var(--bg-card);
    border: 1.5px solid var(--border); color: var(--text);
    padding: 10px 14px; border-radius: var(--radius);
    font-size: 14px; font-family: inherit; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,0.12); }
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a8a29e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1.5px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1.5px solid #fecaca; }

/* ── Paginação ────────────────────────────────────────────── */
.paginacao { display: flex; gap: 4px; justify-content: center; margin-top: 40px; }
.paginacao a, .paginacao span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; border-radius: var(--radius);
    font-size: 14px; font-weight: 500; text-decoration: none;
}
.paginacao a { border: 1.5px solid var(--border); color: var(--text-muted); background: var(--bg-card); transition: all 0.15s; }
.paginacao a:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.paginacao span { background: var(--orange); color: #fff; border: none; font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: #1c1917;
    color: #e7e5e4;
    padding: 56px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo-img { height: 32px; width: auto; object-fit: contain; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 13px; color: #a8a29e; line-height: 1.7; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #78716c; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; color: #a8a29e; margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #292524; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: #78716c; }

/* ── Responsive ───────────────────────────────────────────── */

/* ──────── Tablet (960px and below) ────────── */
@media (max-width: 960px) {
    .container { padding: 0 18px; }
    .site-header-inner { padding: 0 18px; gap: 24px; height: 64px; }
    .site-nav a { padding: 6px 12px; font-size: 13px; }
    .site-header-contacts { gap: 16px; }
    .site-contact-item { font-size: 12px; }

    .stock-layout { grid-template-columns: 1fr; gap: 24px; }
    .filtros-sidebar { position: static; top: auto; box-shadow: none; border: 1.5px solid var(--border); }

    .stock-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .detalhe-grid { grid-template-columns: 1fr; }
    .detalhe-ficha { margin-bottom: 16px; padding: 18px; }

    .stats-bar-inner { flex-direction: column; gap: 0; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 18px; }
    .stat-item:last-child { border-bottom: none; }

    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .categories-grid { grid-template-columns: 1fr 1fr; }

    .stats-bar { padding: 32px 0; }
    .stats-bar-inner { gap: 40px; }
    .stat-value { font-size: 18px; }

    .section { padding: 48px 0; }
    .about-section { padding: 48px 0; }
    .hero { height: 380px; }
    .hero-content { padding-top: 60px; padding-bottom: 60px; }
    .hero h1 { font-size: clamp(28px, 4.5vw, 48px); margin-bottom: 16px; }
    .hero p { font-size: 15px; margin-bottom: 24px; }
}

/* ──────── Small Tablet / Large Phone (768px and below) ────────── */
@media (max-width: 768px) {
    .site-header-inner { gap: 16px; }
    .site-header-contacts { display: flex; gap: 12px; }
    .site-contact-item { font-size: 11px; }

    .hero { height: 340px; }
    .hero-content { padding-top: 50px; padding-bottom: 50px; }
    .hero-tag { font-size: 11px; padding: 4px 12px; margin-bottom: 16px; }
    .hero h1 { font-size: clamp(24px, 4vw, 40px); margin-bottom: 12px; }
    .hero p { font-size: 14px; margin-bottom: 20px; }
    .hero-actions { gap: 8px; }

    .section-title { font-size: 22px; }
    .section-sub { font-size: 14px; }

    .cat-tabs { gap: 4px; margin-bottom: 20px; }
    .cat-tab { padding: 6px 14px; font-size: 12px; }

    .stock-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
    .viatura-pub-card { border-radius: 8px; }
    .viatura-pub-body { padding: 12px 14px 8px; }
    .viatura-pub-titulo { font-size: 14px; margin-bottom: 8px; }
    .viatura-pub-specs { gap: 4px; }
    .spec-pill { font-size: 10px; padding: 2px 7px; }
    .viatura-pub-footer { padding: 8px 14px; }
    .viatura-pub-price { font-size: 18px; }

    .about-section { padding: 48px 0; }
    .about-grid { gap: 32px; }
    .about-text { font-size: 14px; }
    .category-box { padding: 16px; gap: 6px; }
    .category-box i { font-size: 24px; }
    .category-box span { font-size: 12px; }

    .contacto-section { padding: 48px 0; }
    .contacto-grid { grid-template-columns: 1fr; gap: 32px; }
    .contacto-card { padding: 20px; }
    .contacto-card-title { font-size: 11px; margin-bottom: 16px; }
    .contacto-items { gap: 14px; }
    .contacto-row { gap: 10px; }
    .contacto-label { font-size: 10px; }
    .contacto-value { font-size: 14px; }

    .stats-bar { padding: 24px 0; }
    .stats-bar-inner { gap: 24px; }
    .stat-label { font-size: 9px; }
    .stat-value { font-size: 16px; }
    .stat-email { font-size: 10px; }

    .btn { padding: 9px 18px; font-size: 13px; gap: 5px; }
    .btn-sm { padding: 6px 12px; font-size: 12px; }

    .ficha-grid { grid-template-columns: 1fr; gap: 10px; }
    .ficha-item label { font-size: 10px; }
    .ficha-item span { font-size: 13px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-col h4 { margin-bottom: 12px; }
    .footer-col a, .footer-col p { margin-bottom: 6px; font-size: 12px; }

    .form-control { padding: 9px 12px; font-size: 13px; }
    .form-label { font-size: 12px; margin-bottom: 5px; }
}

/* ──────── Mobile (480px and below) ────────── */
@media (max-width: 480px) {
    html { font-size: 14px; }
    body { font-size: 14px; line-height: 1.5; }

    .container { padding: 0 14px; }

    .site-header {
        position: sticky;
        z-index: 100;
    }
    .site-header-inner {
        padding: 0 14px;
        height: 56px;
        gap: 12px;
    }
    .site-logo-img { height: 28px; }
    .site-nav a { padding: 5px 10px; font-size: 12px; }
    .site-header-contacts { display: none; }

    .hero {
        height: auto;
        min-height: 300px;
        border-bottom: 1px solid var(--border);
    }
    .hero-content {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .hero-overlay {
        background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
    }
    .hero-tag {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 12px;
    }
    .hero h1 {
        font-size: clamp(20px, 5vw, 32px);
        margin-bottom: 8px;
        max-width: 100%;
    }
    .hero p {
        font-size: 13px;
        margin-bottom: 16px;
        max-width: 100%;
    }
    .hero-actions {
        flex-direction: column;
        gap: 8px;
    }
    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }
    .btn-sm {
        width: auto;
        padding: 6px 12px;
    }

    .hero-dots {
        bottom: 16px;
        gap: 6px;
    }
    .hero-dot {
        width: 6px;
        height: 6px;
    }

    .stats-bar {
        padding: 20px 0;
        margin-top: 32px;
    }
    .stats-bar-inner {
        padding: 0 14px;
    }
    .stat-item {
        padding: 16px 12px;
    }
    .stat-value {
        font-size: 22px;
    }
    .stat-label {
        font-size: 11px;
    }

    .section {
        padding: 36px 0;
    }
    .section-title {
        font-size: 20px;
        margin-bottom: 4px;
    }
    .section-sub {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .cat-tabs {
        gap: 6px;
        margin-bottom: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    .cat-tab {
        padding: 5px 12px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .stock-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    .viatura-pub-card {
        border-radius: 8px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    }
    .viatura-pub-img,
    .viatura-pub-img-placeholder {
        aspect-ratio: 1/1;
    }
    .viatura-pub-body {
        padding: 8px 10px 4px;
    }
    .viatura-pub-cat {
        font-size: 9px;
        margin-bottom: 2px;
    }
    .viatura-pub-titulo {
        font-size: 12px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    .viatura-pub-specs {
        gap: 3px;
    }
    .spec-pill {
        font-size: 9px;
        padding: 2px 6px;
    }
    .viatura-pub-footer {
        padding: 6px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .viatura-pub-price {
        font-size: 16px;
    }
    .estado-badge {
        font-size: 9px;
        padding: 2px 8px;
    }

    .filtros-sidebar {
        margin-bottom: 24px;
        padding: 14px;
    }
    .filtros-sidebar h3 {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .detalhe-grid {
        gap: 16px;
    }
    .detalhe-ficha {
        padding: 14px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    .ficha-title {
        font-size: 10px;
        margin-bottom: 12px;
    }
    .ficha-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .ficha-item label {
        font-size: 9px;
    }
    .ficha-item span {
        font-size: 12px;
    }

    .form-group {
        margin-bottom: 14px;
    }
    .form-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .form-control {
        padding: 8px 11px;
        font-size: 13px;
        border-radius: 6px;
    }
    textarea.form-control {
        min-height: 80px;
    }

    .paginacao {
        gap: 3px;
        margin-top: 28px;
    }
    .paginacao a, .paginacao span {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .about-section {
        padding: 36px 0;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .about-content {
        gap: 12px;
    }
    .about-text {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .category-box {
        padding: 12px;
        gap: 4px;
    }
    .category-box i {
        font-size: 20px;
    }
    .category-box span {
        font-size: 11px;
    }

    .stats-bar {
        padding: 20px 0;
    }
    .stats-bar-inner {
        padding: 0 14px;
        flex-direction: column;
        gap: 0;
        justify-content: center;
    }
    .stat-item {
        padding: 14px 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
        gap: 6px;
    }
    .stat-item:last-child {
        border-bottom: none;
    }
    .stat-label {
        font-size: 8px;
        letter-spacing: 0.06em;
    }
    .stat-value {
        font-size: 16px;
    }
    .stat-email {
        font-size: 10px;
    }

    .contacto-section {
        padding: 32px 0;
    }
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contacto-card {
        padding: 16px;
        border-radius: 8px;
    }
    .contacto-card-title {
        font-size: 10px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    .contacto-items {
        gap: 12px;
    }
    .contacto-row {
        gap: 8px;
    }
    .contacto-row i {
        font-size: 14px;
    }
    .contacto-label {
        font-size: 9px;
    }
    .contacto-value {
        font-size: 13px;
    }
    .hour-row {
        padding: 10px 0;
    }
    .hour-day {
        font-size: 12px;
    }
    .hour-time {
        font-size: 11px;
    }
    .form-group {
        margin-bottom: 12px;
    }
    .form-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    .form-control {
        padding: 8px 12px;
        font-size: 13px;
    }
    textarea.form-control {
        min-height: 80px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 28px;
    }
    .footer-logo-img {
        height: 24px;
        margin-bottom: 10px;
    }
    .footer-brand p {
        font-size: 12px;
    }
    .footer-col h4 {
        font-size: 10px;
        margin-bottom: 10px;
    }
    .footer-col a, .footer-col p {
        font-size: 12px;
        margin-bottom: 5px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .footer-bottom p {
        font-size: 11px;
    }

    .site-footer {
        padding: 40px 0 16px;
    }

    .alert {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 6px;
    }
}

/* ──────── Extra Small Phone (360px and below) ────────── */
@media (max-width: 360px) {
    .site-header-inner {
        padding: 0 12px;
    }
    .container {
        padding: 0 12px;
    }

    .hero {
        height: 260px;
    }
    .hero-content {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .stock-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .btn {
        padding: 9px 14px;
        font-size: 12px;
    }
}
