/*
Theme Name: Maisbook
Theme URI: https://maisbook.com
Description: Tema customizado para sistema Maisbook - gerenciamento de fotos para clientes
Version: 1.0.0
Author: Maisbook
Author URI: https://maisbook.com
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #C41E3A;
  --primary-dark: #9B1B30;
  --primary-light: #E85A71;
  --secondary: #1A1A2E;
  --accent: #F5E6E8;
  --text-dark: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg-light: #FAFAFA;
  --bg-cream: #FFF9F5;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(196, 30, 58, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.logo {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}


/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 80px);
}

/* ==========================================
   BOXES (Área do Cliente)
   ========================================== */
.boxes-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  width: 100%;
}

.box {
  position: relative;
  border-radius: var(--radius-xl);
  aspect-ratio: 4/5;
  min-height: 280px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(145deg, var(--secondary), #2A2A4E);
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.box a {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 46, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.box-label {
  position: absolute;
  bottom: 25px;
  left: 25px;
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  z-index: 2;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow), var(--shadow-xl);
}

.box:hover img {
  transform: scale(1.1);
}

/* ==========================================
   FORMULÁRIOS
   ========================================== */
.form-container {
  max-width: 450px;
  width: 100%;
  margin: 40px auto;
  padding: 50px 40px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.form-container h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.form-container p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
}

.form-group input::placeholder {
  color: var(--text-light);
}

/* ==========================================
   BOTÕES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--secondary);
  box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}

.btn-secondary:hover {
  background: #2A2A4E;
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ==========================================
   GALERIA
   ========================================== */
.galeria-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.foto-item,
.selecao-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  aspect-ratio: 1;
}

.foto-item:hover,
.selecao-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.foto-item img,
.selecao-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.foto-item:hover img,
.selecao-item:hover img {
  transform: scale(1.08);
}

.selecao-item input[type="checkbox"],
.selecao-item input[type="radio"] {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 26px;
  height: 26px;
  z-index: 10;
  cursor: pointer;
  accent-color: var(--primary);
  transform: scale(1.3);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.selecao-item.selected {
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.2), var(--shadow-xl);
}

.selecao-item.selected::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* ==========================================
   ALERTAS
   ========================================== */
.alert {
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: var(--radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  color: #065F46;
  border-left: 4px solid #10B981;
}

.alert-error {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: #991B1B;
  border-left: 4px solid #EF4444;
}

/* ==========================================
   LANDING PAGE
   ========================================== */
.landing-page {
  width: 100%;
  overflow-x: hidden;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
  color: var(--white);
  padding: 120px 40px;
  text-align: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -2px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.7;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero {
  padding: 20px 48px;
  font-size: 1.15rem;
  background: var(--white);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
  background: var(--bg-cream);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Seções */
.como-funciona,
.passo-a-passo,
.cta-section {
  padding: 100px 40px;
}

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

.section-title {
  font-size: 2.8rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: var(--white);
  padding: 45px 35px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, var(--accent), #FFF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.feature-description {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.feature-list {
  list-style: none;
  text-align: left;
  margin-top: 20px;
}

.feature-list li {
  padding: 10px 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 4px;
}

/* Steps */
.passo-a-passo {
  background: var(--bg-cream);
}

.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  gap: 30px;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 70px;
  width: 3px;
  height: calc(100% - 30px);
  background: linear-gradient(180deg, var(--primary), transparent);
}

.step-number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(196, 30, 58, 0.3);
}

.step-content {
  flex: 1;
  padding-top: 8px;
}

.step-content h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #2A2A4E 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-title {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  position: relative;
}

.cta-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--primary-light);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ==========================================
   RESPONSIVO
   ========================================== */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
  }
  
  .step-item:not(:last-child)::after {
    display: none;
  }
  
  .step-number {
    margin: 0 auto;
  }
  
  .main-content {
    padding: 40px 20px;
  }
  
  .boxes-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .box {
    min-height: 200px;
  }
  
  .box-label {
    font-size: 1.2rem;
    bottom: 15px;
    left: 15px;
  }
}

@media (max-width: 600px) {
  .header {
    height: 70px;
    padding: 0 20px;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  .logo::before {
    font-size: 1.2rem;
  }
  
  .hero-section {
    padding: 80px 20px;
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn-hero {
    padding: 16px 32px;
    font-size: 1rem;
  }
  
  .como-funciona,
  .passo-a-passo,
  .cta-section {
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .main-content {
    padding: 20px 15px;
  }
  
  .boxes-container {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 350px;
  }
  
  .box {
    min-height: 180px;
    aspect-ratio: 16/10;
  }
  
  .form-container {
    padding: 35px 25px;
    margin: 20px 15px;
  }
  
  .galeria-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px 0;
  }
  
  .foto-item,
  .selecao-item {
    border-radius: var(--radius-md);
  }
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.feature-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.step-item {
  animation: fadeInUp 0.6s ease-out backwards;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
