/* =========================================================
   RESET + BASE (HOSTINGER SAFE)
   - sem var()
   - sem clamp()
   - sem backdrop-filter
   - sem !important
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #f1f1f1;
  background-color: #030303;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

/* =========================================================
   UTILITIES
========================================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  min-height: calc(100vh - 80px);
  padding-top: 0;
}

/* =========================================================
   HEADER (Translucent - SAFE)
========================================================= */

.site-header {
  height: 80px;
  background: rgba(3, 3, 3, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BRAND */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
}

.brand-logo {
  height: 60px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .brand {
    padding: 8px 10px;
  }
  .brand-logo {
    height: 34px;
  }
}

/* A11y */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* NAV */
.nav {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    gap: 32px;
    align-items: center;
  }
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link.is-active {
  border-bottom: 1px solid #D4CDA8;
}

/* ✅ FIX: active aplicado no .nav-item */
.nav-item.is-active > .nav-link {
  border-bottom: 1px solid #D4CDA8;
  opacity: 1;
}

/* Dropdown */
.nav-item {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #0f0f0f;
  border: 1px solid #222;
  padding: 32px;
  min-width: 600px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 101;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  display: block;
}

.dd-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.dd-title {
  color: #D4CDA8;
  font-family: 'Fraunces', serif;
  margin-bottom: 16px;
  opacity: 1;
}

.dd-col a {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  opacity: 0.7;
}

.dd-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.members-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f1f1;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.members-link:hover {
  background: #f1f1f1;
  color: #030303;
  border-color: #f1f1f1;
}

.store-icon img {
  filter: invert(1);
  width: 22px;
}

.nav-toggle {
  color: #fff;
  font-size: 24px;
  display: block;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* =========================================================
   MOBILE NAV (Toggle)
========================================================= */

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    padding: 18px 24px;
    background: rgba(3, 3, 3, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 200;
  }

  .site-header.is-open .nav {
    display: block;
  }

  .nav .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav .nav-item {
    display: block;
  }

  .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    padding: 14px 0 6px;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: none;
  }

  .nav-item.is-open .dropdown {
    display: block;
  }

  .dd-cols {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* =========================================================
   PAGES (About, Contact, Content)
========================================================= */

.page {
  padding: 80px 0;
}

.page-title {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 16px;
  color: #fff;
}

.page-sub {
  font-size: 18px;
  color: #a0a0a0;
  max-width: 600px;
  margin-bottom: 48px;
}

/* =========================================================
   FORMS (Dark Mode)
========================================================= */

.form {
  max-width: 600px;
}

.field,
.field-row {
  margin-bottom: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: #a0a0a0;
}

input,
select,
textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid #333;
  color: #fff;
  padding: 12px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #D4CDA8;
  background: #151515;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.help {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}

/* =========================================================
   BUTTONS — PREMIUM
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 42px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.btn-primary:hover {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* =========================================================
   HOME HERO
========================================================= */

.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, #151515 0%, #030303 70%);
}

.hero-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 72px;
  line-height: 1.1;
  margin-bottom: 32px;
  font-weight: 200;
  letter-spacing: -0.03em;
  max-width: 900px;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 48px;
  color: #a0a0a0;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 42px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SHOP
========================================================= */

.shop-hero {
  background: #030303;
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.shop-grid {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.shop-card {
  background: #0a0a0a;
  border: 1px solid #222;
  padding: 32px;
  transition: border-color 0.3s;
}

.shop-card:hover {
  border-color: #444;
}

.shop-card h2 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

.shop-card p {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}

.shop-button {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 10px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shop-button:hover {
  background: #fff;
  color: #000;
}

/* =========================================================
   BIOGRAPHY PAGE (Centered Minimalist) — SAFE (sem clamp)
========================================================= */

.bio-page-centered {
  padding-bottom: 120px;
  text-align: center;
}

.bio-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.page-title-large {
  font-family: 'Fraunces', serif;
  font-size: 72px;
  font-weight: 200;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .page-title-large { font-size: 56px; }
}

@media (max-width: 768px) {
  .page-title-large { font-size: 42px; }
}

.page-sub-large {
  font-size: 24px;
  color: #D4CDA8;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  margin-bottom: 24px;
}

.bio-portrait-main {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.bio-placeholder-large {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #555;
}

.bio-placeholder-large span {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: #D4CDA8;
  margin-bottom: 8px;
}

.bio-image-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-content-centered {
  max-width: 640px;
  margin: 0 auto;
}

.bio-content-centered p {
  font-size: 18px;
  line-height: 1.8;
  color: #a0a0a0;
  margin-bottom: 32px;
}

.bio-signature-large {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  color: #D4CDA8;
  margin-top: 40px;
  opacity: 0.8;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  background: #000;
  border-top: 1px solid #111;
  padding: 80px 24px 40px;
  font-size: 14px;
  color: #666;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
}

.footer-logo {
  height: 26px;
  width: auto;
  display: block;
}

.footer-legal {
  border-top: 1px solid #111;
  margin-top: 60px;
  padding-top: 32px;
}

/* =========================================================
   RA TABLE (Moon Calendar)
========================================================= */

.ra-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.ra-table th,
.ra-table td {
  padding: 10px;
  border-bottom: 1px solid #333;
  text-align: left;
}

.ra-table th {
  font-family: 'Fraunces', serif;
  color: #D4CDA8;
}

.ra-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* =========================================================
   RA Layout System (Moon Calendar + Hub)
========================================================= */

.ra-section {
  padding: 80px 0;
}

.ra-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ra-page-title {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 200;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}

.ra-page-sub {
  font-size: 16px;
  color: #a0a0a0;
  max-width: 720px;
  margin-bottom: 24px;
}

.ra-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
}

.ra-card-pad {
  padding: 18px 18px;
}

/* =========================================================
   Home Hub (cards)
========================================================= */

.ra-home-hub {
  background: #030303;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ra-hub-head {
  text-align: center;
  margin-bottom: 28px;
}

.ra-hub-title {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.ra-hub-sub {
  color: #a0a0a0;
  font-size: 15px;
}

.ra-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .ra-hub-grid {
    grid-template-columns: 1fr;
  }
}

.ra-hub-card {
  display: block;
  padding: 22px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ra-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 205, 168, 0.40);
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
}

.ra-hub-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.ra-hub-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 250;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 10px;
}

.ra-hub-desc {
  font-size: 14px;
  color: #a0a0a0;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 640px;
}

.ra-hub-cta {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D4CDA8;
}

/* =========================================================
   Chrome/UX Normalization (SAFE)
========================================================= */

input,
select,
textarea,
.ra-select-btn {
  -webkit-appearance: none;
  appearance: none;
}

/* remove glow default */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
}

/* autofill safe sem !important */
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover {
  -webkit-text-fill-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
}

/* =========================================================
   RA Custom Select (SAFE) — sem backdrop-filter
========================================================= */

.ra-select {
  position: relative;
}

.ra-select select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

.ra-select-btn {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid #333;
  color: #fff;
  padding: 12px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ra-select-btn:hover {
  background: #141414;
}

.ra-select.is-open .ra-select-btn,
.ra-select-btn:focus {
  border-color: #D4CDA8;
  background: #151515;
  box-shadow: 0 0 0 3px rgba(212, 205, 168, 0.10);
}

.ra-select-arrow {
  opacity: 0.85;
  font-size: 14px;
}

.ra-select-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9999;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;

  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);

  max-height: 260px;
  overflow-y: auto;
}

.ra-select.is-open .ra-select-menu {
  display: block;
}

.ra-select-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
}

.ra-select-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ra-select-item.is-selected {
  background: rgba(212, 205, 168, 0.18);
}

/* Autocomplete estado ativo */
#birth_place_suggestions .suggestion-item.is-active {
  background: rgba(255, 255, 255, 0.10);
}

/* =========================================================
   Tooltips premium (SAFE)
========================================================= */

.ra-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ra-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ra-tip-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

.ra-tip-btn:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.ra-tip-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(217, 206, 173, 0.20);
  border-color: rgba(217, 206, 173, 0.55);
}

.ra-tip-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: 360px;
  max-width: 86vw;

  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);

  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.55;

  display: none;
  z-index: 99999;
}

.ra-tip.is-open .ra-tip-pop {
  display: block;
}

.ra-tip-pop:before {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(0, 0, 0, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}