:root {
    --primary: #274496;
    --primary-600: #1d3575;
    --primary-700: #172b60;
    --primary-50: #eef2ff;

    --secondary: #fbd037;
    --secondary-600: #e6b82e;

    --accent: #fbd037;
    --light: #f8f9fa;
    --dark: #231f20;
    --gray: #6c757d;

    --gray-50: #f9fafb;
    --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;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #dc2626;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);

    --transition: all 0.22s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top, rgba(39, 68, 150, 0.04), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #f5f7fb 100%);
    color: var(--gray-800);
    font-family: 'Sora', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
    padding: 14px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.logo img {
    height: 140px;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.nav-links a.active {
    background: var(--primary-50);
    color: var(--primary);
}

.header-btns {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-color1,
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(39, 68, 150, 0.22);
}

.btn-color1:hover,
.btn-primary:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(39, 68, 150, 0.28);
}

.btn-color2,
.btn-secondary {
    background: var(--secondary);
    color: #111827;
    box-shadow: 0 6px 20px rgba(251, 208, 55, 0.24);
}

.btn-color2:hover,
.btn-secondary:hover {
    background: var(--secondary-600);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(251, 208, 55, 0.3);
}

/* Page Header */
.page-header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 31, 66, 0.86), rgba(39, 68, 150, 0.78)),
        url('https://images.unsplash.com/photo-1601579530964-491a0afd5b0a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 110px 0 100px;
    color: #fff;
    text-align: center;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(251, 208, 55, 0.18), transparent 24%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.10), transparent 26%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.page-header p {
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
}

/* Breadcrumb */
.breadcrumb {
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(10px);
}

.breadcrumb-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--gray-500);
}

/* Main */
.main-content {
    padding: 36px 0 70px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-title {
    color: var(--gray-900);
    font-size: clamp(1.6rem, 2.3vw, 2.2rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-all:hover {
    gap: 12px;
}

/* Content wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.8);
    padding: 24px;
    height: fit-content;
}

.sidebar-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.12rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 800;
}

.sidebar-group {
    margin-bottom: 24px;
}

.sidebar-group:last-child {
    margin-bottom: 0;
}

.sidebar-group h4 {
    margin-bottom: 12px;
    color: var(--gray-900);
    font-size: 0.97rem;
    font-weight: 700;
}

.sidebar-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-700);
    font-size: 0.93rem;
}

.sidebar-checkbox input {
    accent-color: var(--primary);
}

/* Filter Section */
.filter-section {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(229, 231, 235, 0.9);
    margin-bottom: 26px;
}

.filter-tabs {
    display: flex;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--gray-200);
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
    color: var(--gray-500);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-size: 0.94rem;
}

.filter-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.filter-group {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: var(--gray-700);
    font-size: 0.88rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 14px;
    background: #fff;
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(39, 68, 150, 0.10);
}

.filter-btn {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary) 0%, #3557b7 55%, var(--secondary) 130%);
    color: #fff;
    border: none;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 4px;
    box-shadow: 0 14px 30px rgba(39, 68, 150, 0.22);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(39, 68, 150, 0.28);
}

.filter-btn:active {
    transform: scale(0.98);
}

/* Não encontrou sua máquina */
.not-found-bar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 18px;
    border: 2px dashed #d9e3f5;
    padding: 20px 22px;
    margin: 18px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.not-found-bar h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: #1c274c;
    font-weight: 800;
}

.not-found-bar p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.24);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32);
}

/* Machines Grid */
.machines-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.machine-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 231, 235, 0.85);
    transition: var(--transition);
}

.machine-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #dbe4f3;
}

.machine-img {
    height: 220px;
    background: linear-gradient(135deg, #dbe4f3, #edf2fb);
    position: relative;
    overflow: hidden;
}

.machine-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.machine-card:hover .machine-img img {
    transform: scale(1.06);
}

.machine-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(17, 24, 39, 0.84);
    color: #fff;
    padding: 6px 11px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.machine-price {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--secondary);
    color: #111827;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(251, 208, 55, 0.25);
}

.machine-info {
    padding: 20px 20px 18px;
}

.machine-info h3 {
    margin-bottom: 10px;
    color: var(--gray-900);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.machine-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 14px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.machine-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.machine-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.machine-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px 16px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(39, 68, 150, 0.2);
}

.contact-btn:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(39, 68, 150, 0.28);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 42px;
    gap: 10px;
    flex-wrap: wrap;
}

.page-item {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    color: var(--gray-700);
    font-weight: 700;
    transition: var(--transition);
}

.page-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(39, 68, 150, 0.24);
}

.page-item:not(.active):hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: 70px;
    background: linear-gradient(180deg, #111827 0%, #0b1221 100%);
    color: #fff;
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 34px;
}

.footer-column h3 {
    color: var(--secondary);
    margin-bottom: 18px;
    font-size: 1.05rem;
    font-weight: 800;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-size: 0.94rem;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-column ul li a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: var(--secondary);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.social-icon {
    text-decoration: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: #1e2d40;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(251, 208, 55, 0.24);
}

.footer-bottom {
    border-top: 1px solid #243244;
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(39, 68, 150, 0.24);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1100px) {
    .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .machines-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 0;
    }

    .header-container {
        flex-direction: column;
        gap: 14px;
    }

    .logo img {
        width: 190px;
    }

    .nav-links {
        justify-content: center;
    }

    .header-btns {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .page-header {
        padding: 84px 0 78px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .filter-section {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .machines-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .machine-contact {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-btn,
    .btn-whatsapp,
    .btn,
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(1200px, 94vw);
    }

    .page-header {
        padding: 74px 0 68px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 0.98rem;
    }

    .main-content {
        padding: 28px 0 56px;
    }

    .content-header {
        margin-bottom: 20px;
    }

    .filter-tab {
        width: 100%;
        text-align: center;
    }

    .machine-info {
        padding: 18px 16px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        gap: 8px;
    }

    .page-item {
        min-width: 40px;
        height: 40px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}