/* ============ Paleta baseada na logo Brilia Arte Doce ============ */
:root {
  --color-bg: #fffaf8;
  --color-bg-soft: #fdeef1;
  --color-pink-light: #f7d9e3;
  --color-pink: #eaa8bd;
  --color-pink-dark: #d98aa3;
  --color-brown: #5c4033;
  --color-brown-light: #8a6a5a;
  --color-text: #4a3128;
  --color-white: #ffffff;
  --shadow-soft: 0 8px 24px rgba(92, 64, 51, 0.12);
  --radius: 16px;
  --font-heading: 'Dancing Script', cursive;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 248, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(92, 64, 51, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-brown);
}

.brand-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 50%;
}


.brand-fallback {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-pink-dark);
}
.brand-fallback em { font-style: normal; color: var(--color-brown); font-size: 1rem; font-family: var(--font-body); display: block; margin-top: -6px; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--color-brown);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: var(--color-white);
  box-shadow: -8px 0 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 90px 30px 30px;
  transform: translateX(100%);
  transition: transform .3s ease;
  visibility: hidden;
}
.main-nav.open { transform: translateX(0); visibility: visible; }

.nav-link {
  color: var(--color-brown);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 0;
  width: 100%;
  border-bottom: 1px solid var(--color-bg-soft);
}

.nav-social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-white);
  text-decoration: none;
}
.icon-btn.whatsapp { background: #25D366; }
.icon-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ============ Botões ============ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: var(--font-body);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--color-pink-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--color-brown); }
.btn-outline {
  background: transparent;
  border-color: var(--color-pink-dark);
  color: var(--color-pink-dark);
}
.btn-outline:hover { background: var(--color-pink-light); }
.btn-block { display: block; width: 100%; }

/* ============ Hero ============ */
.hero {
  background: radial-gradient(circle at 50% 0%, var(--color-pink-light) 0%, var(--color-bg-soft) 45%, var(--color-bg) 100%);
  padding: 48px 0 56px;
  text-align: center;
}
.hero-logo-space {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}
.hero-logo-space img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-placeholder {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--color-pink-dark);
  text-align: center;
  padding: 10px;
}
.logo-placeholder small { color: var(--color-brown-light); font-size: 0.7rem; }

.hero-tagline {
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: var(--color-brown-light);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* ============ Seções ============ */
.section { padding: 56px 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-pink-dark);
  text-align: center;
  margin: 0 0 6px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-brown-light);
  margin: 0 0 32px;
}

/* ============ Galeria ============ */
.gallery-section { background: var(--color-white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gallery-item {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  animation: gallery-fade-in .35s ease both;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(92, 64, 51, 0.18);
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after,
.gallery-item:active::after { opacity: 1; }
.gallery-item:active img { transform: scale(0.98); }

@keyframes gallery-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-load-more {
  display: block;
  margin: 32px auto 0;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-brown-light);
  padding: 24px;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(74, 49, 40, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-stage {
  max-width: 100%;
  max-height: 85vh;
  overflow: hidden;
  touch-action: pan-y;
}
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  user-select: none;
  cursor: grab;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.lightbox img.dragging {
  cursor: grabbing;
  transition: none;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 600px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ============ Contato / Formulário ============ */
.contact-section { background: var(--color-bg-soft); }
.contact-form {
  background: var(--color-white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.form-group label { font-size: 0.9rem; font-weight: 500; color: var(--color-brown); }
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--color-pink-light);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-pink-dark);
}
.field-hint { font-size: 0.78rem; color: var(--color-brown-light); min-height: 1em; }
.form-feedback { text-align: center; font-weight: 500; min-height: 1.4em; }
.form-feedback.success { color: #2e7d32; }
.form-feedback.error { color: #c62828; }

.submit-progress {
  width: 100%;
  height: 8px;
  background: var(--color-bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}
.submit-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-pink-dark), var(--color-brown));
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--color-brown);
  color: var(--color-white);
  padding: 32px 0;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { height: 56px; width: 56px; border-radius: 50%; background: var(--color-white); object-fit: contain; padding: 6px; }
.footer-inner p { margin: 0; font-size: 0.9rem; opacity: 0.85; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: var(--color-pink-light); text-decoration: none; font-weight: 500; }
.footer-social a:hover { color: var(--color-white); }

/* ============ Botão flutuante WhatsApp ============ */
.floating-whatsapp,
.floating-instagram {
  position: fixed;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  text-decoration: none;
}

.floating-whatsapp {
  bottom: 20px;
  background: #25D366;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.floating-instagram {
  bottom: 86px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.4);
}

/* ============ Tablet / Desktop (mobile-first, enhance upward) ============ */
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { flex-direction: row; }
  .form-group-narrow { flex: 0 0 120px; }
  .form-group-wide { flex: 2; }
  .hero-actions { flex-direction: row; justify-content: center; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    box-shadow: none;
    padding: 0;
    gap: 28px;
    transform: none;
    visibility: visible;
  }
  .nav-link { width: auto; border-bottom: none; padding: 0; }
  .nav-social { margin-top: 0; }
  .hero { padding: 72px 0 80px; }
  .hero-logo-space { width: 240px; height: 240px; }
  .section-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
