:root {
  --navy: #0c2d48;
  --navy-deep: #081c2e;
  --blue: #1a4a73;
  --blue-mid: #2a6a9a;
  --line: #d5dde4;
  --bg: #f3f6f8;
  --card: #ffffff;
  --wa: #25d366;
  --wa-dark: #1ebe57;
  --text: #1c2830;
  --muted: #5c6b75;
  --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

header.site {
  background: var(--navy-deep);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--blue-mid);
}
.header-inner {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 0;
  min-height: 0;
  flex-wrap: wrap;
}
/* Full-viewport bar so the logo can be centered on the screen, not on the inset inner. */
.header-bar {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 12px 8px;
  min-height: 70px;
}
.header-left { display: none; }
/* Logo + flag group. Switch with a class on <html>:
   (default / no class, or bandeira-opcao-a) = option A, flag beside logo with thin frame
   html.bandeira-opcao-b = option B, flag beside logo, no frame  (current choice)
   html.bandeira-opcao-c = option C, flag behind the logo as a backdrop, no frame */
.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-bar .logo {
  position: static;
  transform: none;
  flex-shrink: 0;
  line-height: 0;
}
.header-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.flag-link {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.flag-link img {
  height: 40px;
  width: auto;
  display: block;
}
.logo img {
  height: 52px;
  width: auto;
  display: block;
}
/* Option A (default): thin light frame around the flag */
.flag-link {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.45);
}
.flag-link:hover,
.flag-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.85);
  outline: none;
}
/* Option B: no frame, no border, no shadow */
html.bandeira-opcao-b .flag-link {
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  background: none;
}
html.bandeira-opcao-b .flag-link:hover,
html.bandeira-opcao-b .flag-link:focus-visible {
  box-shadow: none;
  border: none;
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}
/* Option C: flag (no frame) centered behind the logo as a soft backdrop.
   Sized a bit taller than the logo; faded into the navy so the white wordmark stays legible. */
