/* ═══════════════════════════════════════════════
   VARIÁVEIS — cores e tokens globais
═══════════════════════════════════════════════ */
:root {
  --gold: #c9a96e;
  --gold-light: #e8d4a8;
  --cream: #f5f0e8;
  --dark: #0d0b08;
  --dark2: #1a1612;
  --dark3: #241f19;
  --text-muted: #9a8c7a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: default;
}

/* ─── HERO ─────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/main.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 12s ease;
  filter: brightness(0.35);
}
#hero.loaded #hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--dark) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease 0.4s, transform 1.2s ease 0.4s;
}
#hero.loaded .hero-content { opacity: 1; transform: translateY(0); }
.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
}
.hero-name em { font-style: italic; color: var(--gold-light); }
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 300;
}
.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2.5rem;
  opacity: 0.6;
}

/* ─── BOTÕES ────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.8rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}
.btn-primary:hover { color: var(--dark); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-icon { transition: transform 0.3s; }
.btn-primary:hover .btn-icon { transform: translateX(4px); }
.btn-secondary {
  padding: 0.8rem 2rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: none;
  color: var(--text-muted);
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--cream); color: var(--cream); }

/* ─── SCROLL HINT ───────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
}
.scroll-hint span { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 200; }
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--cream), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.7); }
}

/* ─── NAV ───────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.8rem 3rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: background 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(13, 11, 8, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(201,169,110,0.1);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--cream);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { 
  display: flex; 
  gap: 2.5rem; 
  list-style: none; 
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s;
  font-weight: 300;
}
.nav-links a:hover { color: var(--gold); }

/* Botão especial "Área do Cliente" na nav */
.nav-portal-btn {
  color: var(--gold) !important;
  border: 1px solid rgba(201,169,110,0.35);
  padding: 0.35rem 0.85rem;
  transition: all 0.3s !important;
}
.nav-portal-btn:hover {
  background: rgba(201,169,110,0.08);
  border-color: var(--gold) !important;
  color: var(--gold-light) !important;
}

/* ─── SECTION BASE ──────────────────────────── */
section { padding: 8rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 200;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--gold-light); }

/* ─── SOBRE ─────────────────────────────────── */
#sobre { background: var(--dark2); }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.sobre-img-wrap { position: relative; }
.sobre-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.85);
}
.sobre-img-frame {
  position: absolute;
  top: -1.5rem; left: -1.5rem; right: 1.5rem; bottom: 1.5rem;
  border: 1px solid rgba(201,169,110,0.25);
  pointer-events: none;
}
.sobre-badge {
  position: absolute;
  bottom: -2rem; right: -2rem;
  width: 110px; height: 110px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}
.sobre-badge .years { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; line-height: 1; }
.sobre-badge .years-label { font-size: 0.5rem; letter-spacing: 0.15em; text-transform: uppercase; text-align: center; font-weight: 400; }
.sobre-text { padding: 1rem 0; }
.sobre-text p { font-size: 1.05rem; line-height: 1.9; color: #b5a898; margin-bottom: 1.5rem; }
.sobre-text p strong { color: var(--cream); font-weight: 300; }
.sobre-stats { display: flex; gap: 3rem; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.07); }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.3rem; font-weight: 200; }

/* ─── GALERIA ───────────────────────────────── */
#galeria { background: var(--dark); }
.galeria-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 280px 280px;
  gap: 12px;
}
.gal-item { overflow: hidden; position: relative; }
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.5s ease;
  filter: brightness(0.8) saturate(0.9);
}
.gal-item:hover img { transform: scale(1.06); filter: brightness(1) saturate(1.1); }
.gal-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,11,8,0.5) 0%, transparent 60%);
  pointer-events: none;
}
.gal-item .gal-label {
  position: absolute;
  bottom: 1rem; left: 1.2rem;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.gal-item:hover .gal-label { opacity: 1; transform: translateY(0); }
.gal-item:nth-child(1) { grid-column: 1 / 6;  grid-row: 1; }
.gal-item:nth-child(2) { grid-column: 6 / 9;  grid-row: 1; }
.gal-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1; }
.gal-item:nth-child(4) { grid-column: 1 / 4;  grid-row: 2; }
.gal-item:nth-child(5) { grid-column: 4 / 8;  grid-row: 2; }
.gal-item:nth-child(6) { grid-column: 8 / 13; grid-row: 2; }

