/* =========================================================
   AMICA — Espaço de Eventos
   Design system: creme quente, rosa terracota, sálvia, carvão
   Tipografia: Cormorant Garamond (display) + Jost (corpo/UI)
   ========================================================= */

:root {
  /* Cores da marca (extraídas do Instagram @amicaeventos) */
  --cream: #f6ece2;
  --cream-soft: #fbf6f0;
  --cream-deep: #efe0d0;
  --charcoal: #2b241e;
  --charcoal-soft: #55483d;
  --rose: #b97a5c;
  --rose-dark: #9c6249;
  --rose-light: #e3bfa8;
  --sage: #93a38a;
  --sage-dark: #78896f;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --container: 1240px;
  --radius: 6px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 20px 60px -20px rgba(43, 36, 30, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(43, 36, 30, 0.18);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  background: var(--cream-soft);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }

input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 900px) {
  .container { padding-inline: 48px; }
}

section { position: relative; }

.section-pad { padding-block: clamp(64px, 10vw, 140px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-dark);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--rose);
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.italic { font-style: italic; color: var(--rose); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--charcoal-soft);
  font-weight: 300;
  max-width: 46ch;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--rose-dark);
  color: var(--cream-soft);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
.btn-primary:hover { background: var(--rose); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--cream-soft); }

.btn-outline.on-dark {
  color: var(--cream-soft);
  border-color: rgba(246, 236, 226, 0.55);
}
.btn-outline.on-dark:hover { background: var(--cream-soft); color: var(--charcoal); }

.btn-small { padding: 12px 24px; font-size: 0.72rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.text-link:hover { border-color: currentColor; gap: 12px; }
.text-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--charcoal);
  color: var(--cream-soft);
  padding: 12px 20px;
  border-radius: var(--radius);
  z-index: 999;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 8px 22px 9px;
  line-height: 1;
}
.logo .logo-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.34em;
  font-weight: 600;
  padding-left: 0.34em; /* optically balance letter-spacing */
}
.logo .logo-sub {
  font-family: var(--font-body);
  font-size: 0.44rem;
  letter-spacing: 0.32em;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 3px;
  padding-left: 0.32em;
  opacity: 0.85;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 22px;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.scrolled {
  padding-block: 12px;
  background: rgba(251, 246, 240, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(43, 36, 30, 0.35);
}

.site-header, .site-header a { color: var(--cream-soft); }
.site-header.scrolled, .site-header.scrolled a { color: var(--charcoal); }
.site-header .btn-primary,
.site-header.scrolled .btn-primary { color: var(--cream-soft); }

.nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.nav-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 6px;
  margin: -6px;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { width: 100%; }
.nav-toggle span:nth-child(2) { width: 70%; align-self: flex-end; }
.nav-toggle span:nth-child(3) { width: 100%; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 100%; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 100%; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--charcoal);
  color: var(--cream-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5vh, 32px);
  padding: 32px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 5vw, 1.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
}
.mobile-menu .btn { margin-top: 12px; }

@media (min-width: 960px) {
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  color: var(--cream-soft);
}

.hero-bg {
  position: absolute;
  inset: -6% -2%;
  z-index: 0;
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(185, 122, 92, 0.3), transparent 55%),
    radial-gradient(120% 120% at 85% 100%, rgba(147, 163, 138, 0.22), transparent 55%),
    url("../img/ImagemHero.jpeg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  filter: brightness(0.6) saturate(0.92);
  will-change: transform;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 120px),
    repeating-linear-gradient(25deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 140px);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 12, 9, 0.92) 0%, rgba(15, 12, 9, 0.68) 55%, rgba(15, 12, 9, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(120px, 20vw, 180px) 72px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 26px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }

.hero h1 { max-width: 15ch; }

.hero .lede {
  color: rgba(246, 236, 226, 0.82);
  margin-top: 24px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 44px;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(246, 236, 226, 0.75);
}
.hero-location svg { width: 15px; height: 15px; color: var(--rose-light); flex-shrink: 0; }

.hero-scroll {
  position: absolute;
  right: clamp(24px, 4vw, 48px);
  bottom: 40px;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(246, 236, 226, 0.65);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-scroll .line { width: 1px; height: 46px; background: linear-gradient(180deg, rgba(246,236,226,0.9), transparent); animation: scrollpulse 2.4s ease-in-out infinite; }
@media (min-width: 760px) { .hero-scroll { display: flex; } }

@keyframes scrollpulse {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4;}
  50% { transform: scaleY(1); transform-origin: top; opacity: 1;}
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4;}
}

