/* ==========================================================================
   Graphink do Brasil — Tintas & Vernizes
   Mobile-first stylesheet
   ========================================================================== */

:root {
  /* Brand palette (atualizado) */
  --azul-claro:       #02d1ff;   /* texto azul claro / hover de menu */
  --azul-escuro:       #003078;  /* texto azul escuro */
  --cor-corpo-texto:   #00031c;  /* cor padrão do corpo do texto */
  --banner-bg:         #01143f;  /* fundo do banner do hero */

  --off-white:         #f7f4f0;
  --branco:            #ffffff;
  --whatsapp:          #25d366;
  --whatsapp-dark:     #1fa855;
  --texto-cinza:       #5b6573;
  --borda:             #e6e8ec;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(0, 3, 28, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 3, 28, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500; /* texto = medium */
  color: var(--cor-corpo-texto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700; /* títulos = bold */
  margin: 0;
  line-height: 1.15;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--azul-claro);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--azul-escuro);
  color: var(--branco);
}
.btn--primary:hover { background: var(--azul-claro); color: var(--azul-escuro); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--branco);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover { border-color: var(--branco); background: rgba(255,255,255,0.08); }

.btn--ghost-light {
  background: transparent;
  color: var(--branco);
  border-color: var(--branco);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); }

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--branco);
}
.btn--whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }

.btn__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.btn__icon--outline {
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   Topo fixo (Topbar + Header juntos)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.topbar {
  background-color: var(--banner-bg);
  background-image: url('imagens/fundo-topo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  display: none;
}
.topbar__inner {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 8px 20px;
}
.topbar__item {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar__icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .topbar { display: block; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  background: var(--branco);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}
.logo__img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cor-corpo-texto);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: var(--branco);
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 90px 28px 28px;
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  z-index: 105;
}
.nav--open { transform: translateX(0); }

/* Menu: preto sem sublinhado em repouso; hover = azul claro com sublinhado (igual ao link ativo) */
.nav__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cor-corpo-texto);
  padding: 10px 0;
  width: 100%;
  border-bottom: 1px solid var(--borda);
  position: relative;
  transition: color 0.18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--azul-claro);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}
.nav__link:hover,
.nav__link--active {
  color: var(--azul-claro);
}
.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1);
}
.nav__cta {
  margin-top: 16px;
  width: 100%;
}

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    box-shadow: none;
    transform: none;
  }
  .nav__link {
    border-bottom: none;
    width: auto;
    padding: 4px 0;
  }
  .nav__link::after {
    bottom: -6px;
  }
  .nav__cta { margin-top: 0; width: auto; }
}

#sobre,
#produtos,
#contato {
  scroll-margin-top: 100px; /* ajuste esse valor conforme a altura do seu header */
}

/* ==========================================================================
   Hero / Banner
   ========================================================================== */

.hero {
  background: var(--banner-bg);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hero__slider {
  position: relative;
  width: 100%;
}

.hero__slide {
  width: 100%;
  background-color: var(--banner-bg);
  display: none;
  position: relative;
  overflow: hidden;
}
.hero__slide--active { display: block; }

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  z-index: 0;
}

/* Overlay para garantir legibilidade do texto sobre a foto dos galões */
.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--banner-bg) 0%, rgba(1,20,63,0.93) 42%, rgba(1,20,63,0.55) 75%, rgba(1,20,63,0.7) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 56px 0 36px;
  min-height: 480px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--azul-escuro);
  margin: 0 0 10px;
}
.eyebrow--light { color: var(--azul-claro); }
.eyebrow--accent { color: var(--azul-claro); }

