/* ═══ COMPONENTS — Nav, buttons, cards, cursor, preloader ═══ */

/* ─── Preloader ─── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity .8s ease, visibility .8s ease;
}

.preloader-bg {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: -1;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 160px;
  height: auto;
  opacity: .6;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .05em;
}

.preloader-bar-outer {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, .08);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, .35);
  border-radius: 2px;
  transition: width .15s ease;
}

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .5s var(--ease-expo);
  transform: translateY(0);
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav-bg {
  position: absolute;
  inset: 0;
  background-color: transparent;
  backdrop-filter: blur(20px) brightness(.4);
  -webkit-backdrop-filter: blur(20px) brightness(.4);
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transition: opacity .5s var(--ease-expo);
}

.nav.scrolled .nav-bg {
  opacity: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  position: relative;
  z-index: 1;
}

.nav-logo-full {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.nav-link {
  font-size: .78rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all .3s;
  font-weight: 400;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: var(--glass-bg-strong);
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  border-radius: var(--radius-pill);
  padding: 4px;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
}

.nav-lang button {
  all: unset;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: all .3s;
}

.nav-lang button.active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.nav-lang button:hover:not(.active) {
  color: rgba(255, 255, 255, .7);
}

/* ─── Custom Cursor ─── */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .35);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .2s ease, height .2s ease, border-color .2s ease, background .2s ease;
  mix-blend-mode: difference;
}

.cursor.hover {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .04);
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .4s var(--ease-quart);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-primary:hover {
  background: var(--glass-bg-strong);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform .3s var(--ease-quart);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

/* ─── Service tags ─── */
.tag {
  font-size: .68rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: var(--glass-bg);
  letter-spacing: .3px;
  font-weight: 400;
}

/* ─── Glass card ─── */
.glass-card {
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .3s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ─── Divider ─── */
.divider {
  width: 100%;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
  margin: 0 auto;
}

/* ─── Footer ─── */
.footer {
  padding: 80px 60px 40px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 48px;
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .15em;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 400px;
  font-weight: 300;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-link {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color .3s;
  font-weight: 300;
}

.footer-link:hover {
  color: var(--text-secondary);
}

.footer-address {
  font-size: .82rem;
  color: var(--text-ghost);
  line-height: 1.6;
  font-weight: 300;
}

.footer-clients-list {
  font-size: .75rem;
  color: var(--text-ghost);
  line-height: 1.8;
  font-weight: 300;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: .7rem;
  color: var(--text-ghost);
}

.footer-credit {
  font-weight: 400;
}