/* ─── ESPECIALIDADES ────────────────────────── */
#especialidades { background: var(--dark3); }
.esp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 4rem; }
.esp-card {
  padding: 3rem 2.5rem;
  background: var(--dark2);
  border-top: 1px solid rgba(201,169,110,0.15);
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.esp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.esp-card:hover::before { transform: scaleX(1); }
.esp-card:hover { background: #1f1b15; }
.esp-icon { font-size: 2.2rem; margin-bottom: 1.5rem; }
.esp-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; color: var(--cream); }
.esp-desc { font-size: 0.9rem; line-height: 1.8; color: var(--text-muted); }

/* ─── CADASTRO CTA ──────────────────────────── */
#cadastro-cta { background: var(--dark); padding: 6rem 2rem; }
.cta-box {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--dark2);
  border: 1px solid rgba(201,169,110,0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.cta-img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; display: block; filter: brightness(0.7) saturate(0.8); }
.cta-content { padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.cta-content .section-label { margin-bottom: 1.2rem; }
.cta-content .section-title { margin-bottom: 1.5rem; }
.cta-content p { color: var(--text-muted); line-height: 1.9; margin-bottom: 2.5rem; font-size: 0.95rem; }

/* ─── PORTAL SECTION ────────────────────────── */
#portal {
  background: var(--dark3);
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}
#portal::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.25), transparent);
}
#portal::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.25), transparent);
}
.portal-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}
.portal-key-deco {
  position: absolute;
  right: 3rem; top: 50%;
  transform: translateY(-50%);
  font-size: 18rem;
  opacity: 0.025;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.portal-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}
.portal-features { display: flex; flex-direction: column; gap: 1.2rem; }
.portal-feature {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
  background: rgba(201,169,110,0.04);
  border: 1px solid rgba(201,169,110,0.1);
  border-left: 2px solid rgba(201,169,110,0.35);
  transition: all 0.3s ease;
}
.portal-feature:hover {
  background: rgba(201,169,110,0.07);
  border-left-color: var(--gold);
}
.pf-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; line-height: 1; }
.pf-title { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 400; color: var(--cream); margin-bottom: 0.2rem; }
.pf-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }

/* ─── PORTAL MODAL ──────────────────────────── */
#portal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(16px);
}
#portal-overlay.active { opacity: 1; pointer-events: all; }
.portal-modal {
  background: var(--dark2);
  border: 1px solid rgba(201,169,110,0.22);
  max-width: 460px;
  width: 100%;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.32,0.72,0,1);
  overflow: hidden;
}
#portal-overlay.active .portal-modal { transform: translateY(0) scale(1); }
.portal-modal-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.portal-modal-head {
  padding: 2.2rem 2.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.pmh-eyebrow {
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 200;
  margin-bottom: 0.5rem;
}
.pmh-title { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 300; line-height: 1.1; color: var(--cream); }
.pmh-title em { font-style: italic; color: var(--gold-light); }
.portal-modal-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
  margin-top: 2px;
}
.portal-modal-close:hover { border-color: var(--gold); color: var(--gold); }
.portal-modal-body { padding: 2rem 2.5rem 2.5rem; }
.pm-field { margin-bottom: 0.5rem; }
.pm-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 300;
}
.pm-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(201,169,110,0.28);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none;
}
.pm-input:focus { border-bottom-color: var(--gold); background: rgba(201,169,110,0.04); }
.pm-input::placeholder { color: rgba(154,140,122,0.38); }
.pm-hint { font-size: 0.67rem; color: rgba(154,140,122,0.45); font-style: italic; margin: 0.4rem 0 1.3rem; line-height: 1.5; }
.pm-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.3rem;
}
.pm-divider::before, .pm-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.05); }
.pm-divider span { font-size: 0.52rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(201,169,110,0.4); white-space: nowrap; }
.pm-erro {
  display: none;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.2rem;
  background: rgba(180,60,60,0.1);
  border-left: 2px solid #c06060;
  font-size: 0.78rem;
  color: #e08080;
  line-height: 1.5;
}
.pm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.4s;
  margin-top: 1.5rem;
}
.pm-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}
.pm-btn:hover { color: var(--dark); }
.pm-btn:hover::before { transform: translateX(0); }
.pm-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pm-btn span { position: relative; z-index: 1; }
.pm-spinner {
  width: 13px; height: 13px;
  border: 1.5px solid rgba(201,169,110,0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: pmSpin 0.75s linear infinite;
  position: relative; z-index: 1;
}
@keyframes pmSpin { to { transform: rotate(360deg); } }

/* ─── MODAL CADASTRO ─────────────────────────── */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(12px);
}
#modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--dark2);
  border: 1px solid rgba(201,169,110,0.2);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px);
  transition: transform 0.4s ease;
  position: relative;
}
.modal::-webkit-scrollbar { width: 3px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.3); }
#modal-overlay.active .modal { transform: translateY(0); }
.modal-handle-bar {
  width: 36px; height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin: 1rem auto -0.5rem;
  display: none;
}
.modal-header {
  padding: 2.5rem 3rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--dark2);
  z-index: 2;
}
.modal-eyebrow { font-size: 0.58rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); font-weight: 200; margin-bottom: 0.4rem; }
.modal-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; line-height: 1.1; }
.modal-header h2 em { font-style: italic; color: var(--gold-light); }
.modal-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  margin-top: 4px;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-body { padding: 2rem 3rem 3rem; }
.modal-intro {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  background: rgba(201,169,110,0.05);
  border-left: 2px solid var(--gold);
  padding: 1rem 1.2rem;
  font-style: italic;
}
#form-cadastro { display: flex; flex-direction: column; gap: 0; }
.field-group { margin-bottom: 1.8rem; }
.field-label { display: block; font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.6rem; font-weight: 300; }
.field-icon { margin-right: 0.3rem; }
.required { color: var(--gold); }
.field-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom-color: rgba(201,169,110,0.25);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.field-input::placeholder { color: rgba(154,140,122,0.5); }
.field-input:focus { border-color: rgba(201,169,110,0.5); border-bottom-color: var(--gold); background: rgba(201,169,110,0.04); }
.field-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field-hint { display: block; font-size: 0.7rem; color: rgba(154,140,122,0.6); margin-top: 0.4rem; font-style: italic; letter-spacing: 0.02em; }
.field-divider { display: flex; align-items: center; gap: 1rem; margin: 0.5rem 0 1.8rem; }
.field-divider::before, .field-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
.field-divider span { font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); white-space: nowrap; font-weight: 200; }
.form-erro { margin-bottom: 1.5rem; padding: 0.8rem 1rem; background: rgba(180,60,60,0.1); border-left: 2px solid #c06060; font-size: 0.82rem; color: #e08080; line-height: 1.5; }
.modal-actions { display: flex; gap: 1rem; margin-top: 2rem; justify-content: flex-end; }

/* ─── CONTATO ───────────────────────────────── */
#contato { background: var(--dark2); text-align: center; }
.contato-inner { max-width: 600px; margin: 0 auto; }
.contato-inner .section-title { margin-bottom: 1.5rem; }
.contato-inner p { color: var(--text-muted); line-height: 1.9; margin-bottom: 3rem; }
.contato-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.contato-link { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text-muted); transition: color 0.3s; }
.contato-link:hover { color: var(--gold); }
.contato-link .icon { font-size: 1.5rem; }
.contato-link .label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* ─── FOOTER ────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 2rem;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}

