/* =====================================================================
   EazyMirror vitrine - Navigation multi-pages
   Desktop: horizontal menu with dropdown on hover + click
   Mobile (<=768px): hamburger + slide-down accordion
   ===================================================================== */

/* --- Top bar --- */
.site-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #A270D0; color: #fff;
  height: 60px; display: flex; align-items: center;
  padding: 0 24px;
  font-family: 'Rubik', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-topbar a { color: #fff; text-decoration: none; }

/* Logo */
.site-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  background-image: url('../media/O/Logo_white3.png');
  background-size: auto 100%;
  width: 170px;
  height: 50px;
  position: relative;}
.site-brand img { height: 36px; width: auto; }
.site-brand .brand-name { font-size: 18px; font-weight: 500; white-space: nowrap; display: none; }

/* Desktop nav */
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 16px; }
.site-nav > a, .site-nav > .nav-dropdown > .nav-drop-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 400;
  white-space: nowrap; cursor: pointer; transition: background .2s;
  background: transparent; border: none; color: #fff;
}
.site-nav > a:hover, .site-nav > .nav-dropdown > .nav-drop-trigger:hover { background: rgba(255,255,255,.18); }
.site-nav > a.active { background: rgba(255,255,255,.22); font-weight: 500; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-drop-trigger .chevron { font-size: 10px; transition: transform .2s; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  padding: 8px 0; margin-top: 6px; z-index: 200;
}
.nav-drop-menu a {
  display: block; padding: 8px 20px; color: #453058; font-size: 14px;
  transition: background .15s;
}
.nav-drop-menu a:hover { background: #f0ecf5; color: #775399; }
/* Invisible bridge so the menu stays reachable across the gap on hover */
.nav-drop-menu::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; background: transparent; }
/* Show on hover (desktop) */
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown.open .nav-drop-menu { display: block; }
.nav-dropdown:hover .chevron,
.nav-dropdown.open .chevron { transform: rotate(180deg); }

/* Right-side buttons */
.site-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-login {
  padding: 5px 16px; border: 1px solid rgba(255,255,255,.6); border-radius: 16px;
  font-size: 12px; background: transparent; color: #fff; cursor: pointer;
  transition: background .2s;
}
.btn-login:hover { background: rgba(255,255,255,.18); }
.btn-signup {
  padding: 5px 16px; border: none; border-radius: 16px;
  font-size: 12px; font-weight: 500; background: #DFFF6E; color: #453058; cursor: pointer;
  transition: background .2s;
}
.btn-signup:hover { background: #EBFFA6; }

/* Language selector */
.lang-sel { position: relative; }
.lang-sel-btn {
  padding: 5px 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 16px;
  font-size: 12px; background: transparent; color: #fff; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.lang-sel-btn:hover { background: rgba(255,255,255,.15); }
.lang-sel-menu {
  display: none; position: absolute; top: 100%; right: 0; min-width: 130px;
  background: #fff; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  padding: 6px 0; margin-top: 6px; z-index: 300;
}
.lang-sel-menu a {
  display: flex; align-items: center; gap: 8px; padding: 6px 16px; color: #453058; font-size: 13px; cursor: pointer;
}
.flag-svg { width: 20px; height: 14px; border-radius: 2px; display: inline-block; vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: 0 0 auto; }
.lang-sel-btn .lang-flag { display: inline-flex; }
.lang-sel-btn .lang-code { font-weight: 600; letter-spacing: .3px; }
.lang-sel-menu a:hover { background: #f0ecf5; }
.lang-sel-menu a.lang-active { font-weight: 700; color: #775399; }
.lang-sel-menu::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; background: transparent; }
.lang-sel:hover .lang-sel-menu,
.lang-sel.open .lang-sel-menu { display: block; }

/* Hamburger */
.hamburger {
  display: none; background: transparent; border: none; color: #fff;
  font-size: 26px; cursor: pointer; padding: 4px 8px; line-height: 1;
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: #A270D0; z-index: 99; overflow-y: auto; padding: 16px 0;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 28px; color: #fff; font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-menu a:hover { background: rgba(255,255,255,.1); }
.mobile-menu .mob-dropdown-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 28px; color: #fff; font-size: 16px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-menu .mob-dropdown-title .chevron { transition: transform .2s; font-size: 12px; }
.mobile-menu .mob-dropdown-title.open .chevron { transform: rotate(180deg); }
.mobile-menu .mob-sub { display: none; background: rgba(0,0,0,.08); }
.mobile-menu .mob-sub.open { display: block; }
.mobile-menu .mob-sub a { padding-left: 44px; font-size: 15px; }
.mobile-menu .mob-actions { padding: 16px 28px; display: flex; flex-direction: column; gap: 10px; }

/* Responsive breakpoint */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-actions .btn-login, .site-actions .btn-signup { display: none; }
  .hamburger { display: block; }
  .site-topbar { padding: 0 12px; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* --- Footer --- */
.site-footer {
  background: #222; color: #808080; padding: 40px 24px 24px;
  font-family: 'Rubik', sans-serif; font-size: 14px;
}
.site-footer a { color: #bbb; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-about .footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-about .footer-brand img { height: 30px; }
.footer-about .footer-brand span { color: #fff; font-size: 16px; font-weight: 500; }
.footer-about p { line-height: 1.5; margin: 0 0 12px; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer-links a { display: block; margin-bottom: 8px; }
.footer-company {
  max-width: 1100px; margin: 24px auto 0;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 8px; font-size: 13px; color: #666;
}
.footer-company a { color: #888; }
.footer-copy { text-align: center; padding-top: 16px; color: #555; font-size: 12px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Page body offset for fixed header --- */
body.site-page { margin-top: 60px; }

/* --- Section styling for sub-pages --- */
.page-section { padding: 48px 24px; }
.page-section .container { max-width: 1000px; margin: 0 auto; }
.page-section h1 { color: #775399; font-size: 32px; font-weight: 500; margin-bottom: 16px; }
.page-section h2 { color: #775399; font-size: 24px; font-weight: 500; margin-bottom: 12px; }

/* Teaser cards on Home */
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin: 32px auto 0; }
.teaser-card {
  background: #fff; border: 1px solid #e6ddf0; border-radius: 14px; padding: 28px;
  transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.teaser-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(119,83,153,.14); }
.teaser-card h3 { color: #775399; font-size: 19px; margin: 0 0 8px; font-weight: 500; }
.teaser-card p { color: #4D4D4D; font-size: 15px; line-height: 1.5; margin: 0 0 14px; flex: 1; }
.teaser-card .teaser-link { color: #52A122; font-size: 14px; font-weight: 500; }
@media (max-width: 700px) { .teaser-grid { grid-template-columns: 1fr; } }

/* Data separation visual */
.arch-split { display: flex; align-items: center; gap: 20px; max-width: 900px; margin: 24px auto; }
.arch-box {
  flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px; padding: 22px; color: #fff;
}
.arch-box.on-white { background: #f8f5fb; border-color: #e6ddf0; color: #453058; }
.arch-box .arch-badge {
  display: inline-block; background: #775399; color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .5px; padding: 3px 10px; border-radius: 10px; margin-bottom: 8px;
}
.arch-box .arch-badge.alt { background: #52A122; }
.arch-box h4 { font-size: 16px; margin: 0 0 6px; font-weight: 500; }
.arch-box p { font-size: 14px; line-height: 1.45; margin: 0; opacity: .9; }
.arch-arrow {
  flex: 0 0 auto; text-align: center; color: #775399; font-size: 13px; line-height: 1.3;
}
.arch-arrow svg { width: 28px; height: 28px; display: block; margin: 0 auto 4px; }
.arch-info {
  display: flex; gap: 14px; align-items: flex-start; max-width: 900px; margin: 20px auto;
  background: rgba(223,255,110,.08); border: 1px solid rgba(223,255,110,.25);
  border-radius: 14px; padding: 16px 20px;
}
.arch-info.on-white { background: #f9fbe8; border-color: #e0eb9e; }
.arch-info svg { width: 24px; height: 24px; color: #52A122; flex-shrink: 0; margin-top: 2px; }
.arch-info p { font-size: 14px; line-height: 1.5; margin: 0; color: #4D4D4D; }
@media (max-width: 600px) { .arch-split { flex-direction: column; } }
