/* =========================================================
   CONCREART POSSE - CSS PRINCIPAL
   Estrutura:
   1. Variáveis e reset
   2. Componentes globais
   3. Cabeçalho e menu
   4. Seções principais
   5. Cards e produtos
   6. Páginas internas
   7. Rodapé e WhatsApp
   8. Responsividade
========================================================= */

/* 1. Variáveis e reset */
:root {
  --red: #d21f2b;
  --blue: #133b74;
  --dark: #151515;
  --gray: #666666;
  --light: #f6f7f9;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

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

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

/* 2. Componentes globais */
.tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn {
  padding: 15px 24px;
}

.primary {
  color: var(--white);
  background: var(--red);
}

.secondary {
  color: var(--blue);
  background: var(--white);
  border: 2px solid var(--blue);
}

.btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.section {
  padding: 75px 7%;
}

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

.section-title h2 {
  margin: 0;
  color: var(--blue);
  font-size: 40px;
}

/* 3. Cabeçalho e menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 7%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.logo img {
  width: auto;
  height: 58px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-menu a {
  position: relative;
  color: var(--blue);
  font-weight: 700;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  padding: 8px 12px;
  color: var(--white);
  font-size: 24px;
  background: var(--blue);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

/* 4. Seções principais */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  min-height: 690px;
  padding: 70px 7%;
  background: linear-gradient(110deg, #f7f8fb 0%, #ffffff 55%, #eef3fb 100%);
}

.hero h1,
.page-title h1 {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
}

.hero p,
.page-title p {
  max-width: 720px;
  color: var(--gray);
  font-size: 19px;
}

.hero-image {
  padding: 25px;
  background: var(--white);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: var(--white);
  background: var(--blue);
}

.highlight h2 {
  margin: 0 0 10px;
  font-size: 36px;
}

.highlight p {
  opacity: 0.9;
}

/* 5. Cards e produtos */
.cards {
  display: grid;
  gap: 26px;
}

.three,
.products {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 24px;
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 210px;
  margin-bottom: 18px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 14px;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 22px;
}

.card p {
  color: var(--gray);
}

.small-btn {
  margin-top: 8px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--blue);
}


/* Carrossel horizontal da página inicial */
.product-carousel {
  position: relative;
  overflow: hidden;
  padding: 10px 0 20px;
}

.product-carousel::before,
.product-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 90px;
  height: 100%;
  pointer-events: none;
}

.product-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--white), transparent);
}

.product-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--white), transparent);
}

.product-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: product-scroll 65s linear infinite;
}

.product-carousel:hover .product-track {
  animation-play-state: paused;
}

.carousel-card {
  flex: 0 0 320px;
}

@keyframes product-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* 6. Páginas internas */
.page-title {
  padding: 80px 7%;
  text-align: center;
  background: linear-gradient(120deg, #f5f7fb, #ffffff);
}

.page-title p {
  margin: auto;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 45px;
}

.about h2,
.contact-card h2 {
  color: var(--blue);
  font-size: 36px;
}

.about img {
  border-radius: 25px;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 35px;
}

.contact-card,
.form {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card a {
  color: var(--blue);
  font-weight: 700;
}

.form {
  display: grid;
  gap: 16px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: 1px solid #dddddd;
  border-radius: 12px;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

/* 7. Rodapé e WhatsApp */
.footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: 25px;
  padding: 45px 7%;
  color: var(--white);
  background: #101828;
}

.footer a {
  color: var(--white);
}

.footer p {
  opacity: 0.9;
}

.footer h3 {
  margin-top: 0;
  color: var(--white);
}

.footer-logo {
  width: auto;
  height: 55px;
  padding: 5px;
  background: var(--white);
  border-radius: 8px;
}

.category-card {
  display: flex;
  flex-direction: column;
}

.category-card .small-btn,
.product-detail-card .small-btn {
  margin-top: auto;
  width: fit-content;
}

.category-hero .back-btn {
  margin-top: 24px;
}

.category-products {
  align-items: stretch;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  color: var(--white);
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

/* 8. Responsividade */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 84px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 24px;
    background: var(--white);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }

  .nav-menu.active {
    display: flex;
  }

  .hero,
  .about,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 45px;
  }

  .three,
  .products {
    grid-template-columns: 1fr;
  }

  .highlight {
    flex-direction: column;
    text-align: center;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .carousel-card {
    flex-basis: 280px;
  }

  .product-track {
    animation-duration: 75s;
  }

  .card img {
    height: 180px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 5%;
  }

  .logo img {
    height: 45px;
  }

  .hero,
  .section,
  .page-title {
    padding-right: 5%;
    padding-left: 5%;
  }

  .hero h1 {
    font-size: 36px;
  }

  .btn {
    width: 100%;
  }

  .carousel-card {
    flex-basis: 245px;
  }

  .product-carousel::before,
  .product-carousel::after {
    width: 45px;
  }
}

/* Melhorias do rodapé: ícones, redes sociais e mapa */
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1.45;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-icon {
  width: 19px;
  min-width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-address {
  margin-bottom: 12px;
}

.footer-map-link {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 145px;
  margin-top: 12px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-map {
  width: 100%;
  height: 100%;
  border: 0;
}

.paver-products {
  align-items: stretch;
}

.paver-products .product-detail-card p {
  font-weight: 600;
  color: var(--muted);
}


/* Produtos: destaque das dimensões */
.product-detail-card img {
  display: block;
  width: 100%;
  max-width: 210px;
  height: 190px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.produto-medidas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 18px;
  color: #1f2937;
  line-height: 1.5;
}

.produto-medidas span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px;
  color: #ffffff;
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.produto-medidas strong {
  color: #111827;
  font-size: 1.02rem;
  font-weight: 700;
}
