:root {
    --primary: #274496;
    /* Azul AcheMaq */
    --primary-700: #1d3575;
    --secondary: #fbd037;
    /* Amarelo AcheMaq */
    --light: #f8f9fa;
    --dark: #231f20;
    --gray:     ;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, .06);
    --shadow: 0 10px 24px rgba(0, 0, 0, .08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .12);

    --focus-ring: 0 0 0 3px rgba(39, 68, 150, .25);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.5;
}

/* Acessibilidade */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.logo img {
    width: 220px;
    height: auto;
    display: block;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    display: none;
    cursor: pointer;
}

.mobile-menu-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    letter-spacing: .2px;
    padding: 8px 6px;
    border-radius: 10px;
    transition: .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(39, 68, 150, .08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 12px;
    border: 0;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, background .2s ease, color .2s ease;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-lg {
    padding: 12px 22px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: #000;
}

.btn-secondary:hover {
    filter: brightness(.95);
    transform: translateY(-1px);
}

.btn-ghost {
    background: #fff;
    color: var(--dark);
    border: 1px solid #e5e7eb;
}

.btn-ghost:hover {
    background: #f3f4f6;
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .35)), url('../img/hero.png') center/cover no-repeat;
    min-height: 70dvh;
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 56px;
}

.hero-content {
    max-width: 720px;
    padding: 64px 0;
}

.hero h1 {
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.15;
    margin: 0 0 12px;
    font-weight: 800;
}

.hero p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    opacity: .95;
    margin: 0 0 22px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .25);
    transition: .2s ease;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateX(-50%) translateY(-2px);
}

/* Search Form */
.search-form {
    background: #fff;
    padding: 22px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    margin-top: -64px;
    position: relative;
    z-index: 10;
}

.search-form h2 {
    text-align: center;
    color: var(--primary);
    margin: 6px 0 14px;
    font-size: 1.6rem;
}

.form-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 18px;
}

.form-tab {
    padding: 10px 14px;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    font-weight: 700;
}

.form-tab.active {
    color: var(--primary);
    border-color: var(--primary);
}

.filter-section {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 12px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.filter-group label {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
    color: #374151;
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    outline: none;
    transition: border .15s ease, box-shadow .15s ease;
}

.filter-group select:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: flex-end;
}

.filter-btn {
    background: var(--primary);
    color: #fff;
    border: 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

/* Loading / Empty states */
.loading {
    text-align: center;
    padding: 16px;
    color: var(--primary);
    font-weight: 700;
}

.empty-state {
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 28px;
    text-align: center;
}

.empty-state i {
    font-size: 28px;
    color: #9ca3af;
}

.empty-state h4 {
    margin: 10px 0 6px;
    font-size: 1.2rem;
    color: #111827;
}

.empty-state p {
    color: #6b7280;
}

/* Grid de máquinas */
.machines-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-top: 22px;
}

.machine-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eef2f7;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.machine-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #e8edf5;
}

.machine-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.machine-img {
    height: 190px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.machine-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #111827;
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
}

.machine-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--secondary);
    color: #111827;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
}

.machine-info {
    padding: 14px 16px;
}

.machine-info h3 {
    margin: 0 0 6px;
    font-size: 1.04rem;
    color: #111827;
    line-height: 1.25;
}

.machine-details {
    display: flex;
    gap: 12px;
    color: #6b7280;
    font-size: .92rem;
}

.machine-details i {
    margin-right: 6px;
}

.machine-location {
    margin-top: 8px;
    color: #4b5563;
    font-size: .92rem;
}

/* Skeleton loader */
.skeleton-card {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    min-height: 270px;
    position: relative;
}

.skeleton-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(#d1d5db 200px, transparent 0) top / 100% 200px no-repeat,
        linear-gradient(#e5e7eb 16px, transparent 0) calc(16px) calc(210px) / 70% 16px no-repeat,
        linear-gradient(#e5e7eb 12px, transparent 0) calc(16px) calc(238px) / 40% 12px no-repeat;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Sections */
.services {
    padding: 80px 0 50px;
}

.section-title {
    text-align: center;
    margin-bottom: 38px;
    color: var(--primary);
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.featured {
    padding: 50px 0;
    background: #f4f6f8;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

.rental {   
    padding: 80px 0;
    background: linear-gradient(rgba(39, 68, 150, .92), rgba(39, 68, 150, .92)),
        url('https://images.unsplash.com/photo-1601579119051-d86c8c3de7c1?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    color: #fff;
}

.rental .section-title {
    color: #fff;
}

.rental-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.rental-card {
    background: rgba(255, 255, 255, .98);
    color: #111827;
    border-radius: 16px;
    padding: 26px;
}

.rental-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.rental-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.rental-features li {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

.rental-features li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: 800;
}

.how-it-works {
    padding: 80px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 34px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: #111827;
    font-weight: 900;
    font-size: 1.4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
}

.testimonials {
    padding: 80px 0;
    background: #f4f6f8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-style: italic;
    color: #111827;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #d1d5db;
}

.cta {
    padding: 80px 0;
    background: var(--primary);
    color: #fff;
    text-align: center;
}

.cta h2 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.cta p {
    margin: 0 auto 20px;
    max-width: 720px;
}

.cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: #111827;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 26px;
}

.footer-column h3 {
    color: var(--secondary);
    margin: 0 0 12px;
    font-size: 1.02rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin: 8px 0;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-column a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #374151;
    color: #fff;
    text-decoration: none;
    transition: .15s ease;
}

.social-icon:hover {
    background: var(--secondary);
    color: #111827;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 14px;
    text-align: center;
    color: #cbd5e1;
    font-size: .92rem;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}

.back-to-top.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Responsivo */
@media (max-width: 992px) {

    .services-grid,
    .rental-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 820px) {
    .mobile-menu-btn {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        right: 0;
        background: #fff;
        padding: 14px;
        border-radius: 14px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: flex-start;
        min-width: 220px;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .hero {
        min-height: 60dvh;
    }

    .machines-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .logo img {
        width: 180px;
    }
}