/*
Theme Name: Amida Brasil 2027
Author: FNM Studio
Author URI: https://fnmstudio.com.br/
Description: Portal comercial de máquinas, tecnologia e soluções industriais para o setor da confecção.
Version: 0.3.4
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: amida-brasil-2027
*/

@font-face {
    font-family: Manrope;
    src: url(assets/manrope.woff2) format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url(assets/inter.woff2) format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --red: #b01d21;
    --burgundy: #7d121b;
    --ink: #17191d;
    --muted: #52565e;
    --surface: #f3f4f6;
    --line: #dedfe2;
    --white: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font: 16px/1.55 Inter, system-ui, sans-serif; }
h1, h2, h3 { margin: 0; font-family: Manrope, system-ui, sans-serif; line-height: 1.11; letter-spacing: -.045em; }
h1 { font-size: clamp(2.65rem, 5.4vw, 5.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.85rem); }
p { margin-block: .85em 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #166193; outline-offset: 4px; }
.wrap { width: min(100% - 64px, 1280px); margin-inline: auto; }
.section-pad { padding-block: clamp(3rem, 6vw, 6rem); }
.skip-link { position: fixed; top: 0; left: 1rem; z-index: 30; background: white; padding: .5rem; transform: translateY(-110%); }
.skip-link:focus { transform: translateY(0); }
.topbar { background: var(--ink); color: #fff; font-size: .81rem; }
.topbar-inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.topbar a { text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 85px; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: block; width: 132px; }
.header-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.8rem, 2.85vw, 2.5rem); }
.header-inner nav a { text-decoration: none; font-size: .91rem; font-weight: 600; }
.header-inner nav a:hover, .section-heading a:hover { color: var(--red); }
.button { min-height: 49px; display: inline-flex; justify-content: center; align-items: center; gap: .72rem; padding: .65rem 1.1rem; background: var(--red); color: white; border: 1px solid var(--red); border-radius: 5px; text-decoration: none; font-weight: 700; font-size: .88rem; cursor: pointer; }

.arrow { position: relative; display: inline-block; width: .72em; height: .72em; margin-inline-start: .15em; flex: 0 0 auto; }
.arrow::before { position: absolute; inset: 0 0 auto auto; width: .5em; height: .5em; border-top: 1.5px solid; border-right: 1.5px solid; content: ""; }
.arrow::after { position: absolute; top: 50%; right: -.09em; width: .87em; border-top: 1.5px solid; transform: rotate(-45deg); content: ""; }
.arrow-back { transform: rotate(-135deg); margin-inline-end: .2em; }

