/* header26.css — HEADER ONLY (namespaced with -hd) */

/* Keep variables here if you want header independent of main.css */
:root {
  --primary-color: #1a3a5f;
  --accent-color: #e6a23c;
  --dark-bg: #0f172a;
  --text-color: #ffffff;
  --transition: all 0.25s ease;
  --radius: 10px;
  --shadow: 0 10px 24px rgba(0,0,0,0.18);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
}
/* ===== Header Shell ===== */
.header-hd{
  position: sticky;
  top: 0;
  z-index: 10050;
  background: linear-gradient(135deg, #0f172a 0%, #1a3a5f 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Layout container just for header */
.container-hd{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.blocktop-hd{
  padding: 12px 0;
}

.topflexdiv-hd{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footerdivs_top-hd{
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}

.topleftalign-hd{
  display: flex;
  align-items: center;
  gap: 12px;
}

.imagetop-hd{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.imageicon-hd{
  border-radius: 6px;
}

.toplogo-hd{
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fff;
}

/* Desktop nav */
.main-navigation-hd{
  display: flex;
  align-items: center;
  gap: 10px;
}

.header_menu-hd{
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.header_menu-hd:hover{
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* Right side login area */
.topdivlogin-hd{
  display: flex;
  align-items: center;
  gap: 12px;
}

.topicons-hd{
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-hd{
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.image-hd:hover{ opacity: 1; }

.signup-link-hd{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}

.cta-button-hd{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}

.cta-button-hd:hover{
  background: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}

/* ===== Language selector (namespaced) ===== */
.language-selector-hd{ position: relative; }
.current-language-hd{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-weight: 500;          /* was too heavy */
  letter-spacing: 0.02em;
}

.language-dropdown-hd{
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 10060;
}

.language-dropdown-hd.open-hd{ display: block; }

.language-option-hd{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
}

.language-option-hd:hover{
  background: rgba(0,0,0,0.06);
}

.lang-name-hd{ flex: 1 1 auto; }
.lang-code-hd{ 
    font-weight: 600;          /* was 800 */
  font-size: 0.9rem;
  letter-spacing: 0.04em;
 }
 .current-language-hd i{
  opacity: 0.7;
}

/* Flags */
.flag-icon-hd{
  display: inline-block;
  width: 20px;
  height: 15px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  margin-right: 8px;
  flex: 0 0 auto;
}

/* Use your existing SVG data URIs (copied/renamed) */
.flag-icon-gb-hd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%2300247d' d='M0 0v30h60V0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0 0l60 30m0-30L0 30'/%3E%3Cpath stroke='%23CF142B' stroke-width='4' d='M0 0l60 30m0-30L0 30' clip-path='url(%23b)'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23CF142B' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/g%3E%3C/svg%3E"); }
.flag-icon-es-hd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23C60B1E' d='M0 0h60v30H0z'/%3E%3Cpath fill='%23FFC400' d='M0 10h60v10H0z'/%3E%3C/g%3E%3C/svg%3E"); }
.flag-icon-fr-hd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23002654' d='M0 0h20v30H0z'/%3E%3Cpath fill='%23fff' d='M20 0h20v30H20z'/%3E%3Cpath fill='%23CE1126' d='M40 0h20v30H40z'/%3E%3C/g%3E%3C/svg%3E"); }
.flag-icon-it-hd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23009244' d='M0 0h20v30H0z'/%3E%3Cpath fill='%23fff' d='M20 0h20v30H20z'/%3E%3Cpath fill='%23CE2B37' d='M40 0h20v30H40z'/%3E%3C/g%3E%3C/svg%3E"); }
.flag-icon-ru-hd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23fff' d='M0 0h60v10H0z'/%3E%3Cpath fill='%230031A4' d='M0 10h60v10H0z'/%3E%3Cpath fill='%23DA291C' d='M0 20h60v10H0z'/%3E%3C/g%3E%3C/svg%3E"); }
.flag-icon-de-hd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23000000' d='M0 0h60v10H0z'/%3E%3Cpath fill='%23DD0000' d='M0 10h60v10H0z'/%3E%3Cpath fill='%23FFCC00' d='M0 20h60v10H0z'/%3E%3C/g%3E%3C/svg%3E"); }
.flag-icon-cn-hd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23DE2910' d='M0 0h60v30H0z'/%3E%3Cg fill='%23FFDE00'%3E%3Cpath d='M30 12l3.09 9.5h10l-8.09 5.9 3.09 9.5-8.09-5.9-8.09 5.9 3.09-9.5-8.09-5.9h10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

/* ===== Mobile menu (single system, bound to navigation.js) ===== */
.mobile-menu-btn-hd{
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  padding: 10px;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-hd{
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  padding-top: 84px;
  background: linear-gradient(135deg, #0f172a 0%, #1a3a5f 100%);
  z-index: 20000;
  transform: translateX(-100%);
  transition: transform .25s ease;
}

.mobile-nav-hd.active{
  transform: translateX(0);
}

.mobile-nav-links-hd{
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  display: grid;
  gap: 10px;
}

.mobile-nav-links-hd a{
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
}

.mobile-nav-links-hd a:hover{
  background: rgba(255,255,255,0.10);
}

.mobile-topdivlogin-hd{
  padding: 20px 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 12px;
}

.cta-button-mob-hd{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--accent-color), #f59e0b);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

/* Responsive: switch to mobile header */
@media (max-width: 992px){
  .main-navigation-hd, .topdivlogin-hd{ display: none; }
  .mobile-menu-btn-hd{ display: inline-flex; }
  .mobile-nav-hd{ display: block; }
}

/* Safety: ensure header remains clickable */
.header-hd a, .header-hd button { pointer-events: auto; }
.imagetop-hd{
  gap: 12px;
}

.toplogo-hd{
  font-size: 1.05rem;        /* slightly smaller */
  font-weight: 700;          /* was 800 */
  letter-spacing: 0.06em;    /* was too wide */
  line-height: 1;
  text-transform: uppercase;
}

.imageicon-hd{
  width: 34px;
  height: 34px;
}
.cta-button-hd{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;

  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #111;

  box-shadow: 0 6px 18px rgba(245,158,11,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta-button-hd:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 2
}
body.menu-open { overflow: hidden; }

/* Mobile menu: space out SIGN UP + LOG IN */
.mobile-topdivlogin-hd{
  display: grid;
  gap: 12px;
}

.mobile-topdivlogin-hd .header_menu-hd,
.mobile-topdivlogin-hd .cta-button-mob-hd{
  width: 100%;
  justify-content: center;
  text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), #f59e0b);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    gap: 10px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #f59e0b, var(--accent-color));
}

.primary-btn {
    background: linear-gradient(135deg, #e6a23c 0%, #f59e0b 100%);
    color: white;
    padding: 16px 32px;
}

.secondary-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--light-gray);
}

.secondary-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}