@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #142a3c;
  --muted: #455a6b;
  --red: #bb0033;
  --line: #d6dfe5;
  --soft: #edf3f6;
  --white: #fff;
  --wrap: 1240px;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
figure, h1, h2, h3, p { margin: 0; }
p { line-height: 1.58; }
section[id], article[id] { scroll-margin-top: 1.5rem; }
:focus-visible { outline: 3px solid #227ca6; outline-offset: 4px; }

.wrap { width: min(calc(100% - 96px), var(--wrap)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 1rem; left: 1rem; background: white; padding: .75rem 1rem; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.top { background: var(--ink); color: #e8f0f4; font-size: .79rem; }
.top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.top a { text-decoration: none; }
.top a:hover { text-decoration: underline; }
.header { border-bottom: 1px solid var(--line); background: white; }
.nav { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: auto; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
nav > a:not(.button) { text-decoration: none; font-size: .92rem; font-weight: 600; }
nav > a:not(.button):hover { color: var(--red); }
.menu { border: 1px solid var(--line); color: var(--ink); background: white; padding: .6rem .8rem; border-radius: 4px; font-weight: 700; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; min-height: 48px; padding: .68rem 1.12rem; border: 1px solid transparent; border-radius: 4px; font-weight: 700; font-size: .92rem; text-decoration: none; }
.button span { font-size: 1.08rem; line-height: 1; }
.button.primary { background: var(--red); color: white; }
.button.primary:hover { background: #920027; }
.whatsapp { background: #087c44; color: white; }
.whatsapp:hover { background: #056136; }
.whatsapp img { flex: 0 0 auto; }
.floating-actions {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.whatsapp-floating {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 3px 12px #142a3c40;
}
.back-to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: white;
  border: 1px solid #aabcc7;
  border-radius: 50%;
  box-shadow: 0 2px 8px #142a3c26;
  font-size: 1.25rem;
  text-decoration: none;
}
.back-to-top:hover { background: var(--soft); border-color: var(--muted); }
.button.outline { border-color: #aabcc7; }
.button.outline:hover { background: var(--soft); }
.button.light { background: white; color: var(--ink); }
.button.light:hover { background: #d9e9f0; }
.text-link { display: inline-flex; align-items: baseline; gap: .42rem; font-size: .93rem; font-weight: 700; text-decoration: none; }
.text-link span { color: var(--red); }
.text-link:hover { text-decoration: underline; text-underline-offset: .25rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: #3f5f73; font-size: .72rem; font-weight: 700; letter-spacing: .135em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 17px; height: 2px; background: var(--red); }

.hero { background: #eef3f5; border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 540px; display: grid; grid-template-columns: .88fr 1.12fr; align-items: stretch; }
.hero-copy { align-self: center; padding: 62px 38px 62px 0; }
h1, h2, h3 { font-weight: 700; }
h1 { margin: 1.2rem 0; font-size: clamp(2.55rem, 4.2vw, 4.5rem); line-height: .99; letter-spacing: -.058em; max-width: 13ch; }
.intro { max-width: 37ch; color: var(--muted); font-size: clamp(1rem, 1.38vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.8rem; }
.hero-image {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 48px 24px 24px;
  background:
    repeating-linear-gradient(90deg, #597b8e13 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, #597b8e13 0 1px, transparent 1px 64px),
    radial-gradient(ellipse at 54% 42%, #f1f5f6 1%, #d8e4ea 72%);
}
.hero-image img { width: 100%; min-width: 0; object-fit: contain; filter: drop-shadow(0 17px 20px #1a354328); }
.hero-image figcaption { border-top: 1px solid #a7bac6; padding: 13px 2px 0; display: flex; justify-content: space-between; align-items: baseline; gap: .4rem .8rem; flex-wrap: wrap; }
.hero-image figcaption > span { color: var(--muted); font-size: .75rem; }
.hero-image figcaption a { text-decoration: none; font-weight: 700; font-size: .89rem; }
.hero-image figcaption a:hover { text-decoration: underline; }
.hero-image b { color: var(--red); margin-left: .18rem; }

.catalog { padding-block: 74px; }
.section-head, .about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem 3rem; align-items: end; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -.047em; margin-top: .65rem; }
.section-head > p { color: var(--muted); max-width: 43ch; padding-bottom: .15rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 1.2rem; }
.filters button { min-height: 41px; padding: .5rem .85rem; border-radius: 3px; border: 1px solid var(--line); background: white; color: var(--muted); font-weight: 600; font-size: .87rem; }
.filters button:hover { border-color: #8198a7; }
.filters button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 1.2rem; }
.card { border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; border-radius: 5px; overflow: hidden; }
.card:hover { border-color: #98afbc; }

@media (prefers-reduced-motion: no-preference) {
  .button, .whatsapp-floating, .back-to-top, .filters button, .card, .ficha-galeria a {
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
  }

  .awaiting-scroll:not(:focus-within) { opacity: 0; }
  .scroll-entered:not(:focus-within) { animation: scroll-entry 1200ms cubic-bezier(.24, .56, .3, 1); }
  .product-list[open] > ul { animation: product-list-entry 950ms cubic-bezier(.25, .55, .35, 1); }
}

@keyframes scroll-entry {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes product-list-entry {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-image { height: 192px; background: #f0f4f6; display: grid; place-items: center; padding: 23px; }
.product-image img { height: 100%; max-height: 146px; width: 100%; object-fit: contain; }
.card-copy { padding: 1.3rem; display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .65rem; }
.card h3 { font-size: 1.24rem; letter-spacing: -.025em; }
.card p, .catalog-note { color: var(--muted); font-size: .9rem; }
.product-list { width: 100%; border-top: 1px solid var(--line); padding-top: .55rem; font-size: .9rem; scroll-margin-top: 1.5rem; }
.product-list summary { cursor: pointer; font-weight: 700; }
.product-list ul { margin: .6rem 0 .35rem; padding-left: 1.2rem; color: var(--muted); }
.product-list li { margin-bottom: .4rem; line-height: 1.45; }
.product-list a { text-underline-offset: .18rem; }
.product-list a:hover { color: var(--red); }
.card .button { margin-top: auto; }
.catalog-note { margin-top: 1rem; }

.service { background: var(--ink); color: white; }
.service-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: stretch; }
.service-image { min-height: 420px; display: grid; place-items: center; background: radial-gradient(ellipse at center, #526e81, #263f51 75%); padding: 40px; }
.service-image img { max-height: 335px; width: 100%; object-fit: contain; }
.service-copy { padding: 56px 0 56px clamp(30px, 6vw, 90px); }
.service-copy .eyebrow { color: #d4e3ed; }
.service-copy .eyebrow::before { background: #ff6685; }
.service-copy p:not(.eyebrow) { color: #d4e3ed; margin-top: 1rem; max-width: 52ch; }
.service-list { padding: 0; margin: 1.3rem 0; list-style: none; }
.service-list li { border-top: 1px solid #456071; padding: .68rem 0; }
.service-list li::before { content: "✓"; margin-right: .65rem; color: #b9d9e9; }
.service-list li:last-child { border-bottom: 1px solid #456071; }
.about { padding-block: 75px; align-items: start; }
.about p:not(.eyebrow) { color: var(--muted); margin-bottom: .7rem; }

.contact { background: var(--soft); border-block: 1px solid var(--line); }
.contact-grid { padding-block: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; }
.contact h2 + p { color: var(--muted); margin-top: .9rem; max-width: 43ch; }
address { display: grid; align-self: center; justify-items: start; gap: .75rem; font-style: normal; }
address a { text-underline-offset: .2rem; overflow-wrap: anywhere; }
.contact-whatsapp { margin-top: 1.25rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: 1.5rem 6.5rem 1.5rem 0; }
.footer p { color: var(--muted); font-size: .82rem; }

.ficha-caminho { padding: 1.2rem 0; gap: .55rem; flex-wrap: wrap; font-size: .87rem; color: var(--muted); }
.ficha-caminho > a:not(.button) { text-decoration: underline; text-underline-offset: .18rem; }
.ficha { padding: 1.5rem 0 clamp(2.8rem, 5vw, 4.75rem); }
.ficha-com-imagem { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4.75rem); }
.ficha-imagem { min-width: 0; padding: clamp(1rem, 4vw, 3rem); background: #edf3f6; border: 1px solid var(--line); border-radius: 5px; }
.ficha-foto-principal { display: block; }
.ficha-foto-principal img { width: 100%; height: clamp(220px, 30vw, 380px); object-fit: contain; }
.ficha-galeria { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.ficha-galeria a { display: block; border: 1px solid var(--line); border-radius: 4px; background: white; padding: .3rem; }
.ficha-galeria a:hover { border-color: var(--muted); }
.ficha-galeria img { width: 72px; height: 56px; object-fit: contain; }
.ficha-imagem figcaption { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: 1rem; color: var(--muted); font-size: .8rem; }
.ficha-texto { min-width: 0; }
.ficha h1 { max-width: 20ch; font-size: clamp(2.05rem, 4.6vw, 4.2rem); overflow-wrap: anywhere; }
.ficha .intro, .ficha-detalhe { max-width: 58ch; }
.ficha-detalhe { margin-top: .9rem; color: var(--muted); }
.ficha .button { margin-top: 1.6rem; }
.ficha-relacionados { background: var(--soft); padding: 2.25rem 0; border-block: 1px solid var(--line); }
.ficha-relacionados h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.ficha-relacionados ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.ficha-relacionados li { background: white; border: 1px solid var(--line); border-radius: 4px; }
.ficha-relacionados li a { display: block; padding: .85rem 1rem; }

@media (max-width: 1000px) {
  .wrap { width: min(calc(100% - 56px), var(--wrap)); }
  .hero-grid { min-height: 475px; }
  .contact-grid { gap: 2rem 3rem; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 65px; }
  .header:has(.nav.enhanced) { position: sticky; top: 0; z-index: 6; }
  .skip { z-index: 7; }
  .wrap { width: calc(100% - 36px); }
  .nav { flex-wrap: wrap; min-height: 64px; gap: 0; }
  .nav > .brand img { width: 148px; }
  nav { width: 100%; flex-wrap: wrap; gap: .75rem 1rem; padding: .5rem 0 1rem; }
  .nav.enhanced nav { flex-flow: column nowrap; align-items: stretch; gap: 0; max-height: calc(100dvh - 65px); overflow-y: auto; }
  .nav.enhanced nav > a { flex-shrink: 0; }
  .nav.enhanced nav > a:not(.button) { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav.enhanced nav .button { align-self: start; margin-top: .65rem; }
  .hero-grid, .section-head, .service-grid, .about, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 46px 0 30px; }
  h1 { max-width: 15ch; }
  .hero-image { padding: 25px 16px 14px; }
  .hero-image img { max-height: 340px; }
  .catalog, .about, .contact-grid { padding-block: 49px; }
  .section-head, .about { gap: .85rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-image { min-height: 0; padding: 24px; }
  .service-image img { max-height: 210px; }
  .service-copy { padding: 34px 0 45px; }
  .footer-inner { flex-wrap: wrap; padding: 1.5rem 0 5.25rem; }
  .ficha-com-imagem, .ficha-relacionados ul { grid-template-columns: 1fr; }
  .ficha-com-imagem .ficha-texto { grid-row: 1; }
  .ficha-caminho { padding-bottom: .2rem; }
}

@media (max-width: 485px) {
  .cards { grid-template-columns: 1fr; }
  .product-image { height: 170px; }
  .product-image img { max-height: 124px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
