/* =============================================
   CELTIBEROS — GUILD WEBSITE
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:        #c9a84c;
  --gold-light:  #e8c96a;
  --gold-dim:    #8a6e2f;
  --bg-deep:     #0b0b0d;
  --bg-dark:     #111117;
  --bg-mid:      #16161e;
  --bg-card:     #1c1c26;
  --bg-card-alt: #1a1a22;
  --text:        #e2ddd5;
  --text-muted:  #7a7870;
  --text-dim:    #4a4842;
  --border:      rgba(201, 168, 76, 0.15);
  --border-soft: rgba(255, 255, 255, 0.06);
  --red-es:      #c0392b;
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: 'Cinzel', serif;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }

/* =============================================
   HEADER
   ============================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: border-color 0.3s;
}

#header.scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.logo-icon { font-size: 1rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav a {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.03em;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* ---- NAV DROPDOWN ---- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.03em;
  transform: translateY(-1px);
}

.nav-dropdown-trigger:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none !important;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block !important;
  animation: dropdown-in 0.15s ease;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 7px;
  transition: background 0.15s;
  color: var(--text);
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
}

.dropdown-item-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-dropdown-menu strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.nav-dropdown-menu small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.server-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf72;
  box-shadow: 0 0 6px #4caf72;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(100, 60, 20, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #0b0b0d 0%, #10100f 60%, #0b0b0d 100%);
}

/* Subtle grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at center, black 20%, transparent 80%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: float-up var(--dur) var(--delay) infinite;
}

@keyframes float-up {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  10%  { opacity: var(--op); }
  90%  { opacity: var(--op); }
  100% { opacity: 0; transform: translateY(-120px) scale(0.3); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: #f0ebe2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}

.hero-accent {
  color: var(--gold);
  display: inline-block;
  position: relative;
}

.hero-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #0b0b0d;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border-soft);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-full { width: 100%; }

/* =============================================
   SHARED LAYOUT
   ============================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #f0ebe2;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 7rem 0;
  background: var(--bg-dark);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}

.pillar:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.pillar h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-family: 'Cinzel', serif;
}

.pillar p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   JOIN
   ============================================= */
.join {
  padding: 7rem 0;
  background: var(--bg-mid);
  position: relative;
}

.join::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.join-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.join-card--main {
  border-color: var(--border);
  background: var(--bg-card-alt);
  position: relative;
  overflow: hidden;
}

.join-card--main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim));
}

.join-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.join-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  width: fit-content;
}

.join-tag--eu {
  background: rgba(0, 51, 153, 0.12);
  border-color: rgba(0, 51, 153, 0.3);
  color: #7a9be8;
}

.card-title-with-flag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.2;
}

.card-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  margin-top: -0.25rem;
  letter-spacing: 0.02em;
}

.flag-eu {
  width: 14px;
  height: auto;
  border-radius: 1px;
  flex-shrink: 0;
  opacity: 0.75;
  vertical-align: middle;
}

.join-tag--es {
  background: rgba(192, 57, 43, 0.1);
  border-color: rgba(192, 57, 43, 0.25);
  color: #e87b6b;
}

.flag-es {
  width: 14px;
  height: auto;
  border-radius: 1px;
  flex-shrink: 0;
  opacity: 0.75;
  vertical-align: middle;
}

.join-card h3 {
  font-size: 1.4rem;
  color: #f0ebe2;
}

.join-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.join-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.5rem 0;
}

.join-list li {
  font-size: 0.875rem;
  color: var(--text);
}

.open-door-note {
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.open-door-note strong {
  color: var(--gold);
}

.spanish-note {
  background: rgba(192, 57, 43, 0.07);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.spanish-note strong {
  color: #e87b6b;
}

.join-card .btn {
  margin-top: auto;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  opacity: 0.6;
}

/* =============================================
   RESPONSIVE
   ============================================= */
/* ---- HAMBURGER ---- */
.hamburger {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MOBILE NAV DRAWER ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(11, 11, 13, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 199;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a,
.mobile-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}

.mobile-nav a:last-child,
.mobile-nav button:last-child { border-bottom: none; }

.mobile-nav a:hover,
.mobile-nav button:hover { color: var(--text); }

.mobile-nav .mobile-tools-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.75rem 0.5rem 0.25rem;
  border-bottom: none;
}

.mobile-nav .mobile-tool-link {
  padding-left: 1.25rem;
  font-size: 0.9rem;
}

@media (min-width: 769px) {
  .hamburger { display: none; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .server-badge {
    margin-left: 0;
  }

  .join-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .pillars {
    grid-template-columns: 1fr;
  }
}
