/* Estilos base do site Fabriletras */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #34495E;
}

h1, h2, h3, h4, .section-title {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2C3E50;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

header {
  background: #2C3E50;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 0;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 52px;
  width: auto;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .logo img {
    height: 42px;
    padding: 5px 8px;
  }
}

:root {
  --brand-blue: #2563eb;
  --brand-blue-light: #3b82f6;
  --brand-blue-dark: #1d4ed8;
  --brand-header: #2c3e50;
}

.logo a {
  color: var(--brand-blue-light);
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo a:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--brand-blue-light);
}

.mobile-menu {
  display: none;
}

.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  background: var(--brand-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.3s;
  border: none;
  cursor: pointer;
  font-family: 'Open Sans', Arial, sans-serif;
}

.btn:hover {
  transform: translateY(-3px);
}

.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.deferred-render {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 980px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d5dde5;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(44, 62, 80, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.product-card {
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--brand-blue-light);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.16);
  transform: translateY(-2px);
}

.product-card picture {
  display: block;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.03);
}

.product-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  padding: 0;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  font-family: 'Montserrat', Arial, sans-serif;
}

.product-card p {
  padding: 0;
  margin: 0 0 0.75rem;
  flex: 1;
  color: #5d6d7e;
  font-size: 0.92rem;
  line-height: 1.5;
}

.product-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-blue);
  margin-top: auto;
}

.product-card-icon {
  transition: transform 0.2s ease;
}

.product-card:hover .product-card-icon {
  transform: translateX(3px);
}

.product-card .btn {
  margin: 0 1.25rem 1.25rem;
  align-self: flex-start;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
}

.product-card > h3 {
  padding: 1.1rem 1.25rem 0;
}

.product-card > p {
  padding: 0 1.25rem;
}

.about {
  background: #f9f9f9;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 8px;
}

.clients {
  background: #1a1a1a;
  color: #fff;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.client-logo {
  background: #fff;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq {
  background: #fff;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem;
  background: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
}

.faq-item p {
  padding: 1rem;
}

footer {
  background: #1a1a1a;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.footer-info {
  margin-bottom: 1rem;
}

.footer-info p {
  margin: 0.5rem 0;
}

.social-links {
  margin: 1rem 0;
}

.social-links a {
  color: var(--brand-blue-light);
  margin: 0 0.5rem;
  font-size: 1.5rem;
}

.wa-float,
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  min-height: 44px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.wa-float:hover,
.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

.whatsapp-float img {
  width: 36px;
  height: 36px;
  display: block;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.portfolio-filters button {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid #2C3E50;
  background: #ECF0F1;
  color: #2C3E50;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Open Sans', Arial, sans-serif;
}

.portfolio-filters button.is-active,
.portfolio-filters button:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #bdc3c7;
  border-radius: 5px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 12px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
    cursor: pointer;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
