/* Grupo Autoridade — CSS próprio, sem frameworks */

@font-face {
  font-family: "Cuprum";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cuprum-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Cuprum";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cuprum-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

:root {
  --bg: #101b27;
  --bar: #2c394c;
  --accent: #2f6271;
  --accent-hover: #3b7a8c;
  --text: #fff;
  --muted: #b4bcc6;
  --line: rgba(255, 255, 255, 0.14);
  --header-h: 84px;
  --maxw: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 "Cuprum", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid #7fd1e6; outline-offset: 3px; }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 2000;
  background: #fff; color: #000; padding: 8px 14px; border-radius: 4px;
}
.skip-link:focus { top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  min-height: var(--header-h);
  background: var(--bar);
  box-shadow: 2px 2px 11px 1px #222;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.logo { display: inline-block; flex: none; }
.logo img { width: 140px; height: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid #aaa; border-radius: 4px;
  padding: 8px 10px; cursor: pointer; color: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav a.nav-link {
  display: inline-block; padding: 10px 12px; color: #c4ccd5;
  text-transform: uppercase; font-size: 15px; font-weight: 500; letter-spacing: .02em;
  transition: color .3s;
}
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: #fff; }
.nav a.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent-hover); }

.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-flex; padding: 8px; color: #fff; opacity: .85; transition: opacity .3s; }
.social a:hover { opacity: 1; }
.social svg { width: 24px; height: 24px; display: block; }

main { padding-top: var(--header-h); min-height: 60vh; }

@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bar); flex-direction: column; padding: 8px 16px 16px;
    border-top: 1px solid var(--line); box-shadow: 0 10px 14px rgba(0,0,0,.3);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; width: 100%; text-align: center; }
  .nav a.nav-link { display: block; padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .nav a.nav-link[aria-current="page"] { box-shadow: none; color: #fff; }
  .social { justify-content: center; padding-top: 10px; }
}

/* ---------- Títulos de página ---------- */
.page-title {
  background: var(--accent); padding: 34px 0; text-align: center;
  font-size: 30px; line-height: 1.2; margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
}
.page-title--plain { background: none; padding: 0 0 10px; }

/* ---------- Home ---------- */
.hero {
  background: linear-gradient(rgba(16, 27, 39, .93), rgba(16, 27, 39, .93)), url("../img/fundo-banner.webp") center/cover;
  padding: 40px 0;
}
.hero picture, .hero img { width: 100%; }
.hero img { aspect-ratio: 1244 / 829; object-fit: cover; max-height: 78vh; border-radius: 2px; }
.hero-text { text-align: center; padding: 44px 0 20px; }
.hero-text h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.hero-text p { max-width: 720px; margin: 0 auto 26px; color: var(--muted); font-size: 20px; }

.btn {
  display: inline-block; padding: 12px 26px; border: 1.5px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-size: 17px; text-transform: uppercase;
  letter-spacing: .04em; cursor: pointer; transition: background .3s, border-color .3s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; border-color: #8a97a6; }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn--block { display: block; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Conteúdo de texto ---------- */
.content { padding: 70px 0; }
.content--narrow .wrap { max-width: 720px; }
.content--center { text-align: center; }
.content p { margin: 0 0 1.1em; }
.content h2 { font-size: 26px; margin: 1.6em 0 .5em; }
.content h3 { font-size: 20px; margin: 1.6em 0 .4em; color: #dfe6ee; }

/* ---------- Galeria ---------- */
.gallery { list-style: none; margin: 0; padding: 30px 0 50px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery a { display: block; background: var(--bar); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1000 / 740; object-fit: cover; transition: transform .4s, opacity .3s; }
.gallery a:hover img { transform: scale(1.04); opacity: .85; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%;
}
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox figcaption { text-align: center; color: var(--muted); padding-top: 10px; font-size: 15px; }
.lb-btn {
  position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Representantes ---------- */
.reps-bg { background: var(--bg) url("../img/fundo-representante.webp") center/cover no-repeat; }
.reps-search { max-width: 360px; margin: 0 0 30px; }
.reps-search label { display: block; margin-bottom: 6px; font-size: 16px; color: var(--muted); }
.reps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 30px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.reps li { border-left: 3px solid var(--accent-hover); padding: 2px 0 2px 14px; }
.reps h2 { margin: 0; font-size: 20px; font-weight: 600; }
.reps .tel { display: inline-block; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.reps .tel:hover { text-decoration-color: #fff; }
.reps p { margin: 0; font-size: 16px; line-height: 1.5; color: #dbe2ea; }
.reps .cities { color: var(--muted); }
.reps-other { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.reps-empty { display: none; color: var(--muted); }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 250px; gap: 40px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 15px; margin-bottom: 4px; color: #dbe2ea; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: #222; background: #fff;
  border: 1px solid #ccc; border-radius: 0; padding: 9px 12px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-color: #7fd1e6; }
.field [aria-invalid="true"] { border-color: #ff8a80; box-shadow: 0 0 0 2px rgba(255,138,128,.4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; padding: 0; font-size: 16px; min-height: 1.5em; }
.form-status.ok { color: #8be0a8; }
.form-status.err { color: #ffb4ab; }
.contact-info { font-size: 17px; line-height: 1.7; }
.contact-info p { margin: 0 0 14px; }
.contact-info a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }

/* ---------- Rodapé ---------- */
.instagram-cta { padding: 36px 0 30px; text-align: center; }
.instagram-cta a { font-size: 32px; color: #ebebeb; display: inline-block; text-transform: uppercase; letter-spacing: .05em; }
.instagram-cta a:hover { color: #fff; }

.site-footer { background: var(--bar) url("../img/fundo-rodape.webp") center/cover; padding: 34px 0 20px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; gap: 2px 8px; }
.site-footer a { color: #c4ccd5; }
.site-footer a:hover { color: #fff; }
.site-footer ul a { display: inline-block; padding: 6px 10px; text-transform: uppercase; font-size: 14px; }
.site-footer p { margin: 0; }
.credit { font-size: 12px; opacity: .8; }

/* ---------- Aviso de cookies ---------- */
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1500;
  max-width: 760px; margin: 0 auto; background: #0b121a; color: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px;
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 16px;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 320px; line-height: 1.4; }
.cookie-bar a { text-decoration: underline; }
.cookie-bar .btn { padding: 8px 18px; font-size: 15px; }
.cookie-actions { display: flex; gap: 8px; }

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