/* =========================================
   BASE
   ========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-deep);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1;
}

/* scroll-reveal: one quiet, orchestrated entrance per section */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* wavy section divider, reused between bands */
.wave-divider {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-copy .eyebrow::after {
  content: "";
  height: 1px;
  width: 48px;
  background: var(--gold);
  display: inline-block;
}

.hero-lede {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink-soft);
  font-weight: 400;
}

.hero-copy h1.script {
  font-size: 76px;
  color: var(--gold-deep);
  margin: 2px 0 20px;
}

.hero-text {
  max-width: 440px;
  color: var(--ink-soft);
  font-size: 16px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-actions .btn-ghost {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  transition: gap var(--fast) var(--ease), color var(--fast) var(--ease);
}

.hero-actions .btn-ghost i {
  transition: transform var(--fast) var(--ease);
}

.hero-actions .btn-ghost:hover {
  color: var(--gold-deep);
  gap: 16px;
}

.hero-actions .btn-ghost:hover i {
  transform: translateY(3px);
}

.hero-frame {
  position: relative;
  isolation: isolate;
}

.hero-frame .frame-image {
  position: relative;
  border-radius: 200px 200px 12px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(54, 43, 34, 0.35);
  aspect-ratio: 3 / 4;
}

.hero-frame .frame-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.hero-frame:hover .frame-image img {
  transform: scale(1.08);
}

.hero-frame .floral-top {
  position: absolute;
  top: -46px;
  left: -60px;
  width: 140px;
  height: 170px;
  z-index: -1;
  opacity: 0.9;
  pointer-events: none;
}

.hero-frame .floral-bottom {
  position: absolute;
  bottom: -34px;
  right: -46px;
  width: 110px;
  height: 130px;
  transform: rotate(180deg);
  z-index: -1;
  opacity: 0.85;
  pointer-events: none;
}

/* rotating seal badge, a single deliberate flourish */
.seal {
  position: absolute;
  left: -34px;
  bottom: 28px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px -12px rgba(54, 43, 34, 0.35);
  display: grid;
  place-items: center;
}

.seal svg {
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}

.seal .seal-heart {
  position: absolute;
  font-size: 15px;
  color: var(--gold-deep);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* info strip beneath the hero */
.hero-highlights {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 12px;
}

.hero-highlights .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 40px;
  gap: 24px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-item i {
  color: var(--gold-deep);
  font-size: 20px;
  margin-top: 2px;
}

.highlight-item h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .hero {
    padding: 48px 0 8px;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }
  .hero-copy h1.script {
    font-size: 54px;
  }
  .hero-frame {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
  .seal {
    left: -18px;
    bottom: -18px;
    width: 88px;
    height: 88px;
  }
  .hero-highlights .container {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }
}

/* =========================================
   NOSSA ESSÊNCIA (about / story)
   ========================================= */

.essence-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 40px 100px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.essence-copy h2 {
  font-size: 40px;
  line-height: 1.18;
  margin-bottom: 18px;
}

.essence-copy p {
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 28px;
}

.collage {
  position: relative;
  height: 380px;
}

.collage figure {
  position: absolute;
  background: var(--paper);
  padding: 10px 10px 26px;
  box-shadow: 0 18px 40px -20px rgba(54, 43, 34, 0.4);
  border-radius: 3px;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.collage figure:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow: 0 24px 50px -18px rgba(54, 43, 34, 0.45);
  z-index: 5;
}

.collage figure img {
  width: 210px;
  height: 260px;
  object-fit: cover;
}

.collage figure:nth-child(1) {
  left: 0;
  top: 40px;
  transform: rotate(-7deg);
}

.collage figure:nth-child(2) {
  left: 150px;
  top: 0;
  transform: rotate(4deg);
}

.collage figure:nth-child(3) {
  left: 300px;
  top: 55px;
  transform: rotate(-3deg);
}

@media (max-width: 900px) {
  .essence-section {
    grid-template-columns: 1fr;
    padding: 20px 24px 70px;
    gap: 48px;
  }
  .collage {
    order: -1;
    height: 300px;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .collage figure img {
    width: 160px;
    height: 200px;
  }
  .collage figure:nth-child(2) { left: 110px; }
  .collage figure:nth-child(3) { left: 220px; }
}

@media (max-width: 480px) {
  .collage { height: 240px; }
  .collage figure img { width: 130px; height: 165px; }
  .collage figure:nth-child(2) { left: 90px; }
  .collage figure:nth-child(3) { left: 175px; }
}

/* =========================================
   EVENTOS
   ========================================= */

.events-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 40px 110px;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading.left {
  margin: 0 0 50px;
  text-align: left;
}

.section-heading p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-heading h2 {
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.event-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  border-radius: 10px;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px -26px rgba(54, 43, 34, 0.4);
}

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

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.event-card:hover img {
  transform: scale(1.09);
}

.event-card-content {
  padding: 24px;
}

.event-location {
  font-size: 13px;
  color: var(--gold-deep);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-card h3 {
  font-size: 27px;
  margin-bottom: 10px;
}

.event-card-content > p:last-child {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 14px;
}

/* =========================================
   CHAMADA PARA CONTATO
   ========================================= */

.home-contact {
  position: relative;
  text-align: center;
  padding: 90px 40px 110px;
  background: var(--cream-deep);
  overflow: hidden;
}

.home-contact .floral-top {
  position: absolute;
  top: -20px;
  left: 6%;
  width: 110px;
  height: 130px;
  opacity: 0.55;
}

.home-contact .floral-bottom {
  position: absolute;
  bottom: -20px;
  right: 6%;
  width: 110px;
  height: 130px;
  transform: rotate(180deg);
  opacity: 0.55;
}

.home-contact .eyebrow {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-contact .eyebrow::before,
.home-contact .eyebrow::after {
  content: "";
  height: 1px;
  width: 36px;
  background: var(--gold);
  display: inline-block;
}

.home-contact h2 {
  max-width: 700px;
  margin: 0 auto 18px;
  font-size: 38px;
  position: relative;
  z-index: 1;
}

.home-contact > p:not(.eyebrow) {
  color: var(--ink-soft);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.home-contact .btn {
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* =========================================
   RESPONSIVO
   ========================================= */

@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-heading h2,
  .home-contact h2 {
    font-size: 34px;
  }
}

@media (max-width: 600px) {
  .events-section {
    padding: 10px 24px 70px;
  }
  .events-grid {
    grid-template-columns: 1fr;
  }
  .event-card .event-image {
    height: 260px;
  }
  .section-heading h2,
  .home-contact h2 {
    font-size: 30px;
  }
  .home-contact {
    padding: 64px 24px 74px;
  }
}

/* =========================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================= */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 26px;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.55);
  z-index: 999;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: whatsappPulse 2.4s ease-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 30px -6px rgba(37, 211, 102, 0.65);
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 18px;
    bottom: 18px;
    font-size: 22px;
  }
}
