:root {
  --bg: #08070a;
  --bg-deep: #050405;
  --gold: #C9A961;
  --gold-soft: #B8935C;
  --gold-bright: #E5C887;
  --gold-glow: rgba(201, 169, 97, 0.18);
  --text: #F5F1EA;
  --text-dim: #A89F8E;
  --text-mute: #6F6757;
  --border: rgba(201, 169, 97, 0.22);
  --border-soft: rgba(201, 169, 97, 0.12);
  --card-bg: rgba(12, 10, 8, 0.55);
  --field-bg: rgba(0, 0, 0, 0.35);

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1320px;
}

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

html { background: var(--bg-deep); }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background image + gradient overlay */
.bg-image {
  position: fixed;
  inset: 0;
  background-image: url("assets/fundo.jpeg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: 0.85;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 75% 70%, rgba(201, 169, 97, 0.08), transparent 55%),
    linear-gradient(to bottom, rgba(8, 7, 10, 0.55) 0%, rgba(8, 7, 10, 0.4) 35%, rgba(8, 7, 10, 0.85) 100%);
}

/* HEADER */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 38px clamp(24px, 5vw, 72px) 0;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.brand:hover { opacity: 0.85; }

.brand-mark {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 18px rgba(201, 169, 97, 0.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 0.42em;
  font-weight: 400;
  color: var(--gold);
  padding-left: 0.42em;
}

.brand-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  font-weight: 400;
  color: var(--gold-soft);
  padding-left: 0.32em;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  padding-top: 8px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.lang-btn:hover { color: var(--gold-bright); }
.lang-btn.is-active { color: var(--gold); }

.lang-sep { color: var(--text-mute); }

.private-platform {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 400;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.private-platform .dash { color: var(--gold-soft); font-weight: 300; }
.private-platform .lock-icon { color: var(--gold); }

/* HERO */
.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 160px) clamp(24px, 5vw, 72px) clamp(60px, 8vh, 100px);
}

.hero-copy {
  max-width: 540px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: var(--text);
}

.hero-title span {
  display: block;
}

.hero-rule {
  width: 70px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 28px;
  box-shadow: 0 0 12px var(--gold-glow);
}

.hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 380px;
  margin: 0;
  letter-spacing: 0.01em;
}

/* CONTACT CARD */
.contact-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 36px 32px;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  box-shadow:
    0 0 0 1px rgba(201, 169, 97, 0.04) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
  position: relative;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.05), transparent 40%);
  pointer-events: none;
}

.contact-icon {
  display: flex;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 10px;
}

.contact-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-align: center;
  margin: 0 0 28px;
  padding-left: 0.36em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--field-bg);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field:focus-within {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.08);
}

.field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  color: var(--text-mute);
  flex-shrink: 0;
}

.field:focus-within .field-icon { color: var(--gold); }

.field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 14px 14px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.04em;
  font-weight: 300;
  min-width: 0;
}

.field input::placeholder {
  color: var(--text-mute);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.submit-btn {
  margin-top: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #E5C887 0%, #C9A961 60%, #A8884A 100%);
  color: #1a1308;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
  padding-left: calc(16px + 0.32em);
}

.submit-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 24px rgba(201, 169, 97, 0.35);
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-btn:disabled,
.submit-btn.is-loading {
  cursor: wait;
  filter: brightness(0.85) saturate(0.9);
  box-shadow: none;
  pointer-events: none;
}

.submit-btn.is-loading {
  position: relative;
}

.submit-btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 1.5px solid rgba(26, 19, 8, 0.35);
  border-top-color: #1a1308;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.form-status {
  margin: 6px 0 0;
  min-height: 18px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  text-align: center;
  font-weight: 400;
}

.form-status.is-error { color: #d97a7a; }

/* REGIONS */
.regions {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px clamp(24px, 5vw, 72px);
  margin: 0 auto;
  max-width: var(--max-w);
  width: 100%;
}

.regions ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.36em;
  color: var(--text);
  font-weight: 400;
}

.regions li {
  padding: 0 clamp(20px, 4vw, 48px);
  border-right: 1px solid var(--border);
  padding-left: calc(clamp(20px, 4vw, 48px) + 0.36em);
}

.regions li:last-child { border-right: none; }

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px clamp(24px, 5vw, 72px) 36px;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.copyright {
  margin: 0;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 400;
}

.copyright-sub { color: var(--text-mute); font-size: 10px; }

.institutional {
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.24em;
}

.institutional svg { color: var(--gold); }

.footer-sub {
  color: var(--text-mute);
  font-size: 9px;
  letter-spacing: 0.32em;
  font-weight: 400;
}

.footer-mail {
  justify-self: end;
  color: var(--gold);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.footer-mail:hover { color: var(--gold-bright); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: 28px;
  }

  .header-right {
    align-items: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding: clamp(40px, 8vh, 80px) clamp(20px, 5vw, 32px);
    gap: 40px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(32px, 7vw, 44px);
  }

  .contact-card {
    justify-self: stretch;
    max-width: 100%;
  }

  .regions ul {
    gap: 6px 0;
    font-size: 10px;
    letter-spacing: 0.28em;
  }

  .regions li {
    padding: 0 clamp(12px, 3vw, 20px);
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .copyright, .institutional, .footer-mail {
    justify-self: center;
    text-align: center;
    align-items: center;
  }

  .bg-image {
    background-position: center center;
  }
}

@media (max-width: 480px) {
  .brand-mark { width: 56px; height: 56px; }
  .brand-name { font-size: 22px; letter-spacing: 0.34em; padding-left: 0.34em; }
  .brand-tag { font-size: 9px; letter-spacing: 0.28em; padding-left: 0.28em; }
  .contact-card { padding: 28px 22px 24px; }
  .hero { padding-top: 60px; padding-bottom: 40px; }
  .regions li:nth-child(3) { border-right: none; }
}

/* Subtle entrance animation */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .contact-card {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .contact-card { animation-delay: 0.1s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
