/* ===================================
   Casa da Costura — Site
   =================================== */

:root {
  --marsala: #5C1228;
  --marsala-dark: #420D1C;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-light: #f4f4f4;
  --gray-text: #555555;
  --gold: #E8C27A;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1100px;
  --radius: 6px;
}

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

body { -webkit-user-select: none; user-select: none; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: opacity 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg { padding: 16px 36px; font-size: 17px; }

.btn-white { background: var(--white); color: var(--marsala); border-color: var(--white); }

.btn-marsala { background: var(--marsala); color: var(--white); border-color: var(--marsala); }
.btn-marsala:hover { background: var(--marsala-dark); opacity: 1; box-shadow: 0 6px 20px rgba(92,18,40,0.4); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); opacity: 1; }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--marsala);
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(66,13,28,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; height: 48px; width: auto; }

/* ── Desktop Nav ── */
.nav { display: flex; align-items: center; gap: 36px; }

.nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s;
  position: relative;
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.22s ease;
}

.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.nav-wa {
  color: var(--gold) !important;
  font-weight: 600 !important;
}
.nav-wa::after { background: var(--gold) !important; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.menu-open .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.header.menu-open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header.menu-open .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 10px;
  gap: 0;
}

.mobile-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.18s, padding-left 0.18s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--white); padding-left: 6px; }

.mobile-nav .mobile-wa {
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

/* ── Hero ── */
.hero {
  position: relative;
  background-color: #1a0810;
  background-image: url('assets/interior-loja.png');
  background-size: cover;
  background-position: center center;
  padding: 96px 0 108px;
  color: var(--white);
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.78) 35%,
    rgba(0,0,0,0.35) 65%,
    rgba(0,0,0,0) 100%
  );
}

.hero .container { position: relative; z-index: 1; }
.hero-text { max-width: 580px; }

.hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 20px;
}

.hero-local { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

.hero-badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.22);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Section: dark ── */
.section-dark { background: var(--black); color: var(--white); padding: 80px 0; }
.section-dark h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; margin-bottom: 40px; }

/* ── Serviços ── */
.servicos-header { margin-bottom: 40px; }

.servicos-nota {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  margin-top: 10px;
  max-width: 560px;
  line-height: 1.5;
}

.servicos-exemplos {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.grid-servicos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.card-servico {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card-servico:hover {
  border-color: var(--marsala);
  background: rgba(196,21,53,0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gold);
  border: 1px solid rgba(232,194,122,0.4);
  padding: 2px 7px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Section: light ── */
.section-light { background: var(--gray-light); color: var(--black); padding: 80px 0; }
.section-light h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; margin-bottom: 40px; }

/* ── Steps ── */
.grid-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.step { display: flex; gap: 20px; align-items: flex-start; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: var(--marsala);
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(92,18,40,0.35);
}

.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--gray-text); font-size: 15px; line-height: 1.6; }

/* ── Section: marsala ── */
.section-marsala { background: var(--marsala); color: var(--white); padding: 80px 0; }
.section-marsala h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; margin-bottom: 40px; }

.localizacao-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }

.endereco { font-size: 19px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.ref { color: rgba(255,255,255,0.72); font-size: 14px; margin-bottom: 28px; }

.horarios { margin-bottom: 28px; display: flex; flex-direction: column; gap: 5px; }

.btn-maps { margin-top: 10px; display: inline-block; }
.horarios p { font-size: 15px; color: rgba(255,255,255,0.9); }

.mapa iframe { display: block; width: 100%; border-radius: var(--radius); }

.mapa-wrap { position: relative; border-radius: var(--radius); overflow: hidden; }
.mapa-wrap iframe { display: block; }
.mapa-overlay { position: absolute; inset: 0; z-index: 1; }

/* ── CTA Final ── */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 560px; margin: 0 auto 12px; }
.cta-final p { color: rgba(255,255,255,0.65); font-size: 17px; margin-bottom: 32px; }

/* ── Footer ── */
.footer {
  background: #0d0d0d;
  color: rgba(255,255,255,0.55);
  padding: 56px 0 32px;
  border-top: 1px solid #1c1c1c;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }

.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 4px; }
.footer-logo { display: block; margin-bottom: 14px; opacity: 0.9; }

.footer-grid h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-grid p { font-size: 14px; line-height: 1.8; }

.footer-grid a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.8;
  transition: color 0.18s;
}
.footer-grid a:hover { color: var(--white); }

.copyright {
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,0.28);
  border-top: 1px solid #1c1c1c;
  padding-top: 24px;
}

/* ── Highlight ── */
.highlight { color: var(--gold); }