/* ---------- Intro ---------- */
.intro {
  background: var(--cream-soft);
}
.intro-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.intro-figure {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.intro-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
.intro-copy .lede { max-width: 52ch; color: var(--charcoal-soft); }
.intro-copy p + p { margin-top: 18px; }
.intro-story {
  margin-top: clamp(48px, 8vw, 88px);
  padding-top: clamp(36px, 6vw, 56px);
  border-top: 1px solid var(--cream-deep);
  max-width: 720px;
  margin-inline: auto;
}
.intro-story p {
  color: var(--charcoal-soft);
  font-size: 1rem;
  line-height: 1.75;
}
.intro-story p + p { margin-top: 16px; }
.intro-story p:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  color: var(--charcoal);
}
.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}
@media (min-width: 640px) and (max-width: 899px) {
  .intro-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .intro-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1180px) {
  .intro-stats { grid-template-columns: repeat(4, 1fr); }
}

.intro-stat {
  background: var(--cream-deep);
  border: 1px solid rgba(185, 122, 92, 0.18);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.intro-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--rose);
}
.intro-stat .stat-icon {
  width: 22px;
  height: 22px;
  color: var(--rose);
  margin-bottom: 10px;
}
.intro-stat .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--rose-dark);
  font-weight: 500;
  line-height: 1.1;
}
.intro-stat .label {
  margin-top: 4px;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--charcoal-soft);
}

/* ---------- Gallery (editorial masonry) ---------- */
.gallery { background: var(--cream-deep); }
.masonry {
  column-count: 1;
  column-gap: 20px;
}
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1080px) { .masonry { column-count: 3; } }

.masonry figure {
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.masonry figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease);
}
.masonry figure:hover img { transform: scale(1.03); }

/* Ritmo editorial controlado: mistura de retrato, quadrado e paisagem,
   para o mosaico ficar organizado independentemente do formato original
   de cada fotografia. */
.masonry figure:nth-child(1) img { aspect-ratio: 4/3; }
.masonry figure:nth-child(2) img { aspect-ratio: 3/4; }
.masonry figure:nth-child(3) img { aspect-ratio: 4/3; }
.masonry figure:nth-child(4) img { aspect-ratio: 1/1; object-position: 42% center; }
.masonry figure:nth-child(5) img { aspect-ratio: 3/4; }
.masonry figure:nth-child(6) img { aspect-ratio: 4/3; }
.masonry figure:nth-child(7) img { aspect-ratio: 3/4; }
.masonry figure:nth-child(8) img { aspect-ratio: 1/1; }
.masonry figure:nth-child(9) img { aspect-ratio: 4/3; }
.masonry figure:nth-child(10) img { aspect-ratio: 3/4; }
.masonry figure:nth-child(11) img { aspect-ratio: 4/3; object-position: center 75%; }

.gallery-foot {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* ---------- Why choose us ---------- */
.why { background: var(--cream-soft); }
.why-grid {
  display: grid;
  gap: 1px;
  background: var(--cream-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .why-grid { grid-template-columns: repeat(5, 1fr); } }

.why-card {
  background: var(--cream-soft);
  padding: 36px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.4s var(--ease);
}
.why-card:hover { background: var(--white); }
.why-card .icon {
  width: 42px; height: 42px;
  color: var(--rose-dark);
}
.why-card h3 { font-size: 1.15rem; }
.why-card p { font-size: 0.9rem; color: var(--charcoal-soft); }

/* ---------- Partners ---------- */
.partners { background: var(--charcoal); color: var(--cream-soft); }
.partners .eyebrow { color: var(--rose-light); }
.partners .eyebrow::before { background: var(--rose-light); }
.partners .lede { color: rgba(246,236,226,0.7); }

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 480px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .partners-grid { grid-template-columns: repeat(4, 1fr); } }

.partner-card {
  position: relative;
  background: rgba(246, 236, 226, 0.05);
  border: 1px solid rgba(246, 236, 226, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.partner-card:hover { background: rgba(246, 236, 226, 0.09); border-color: rgba(246, 236, 226, 0.28); }

.partner-media { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.partner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.88) contrast(1.04) brightness(0.98);
  transition: transform 0.6s var(--ease);
}
.partner-card:hover .partner-media img { transform: scale(1.05); }
.partner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(43, 36, 30, 0.28), rgba(185, 122, 92, 0.14));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.partner-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.partner-body h3 { font-size: 1.15rem; }
.partner-body p { font-size: 0.88rem; color: rgba(246,236,226,0.68); }

.partner-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-soft);
  background: rgba(43, 36, 30, 0.62);
  border-radius: 999px;
  padding: 5px 11px;
  backdrop-filter: blur(4px);
}


