/* 
   Design System & Base Styles 
*/
:root {
  /* Colors - Warm, elegant tones suitable for handmade craft */
  --clr-primary: #D4A373; /* Warm terracotta/beige */
  --clr-primary-light: #E9EDC9;
  --clr-secondary: #FAEDCD;
  --clr-accent: #FEFAE0;
  --clr-dark: #3A3A3A;
  --clr-text: #5A5A5A;
  --clr-text-light: #8A8A8A;
  --clr-bg: #FCFBFA;
  --clr-white: #FFFFFF;
  
  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Spacing & Utilities */
  --radius: 12px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--clr-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 
   Buttons 
*/
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background-color: #C08D5D;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 163, 115, 0.3);
}

.btn-secondary {
  background-color: var(--clr-white);
  color: var(--clr-dark);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  padding: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}

.btn-outline:hover {
  gap: 12px;
  color: #C08D5D;
}

/* 
   Navbar 
*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 5%;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--clr-dark);
}

.logo span {
  color: var(--clr-primary);
  font-style: italic;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--clr-dark);
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--clr-primary);
}

/* 
   Video Intro Section 
*/
.video-intro-container {
  height: 250vh; /* Ajustado para que 1s de rolagem rápida consiga fechar a animação */
  position: relative;
  background-color: #000;
}

.video-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.intro-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* 
   Hero Section 
*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 5% 60px;
  gap: 50px;
  background: linear-gradient(135deg, var(--clr-bg) 0%, var(--clr-secondary) 100%);
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 20px;
}

.hero-title em {
  color: var(--clr-primary);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.hero-image-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  border-radius: 200px 200px 20px 20px; /* Arch shape */
  object-fit: cover;
  height: 600px;
  box-shadow: var(--shadow-md);
}

.floating-badge {
  position: absolute;
  bottom: 40px;
  left: -20px;
  background: var(--clr-white);
  padding: 15px 25px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}

.floating-badge i {
  color: #FFD166;
  font-size: 1.5rem;
}

.floating-badge span {
  font-weight: 600;
  color: var(--clr-dark);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* 
   Gallery Section 
*/
.gallery-section {
  position: relative;
  z-index: 5;
  padding: 100px 5%;
  background-color: var(--clr-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.eyebrow {
  color: var(--clr-primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
}

.gallery-item {
  background: var(--clr-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.image-container {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .image-container img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.view-btn {
  background: var(--clr-white);
  color: var(--clr-dark);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover .view-btn {
  transform: translateY(0);
}

.item-details {
  padding: 25px;
}

.item-details h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-family: var(--font-main);
}

.caption {
  font-size: 0.9rem;
  color: var(--clr-text-light);
  margin-bottom: 20px;
  font-style: italic;
}

/* 
   About Section 
*/
.about-section {
  padding: 100px 5%;
  background-color: var(--clr-accent);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.features {
  list-style: none;
  margin-top: 30px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-weight: 500;
  color: var(--clr-dark);
}

.features i {
  color: var(--clr-primary);
  font-size: 1.2rem;
}

/* 
   Process Section 
*/
.process-section {
  padding: 100px 5%;
  background-color: var(--clr-white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.process-step {
  background: var(--clr-bg);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border-color: var(--clr-primary-light);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--clr-primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 600;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.process-step p {
  color: var(--clr-text-light);
  font-size: 0.95rem;
}

/* 
   Footer 
*/
footer {
  background-color: var(--clr-dark);
  color: var(--clr-white);
  padding: 60px 5% 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--clr-white);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.socials {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  font-size: 1.2rem;
}

.socials a:hover {
  background: var(--clr-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.admin-link {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  font-size: 0.75rem;
  margin-left: 12px;
  transition: color 0.3s ease;
}

.admin-link:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

/* 
   Hamburger Menu Button 
*/
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background-color: var(--clr-dark);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   RESPONSIVE - TABLET (768-900px)
   =========================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
    gap: 30px;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-container {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .hero-image {
    height: 450px;
    max-width: 400px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    align-items: center;
  }

  .socials {
    justify-content: center;
  }
}

/* ===========================
   RESPONSIVE - MOBILE (≤ 768px)
   =========================== */
@media (max-width: 768px) {
  /* Navbar com hambúrguer */
  .navbar {
    padding: 15px 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--clr-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
    font-family: var(--font-serif);
  }

  .hamburger {
    display: flex;
  }

  .nav-btn {
    display: none; /* Botão WhatsApp da navbar some no mobile (vai pro menu) */
  }

  .logo {
    font-size: 1.2rem;
  }

  /* Hero - desativa animação pesada no mobile */
  .video-intro-container {
    display: none;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .hero-image {
    height: 350px;
    max-width: 100%;
    border-radius: 150px 150px 16px 16px;
  }

  .floating-badge {
    bottom: 20px;
    left: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  /* Section spacing */
  .gallery-section,
  .about-section,
  .process-section {
    padding: 60px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2,
  .about-text h2 {
    font-size: 1.8rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .image-container {
    height: 250px;
  }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr;
  }

  /* Botões maiores para touch (mínimo 44px) */
  .btn-primary,
  .btn-secondary {
    padding: 14px 24px;
    min-height: 44px;
  }

  /* Footer */
  footer {
    padding: 40px 20px 20px;
  }
}

/* ===========================
   RESPONSIVE - MOBILE PEQUENO (≤ 480px)
   =========================== */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem !important;
  }

  .section-header h2,
  .about-text h2 {
    font-size: 1.5rem;
  }

  .hero-image {
    height: 280px;
  }

  .floating-badge {
    padding: 8px 14px;
    bottom: 15px;
  }

  .floating-badge span {
    font-size: 0.8rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }

  .footer-bottom p {
    line-height: 1.8;
  }
}

/* Acessibilidade: respeita preferência do usuário por menos animações */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .video-intro-container {
    display: none;
  }
}
