/* TNC Prime — estilo inspirado em PortfolioWP Demo (editorial, monocromático) */
:root {
  --navy: #111111;
  --navy-mid: #3d3d3d;
  --gold: #111111;
  --gold-soft: #f0f0ee;
  --beige: #f5f5f3;
  --beige-dark: #e3e3e0;
  --text: #111111;
  --text-muted: #5c5c5c;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.05);
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  /* Reserva mínima se o browser fizer scroll nativo (ex.: entrada com # na URL); o JS usa altura real do header */
  scroll-padding-top: 2.5rem;
}

@media (min-width: 960px) {
  html {
    scroll-padding-top: 2rem;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.section-title,
.brand-card h4,
.band h2,
.form-card h1,
.legal-card h1,
.legal-card h2,
.thanks h1,
.catalog-links h2 {
  font-family: var(--font-display);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text-muted);
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* Top bar — contatos */
.topbar {
  background: var(--navy);
  color: var(--beige);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .topbar .container {
    justify-content: flex-end;
  }
}

.topbar a {
  color: var(--beige);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar a:hover {
  color: var(--white);
  opacity: 0.85;
}

.topbar svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 0 var(--beige-dark);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--beige-dark);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-link:hover {
  color: var(--navy);
}

.logo-full {
  display: block;
  width: 310px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 960px) {
  .logo-link {
    flex-wrap: nowrap;
  }
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.4rem 0.85rem;
  background: var(--white);
  border-radius: 999px;
  border: 1px solid var(--beige-dark);
}

.brand-strip span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.brand-strip span:not(:last-child)::after {
  content: "·";
  margin-left: 1rem;
  color: var(--beige-dark);
  font-weight: 400;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 960px) {
  .nav-wrap {
    width: auto;
    flex: 1;
    justify-content: flex-end;
  }
}

.nav-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

.main-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0 1rem;
}

.main-nav.is-open {
  display: flex;
}

@media (min-width: 960px) {
  .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    width: auto;
    padding: 0;
  }
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-mid);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
}

.main-nav a:hover {
  background: var(--beige);
  color: var(--navy);
}

.header-cta {
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--navy);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.header-cta:hover {
  background: var(--navy);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, #111111 0%, #1a1a1a 45%, #222222 100%);
  color: var(--beige);
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 90% 10%, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.hero .lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: rgba(245, 245, 243, 0.82);
  max-width: 38em;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--beige);
  border: 1px solid rgba(245, 245, 243, 0.45);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.band .btn-primary {
  background: var(--white);
  color: var(--navy);
}

.band .btn-primary:hover {
  background: var(--gold-soft);
  color: var(--navy);
}

.band .btn-ghost {
  border-color: rgba(245, 245, 243, 0.5);
  color: var(--beige);
}

.band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
  color: var(--white);
}

/* Sections */
section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--beige-dark);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.card .meta {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.card-brand {
  margin: 0 0 0.85rem;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}

.card-brand-logo {
  display: block;
  width: auto;
  max-width: 140px;
  max-height: 40px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.card-brand-logo--aquario {
  max-width: 120px;
  max-height: 36px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cadastre-se band */
.band {
  background: linear-gradient(100deg, #161616 0%, #111111 100%);
  color: var(--beige);
}

.band .container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .band .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.band p {
  margin: 0;
  opacity: 0.92;
  max-width: 42ch;
}

.band .btn-primary {
  flex-shrink: 0;
}

/* Marcas por categoria */
.brands-block {
  margin-bottom: 2.5rem;
}

.brands-block:last-child {
  margin-bottom: 0;
}

.brands-block h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--beige-dark);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .brand-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.brand-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--beige-dark);
  border-left-width: 3px;
  border-left-color: var(--navy);
  box-shadow: var(--shadow);
}

.brand-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--navy);
}

.brand-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.brand-card .lines {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--navy-mid);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(245, 245, 243, 0.88);
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-legal strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Forms */
.form-page {
  padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--beige-dark);
}

.form-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  color: var(--navy);
}

.form-card > .hint {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--navy-mid);
}

.form-group .optional {
  font-weight: 500;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy-mid);
}

.checkbox-group label {
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-group input {
  margin-top: 0.25rem;
  accent-color: var(--navy-mid);
}

.field-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 520px) {
  .field-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.form-actions {
  margin-top: 1.75rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legal page */
.legal-page {
  padding: clamp(2rem, 5vw, 3rem) 0 4rem;
}

.legal-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--beige-dark);
}

.legal-card h1 {
  margin-top: 0;
  color: var(--navy);
}

.legal-card h2 {
  font-size: 1.1rem;
  color: var(--navy-mid);
  margin-top: 1.75rem;
}

/* Thank you */
.thanks {
  text-align: center;
  padding: 3rem 1rem;
}

.thanks h1 {
  color: var(--navy);
}

.catalog-links {
  margin-top: 2rem;
  text-align: left;
  max-width: 480px;
  margin-inline: auto;
}

.catalog-links h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.catalog-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.catalog-links a {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  border: 1px solid var(--beige-dark);
}

.catalog-links a:hover {
  border-color: var(--navy);
  background: var(--beige);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* Voltar ao topo */
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--beige-dark);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.to-top:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: none;
  }

  .to-top:not(.is-visible) {
    transform: none;
  }
}

/* Aviso de cookies (terceiros) */
.cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  background: var(--white);
  border-top: 1px solid var(--beige-dark);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

.cookie-banner.cookie-banner--visible {
  display: block;
}

html.cookie-consent-done .cookie-banner {
  display: none !important;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-right: 0.5rem;
}

.cookie-banner-copy {
  flex: 1 1 16rem;
  max-width: 52rem;
}

.cookie-banner-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.cookie-banner-text a {
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.cookie-btn--primary:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.cookie-btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--beige-dark);
}

.cookie-btn--ghost:hover {
  border-color: var(--navy);
  background: var(--beige);
}

body.with-cookie-banner {
  padding-bottom: 9rem;
}

@media (min-width: 720px) {
  body.with-cookie-banner {
    padding-bottom: 6.5rem;
  }
}
