/* =====================================================
   Adeline Scharam | Estética
   Paleta oficial da marca (Manual da Marca):
   verde profundo #112509 + dourado #B1812B.
   Arquivo simples, sem build.
   ===================================================== */

:root {
  --green: #112509;
  --gold: #b1812b;

  /* tons derivados das duas cores oficiais, para fundos e estados */
  --green-light: color-mix(in srgb, var(--green) 12%, white);
  --green-mid:   color-mix(in srgb, var(--green) 55%, white);
  --gold-light:  color-mix(in srgb, var(--gold) 16%, white);
  --gold-dark:   color-mix(in srgb, var(--gold) 80%, black);

  --cream: #fbf9f4;
  --ink: var(--green);
  --text: #3c4636;

  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin-top: 0;
}

h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 32px;
}

p { color: var(--text); }

a { color: var(--gold-dark); }

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--gold-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.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;
}

.brand-mark {
  height: 44px;
  width: auto;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: bold;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
}

.btn-outline:hover {
  background: var(--gold-light);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  backdrop-filter: blur(2px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.header-cta { display: none; }

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

/* ===== Parallax sections (hero + espaço) ===== */
.parallax-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.parallax-bg {
  position: absolute;
  inset: -18% 0;
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 37, 9, 0.62), rgba(17, 37, 9, 0.8));
  z-index: 1;
}

/* Screens under 768px get a static (non-animated) background: no JS transform is
   applied there (see app.js), this rule only guarantees no layout side-effects. */
@media (max-width: 767px) {
  .parallax-bg { inset: 0; }
}

/* Hero */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.eyebrow-light { color: var(--gold); }

.hero-inner .eyebrow { color: var(--gold); }

.hero-inner h1 {
  font-size: 2.6rem;
  margin: 0 0 20px;
  color: #fff;
}

.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto 20px;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Como funciona o atendimento (seção de texto simples, sem foto de espaço) */
.atendimento {
  padding: 64px 0;
  background: var(--gold-light);
  text-align: center;
}

.atendimento-inner {
  max-width: 620px;
  margin: 0 auto;
}

.atendimento-inner p:not(.eyebrow) {
  font-size: 1.05rem;
}

/* Sobre */
.sobre {
  padding: 64px 0;
}

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: 900px;
}

.sobre-foto {
  width: 260px;
  height: 260px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.sobre-texto { min-width: 0; }
.sobre-texto h2 { text-align: left; }

@media (min-width: 720px) {
  .sobre-inner {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .sobre-foto { width: 100%; height: auto; }
}

/* Serviços */
.servicos {
  background: var(--green-light);
  padding: 64px 0;
}

.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.servico-card {
  background: #fff;
  border: 1px solid var(--gold-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(17, 37, 9, 0.08);
  display: flex;
  flex-direction: column;
}

.servico-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.servico-body {
  padding: 20px 24px 24px;
}

.servico-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.servico-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Contato */
.contato {
  padding: 64px 0;
}

.contato-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 720px) {
  .contato-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.contato-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contato-lista li {
  color: var(--text);
}

/* Ícones de contato (WhatsApp, e-mail, Instagram): botões circulares com
   borda, no lugar do texto repetindo telefone/e-mail por extenso. */
.contato-social {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  color: var(--green);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.contato-cta {
  display: flex;
  justify-content: center;
}

/* ===== Scroll reveal (Intersection Observer toggles .is-visible) ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.servicos-grid .servico-card:nth-child(1) { transition-delay: 0s; }
.servicos-grid .servico-card:nth-child(2) { transition-delay: 0.08s; }
.servicos-grid .servico-card:nth-child(3) { transition-delay: 0.16s; }
.servicos-grid .servico-card:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .parallax-bg { transform: none !important; }
}

/* ===== Galeria / Carrossel ===== */
.galeria {
  padding: 64px 0;
  background: var(--green-light);
}

.carousel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

/* Viewport com perspectiva 3D: recria o efeito "coverflow" (slide central em
   destaque, vizinhos menores/rotacionados espiando dos lados) sem biblioteca. */
.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  perspective: 1200px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 64%;
  height: 100%;
  margin-left: -32%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: translateX(0) scale(0.6);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.55s ease;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(17, 37, 9, 0.3);
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-slide.is-active {
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
  transform: translateX(0) scale(1) rotateY(0deg);
}

.carousel-slide.is-prev,
.carousel-slide.is-next {
  opacity: 0.55;
  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
}

.carousel-slide.is-prev { transform: translateX(-78%) scale(0.82) rotateY(14deg); }
.carousel-slide.is-next { transform: translateX(78%) scale(0.82) rotateY(-14deg); }

@media (max-width: 640px) {
  .carousel-slide { width: 80%; margin-left: -40%; }
  .carousel-slide.is-prev { transform: translateX(-56%) scale(0.85) rotateY(10deg); }
  .carousel-slide.is-next { transform: translateX(56%) scale(0.85) rotateY(-10deg); }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(17, 37, 9, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.carousel-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }

@media (min-width: 720px) {
  .carousel-prev { left: -22px; }
  .carousel-next { right: -22px; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(177, 129, 43, 0.3); /* var(--gold) a 30% */
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.carousel-dot.is-active {
  width: 30px;
  border-radius: 6px;
  background: var(--gold);
}

/* Footer */
.site-footer {
  background: var(--green);
  color: var(--gold-light);
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 96px;
  height: auto;
  margin-bottom: 12px;
}

.footer-legal {
  color: var(--gold-light);
  margin: 2px 0;
}

.site-footer .copy {
  opacity: 0.75;
  font-size: 0.8rem;
  margin-top: 12px;
  color: var(--gold-light);
}

/* Floating WhatsApp button (mobile-friendly) */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--whatsapp);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  z-index: 20;
}

.whatsapp-float:hover {
  background: var(--whatsapp-dark);
}