/* ---------- Location ---------- */
.location { background: var(--cream-soft); }
.location-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) { .location-grid { grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: stretch; } }
.location-info { display: flex; flex-direction: column; gap: 22px; }
.location-info address { font-style: normal; }
.location-address-block {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--cream-deep);
  border-radius: var(--radius);
}
.location-address-block svg { width: 20px; height: 20px; color: var(--rose-dark); flex-shrink: 0; margin-top: 2px; }
.location-address-block strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.location-contacts { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.location-contacts a { display: inline-flex; align-items: center; gap: 10px; }
.location-contacts svg { width: 16px; height: 16px; color: var(--rose-dark); }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-card);
  border: none;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- Contact ---------- */
.contact { background: var(--charcoal); color: var(--cream-soft); }
.contact .eyebrow { color: var(--rose-light); }
.contact .eyebrow::before { background: var(--rose-light); }
.contact-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 980px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }

.contact-aside p { color: rgba(246,236,226,0.72); margin-top: 16px; max-width: 40ch; }
.contact-quick {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-quick a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(246,236,226,0.2);
  width: fit-content;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-quick a:hover { border-color: var(--rose-light); color: var(--rose-light); }
.contact-quick svg { width: 18px; height: 18px; color: var(--rose-light); }

.form-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,236,226,0.6);
}
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(246,236,226,0.5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
  cursor: help;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.info-tip:hover, .info-tip:focus-visible {
  border-color: var(--rose-light);
  color: var(--rose-light);
}

/* Balão de texto personalizado (em vez do tooltip nativo do browser) */
.info-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 11px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 220px;
  background: var(--charcoal);
  color: var(--cream-soft);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: center;
  padding: 9px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 30;
}
.info-tip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--charcoal);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  z-index: 30;
}
.info-tip:hover::after, .info-tip:hover::before,
.info-tip:focus::after, .info-tip:focus::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Em ecrãs estreitos, evitar que o balão saia da viewport para a esquerda */
@media (max-width: 420px) {
  .info-tip::after {
    left: auto;
    right: -10px;
    transform: translateX(0) translateY(4px);
    max-width: 190px;
  }
  .info-tip::before { left: auto; right: 4px; transform: none; }
  .info-tip:hover::after, .info-tip:focus::after {
    transform: translateX(0) translateY(0);
  }
}
.field input, .field select, .field textarea {
  background: rgba(246, 236, 226, 0.06);
  border: 1px solid rgba(246, 236, 226, 0.22);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--cream-soft);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(246,236,226,0.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--rose-light);
  background: rgba(246, 236, 226, 0.1);
  outline: none;
}
.field select option { color: var(--charcoal); }
.field textarea { resize: vertical; min-height: 120px; }

.field-optional {
  text-transform: none;
  letter-spacing: normal;
  color: rgba(246, 236, 226, 0.4);
}

.field-error {
  font-size: 0.76rem;
  color: #e8a688;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease), margin-top 0.3s var(--ease);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #c96a4a;
  background: rgba(201, 106, 74, 0.08);
}
.field.invalid .field-error {
  max-height: 40px;
  opacity: 1;
  margin-top: 2px;
}

.form-foot {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(246, 236, 226, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.form-note { font-size: 0.78rem; color: rgba(246,236,226,0.5); max-width: 34ch; }

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: rgba(147, 163, 138, 0.18); border: 1px solid var(--sage); color: var(--cream-soft); }
.form-status.error { background: rgba(189, 90, 60, 0.18); border: 1px solid #c96a4a; color: var(--cream-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #1e1913; color: rgba(246,236,226,0.75); }
.footer-top {
  display: grid;
  gap: 40px;
  padding-block: 64px 40px;
}
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand .logo { color: var(--rose-light); }
.footer-brand p { margin-top: 18px; font-size: 0.9rem; max-width: 34ch; color: rgba(246,236,226,0.55); }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246,236,226,0.9);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--rose-light); }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(246,236,226,0.25);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.footer-social a:hover { border-color: var(--rose-light); background: rgba(246,236,226,0.06); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(246,236,226,0.12);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(246,236,226,0.45);
}

/* ---------- Scroll reveal ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }
[data-animate="fade"] { transform: none; }
[data-animate-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .hero-bg { transform: none !important; }
  .hero-scroll .line { animation: none; }
}
