/* ============================
   VARIABLES
   ============================ */
:root {
  --bg:           #000000;
  --panel:        #0e0e0e;
  --panel-2:      #111111;
  --border:       #2e2e2e;
  --border-light: #3a3a3a;
  --gold:         #c9a24d;
  --gold-light:   #d4b06a;
  --text:         #ffffff;
  --muted:        #888888;
  --muted-light:  #aaaaaa;
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================
   HEADER
   ============================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  z-index: 20;
  position: relative;
}

.brand { display: flex; align-items: center; }

.brand .logo { width: 140px; height: auto; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  border: 1px solid var(--border-light);
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 13px;
  background: rgba(255,255,255,0.03);
  letter-spacing: 0.5px;
}

.lang span         { cursor: pointer; color: var(--muted); transition: color 0.2s; }
.lang span:hover   { color: var(--text); }
.lang .active      { color: var(--gold); font-weight: 600; }
.lang .sep         { color: var(--border-light); }

/* ============================
   MAIN
   ============================ */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 20px;
  overflow: visible; /* ← was: overflow: hidden */
}

#vanta-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.menu, .panel, .modal { position: relative; z-index: 10; }

/* ============================
   MENU
   ============================ */
.menu {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
}

.menu button {
  background: none;
  border: none;
  color: var(--muted-light);
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 9px 20px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.menu button:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.menu button.active-menu {
  background: rgba(201,162,77,0.12);
  color: var(--gold);
}

/* ============================
   PANELS
   ============================ */
.panel {
  display: none;
  position: absolute;
  top: calc(22% + 62px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  max-width: 560px;
  width: calc(100% - 40px);
  z-index: 15;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);

  /* ↓ add these two lines */
  max-height: calc(100vh - 22% - 62px - 80px); /* leaves room for footer */
  overflow-y: auto;
}

.panel p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted-light);
}

/* ============================
   SMART-IN CARD
   ============================ */
.smartin-card         { display: flex; flex-direction: column; gap: 16px; }
.smartin-card-header  { display: flex; align-items: center; gap: 12px; }

.smartin-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gold);
  background: rgba(201,162,77,0.1);
  border: 1px solid rgba(201,162,77,0.25);
  border-radius: 6px;
  padding: 3px 10px;
}

.smartin-card-body {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted-light);
  white-space: pre-line;
}

.smartin-divider { border: none; border-top: 1px solid var(--border); }

.btn-discover-smartin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(201,162,77,0.1);
  border: 1px solid rgba(201,162,77,0.35);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  width: 100%;
}

.btn-discover-smartin:hover {
  background: rgba(201,162,77,0.18);
  border-color: rgba(201,162,77,0.6);
  color: #e0c07a;
  transform: translateY(-1px);
}

.btn-discover-smartin svg { opacity: 0.7; transition: transform 0.2s, opacity 0.2s; }
.btn-discover-smartin:hover svg { transform: translateX(3px); opacity: 1; }

/* ============================
   FOOTER
   ============================ */
footer { flex-shrink: 0; }

.footer-line { height: 1px; background: var(--border); }

.footer-content {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 14px;
  font-size: 12px;
  color: var(--muted);
}

.footer-content span {
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.footer-content span:hover { color: var(--text); }

/* ============================
   MODALS — BASE
   ============================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: var(--panel-2);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
}

.modal-content h4 {
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.modal-content p {
  font-size: 13px;
  color: var(--muted-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.close {
  position: absolute;
  top: 16px; right: 16px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted-light);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.close:hover { background: rgba(255,255,255,0.12); color: var(--text); }

/* ============================
   MODAL — INPUTS
   ============================ */
.modal-content input,
.modal-content textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}

.modal-content input:focus,
.modal-content textarea:focus {
  border-color: rgba(201,162,77,0.45);
  background: rgba(255,255,255,0.06);
}

.modal-content input::placeholder,
.modal-content textarea::placeholder { color: var(--muted); }

.modal-content textarea { min-height: 110px; }

.btn-modal-send {
  width: 100%;
  padding: 11px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}
.btn-modal-send:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

/* ============================
   MODAL — OFFICES
   ============================ */
.offices-list { display: flex; flex-direction: column; gap: 10px; }

.office-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.office-city    { font-size: 13px; font-weight: 600; color: var(--text); }
.office-address { font-size: 12px; color: var(--muted-light); }
.office-district{ font-size: 11px; color: var(--muted); }

/* ============================
   MODAL — MEDIA
   ============================ */
.media-links { display: flex; gap: 10px; flex-direction: column; }

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.btn-social:hover { background: rgba(255,255,255,0.08); }

/* ============================
   BLUR EFFECT
   ============================ */
.blur-background { filter: blur(2px); pointer-events: none; }



/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  header { flex-direction: column; align-items: center; gap: 12px; padding: 16px; }
  .brand .logo { width: 120px; }

  .menu {
    position: relative;
    top: auto; left: auto; transform: none;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
  }

  .menu button { width: 100%; text-align: center; }

  .panel {
    position: relative;
    top: auto; left: auto; transform: none;
    width: 100%;
    margin-top: 12px;
  }

  .footer-content { gap: 20px; }
}