.hero__title {
  color: var(--branco);
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero__desc {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 26px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 480px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
}

/* Em telas pequenas/médias, a imagem some de vista (fica baixa demais) e usamos só o overlay como fundo */
@media (max-width: 767px) {
  .hero__bg-img { object-position: bottom center; opacity: 0.55; }
}

@media (min-width: 992px) {
  .hero__inner { padding: 90px 0 30px; min-height: 540px; }
  .hero__bg-img { object-fit: contain; object-position: bottom right; }
  .hero__slide::before {
    background: linear-gradient(90deg, var(--banner-bg) 0%, rgba(1,20,63,0.88) 32%, rgba(1,20,63,0.35) 58%, rgba(1,20,63,0.08) 78%);
  }
  .hero__content { max-width: 55%; }
}

/* ==========================================================================
   Feature grid (cards de destaque abaixo do banner)
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 0 50px;
  position: relative;
  z-index: 4;
  margin-top: -100px;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.feature-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}
.feature-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  object-fit: contain;
}
.feature-card h3 {
  color: var(--branco);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.feature-card p {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.85rem;
}

/* ==========================================================================
   About / Sobre
   ========================================================================== */

.about {
  background-color: var(--off-white);
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
  padding: 60px 0;
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 700;
  color: var(--cor-corpo-texto);
  margin-bottom: 18px;
}
.section-title--light { color: var(--branco); }

.text-accent { color: var(--azul-claro); }

.about__p {
  color: var(--texto-cinza);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

@media (min-width: 992px) {
  .about__inner {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .about__text, .stats-grid { flex: 1; }
}

/* ==========================================================================
   Products
   ========================================================================== */

.products {
  background: var(--banner-bg);
  padding: 60px 0;
}

.section-head--center {
  text-align: center;
  margin-bottom: 40px;
}

.divider {
  display: inline-block;
  width: 56px;
  height: 3px;
  background: var(--azul-claro);
  border-radius: 2px;
  margin-top: 12px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--branco);
  border-radius: var(--radius-md);
  overflow: visible;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); }

.product-card__media {
  height: 160px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__badge {
  position: absolute;
  top: 142px;
  left: 22px;
  width: 44px;
  height: 44px;
  object-fit: contain;
  z-index: 3;
}

.product-card__body {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 30px 22px 24px;
}
.product-card__body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--cor-corpo-texto);
}
.product-card__body p {
  color: var(--texto-cinza);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.link-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--azul-claro);
}
.link-arrow:hover { text-decoration: underline; }

/* ==========================================================================
   Differentials
   ========================================================================== */

.differentials {
  background: var(--branco);
  padding: 60px 0;
}

.differentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

@media (min-width: 640px) {
  .differentials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .differentials-grid { grid-template-columns: repeat(4, 1fr); }
}

.differential-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  object-fit: contain;
}
.differential-card h3 {
  font-size: 1.05rem;
  color: var(--azul-escuro);
  margin-bottom: 8px;
}
.differential-card p {
  color: var(--texto-cinza);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   CTA strip
   ========================================================================== */

.cta {
  background-color: var(--azul-escuro);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 20px;
}

.cta__text {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cta__icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.cta__text h3 {
  color: var(--branco);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.cta__text p {
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  font-size: 0.9rem;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .cta__actions { flex-direction: row; }
}

@media (min-width: 992px) {
  .cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cta__actions { flex-direction: row; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--banner-bg);
  color: rgba(255,255,255,0.8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 50px 20px 30px;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.logo--footer .logo__img { height: 60px; filter: brightness(0) invert(1); }

.footer__address {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}

.footer__inline-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
  filter: brightness(0) invert(1);
}

.footer__col h4 {
  color: var(--branco);
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer__col p {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.7);
}
.footer__col a:hover { color: var(--azul-claro); }

.footer__social {
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.social-icon img { width: 100%; height: 100%; object-fit: cover; }
.social-icon:hover { transform: translateY(-2px); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  padding: 18px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}

@media (min-width: 768px) {
  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform 0.2s ease;
  overflow: hidden;
}
.whatsapp-float img { width: 100%; height: 100%; object-fit: cover; }
.whatsapp-float:hover { transform: scale(1.08); }