/* ── Galeria ── */
.section-galeria {
  background: var(--black);
  padding: 32px 0;
  overflow: hidden;
}

.galeria-header {
  margin-bottom: 12px;
}

.galeria-header h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.galeria-sub {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
}

/* ── Galeria fotos ── */
.galeria-fotos {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.galeria-foto {
  flex: 1;
  min-width: 0;
}

.galeria-foto img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}


/* ── Nossa história ── */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
}

.historia-foto {
  border-radius: var(--radius);
  overflow: hidden;
}

.historia-foto img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 65%;
  display: block;
}

.historia-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--marsala);
  margin-bottom: 20px;
}

.historia-p {
  font-size: 18px;
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 18px;
}

.historia-p--destaque {
  font-size: 20px;
  color: var(--black);
  font-weight: 500;
}

/* ── Interior no bloco localização ── */
.mapa-interior {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 10px;
}

/* ── Depoimentos ── */
.section-reviews { background: var(--white); padding: 80px 0; overflow: hidden; }

.reviews-header { margin-bottom: 40px; }
.reviews-header h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; color: var(--black); margin-bottom: 6px; }
.reviews-sub { font-size: 15px; color: var(--gray-text); }

/* ── Carousel ── */
.reviews-carousel {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.reviews-track {
  display: flex;
  gap: 20px;
  position: relative;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.11);
}

.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.review-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
}

.review-meta { flex: 1; min-width: 0; }
.review-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-meta span { font-size: 12px; color: var(--gray-text); }

.google-g { flex-shrink: 0; }

.review-stars { color: #FBBC05; font-size: 15px; letter-spacing: 1px; margin-bottom: 10px; }

.review-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

/* Carousel buttons — glow para chamar atenção */
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
  50%       { box-shadow: 0 2px 18px rgba(92,18,40,0.3), 0 0 0 3px rgba(92,18,40,0.08); }
}

.carousel-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: var(--white);
  color: #444;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  animation: btn-glow 2.8s ease-in-out infinite;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--marsala);
  border-color: var(--marsala);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(92,18,40,0.4);
  animation: none;
}

.prev-btn { margin-right: 14px; }
.next-btn { margin-left: 14px; }

/* Dots */
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s, border-radius 0.2s;
}

.carousel-dot.active {
  background: var(--marsala);
  width: 24px;
  border-radius: 4px;
}

/* ── Floating WhatsApp button ── */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.float-wa:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}

/* ── Scroll animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-stagger].visible > * { opacity: 1; transform: translateY(0); }
[data-stagger].visible > *:nth-child(1)  { transition-delay: 0.05s; }
[data-stagger].visible > *:nth-child(2)  { transition-delay: 0.12s; }
[data-stagger].visible > *:nth-child(3)  { transition-delay: 0.19s; }
[data-stagger].visible > *:nth-child(4)  { transition-delay: 0.10s; }
[data-stagger].visible > *:nth-child(5)  { transition-delay: 0.17s; }
[data-stagger].visible > *:nth-child(6)  { transition-delay: 0.24s; }
[data-stagger].visible > *:nth-child(7)  { transition-delay: 0.10s; }
[data-stagger].visible > *:nth-child(8)  { transition-delay: 0.17s; }
[data-stagger].visible > *:nth-child(9)  { transition-delay: 0.24s; }
[data-stagger].visible > *:nth-child(10) { transition-delay: 0.12s; }
[data-stagger].visible > *:nth-child(11) { transition-delay: 0.19s; }
[data-stagger].visible > *:nth-child(12) { transition-delay: 0.26s; }
[data-stagger].visible > *:nth-child(13) { transition-delay: 0.14s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .header.menu-open .mobile-nav { display: flex; }

  .review-card { flex: 0 0 calc(50% - 10px); }

  .localizacao-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-steps { grid-template-columns: 1fr; gap: 28px; }
  .historia-grid { grid-template-columns: 1fr; gap: 32px; }
  .historia-foto img { height: 300px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .hero { padding: 64px 0 72px; min-height: 480px; }
  .hero::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 100%);
  }
  .grid-servicos { display: flex; flex-wrap: wrap; gap: 8px; }
  .card-servico { padding: 7px 14px; font-size: 13px; border-radius: 100px; flex: 0 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 22px; }
  .prev-btn { margin-right: 8px; }
  .next-btn { margin-left: 8px; }

  .galeria-fotos { flex-wrap: wrap; }
  .galeria-foto { flex: 0 0 calc(50% - 5px); }
  .mapa-interior { height: 160px; }
}

@media (max-width: 560px) {
  .review-card { flex: 0 0 100%; }
}

@media (max-width: 400px) {
  .btn-lg { padding: 14px 28px; font-size: 16px; }
}
