/* Importação de fontes */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap");

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variáveis CSS para cores */
:root {
  --primary: #fe66cb;
  --secondary: #c99cff;
  --dark: #121212;
  --darkgray: #1e1e1e;
  --light: #b8b8b8;
  --lightgray: #e6e6e6;
  --white: #ffffff;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-700: #374151;
  --green-500: #10b981;
  --red-500: #ef4444;
}

@font-face {
  font-family: Domaine;
  src: url(font/DomaineSemibold.woff2) format("woff2");
}

/* Estilos base */
html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  touch-action: manipulation;
  font-family: "Poppins", sans-serif;
  -webkit-tap-highlight-color: transparent;
  background-color: #efe4f2;
  color: var(--light);
  position: fixed;
  max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Domaine", Georgia, serif;
}

/* Estilos para páginas */
.app-page {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  max-width: 786px;
  margin: auto;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.app-page.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  display: flex;
}

/* Cabeçalho das páginas */
.page-header {
  background-color: var(--primary);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header h2 {
  color: var(--white);
  font-size: 24px;
}

.back-btn {
  color: var(--white);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.spacer {
  width: 24px;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  background-image: url("img/bg.webp");
  background-size: cover;
  padding-left: 24px;
  padding-right: 24px;
}

/* Conteúdo das páginas */
.page-content {
  flex: 1;
  background-color: var(--lightgray);
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100% - 120px); /* Ajuste para evitar overflow */
}

/* Rodapé das páginas */
.page-footer {
  padding: 16px;
  background-color: var(--white);
}

/* Botões */
.btn {
  display: inline-block;
  padding: 12px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 48px;
  font-weight: bold;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
}

.btn-secondary {
  background-color: var(--primary);
}

/* Efeito de ripple para botões */
.ripple:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple:active:after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}

/* Animações para botões */
.app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  border-radius: 50px;
  padding: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid var(--white);
  color: var(--white);
  cursor: pointer;
}

.app-btn:active {
  transform: scale(0.95);
}

.app-btn .icon-circle i {
  color: var(--secondary);
  font-size: 20px;
}

.app-btn span {
  font-family: "Domaine", Georgia, serif;
  font-weight: 500;
  font-size: 24px;
}

/* Grid de botões */
.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Logo e descrição */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 24px 24px;
  margin-bottom: 50px;
}

.app-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
}

.app-description {
  font-size: 14px;
  color: var(--gray-300);
  text-align: center;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.modal.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: flex;
}

.modal-container {
  background-color: var(--lightgray);
  width: 100%;
  height: 100%;
  max-width: 786px;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background-color: var(--primary);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  color: var(--white);
  font-size: 24px;
  line-height: 32px;
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.modal-footer {
  padding: 16px;
  background-color: var(--white);
}

#btnOrcamento {
  background-color: var(--green-500);
}

/* Success Modal */
.success-modal-container {
  background-color: var(--white);
  width: 83.333%;
  max-width: 384px;
  border-radius: 12px;
  overflow: hidden;
  padding: 24px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--green-500);
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon i {
  color: var(--white);
  font-size: 32px;
}

.success-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 8px;
}

.success-message {
  color: var(--gray-700);
  margin-bottom: 24px;
}

/* Formulário */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 16px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  background-color: var(--white);
  border: 1px solid var(--secondary);
  border-radius: 8px;
  color: var(--gray-700);
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  font-size: 16px;
}

.form-control:focus {
  outline: none;
  border: 1.5px solid var(--primary);
  border-color: var(--primary);
}

.form-control::placeholder {
  color: var(--gray-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Cartões de produto */
.product-card {
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.product-title {
  font-size: 24px;
  line-height: 32px;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-card-content {
  display: flex;
  align-items: center;
  justify-items: center;
}

.product-info {
  display: flex;
  width: 100%;
}

.product-image {
  width: 33%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  display: flex;
  border-radius: 8px;
  border: 2px solid var(--secondary);
  width: 80px;
}

.product-description {
  width: 66%;
  font-size: 12px;
  line-height: 16px;
  padding: 12px;
  color: var(--gray-700);
}

.product-price {
  font-size: 12px;
  line-height: 16px;
  font-weight: bold;
  color: var(--primary);
  text-align: center;
  padding-bottom: 8px;
}

/* Galeria */
.gallery-grid {
  background-color: var(--lightgray);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gallery-item {
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--white);
}

.gallery-item img {
  background-size: cover;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Sobre */
.about-logo {
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.about-section {
  margin-bottom: 24px;
}

.about-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 8px;
}

.about-text {
  font-size: 14px;
  color: var(--gray-700);
  text-align: justify;
}

.about-values {
  margin-top: 8px;
}

.value-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.value-item i {
  color: var(--primary);
  font-size: 14px;
  margin-right: 8px;
}

.value-text {
  font-size: 14px;
  color: var(--gray-700);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.contact-item i {
  color: var(--primary);
  font-size: 14px;
  margin-right: 8px;
}

.contact-text {
  font-size: 14px;
  color: var(--gray-700);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 16px;
}

.social-links a {
  text-decoration: none;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.back-btn:active {
  animation: pulse 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 0.3s ease forwards;
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.slide-out-right {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.slide-down {
  animation: slideDown 0.3s ease forwards;
}

/* Animação para carregamento da página */
.app-container {
  opacity: 0;
  transform: translateY(10px);
  animation: appLoad 0.5s ease forwards 0.2s;
}

@keyframes appLoad {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos para scrollbar */
.app-page::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 4px;
}

.app-page::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
  background: rgba(30, 30, 30, 0.5);
}

.app-page::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* Utilitários */
.mb-6 {
  margin-bottom: 24px;
}

.space-y-6 > * + * {
  margin-top: 24px;
}

.space-y-2 > * + * {
  margin-top: 8px;
}

.alert {
  background-color: var(--red-500) !important;
}