footer #footer-text a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer #footer-text a:hover {
  color: var(--gold-light);
}

/* ── NEW FOOTER ── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(201,169,110,0.15);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-text,
.footer-site,
.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.5rem 0;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.1em;
}

.footer-copyright {
  font-weight: 400;
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--gold-light);
}

/* ── FOOTER MOBILE ── */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 0;
  }
  
  .footer-content {
    padding: 0 1rem;
  }
  
  .footer-text,
  .footer-site,
  .footer-copyright {
    font-size: 0.8rem;
  }
}

/* ─── SCROLL REVEAL ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ─── SPINNER ───────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  .sobre-grid  { gap: 5rem; }
  .cta-content { padding: 4rem 3rem; }
}

/* ── Mobile largo ── */
@media (max-width: 900px) {
  nav        { padding: 1.1rem 1.5rem; }
  
  /* Esconder hamburger no desktop */
  .nav-toggle {
    display: none;
  }
  
  /* Menu Mobile Moderno - apenas em mobile */
  @media (max-width: 768px) {
    .nav-toggle {
      display: block;
    }
    
    .nav-links { 
      display: flex; 
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      max-width: 320px;
      height: 100vh;
      background: var(--dark2);
      flex-direction: column;
      gap: 0;
      padding: 5rem 2rem 2rem;
      z-index: 1000;
      transition: right 0.3s ease;
      border-left: 4px solid rgba(201,169,110,0.2);
      box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    }
    
    .nav-links.active {
      right: 0;
    }
    
    .nav-links li {
      width: 100%;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-links li:last-child {
      border-bottom: none;
    }
    
    .nav-links a {
      display: block;
      width: 100%;
      padding: 1.2rem 1rem;
      font-size: 0.75rem;
      text-align: left;
      transition: all 0.3s ease;
      border-left: 4px solid transparent;
      margin: 0;
      background: transparent;
    }
    
    .nav-links a:hover {
      background: rgba(201,169,110,0.08);
      border-left-color: var(--gold);
      padding-left: 1.5rem;
      color: var(--gold);
    }
    
    .nav-portal-btn {
      background: transparent;
      border: none;
      margin-top: 1rem;
      border-radius: 0;
      text-align: left;
      padding: 1.2rem 1rem;
      width: 100%;
      display: block;
      color: var(--gold);
      text-decoration: none;
      transition: all 0.3s ease;
      border-left: 4px solid transparent;
      font-size: 0.75rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      font-weight: 300;
    }
    
    .nav-portal-btn:hover {
      background: rgba(201,169,110,0.08);
      border-left-color: var(--gold);
      padding-left: 1.5rem;
      color: var(--gold);
    }
    
    .nav-toggle {
      display: block;
      width: 30px;
      height: 24px;
      position: absolute;
      right: 1.5rem;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      z-index: 1001;
    }
    
    .nav-toggle span {
      position: absolute;
      left: 0;
      width: 100%;
      height: 3px;
      background: var(--gold);
      border-radius: 2px;
      transition: all 0.3s ease;
    }
    
    .nav-toggle span:nth-child(1) { top: 0; }
    .nav-toggle span:nth-child(2) { top: 10px; }
    .nav-toggle span:nth-child(3) { bottom: 0; }
    
    .nav-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
      opacity: 0;
      transform: scale(0);
    }
    
    .nav-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Overlay */
    .nav-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 999;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
      opacity: 1;
      visibility: visible;
    }
  }

  section { padding: 5rem 1.5rem; }

  .sobre-grid          { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-img-frame     { display: none; }
  .sobre-badge         { width: 90px; height: 90px; right: -0.5rem; bottom: -1rem; }
  .sobre-badge .years  { font-size: 1.6rem; }
  .sobre-stats         { gap: 2rem; flex-wrap: wrap; }

  .galeria-header          { flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
  .galeria-grid            { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; gap: 8px; }
  .gal-item                { grid-column: auto !important; grid-row: auto !important; }
  .gal-item:nth-child(1)   { grid-column: 1 / 3; }

  .esp-grid  { grid-template-columns: 1fr; gap: 2px; }
  .esp-card  { padding: 2.5rem 2rem; }

  #cadastro-cta { padding: 4rem 1.5rem; }
  .cta-box      { grid-template-columns: 1fr; }
  .cta-img      { min-height: 220px; }
  .cta-content  { padding: 2.5rem 2rem; }

  /* Portal section */
  .portal-inner    { grid-template-columns: 1fr; gap: 3.5rem; }
  .portal-key-deco { display: none; }
  #portal          { padding: 5rem 1.5rem; }

  /* Modal como bottom sheet */
  #modal-overlay              { align-items: flex-end; padding: 0; }
  .modal                      { max-width: 100%; max-height: 92vh; border-radius: 0; transform: translateY(40px); }
  #modal-overlay.active .modal { transform: translateY(0); }
  .modal-handle-bar           { display: block; }
  .modal-header               { padding: 1.5rem 1.5rem 1.2rem; }
  .modal-header h2            { font-size: 1.6rem; }
  .modal-body                 { padding: 1.5rem 1.5rem 2rem; }
  .modal-intro                { font-size: 0.82rem; }
  .modal-actions              { flex-direction: column; }
  .modal-actions .btn-secondary,
  .modal-actions .btn-primary { width: 100%; justify-content: center; min-height: 50px; }

  /* Portal modal como bottom sheet no mobile */
  #portal-overlay              { align-items: flex-end; padding: 0; }
  .portal-modal                { max-width: 100%; transform: translateY(40px); border-radius: 0; border-bottom: none; }
  #portal-overlay.active .portal-modal { transform: translateY(0) scale(1); }
  .portal-modal-head,
  .portal-modal-body           { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  nav       { padding: 1rem 1.2rem; }
  .nav-logo { font-size: 1.1rem; }

  .hero-eyebrow  { font-size: 0.6rem; letter-spacing: 0.25em; }
  .hero-subtitle { margin-bottom: 2rem; }
  .hero-divider  { margin-bottom: 2rem; }
  .btn-primary   { padding: 0.9rem 2rem; font-size: 0.68rem; min-height: 48px; }
  .scroll-hint   { display: none; }

  section { padding: 4rem 1.2rem; }

  .sobre-img    { aspect-ratio: 4/3; }
  .sobre-badge  { width: 80px; height: 80px; right: 0.5rem; bottom: -0.8rem; }
  .sobre-text p { font-size: 0.95rem; }
  .sobre-stats  { gap: 1.5rem; margin-top: 2rem; padding-top: 2rem; }
  .stat-num     { font-size: 2rem; }

  .galeria-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 6px; }
  .gal-item     { grid-column: auto !important; grid-row: auto !important; height: 220px; }

  .esp-card  { padding: 2rem 1.5rem; }
  .esp-icon  { font-size: 1.8rem; margin-bottom: 1rem; }
  .esp-title { font-size: 1.3rem; }

  .cta-content   { padding: 2rem 1.5rem; }
  .cta-content p { font-size: 0.88rem; margin-bottom: 2rem; }

  .contato-links { gap: 1.5rem; }

  .field-input    { font-size: 1rem; padding: 0.9rem 0.85rem; }
  .field-textarea { min-height: 80px; }
}

/* ── Mobile pequeno ── */
@media (max-width: 380px) {
  section        { padding: 3.5rem 1rem; }
  .section-title { font-size: clamp(2rem, 8vw, 3rem); }
  .sobre-stats   { flex-direction: column; gap: 1rem; }
  .contato-links { flex-direction: column; align-items: center; }
}