/* ======================================================
   DESIGN TOKENS
====================================================== */

:root {
  --nipio-primary: #111827;
  --nipio-accent: #4c6fff;
  --nipio-border: #e5e7eb;
  --nipio-muted: #6b7280;
  --nipio-footer-bg: #0b1020;
}

/* ======================================================
   GLOBAL ACCESSIBILITY BASE
====================================================== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

a:focus,
button:focus,
select:focus {
  outline: 3px solid var(--nipio-accent);
  outline-offset: 2px;
}

body.menu-open {
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ======================================================
   SKIP LINK
====================================================== */

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--nipio-primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 20px;
}

[dir="rtl"] .skip-link {
  left: auto;
  right: 20px;
}

/* ======================================================
   HEADER
====================================================== */

#nipio-global-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid var(--nipio-border);
  min-height: 64px;
  display: flex;
  align-items: center;
}

.nipio-gh-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[dir="rtl"] .nipio-gh-inner {
  flex-direction: row-reverse;
}

.nipio-gh-logo img {
  height: 34px;
}

/* Desktop nav */

.nipio-gh-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

[dir="rtl"] .nipio-gh-nav {
  flex-direction: row-reverse;
}

.nipio-gh-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--nipio-primary);
  font-size: 15px;
  transition: color .2s ease;
}

.nipio-gh-nav a:hover {
  color: var(--nipio-accent) !important;
}

.nipio-gh-nav a[aria-current="page"] {
  color: var(--nipio-accent);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Right side */

.nipio-gh-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

[dir="rtl"] .nipio-gh-right {
  flex-direction: row-reverse;
}

.nipio-lang-desktop {
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--nipio-border);
  background: #ffffff;
  color: var(--nipio-primary);
  padding: 8px 10px;
  border-radius: 10px;
}

/* Buttons */

.nipio-btn-primary,
.nipio-btn-outline {
  padding: 10px 18px;
  border-radius: 26px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 120px; /* σταθεροποιεί Login / Σύνδεση */
}

/* Primary CTA (Ξεκινήστε / Get Started) */
.nipio-btn-primary {
  background: var(--nipio-primary);
  color: #ffffff;
  min-width: 150px; /* σταθερό CTA */
}

.nipio-btn-primary:hover {
  opacity: 0.92;
}

/* Secondary button (Login / Σύνδεση) */
.nipio-btn-outline {
  border: 2px solid var(--nipio-primary);
  background: #ffffff;
  color: var(--nipio-primary);
}

.nipio-btn-outline:hover {
  background: #f3f4f6;
}
/* ======================================================
   HAMBURGER – FIXED SIZE
====================================================== */

.nipio-hamburger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.nipio-hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: #111827;
  border-radius: 2px;
  transition: all .25s ease;
}

.nipio-hamburger span:nth-child(1) { top: 0; }
.nipio-hamburger span:nth-child(2) { top: 8px; }
.nipio-hamburger span:nth-child(3) { top: 16px; }

.nipio-hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.nipio-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nipio-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* ======================================================
   MOBILE MENU
====================================================== */

.nipio-mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform .35s ease;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 9998;
  overflow-y: auto;
}

.nipio-mobile-menu.active {
  transform: translateX(0);
}

[dir="rtl"] .nipio-mobile-menu {
  transform: translateX(-100%);
}

[dir="rtl"] .nipio-mobile-menu.active {
  transform: translateX(0);
}

.nipio-mobile-menu > a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--nipio-primary);
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.nipio-mobile-menu > a:hover {
  color: var(--nipio-accent);
}

/* Close button – neutral */

.nipio-mobile-menu .close-btn {
  background: transparent;
  color: var(--nipio-primary);
}

/* =========================================
   MOBILE AUTH – VISUAL BALANCE FIX
========================================= */

.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.mobile-auth a {
  height: 52px;
  width: 100%;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all .2s ease;
}

/* Login (outline) */
.mobile-auth .login-link {
  background: #ffffff;
  border: 1.5px solid #111827;
  color: #111827;
}

/* Start (primary) */
.mobile-auth .start-link {
  background: #111827;
  border: 1.5px solid #111827;
  color: #ffffff;
}

/* Hover */
.mobile-auth .login-link:hover {
  background: #f3f4f6;
}

.mobile-auth .start-link:hover {
  opacity: 0.92;
}

/* Focus (clean) */
.mobile-auth a:focus,
.mobile-auth a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17,24,39,0.15);
}

/* ======================================================
   FOOTER
====================================================== */

#nipio-global-footer {
  background: var(--nipio-footer-bg);
  color: #cbd5e1;
  padding: 60px 20px 20px;
}

.nipio-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
}

.nipio-footer-col strong {
  display: block;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.nipio-footer-col p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.7;
}

.nipio-footer-col a {
  color: #cbd5e1;
  text-decoration: none;
}

.nipio-footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
  
}

.nipio-footer-col a:focus{
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.nipio-footer-col a:focus-visible{
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.nipio-footer-links{
  list-style:none;
  margin:0;
  padding:0;
}

.nipio-footer-links li{
  margin:8px 0;
}
/* Footer bottom (copyright centered) */

.nipio-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 42px;
  padding-top: 18px;
}

.nipio-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}
/* RTL footer alignment */
[dir="rtl"] #nipio-global-footer{
  direction: rtl;
}

[dir="rtl"] .nipio-footer-col{
  text-align: right;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 992px) {

  .nipio-gh-nav,
  .nipio-btn-primary,
  .nipio-btn-outline {
    display: none !important;
  }

  .nipio-hamburger {
    display: block !important;
  }

  .nipio-footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {

  .nipio-footer-inner {
    grid-template-columns: 1fr;
  }
}
