/* ==========================================================
   Ameripel — Proteção para Pisos
   Paleta: amarelo #FFD500 · preto #171717 · branco · cinzas
   ========================================================== */
:root {
  --yellow: #FFD500;
  --yellow-dark: #E6BF00;
  --black: #171717;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-600: #555555;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { font-family: var(--font-body); color: var(--gray-600); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, .brand-word { font-family: var(--font-head); color: var(--black); font-weight: 800; letter-spacing: -.01em; }
img { max-width: 100%; height: auto; }
.icon { flex-shrink: 0; vertical-align: -.2em; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--yellow); padding: 8px 14px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { left: 8px; }

/* ---------- Botões ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-brand { background: var(--yellow); color: var(--black); border: 2px solid var(--yellow); }
.btn-brand:hover, .btn-brand:focus { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--black); }
.btn-icon { padding: .35rem .55rem; }
.btn-dark { background: var(--black); border-color: var(--black); color: var(--yellow); }
.btn-dark:hover { background: #000; border-color: #000; color: var(--yellow); }
.btn-outline-dark { border-width: 2px; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1rem; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

/* ---------- Cabeçalho ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--gray-200); z-index: 1030; }
.site-header .navbar { min-height: var(--header-h); padding-block: .4rem; }
.brand { display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; margin-right: 1rem; }
.brand-word { font-size: 1.65rem; color: var(--black); position: relative; display: inline-block; }
.brand-word::after { content: ""; display: block; height: 4px; background: var(--yellow); border-radius: 2px; margin-top: 2px; }
.brand-tag { font-size: .68rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-top: 3px; }
.navbar .nav-link { color: var(--black); font-weight: 600; padding: .6rem .9rem; }
.navbar .nav-link:hover { color: #000; box-shadow: inset 0 -3px 0 var(--yellow); }
.navbar-toggler { border: 2px solid var(--black); padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  #menuPrincipal { padding: .5rem 0 1rem; border-top: 1px solid var(--gray-200); margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--yellow); overflow: hidden; padding: 2.5rem 0 3rem; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 42%; background: var(--black); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 42%; background: var(--white); opacity: .9; clip-path: polygon(28.2% 0, 29.4% 0, 0 100%, -1.2% 100%); }
.eyebrow { display: inline-block; background: var(--black); color: var(--yellow); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.eyebrow-dark { background: var(--black); color: var(--yellow); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); line-height: 1.08; margin-bottom: 1rem; }
.hero .lead { color: var(--black); font-weight: 600; font-size: 1.15rem; }
.hero-sub { color: #2b2b2b; }
.hero-points { display: grid; gap: .55rem; margin: 1.4rem 0 1.8rem; color: var(--black); font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: .6rem; }
.hero-points .icon { background: var(--black); color: var(--yellow); border-radius: 50%; padding: 4px; box-sizing: content-box; width: 20px; height: 20px; }
.btn-hero { font-size: .95rem; }
.btn-outline-dark.btn-hero { color: var(--black); border-color: var(--black); }
.btn-outline-dark.btn-hero:hover { background: var(--black); color: var(--yellow); }
.hero-media { max-width: 440px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 14px 14px 0 var(--black), 0 20px 50px rgba(0, 0, 0, .25); border: 4px solid var(--white); transform: rotate(1.5deg); background: var(--black); }
.hero-media img { display: block; width: 100%; height: auto; }
@media (max-width: 991.98px) {
  .hero { padding: 2rem 0 2.8rem; }
  .hero::before, .hero::after { display: none; }
  .hero-media { transform: none; max-width: 360px; box-shadow: 8px 8px 0 var(--black); }
}

/* ---------- Seções ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--gray-100); }
.section-head { max-width: 780px; margin: 0 auto 2.5rem; }
.section-head h2, .section h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: .9rem; }
.section-head h2::after, .section h2.has-bar::after { content: ""; display: block; width: 64px; height: 5px; background: var(--yellow); border-radius: 3px; margin: .7rem auto 0; }
@media (max-width: 575.98px) { .section { padding: 3rem 0; } }

/* ---------- Cards de produto ---------- */
.product-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
.product-card.is-selected { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow), var(--shadow); }
.product-img { position: relative; background: var(--gray-100); aspect-ratio: 718 / 898; }
.product-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-img-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--gray-600); }
.in-order-badge { position: absolute; top: 10px; left: 10px; background: var(--black); color: var(--yellow); font-size: .78rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; }
.product-body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.product-desc { font-size: .92rem; margin-bottom: .6rem; }
.product-features { font-size: .88rem; margin-bottom: .6rem; }
.product-features li { display: flex; gap: .4rem; align-items: flex-start; }
.product-features .icon { color: #1a8a3a; margin-top: .2rem; }
.product-specs { font-size: .85rem; margin-bottom: .6rem; }
.product-specs div { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px dashed var(--gray-200); padding: .2rem 0; }
.product-specs dt { font-weight: 600; color: var(--black); }
.product-specs dd { margin: 0; }
.product-price { margin-top: auto; font-weight: 800; color: var(--black); font-size: 1.05rem; margin-bottom: .75rem; padding-top: .5rem; }
.product-price small { font-weight: 500; color: var(--gray-600); }
.product-actions { display: grid; gap: .6rem; }
.qty { display: flex; align-items: stretch; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.qty-btn { width: 46px; border: 0; background: var(--gray-100); color: var(--black); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--yellow); }
.qty-input { flex: 1; min-width: 0; text-align: center; border: 0; font-weight: 700; font-size: 1rem; color: var(--black); -moz-appearance: textfield; padding: .55rem 0; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; background: #fffbe0; }
.add-btn { padding: .7rem .8rem; font-size: .92rem; }

/* ---------- Promo ---------- */
.promo { background: var(--yellow); padding: 3.5rem 0; position: relative; overflow: hidden; }
.promo h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: .9rem; }
.promo p { color: #2b2b2b; font-size: 1.05rem; max-width: 520px; }
.promo-media { max-width: 360px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 4px solid var(--black); box-shadow: 10px 10px 0 var(--black); }
.promo-media img { display: block; width: 100%; }
@media (max-width: 767.98px) { .promo { text-align: center; } .promo p { margin-inline: auto; } .promo-media { margin-top: .5rem; } }

/* ---------- Benefícios ---------- */
.benefit-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.25rem; height: 100%; border: 1px solid var(--gray-200); border-top: 5px solid var(--yellow); box-shadow: var(--shadow); }
.benefit-icon { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; background: var(--black); color: var(--yellow); border-radius: 14px; margin-bottom: 1rem; }
.benefit-card h3 { font-size: 1.1rem; }
.benefit-card p { margin: 0; font-size: .95rem; }

/* ---------- Sobre ---------- */
.about-media { max-width: 400px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow); }
.about-media img { display: block; width: 100%; }
#sobre h2 { margin-bottom: 1rem; }
#sobre h2::after { content: ""; display: block; width: 64px; height: 5px; background: var(--yellow); border-radius: 3px; margin-top: .7rem; }
.about-slogan { font-family: var(--font-head); font-weight: 800; color: var(--black); font-size: 1.15rem; border-left: 6px solid var(--yellow); padding-left: 1rem; margin-top: 1.5rem; }