html.bandeira-opcao-c .brand {
  display: grid;
  place-items: center;
  gap: 0;
}
html.bandeira-opcao-c .brand > * {
  grid-area: 1 / 1;
}
html.bandeira-opcao-c .flag-link {
  z-index: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  background: none;
  justify-self: center;
  align-self: center;
  /* A bit larger than the 52×187 px logo so the flag shows around it. */
  width: 230px;
  height: 66px;
}
html.bandeira-opcao-c .logo {
  z-index: 1;
  position: relative;
  justify-self: center;
  align-self: center;
}
html.bandeira-opcao-c .logo img {
  filter: drop-shadow(0 0 5px rgba(8, 28, 46, 0.95)) drop-shadow(0 0 1px rgba(8, 28, 46, 0.9));
}
html.bandeira-opcao-c .flag-link img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 48%;
  opacity: 0.58;
  -webkit-mask-image: radial-gradient(ellipse 82% 78% at 50% 50%, #000 38%, rgba(0,0,0,0.55) 62%, transparent 82%);
  mask-image: radial-gradient(ellipse 82% 78% at 50% 50%, #000 38%, rgba(0,0,0,0.55) 62%, transparent 82%);
}
html.bandeira-opcao-c .flag-link:hover,
html.bandeira-opcao-c .flag-link:focus-visible {
  box-shadow: none;
  border: none;
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
}
#nav-toggle { position: absolute; left: -9999px; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.25);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: #fff; }
nav.main {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex: 1 1 100%;
  padding: 6px 0 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
nav.main > a, nav.main .drop > .top {
  color: #e8eef2;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
nav.main > a:hover, nav.main .drop > .top:hover,
nav.main > a.is-on, nav.main .drop.is-on > .top { background: rgba(255,255,255,0.08); }
.drop { position: relative; }
.drop .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #0b2438;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 0;
  z-index: 50;
}
.drop:hover .sub, .drop:focus-within .sub { display: block; }
.drop .sub a {
  display: block;
  color: #e8eef2;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  white-space: nowrap;
}
.drop .sub a:hover, .drop .sub a.is-on { background: rgba(255,255,255,0.08); }

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  background: var(--wa);
  color: #083318;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 14px;
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(7, 60, 28, 0.35);
}
.wa-float:hover { background: var(--wa-dark); }

.hero {
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, #163c5c 100%);
  color: var(--white);
  padding: 52px 0 60px;
}
.hero-grid, .page-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8ec4e4;
  margin-bottom: 14px;
}
.hero h1, .page-hero h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero .sub, .page-hero .sub { font-size: 16.5px; color: #c5d6e2; margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 2px solid transparent;
}
.btn-wa { background: var(--wa); color: #083318; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: #8eb4cc; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--blue); }
.hero-media, .page-media { overflow: hidden; min-height: 280px; border: 1px solid #2a4e6c; background: #0a2236; }
.hero-media img, .page-media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: center; }

section { padding: 60px 0; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: 28px; letter-spacing: -0.02em; color: var(--navy); }
.sec-head p { color: var(--muted); margin-top: 6px; font-size: 16px; }

#produtos { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card-art { height: 180px; overflow: hidden; background: #d7dee5; }
.card-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 6px; line-height: 1.3; }
.card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn-cat, .btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1.5px solid var(--navy);
}
.btn-more { background: var(--navy); color: #fff; }
.btn-more:hover { background: var(--blue); }
.btn-cat { background: transparent; color: var(--navy); }
.btn-cat:hover { background: var(--navy); color: #fff; }
.btn-wa-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 5px;
  background: var(--wa);
  color: #083318;
  border: 0;
}
.btn-wa-sm:hover { background: var(--wa-dark); }

#catalogos { background: var(--navy); color: #fff; text-align: center; padding: 48px 0; }
#catalogos h2 { color: #fff; font-size: 26px; margin-bottom: 10px; }
#catalogos p { color: #c5d6e2; margin: 0 auto 22px; max-width: 52ch; }
#catalogos .btn { font-size: 16px; padding: 14px 22px; }

#conserto { background: var(--navy-deep); color: #fff; }
#conserto .sec-head h2 { color: #fff; }
#conserto .sec-head p { color: #c5d6e2; }
.conserto-top {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
}
.conserto-photo { overflow: hidden; border: 1px solid rgba(255,255,255,0.12); min-height: 220px; }
.conserto-photo img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); padding: 18px 16px 20px; }
.step-num {
  width: 32px; height: 32px;
  background: #2a6a9a;
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}
.step h3 { font-size: 15.5px; font-weight: 700; }
.extra-note { margin-top: 22px; color: #c5d6e2; font-size: 15px; max-width: 70ch; }

#ofertas { background: var(--white); }
.offer {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--bg);
  margin-top: 18px;
}
.offer-photo { min-height: 240px; overflow: hidden; background: #111; }
.offer-photo img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.offer-body { padding: 24px; }
.offer-body h3 { color: var(--navy); font-size: 22px; margin-bottom: 8px; }
.badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  margin-bottom: 10px;
}
.offer-body p { color: var(--muted); margin-bottom: 12px; }
.offer-body ul, .stock-list, .prose ul { margin: 0 0 18px 18px; color: var(--text); font-size: 14.5px; }
.offer-body li, .stock-list li, .prose li { margin: 3px 0; }
.families { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.fam {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px 18px;
}
.fam h3 { color: var(--navy); font-size: 16px; margin-bottom: 6px; }
.fam p { color: var(--muted); font-size: 14px; }

#sobre, .page-body { background: #e8eef3; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; }
.fact, .contact-box, .prose-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
}
.fact h3, .contact-box h3 { color: var(--navy); font-size: 20px; margin-bottom: 10px; }
.fact p, .contact-box p { color: var(--muted); font-size: 15.5px; margin-bottom: 10px; }
.contact-box a.mail { color: var(--navy); font-weight: 650; }
/* Plain-text WhatsApp number: same color as surrounding copy, not a green highlight */
a.wa-text { color: inherit; font-weight: inherit; }

