/* --- VARIÁVEIS E RESET --- */
:root {
  --color-primary: #1F3A5F;
  --color-primary-dark: #162C47;
  --color-secondary: #E8773A;
  --color-secondary-dark: #D65F20;
  --color-secondary-light: #F2A074;
  --color-bg: #F5F5F5;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #FFFFFF;
  --transition: all 0.3s ease;
  --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header .line {
  width: 80px;
  height: 4px;
  background: var(--color-secondary);
  margin: 0 auto;
}

/* --- BOTÕES --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* --- HEADER & NAV --- */
header {
  background-color: var(--color-white);
  height: 90px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 60px; /* Ajuste para não quebrar o header */
  width: auto;
}

.nav-menu ul {
  display: flex;
  gap: 25px;
}

.nav-link {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--color-secondary);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-primary);
  transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--color-white);
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(31, 58, 95, 0.8), rgba(31, 58, 95, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* --- FEATURES --- */
.features {
  background: var(--color-white);
  padding: 40px 0;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  background: var(--color-white);
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--color-secondary);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.feature-card h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-item {
  margin-top: 25px;
}

.about-item h4 {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.about-item i { color: var(--color-secondary); }

.about-image img {
  border-radius: 8px;
  box-shadow: 20px 20px 0px var(--color-primary);
}

/* --- PRODUCTS --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-img img { transform: scale(1.05); }

.product-info {
  padding: 20px;
}

.product-info h3 { color: var(--color-primary); margin-bottom: 10px; }

.tag {
  display: inline-block;
  background: var(--color-bg);
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary-dark);
  margin-top: 15px;
  border-radius: 4px;
}

/* --- CLIENTS --- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.client-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 4px;
}

.client-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
}

.client-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* --- CONTACT --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.contact-info {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 40px;
  border-radius: 8px;
}

.info-card {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.info-card i { font-size: 1.5rem; color: var(--color-secondary); }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 15px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 20px;
}

.contact-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 15px; }

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.btn-block { width: 100%; }

/* --- FOOTER --- */
footer {
  background: #111;
  color: #ccc;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo { max-height: 50px; margin-bottom: 20px; }

.footer-links h4, .footer-sac h4 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-links ul li { margin-bottom: 10px; }

.footer-bottom {
  border-top: 1px solid #222;
  padding: 25px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* --- BACK TO TOP --- */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
}


header {
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  height: 76px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

header.scrolled .logo img {
  max-height: 52px;
}


#back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

#back-to-top i {
  font-size: 1rem;
}

/* --- RESPONSIVIDADE --- */

@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
  .about-image { order: -1; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 90px;
    flex-direction: column;
    background-color: var(--color-white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
  }

  .nav-menu.active { left: 0; }
  .nav-menu ul { flex-direction: column; gap: 15px; }

  .hero h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
}

/* Animações */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* --- ESTILOS DA SEÇÃO PRODUTOS (REESTRUTURADA) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas desktop */
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.product-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(31, 58, 95, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay { opacity: 1; }

.product-overlay span {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 2px solid white;
    padding: 8px 15px;
    border-radius: 4px;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* --- ESTILOS DO MODAL --- */
.modal-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    display: none; /* Escondido por padrão */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-wrapper.active { display: flex; }

.modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--color-white);
    width: 100%;
    max-width: 650px;
    border-radius: 15px;
    position: relative;
    z-index: 2001;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: none; /* Escondido */
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-wrapper.active .modal-content.active {
    display: block;
    transform: scale(1);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover { color: var(--color-secondary); }

.modal-header {
    border-bottom: 3px solid var(--color-secondary);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
}

.tech-item {
    background: var(--color-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.tech-item h4 {
    color: var(--color-secondary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
}

.tech-item ul li {
    margin-bottom: 5px;
    font-size: 0.95rem;
    list-style: none;
}

.grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- RESPONSIVIDADE PRODUTOS --- */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr; }
    .grid-modal { grid-template-columns: 1fr; }
    .modal-content { padding: 30px 20px; }
}



.form-honey {
    display: none;
}

.form-status {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
}

.form-status.success {
    color: #1f7a3a;
}

.form-status.error {
    color: #b00020;
}


.client-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.client-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: clientCarousel 35s linear infinite;
}

.client-carousel:hover .client-track {
    animation-play-state: paused;
}

.client-item {
    flex: 0 0 180px;
    height: 140px;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.client-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: 0.3s ease;
}

.client-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes clientCarousel {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 12px));
    }
}

@media (max-width: 768px) {
    .client-track {
        gap: 16px;
        animation-duration: 28s;
    }

    .client-item {
        flex: 0 0 140px;
        height: 110px;
        padding: 14px;
    }
}


.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: #1F3A5F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: #D96B1C;
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-social a:nth-child(1):hover {
    background: #1877f2;
}

.footer-social a:nth-child(2):hover {
    background: #D96B1C;
}

.footer-social a:nth-child(3):hover {
    background: #e4405f;
}

.footer-social a:nth-child(4):hover {
    background: #25d366;
}