.button:hover { background: var(--burgundy); border-color: var(--burgundy); }
.button-outline { background: transparent; color: var(--ink); border-color: #a2a4a6; }
.button-outline:hover { background: var(--ink); color: white; border-color: var(--ink); }
.hero { padding-block: clamp(3rem, 6vw, 6rem); background: var(--surface); }
.hero-grid { display: grid; grid-template-columns: .94fr 1fr; align-items: center; gap: min(6vw, 5.2rem); }
.hero-copy p { max-width: 32rem; margin-block: 1.5rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-photo { overflow: hidden; background: white; border-radius: 9px; box-shadow: 0 18px 50px #1e263418; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 1.42; object-fit: contain; }
.hero-photo figcaption { border-top: 1px solid var(--line); padding: .75rem 1.2rem; font-size: .83rem; font-weight: 600; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: .85rem; margin-bottom: 1.4rem; }
.section-heading a, .back-link { color: var(--burgundy); text-decoration: none; font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.category-grid a { display: flex; justify-content: space-between; align-items: center; gap: .8rem; min-height: 95px; height: 100%; padding: .9rem 1rem; text-decoration: none; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; transition: border-color .15s, color .15s; }
.category-grid a:hover { color: var(--red); border-color: var(--red); }
.about { scroll-margin-top: 90px; background: var(--ink); color: white; padding-block: clamp(3rem, 6vw, 6rem); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(1.6rem, 7vw, 6rem); }
.about-grid img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; border-radius: 8px; }
.about-grid p { color: #dfe0e4; }
.site-footer { background: #101115; color: #f0f0f3; padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.25fr; gap: 1.4rem; padding-bottom: 2rem; }
.footer-grid h2 { margin: 0 0 .65rem; font-size: 1.08rem; letter-spacing: 0; }
.footer-grid p, .footer-grid address { margin-block: .4rem; font-size: .9rem; color: #cacbd0; font-style: normal; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid #585960; padding-top: 1.1rem; font-size: .78rem; color: #dfe0e4; gap: .75rem; }
.catalog-head { padding-block: 2.9rem; background: var(--surface); }
.catalog-head h1 { margin-top: .7rem; font-size: clamp(2.45rem, 5.1vw, 4.4rem); }
.catalog-head p { margin-bottom: 0; color: var(--muted); }
.filter-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .6fr auto; gap: 1rem; align-items: end; }
.filter-grid label { display: grid; gap: .28rem; min-width: 0; font-size: .86rem; font-weight: 700; }
.filter-grid input, .filter-grid select { width: 100%; min-width: 0; max-width: 100%; height: 49px; padding: .5rem; color: var(--ink); border: 1px solid #9a9ba0; border-radius: 5px; background: white; }
.results { margin-block: 1.5rem 1rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.product-card { display: flex; border: 1px solid var(--line); overflow: hidden; border-radius: 8px; }
.product-card:hover { border-color: var(--red); }
.product-card > a { display: flex; width: 100%; flex-direction: column; text-decoration: none; }
.product-card-image { display: block; width: 100%; background: white; aspect-ratio: 1.5; object-fit: contain; padding: 1rem; }
.product-card-body { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; padding: 1rem; border-top: 1px solid var(--line); }
.card-category { margin: 0 0 .4rem; color: var(--muted); font-size: .8rem; }
.product-card h2 { margin-bottom: 1rem; font-size: 1.28rem; line-height: 1.25; letter-spacing: -.025em; }
.eyebrow { margin: 0 0 .4rem; text-transform: uppercase; color: var(--burgundy); font-weight: 700; font-size: .77rem; letter-spacing: .09em; }
.product-card-tail { margin-top: auto; display: flex; flex-wrap: wrap; gap: .45rem .6rem; justify-content: space-between; font-size: .8rem; }
.product-card-tail span:last-child { color: var(--burgundy); font-weight: 700; }
.pagination { margin-top: 1.9rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.page-numbers.current { background: var(--ink); color: white; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 5vw, 4rem); margin-top: 1.5rem; align-items: start; }
.detail-photo { border: 1px solid var(--line); border-radius: 8px; }
.detail-photo img { display: block; width: 100%; object-fit: contain; }
.detail-copy h1 { font-size: clamp(2rem, 4vw, 3.7rem); }
.model { color: var(--muted); font-size: .95rem; }
.availability { font-weight: 700; }
.detail-features { margin-top: 3rem; }
.detail-features ul { columns: 2; padding-inline-start: 1.2rem; }
.detail-features li { break-inside: avoid; margin-bottom: .4rem; }

@media (max-width: 955px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .filter-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .wrap { width: calc(100% - 34px); }
    .header-inner { min-height: 72px; flex-wrap: wrap; padding-block: .55rem; gap: .6rem; }
    .header-inner nav { order: 3; width: 100%; gap: .6rem 1.15rem; border-top: 1px solid var(--line); padding-top: .44rem; }
    .header-inner nav a { font-size: .8rem; }
    .brand { width: 105px; }
    .head-action { min-height: 40px; padding: .4rem .55rem; font-size: .75rem; }
    .hero-grid, .about-grid, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 1.5rem; }
    .category-grid, .filter-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-features ul { columns: 1; }
    .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 410px) {
    .filter-grid, .product-grid { grid-template-columns: 1fr; }
    .actions > a { width: 100%; }
}
@media print {
    .topbar, .site-header, .site-footer, .button, .back-link { display: none !important; }
    .detail-grid { display: block; }
    .detail-photo { width: 48%; }
}