.page-hero { background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 70%); color: #fff; padding: 42px 0 48px; }
.page-body { padding: 48px 0 64px; }
.prose { background: #fff; border: 1px solid var(--line); padding: 28px 32px 36px; }
.prose h2 { color: var(--navy); font-size: 22px; margin: 22px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); font-size: 15.5px; margin-bottom: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0 22px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--navy); color: #fff; font-weight: 700; }
.prose tr:nth-child(even) td { background: #f4f7f9; }
.prose .note { color: var(--muted); font-size: 14px; }

footer.site { background: var(--navy-deep); color: #d7e3ec; padding: 36px 0 24px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 0.7fr;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer .logo img { height: 44px; width: auto; margin-bottom: 12px; }
footer p, footer a { font-size: 14.5px; color: #c5d4de; line-height: 1.7; }
footer h3 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
footer a.wa-text { color: inherit; }
.copy { padding-top: 16px; font-size: 12.5px; color: #8aa0b0; }

@media (max-width: 980px) {
  .hero-grid, .page-grid, .conserto-top, .offer, .about-grid, .foot-grid, .steps, .cards, .families {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1, .page-hero h1 { font-size: 28px; }
  nav.main { display: none; }
  .burger { display: flex; }
  #nav-toggle:checked ~ nav.main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #0b2438;
    padding: 10px 16px 16px;
    border-bottom: 3px solid var(--blue-mid);
  }
  .drop .sub { position: static; display: block; border: 0; padding: 0 0 0 10px; background: transparent; }
  .header-inner { flex-wrap: wrap; }
  /* Mobile/tablet only: center the logo+flag group in the space between
     the left edge of the screen and the hamburger, so the left gap equals
     the gap to the menu. Desktop (above 980px) stays unchanged. */
  .header-bar {
    --header-side: 12px;
    --burger-size: 42px;
  }
  .brand {
    left: calc((100% - var(--header-side) - var(--burger-size)) / 2);
  }
}
@media (max-width: 620px) {
  .wrap, .header-inner { width: calc(100% - 28px); }
  .hero-grid, .page-grid, .conserto-top, .offer, .about-grid, .foot-grid, .steps, .cards, .families {
    grid-template-columns: 1fr;
  }
  .hero, .page-hero { padding: 32px 0 36px; }
  .hero h1, .page-hero h1 { font-size: 24px; }
  .cta-row .btn { width: 100%; }
  .logo img { height: 42px; }
  .flag-link img { height: 32px; }
  .brand { gap: 8px; }
  .header-bar { padding: 8px 12px 6px; min-height: 56px; }
  .header-right { gap: 8px; }
  .wa-float span.num { display: none; }
  .wa-float { width: 56px; height: 56px; border-radius: 50%; padding: 0; justify-content: center; }
  .prose { padding: 20px 16px 28px; }
}
@media (max-width: 380px) {
  .flag-link img { height: 30px; }
  .brand { gap: 6px; }
  .header-right { gap: 6px; }
  .header-bar { padding: 8px 8px 6px; --header-side: 8px; }
}
@media (max-width: 620px) {
  html.bandeira-opcao-c .flag-link {
    width: 190px;
    height: 54px;
  }
}

.btn-pdf {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-pdf:hover { background: #e8eef2; }
.cat-list {
  list-style: none;
  margin: 12px 0 22px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-list li { margin: 0; }
.cat-list a.btn-cat {
  justify-content: flex-start;
  width: 100%;
  max-width: 52rem;
  text-align: left;
}
.catalog-groups h2 { margin-top: 28px; }

.regioes-lead { max-width: 70ch; color: var(--muted); margin: 0 0 28px; }
.regioes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 0 0 36px;
}
.regiao-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px 16px;
}
.regiao-card h2 {
  color: var(--navy);
  font-size: 16.5px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.regiao-card h2 img {
  width: 20px;
  height: auto;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.regiao-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
