/* ===== VARIÁVEIS E ESTILOS GERAIS ===== */
:root {
  --white: #ffffff;
  --text-color: #333333;
  --primary-color: #4a90e2;
  --secondary-color: #2c3e50;
  --background-color: #e8f4ff;
  --accent-color: #ff6b6b;
  --dark-accent: #1a2a6c;
  --yellow-accent: #fdbb2d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  min-height: 100vh;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

main {
  padding-top: 72px;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

img {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-drag: none;
  pointer-events: none;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 2rem;
  }

  .hero-logo {
    width: 200px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }
}

/* ===== SEÇÃO HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  text-align: center;
  padding: 2rem;
  background-color: var(--background-color);
  background-image: linear-gradient(rgba(232, 244, 255, 0.9), rgba(232, 244, 255, 0.9));
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-logo {
  width: 300px;
  height: auto;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  animation: fadeIn 1s ease 0.5s both;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: center;
  animation: fadeIn 1s ease 0.7s both;
}

.cta-button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeIn 1s ease 0.9s both;
}

.cta-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active {
  transform: rotate(180deg);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .hamburger {
    display: flex;
  }

  .brand-logo {
    height: 32px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background-color: #ffffff;
    padding: 5rem 1rem 2rem;
    gap: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100vh;
    overflow-y: auto;
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
}

/* ===== CATÁLOGO E FLIPBOOK ===== */
.catalog-section {
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.flipbook-container {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  margin-bottom: 20px;
}

#flipbook {
  width: 100%;
  height: 70vh;
  margin: 0 auto;
  background: #f8f8f8;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page {
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.flipbook-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.control-button {
  padding: 12px 25px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background: var(--dark-accent);
  color: white;
}

.control-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.control-button:active {
  transform: translateY(1px);
}

.thumbnail-container {
  flex: 0 0 300px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  max-height: 80vh;
  overflow-y: auto;
}

.thumbnail-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-accent);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--yellow-accent);
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 15px;
}

.thumbnail {
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  position: relative;
}

.thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.thumbnail.active {
  box-shadow: 0 0 0 3px var(--dark-accent);
  transform: scale(1.05);
}

.thumbnail img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.thumbnail .page-num {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  text-align: center;
  padding: 3px;
  font-size: 0.8rem;
}

@media (max-width: 1100px) {
  .main-content {
    flex-direction: column;
  }
  
  .thumbnail-container {
    max-width: 100%;
  }
  
  .thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
}

@media (max-width: 768px) {
  .catalog-section {
    padding: 1rem;
  }

  #flipbook {
    height: 60vh;
  }
}

/* ===== TELA CHEIA ===== */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  display: none;
}

.fullscreen-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.fullscreen-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.fullscreen-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

#fullscreen-flipbook {
  width: 90%;
  height: 85%;
}

/* ===== BOTÃO WHATSAPP ===== */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  background-color: #25D366;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: translateY(-3px);
}

.whatsapp-button img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* ===== SEÇÃO DE CONTATO ===== */
.contact-section {
  padding: 4rem 2rem;
  background-color: var(--white);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-container h2 {
  text-align: center;
  color: var(--secondary-color);
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  text-align: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-card h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-card p {
  color: var(--text-color);
  line-height: 1.6;
}

.contact-card small {
  display: block;
  margin-top: 0.5rem;
  color: #666;
}

.map-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mapouter {
  position: relative;
  text-align: right;
  width: 100%;
  height: 400px;
}

.gmap_canvas {
  overflow: hidden;
  background: none !important;
  width: 100%;
  height: 400px;
}

.gmap_iframe {
  width: 100% !important;
  height: 400px !important;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 2rem 1rem;
  }

  .contact-container h2 {
    font-size: 2rem;
  }

  .contact-grid {
    gap: 1rem;
  }

  .mapouter,
  .gmap_canvas,
  .gmap_iframe {
    height: 300px;
  }
}