/* ---------- Entrega ---------- */
.section-dark { background: var(--black); color: #d8d8d8; }
.section-dark h2 { color: var(--white); }
.section-dark h2::after { content: ""; display: block; width: 64px; height: 5px; background: var(--yellow); border-radius: 3px; margin-top: .7rem; }
.deliv-item { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.1rem; height: 100%; display: flex; flex-direction: column; gap: .6rem; color: var(--white); font-weight: 600; }
.deliv-item .icon { color: var(--yellow); }

/* ---------- Formulário ---------- */
#pedido { background: var(--gray-100); }
.form-panel { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--gray-200); height: 100%; }
.form-panel h3 { font-size: 1.15rem; margin-bottom: 1.1rem; padding-bottom: .7rem; border-bottom: 3px solid var(--yellow); }
.form-label { font-weight: 600; color: var(--black); }
.form-control, .form-select { border-radius: var(--radius-sm); border: 2px solid var(--gray-200); padding: .7rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--black); box-shadow: none; }
.form-control.is-invalid { border-color: #c62828; background-image: none; }
.field-error { color: #c62828; font-size: .85rem; margin-top: .3rem; font-weight: 500; }
.btn-submit { font-size: 1rem; padding: 1rem; }
.form-note { font-size: .8rem; margin: .9rem 0 0; color: var(--gray-600); }
.order-empty { text-align: center; padding: 2rem 1rem; border: 2px dashed var(--gray-200); border-radius: var(--radius); color: var(--gray-600); }
.order-list { display: grid; gap: .75rem; margin-bottom: 1rem; }
.order-item { display: flex; align-items: center; gap: .75rem; padding: .7rem; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--gray-100); }
.order-item-thumb { width: 48px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--white); flex-shrink: 0; }
.order-item-name { flex: 1; min-width: 0; font-weight: 700; color: var(--black); font-size: .95rem; line-height: 1.25; }
.order-item-name small { display: block; font-weight: 500; color: var(--gray-600); }
.order-item .qty { width: 118px; flex-shrink: 0; }
.order-item .qty-btn { width: 34px; }
.order-item .qty-input { padding: .35rem 0; font-size: .95rem; }
.remove-btn { border: 0; background: transparent; color: #c62828; padding: .4rem; border-radius: 8px; flex-shrink: 0; }
.remove-btn:hover { background: #fdecea; }
@media (max-width: 420px) {
  .order-item { flex-wrap: wrap; }
  .order-item-name { flex-basis: calc(100% - 100px); }
}

/* ---------- CTA final ---------- */
.final-cta { background: var(--yellow); padding: 4rem 0; }
.final-cta h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); margin-bottom: 1rem; }
.final-cta p { color: #2b2b2b; max-width: 640px; margin-inline: auto; }
.final-cta .btn { margin-top: .5rem; }
.final-quote { margin-top: 2rem; font-family: var(--font-head); font-weight: 700; color: var(--black) !important; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--black); color: #cfcfcf; padding: 3.5rem 0 1.2rem; }
.site-footer .brand-word-light { color: var(--white); }
.text-footer { color: #b5b5b5; }
.footer-title { font-family: var(--font-head); font-size: .95rem; color: var(--yellow); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #e8e8e8; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.2rem; padding-top: 1.1rem; font-size: .85rem; }
.footer-bottom a { color: #e8e8e8; }
.footer-bottom a:hover { color: var(--yellow); }
.site-footer .btn-outline-light:hover { color: var(--black); }

/* ---------- Barra de pedido + WhatsApp flutuante ---------- */
.order-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: var(--black); color: var(--white); padding: .7rem 0; box-shadow: 0 -6px 20px rgba(0, 0, 0, .25); }
.order-bar[hidden] { display: none; }
.order-bar-info { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.order-bar-info .icon { color: var(--yellow); }
.order-bar-info strong { color: var(--yellow); font-size: 1.1rem; }
.wa-fab { position: fixed; right: 16px; bottom: 16px; z-index: 1050; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .2s, bottom .2s; }
.wa-fab:hover { transform: scale(1.07); color: var(--white); }
body.has-order-bar .wa-fab { bottom: 84px; }
body.has-order-bar { padding-bottom: 64px; }

/* ---------- Página legal ---------- */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .5rem; }
.legal h2 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
.legal h2::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
