/* =============================================
   AURUM — Footer Styles
   ============================================= */

.footer {
  position: relative;
  background: var(--bg-surface);
  overflow: hidden;
}

/* ── Background ─────────────────────────────── */
.footer__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.footer__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(201,168,76,0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-surface) 0%, #0A0908 100%);
}

.footer__bg-grid {
  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: 80px 80px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

/* ── Top section ────────────────────────────── */
.footer__top {
  position: relative;
  z-index: 1;
  padding: 80px 0 64px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

/* ── Brand column ───────────────────────────── */
.footer__brand { display: flex; flex-direction: column; gap: 24px; }

.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  width: fit-content;
}

.footer__logo-emblem svg {
  width: 36px; height: 36px;
  display: block;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.footer__logo:hover .footer__logo-emblem svg {
  transform: rotate(15deg) scale(1.08);
}

.footer__logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--gold);
  line-height: 1;
}

.footer__logo-sub {
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__brand-desc {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  max-width: 280px;
}

/* Socials */
.footer__socials {
  display: flex;
  gap: 8px;
}

.footer__social {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.footer__social svg { width: 16px; height: 16px; }

.footer__social:hover {
  color: var(--gold);
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.05);
}

/* ── Nav groups ─────────────────────────────── */
.footer__nav-group { display: flex; flex-direction: column; gap: 20px; }

.footer__nav-title {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-link {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  position: relative;
}

.footer__nav-link::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.2s, left 0.2s;
}

.footer__nav-link:hover {
  color: var(--gold-light);
  padding-left: 10px;
}
.footer__nav-link:hover::before { opacity: 1; left: 0; }

/* ── Contact group ──────────────────────────── */
.footer__contact-group { display: flex; flex-direction: column; gap: 24px; }

.footer__contacts { display: flex; flex-direction: column; gap: 12px; }

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__contact-item svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold); opacity: 0.7; }
.footer__contact-item:not(.footer__contact-item--text):hover { color: var(--gold-light); }

/* Newsletter */
.footer__newsletter { display: flex; flex-direction: column; gap: 10px; }

.footer__newsletter-title {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.footer__newsletter-form {
  display: flex;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s;
}

.footer__newsletter-form:focus-within { border-color: rgba(201,168,76,0.5); }

.footer__newsletter-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text);
}
.footer__newsletter-input::placeholder { color: var(--text-muted); }

.footer__newsletter-btn {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border: none;
  cursor: pointer;
  color: var(--bg);
  transition: background 0.2s;
  flex-shrink: 0;
}
.footer__newsletter-btn svg { width: 15px; height: 15px; }
.footer__newsletter-btn:hover { background: var(--gold-light); }

.footer__newsletter-note {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ── Divider ────────────────────────────────── */
.footer__divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 80px;
  max-width: 1340px;
  margin: 0 auto;
}

.footer__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.footer__divider-emblem {
  padding: 0 24px;
  flex-shrink: 0;
}
.footer__divider-emblem svg { width: 24px; height: 24px; display: block; }

/* ── Bottom bar ─────────────────────────────── */
.footer__bottom {
  position: relative;
  z-index: 1;
  padding: 24px 0;
}

.footer__bottom-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.5;
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__bottom-link {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}
.footer__bottom-link:hover { opacity: 1; color: var(--gold); }

.footer__bottom-sep {
  color: var(--text-muted);
  opacity: 0.3;
  font-size: 10px;
}

/* Scroll to top */
.footer__totop {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}

.footer__totop svg { width: 18px; height: 18px; }

.footer__totop:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
  transform: translateY(-2px);
}

/* ── Scroll reveal ──────────────────────────── */
.footer__inner > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.footer__inner > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1100px) {
  .footer__inner {
    padding: 0 40px;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .footer__brand-desc { max-width: 400px; }
  .footer__divider { padding: 0 40px; }
  .footer__bottom-inner { padding: 0 40px; }
}

@media (max-width: 680px) {
  .footer__top { padding: 56px 0 48px; }
  .footer__inner {
    padding: 0 24px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__brand { flex-direction: column; }
  .footer__divider { padding: 0 24px; }
  .footer__bottom-inner {
    padding: 0 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer__copy { order: 2; }
  .footer__bottom-links { order: 3; flex-wrap: wrap; }
  .footer__totop { position: fixed; bottom: 24px; right: 24px; z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; background: var(--bg-elevated); }
  .footer__totop.visible { opacity: 1; pointer-events: all; }
}