/* ===== Design tokens ===== */
:root {
  --bg: #faf7f2;
  --bg-alt: #f2ece2;
  --surface: #ffffff;
  --text: #2b2622;
  --muted: #6b625a;
  --brand: #8a5a2b;      /* placeholder — ajustar à identidade do Micale */
  --brand-dark: #6d451f;
  --brand-bg: #a9865e;   /* cor de fundo da logo do Micale */
  --accent: #c9a26b;
  --border: #e6ddd0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 40, 20, 0.08);
  --max: 1120px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; margin: 0; }

.container { width: min(var(--max), 92%); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

.eyebrow, .hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.header__inner { display: flex; align-items: center; justify-content: center; height: 72px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-weight: 500; font-size: 0.95rem; color: rgba(255, 255, 255, 0.92); transition: color 0.2s, opacity 0.2s; }
.nav a:hover { color: #fff; }
.header .btn--sm { background: #fff; color: var(--brand-dark); }
.header .btn--sm:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center;
  background:
    linear-gradient(115deg, rgba(58,38,20,0.45) 0%, rgba(58,38,20,0.05) 55%),
    linear-gradient(rgba(169,134,94,0.55), rgba(169,134,94,0.55)),
    url("assets/hero.jpg") center 30%/cover no-repeat,
    var(--brand-bg);
  color: #fff;
}
.hero__title, .hero__subtitle { text-shadow: 0 2px 14px rgba(40, 25, 10, 0.45); }
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4rem 0;
}
.hero__text { max-width: 34rem; }
.hero__eyebrow { color: var(--accent); }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; margin-bottom: 1.2rem; }
.hero__subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.92); margin-bottom: 0; }

/* Formulário de eventos */
.hero__form {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(40, 25, 10, 0.25);
  display: grid;
  gap: 1rem;
  color: var(--text);
}
.hero__form-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.2rem;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field input, .field select {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(138, 90, 43, 0.15);
}
.hero__form-btn {
  width: 100%; text-align: center; margin-top: 0.4rem;
  border: none; cursor: pointer; font-family: var(--font-sans);
}

/* ===== Sections ===== */
.section { padding: 3rem 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.2rem; }
.section__text { color: var(--muted); margin: 0 0 1rem; }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto 1.75rem; }
.section__cta { text-align: center; margin-top: 2.5rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }

/* Placeholder images */
.placeholder-img {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 12px, #eae0d1 12px, #eae0d1 24px);
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  border-radius: var(--radius); min-height: 320px; border: 1px dashed var(--border);
}

/* Stats */
.stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-serif); font-size: 1.9rem; color: var(--brand); }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* Momentos / ocasiões */
.moments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.moment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.moment:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(60, 40, 20, 0.12);
  border-color: var(--accent);
}
.moment__icon {
  width: 46px; height: 46px;
  margin: 0 auto 0.8rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--brand);
}
.moment__icon svg { width: 24px; height: 24px; }
.moment__label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}

@media (max-width: 720px) { .moments { grid-template-columns: repeat(2, 1fr); } }

/* Diferenciais / motivos */
.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem 3rem;
}
.reasons__page { display: contents; }
.reasons-wrap { position: relative; }
.reasons__arrow, .reasons__dots { display: none; }
.reason { display: flex; gap: 1.1rem; align-items: flex-start; min-width: 0; }
.reason__text { min-width: 0; }
.reason__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-bg);
  color: #fff;
}
.reason__icon svg { width: 26px; height: 26px; }
.reason__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.reason__desc { color: var(--muted); margin: 0; font-size: 0.98rem; line-height: 1.5; }
@media (max-width: 720px) {
  .reasons {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .reasons::-webkit-scrollbar { display: none; }
  .reasons__page {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    padding-left: 5px;
  }
  .reasons__arrow {
    display: grid; place-items: center;
    position: absolute; top: 50%; right: 0; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: rgba(138, 90, 43, 0.28); color: #fff;
    font-size: 1.6rem; line-height: 1; cursor: pointer;
    text-shadow: 0 1px 3px rgba(40, 25, 10, 0.5);
    transition: opacity 0.3s; z-index: 2;
  }
  .reasons__arrow.is-hidden { opacity: 0; pointer-events: none; }
  .reasons__dots {
    display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.4rem;
  }
  .reasons__dot {
    width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
    background: var(--border); cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  .reasons__dot.is-active { background: var(--brand); transform: scale(1.25); }
}

/* Carrossel de fotos */
.carousel { position: relative; max-width: 560px; margin-inline: auto; }
.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #e9e0d1;
  aspect-ratio: 2 / 3;
}
.carousel__track { display: flex; height: 100%; transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel__slide { min-width: 100%; height: 100%; }
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.88); color: var(--brand-dark);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(40, 25, 10, 0.2);
  transition: background 0.2s, transform 0.2s;
}
.carousel__btn:hover { background: #fff; }
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }
.carousel__dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.2rem; }
.carousel__dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: var(--border); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.carousel__dot.is-active { background: var(--brand); transform: scale(1.25); }
@media (max-width: 720px) {
  .carousel__btn { width: 38px; height: 38px; font-size: 1.4rem; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-6px); }
.card__img { min-height: 200px; border-radius: 0; border: none; }
.card__body { padding: 1.4rem; }
.card__body h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.card__body p { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.8rem; }
.card__price { font-weight: 700; color: var(--brand); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery .placeholder-img { min-height: 220px; }

/* Mapa */
.map-embed {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* Info list */
.info-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.info-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.info-list strong { color: var(--text); }

/* Footer */
.footer { background: #2b2622; color: #d8cfc4; padding: 3rem 0; }
.footer__inner { text-align: center; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.footer .logo { color: #fff; }
.footer p { margin: 0; font-size: 0.88rem; }
.footer__credit a { color: var(--accent); font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__text { max-width: none; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0; background: var(--brand-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1rem 0; transform: translateY(-120%); transition: transform 0.3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 0.7rem 1rem; width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
