/* ===========================
 * HEADER + FULLSCREEN MOBILE NAV (CLEAN)
 * (moved from style.css)
 * =========================== */

.ctins-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.ctins-header.ctins-header--scrolled{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background-color: #000000;
  box-shadow: 0 0.5rem 1.125rem rgba(0,0,0,0.4);
  transform: translateY(0);
}

/* Container */
.ctins-header-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.ctins-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.ctins-logo img {
  display: block;
  height: auto;
  max-width: 70%;
}

/* Desktop nav */
.ctins-nav {
  flex: 1;
  height: fit-content !important;
}

.ctins-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.ctins-menu > li > a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.ctins-menu > li > a:hover,
.ctins-menu > li.current-menu-item > a {
  text-decoration: underline;
}

.ctins-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.9rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  background: #1d4ed8;
  color: #fff;
  white-space: nowrap;
}

.ctins-cta-btn:hover {
  color: black !important;
}
.ctins-cta-btn:focus {
  border: none !important;
  outline: none !important;
  color: white !important;
}

/* Hamburger */
.ctins-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  z-index: 10001;
}

.ctins-nav-toggle:hover,
.ctins-nav-toggle:focus,
#ctins-nav-close:hover {
  outline: none;
  background-color: transparent !important;
  color: #0043ff !important;
}
.ctins-nav-toggle:hover > span {
  background-color: #0043ff !important;
}

.ctins-nav-toggle-line {
  width: 1.5rem;
  height: 0.125rem;
  border-radius: 9999px;
  background-color: #ffffff;
}

@media (min-width: 990px) {
  #ctins-nav-close { display: none !important; }
  .ctins-nav-toggle { display: none; }
}

/* Hide Astra toggles */
.ast-header-break-point .ast-mobile-menu-buttons,
.ast-header-break-point .ast-button-wrap .menu-toggle,
.ast-header-break-point .main-header-menu-toggle,
.ast-header-break-point button.menu-toggle {
  display: none !important;
}

/* Polylang flags in menu */
.ctins-menu .lang-item {
  justify-content: center;
  display: flex;
  align-items: center;
}

.ctins-menu .lang-item img {
  width: 25px !important;
  height: auto;
  min-height: 15px;
  display: block;
}

/* ===========================
 * TOP BAR
 * =========================== */

.ctins-topbar {
  width: 100%;
  background: #2563eb4a;
  backdrop-filter: blur(0.4rem);
}

.ctins-topbar-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* socials left */
.ctins-topbar-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ctins-topbar-social-link {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  text-decoration: none;
}

.ctins-topbar-social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: #fff;
  opacity: 0.9;
}

.ctins-topbar-social-link:hover svg {
  opacity: 1;
}

.ctins-topbar-phone{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
}

.ctins-topbar-phone-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.ctins-topbar-phone-icon svg{
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.ctins-topbar-phone-text{
  display: inline-flex;
  align-items: center;
}

.ctins-topbar-phone-label{
  line-height: 1;
  font-size: 0.95rem;
  font-weight: 600;
}

.ctins-topbar-phone:hover{
  color: #2563eb;
}
.ctins-topbar-in-menu {
  display: none;
}

/* ===========================
 * MOBILE FULLSCREEN NAV
 * =========================== */

@media (max-width: 990px) {
  .ctins-header-inner {
    gap: 1rem;
  }

  .ctins-logo { order: 1; }
  .ctins-cta-btn { order: 2; margin-left: 0; }
  .ctins-nav-toggle { order: 3; margin-left: auto; }

  body.ctins-mobile-open .ctins-nav-toggle {
    display: none;
  }

  .ctins-header .ctins-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;     
    height: 100dvh;    
    min-height: 100vh;
    max-height: 100dvh;

    background-color: #000000f0 !important;

    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    padding: max(1.25rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;

    z-index: 10000;
  }

      .ctins-menu {
    flex: 1;
    margin: 1.25rem 0 0;
    padding: 0;

    /* NEW: column + centered */
    display: flex;
    flex-direction: column;
    justify-content: center;  /* κάθετα στο μέσο του modal */
    align-items: center;      /* οριζόντια κεντραρισμένα */
    gap: 1.25rem;
    text-align: center;
  }

  .ctins-menu > li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .ctins-menu > li > a {
    font-size: 1.35rem;     /* πιο μεγάλο */
    line-height: 1.25;      /* πιο ευανάγνωστο */
    letter-spacing: 0.02em; /* λίγο πιο καθαρό */
    font-weight: 700;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    max-width: 22rem;
    padding: 0.85rem 1rem;  /* μεγαλύτερο tap area */
  }


  /* Open state */
  body.ctins-mobile-open .ctins-header .ctins-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.ctins-mobile-open {
    overflow: hidden;
  }

  #ctins-nav-close {
    position: sticky;
    top: 0;
    align-self: flex-end;

    margin: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.75rem;
    cursor: pointer;

    z-index: 10002;
  }

  .ctins-topbar-in-menu {
    display: block;
    margin-bottom: 0.75rem;
  }

  body.ctins-mobile-open .ctins-header > .ctins-topbar {
    display: none !important;
  }

  .ctins-topbar-inner {
    padding: 0.2rem 1rem;
  }

  .ctins-topbar-phone-label {
    display: none;
  }

  .ctins-topbar--menu {
    border-radius: 1rem;
    overflow: hidden;
  }
}

.ctins-nav > .ctins-topbar-in-menu {
  display: none;
}

@media (max-width: 61.875rem) {
  .ctins-cta-btn{
    margin-left: auto !important;
  }

  .ctins-nav-toggle{
    margin-left: 0 !important;
  }

  .ctins-header-inner{
    gap: 0.75rem;
  }
}

/*
 * Menu logo
*/
.ins-menu-logo {
  margin: 8px 0;
}

@media (max-width: 990px) {
  /* NEW: language flag centered in mobile menu */
  .ctins-menu .lang-item {
    margin-top: 1.5rem;
  }

  .ctins-menu .lang-item a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .ctins-menu .lang-item img {
    display: block;
  }
}
