/* ===== EVINAR COMPONENTS CSS ===== */
/* Shared header, footer, and navigation used on ALL pages */

/* HEADER WRAPPER – receives sticky + z-index so mega-menu overlays page content */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* HEADER */
.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(129, 153, 171, 0.1);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 84px;
  padding: 0;
}

.header-inner > * {
  align-self: center;
}

/* BRAND */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background-image: url("/images/evinar-icon.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-h, Inter, Arial, sans-serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--text, var(--text, #2f2f2f));
}

.brand-text span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #61717f);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.main-nav > * {
  display: flex;
  align-items: center;
  height: 44px;
}

.nav-item {
  position: relative;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--font-b, Inter, Arial, sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #2f2f2f);
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover, .nav-item:hover .nav-link {
  background: #eef4f8;
  color: var(--text, #2f2f2f);
}

.caret {
  font-size: 11px;
  color: #72828f;
}

/* MEGA MENU */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 760px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(129, 153, 171, 0.12);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(20, 34, 48, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mega-menu-evinar {
  width: 520px;
}

.mega-menu-integrations {
  width: 360px;
}

.mega-menu-cenik {
  width: 460px;
}

.mega-list {
  display: grid;
  gap: 10px;
}

.mega-row {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(129, 153, 171, 0.1);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mega-row.sub {
  margin-left: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: transparent;
  border: none;
}

.mega-row.sub strong {
  font-size: 14px;
  font-weight: 700;
}

.mega-row.sub span {
  font-size: 12px;
}

.mega-row:hover {
  transform: translateY(-1px);
  background: #f8fbfd;
  box-shadow: 0 12px 30px rgba(20, 34, 48, 0.07);
}

.mega-row strong, .mega-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--text, #2f2f2f);
}

.mega-row span, .mega-card span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sec, #61717f);
}

.nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mega-card {
  display: block;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(129, 153, 171, 0.1);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mega-card:hover {
  transform: translateY(-1px);
  background: #f8fbfd;
  box-shadow: 0 12px 30px rgba(20, 34, 48, 0.07);
}

.integ-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-4, #4a5568);
}

.integ-more-link:hover {
  color: var(--text, #2f2f2f);
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost.top-hide-mobile, .site-header .btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(95, 126, 153, 0.18);
  background: #fff;
  font-family: var(--font-b, Inter, Arial, sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #2f2f2f);
}

.site-header .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #6b2737;
  color: #fff;
  font-family: var(--font-b, Inter, Arial, sans-serif);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(107, 39, 55, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-header .btn-primary:hover {
  background: #4a1625;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(107, 39, 55, 0.32);
  filter: saturate(1.05);
}

/* FOOTER */
.site-footer {
  background: linear-gradient(180deg, #233647 0%, #1c2b38 100%);
  border-top: 1px solid rgba(129, 153, 171, 0.12);
  padding: 70px 0 26px;
  position: relative;
  z-index: 1;
}

.site-footer .brand-text strong {
  color: #fff;
}

.site-footer .brand-text span {
  color: rgba(232, 238, 243, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 48px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand p {
  margin: 18px 0 0;
  color: rgba(232, 238, 243, 0.74);
  font-size: 15px;
  line-height: 1.75;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0f5f9;
}

.footer-links, .footer-legal {
  display: grid;
  gap: 12px;
  list-style: none;
}

.footer-links a, .footer-legal a {
  font-size: 15px;
  color: rgba(232, 238, 243, 0.78);
  line-height: 1.4;
  transition: color 0.2s;
}

.footer-links a:hover, .footer-legal a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: rgba(232, 238, 243, 0.66);
  font-size: 13px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.2);
}

/* HEADER/FOOTER Responsive */
@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0 18px;
  }
  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .header-actions {
    justify-content: flex-start;
  }
  .mega-menu {
    left: 0;
    transform: none;
    width: min(760px, 90vw);
  }
  .nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu {
    transform: translateY(0);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .mega-menu {
    display: none !important;
  }
  .caret {
    display: none;
  }
}

@media (max-width: 760px) {
  .mega-grid, .footer-grid, .footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }
  .top-hide-mobile {
    display: none !important;
  }
}

/* ==================== HAMBURGER ==================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
}

.hamburger:hover { background: var(--bg-light, #f3f5f7); }

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text, #2f2f2f);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.hamburger span:nth-child(3) { width: 65%; }

.mob-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mob-open .hamburger span:nth-child(2) { opacity: 0; }
.mob-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

@media (max-width: 760px) {
  .hamburger { display: flex; }
  .main-nav, .btn-ghost.top-hide-mobile { display: none !important; }
}

/* ==================== MOBILE OVERLAY ==================== */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 35, 0.5);
  z-index: 998;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mob-open .mob-overlay {
  display: block;
  opacity: 1;
}

/* ==================== MOBILE MENU PANEL ==================== */
.mob-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -20px 0 60px rgba(15, 25, 35, 0.16);
  overflow-y: auto;
}

.mob-open .mob-menu { transform: translateX(0); }

.mob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border, #e0e5ea);
}

.mob-brand { gap: 10px; }

.mob-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light, #f3f5f7);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-sec, #59514b);
  transition: background 0.2s;
}

.mob-close:hover { background: var(--bg-soft, #e8ecf0); }

.mob-links {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mob-group { margin: 4px 0 2px; }

.mob-group-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
  padding: 4px 12px 2px;
  text-decoration: none;
}

a.mob-group-label:hover {
  color: var(--text, #2f2f2f);
}

.mob-link {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #2f2f2f);
  transition: background 0.18s, color 0.18s;
}

.mob-link:hover {
  background: var(--bg-light, #f3f5f7);
  color: var(--wine, #6b2737);
}

.mob-link.mob-section {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec, #59514b);
  padding: 6px 12px 6px 16px;
}

.mob-link.mob-section:hover {
  background: var(--bg-light, #f3f5f7);
  color: var(--wine, #6b2737);
}

.mob-sub-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
  padding: 10px 12px 4px 16px;
  opacity: 0.7;
}

.mob-link.mob-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted, #6b7280);
  padding: 7px 12px 7px 28px;
  position: relative;
}

.mob-link.mob-sub::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border, #e0e5ea);
}

.mob-link.mob-sub:hover {
  color: var(--wine, #6b2737);
}

.mob-link.mob-sub:hover::before {
  background: var(--wine, #6b2737);
}

.mob-actions {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border, #e0e5ea);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mob-actions .btn-primary {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  background: #6b2737;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(107, 39, 55, 0.22);
  min-height: 48px;
  padding: 0 20px;
  font-family: var(--font-b, Inter, sans-serif);
  font-size: 14px;
  font-weight: 800;
  border: none;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mob-actions .btn-primary:hover {
  background: #4a1625;
  box-shadow: 0 14px 30px rgba(107, 39, 55, 0.3);
}

.mob-actions .btn-outline {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  background: #fff;
  color: var(--text, #2f2f2f);
  border: 1px solid rgba(95, 126, 153, 0.22);
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  font-family: var(--font-b, Inter, sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.2s, border-color 0.2s;
}

.mob-actions .btn-outline:hover {
  background: var(--bg-light, #f3f5f7);
  border-color: rgba(95, 126, 153, 0.4);
}

body.mob-open { overflow: hidden; }

.mob-footer {
  padding: 12px 20px 20px;
  font-size: 12px;
  color: var(--text-muted, #6b7280);
  text-align: center;
}


/* ===== LANGUAGE SWITCHER ===== */
.lang-divider {
    width: 1px;
    height: 22px;
    background: rgba(95, 126, 153, 0.18);
    flex-shrink: 0;
}

.lang-switch {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(95, 126, 153, 0.2);
    background: transparent;
    font-family: var(--font-b, Inter, sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--text, #2f2f2f);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

    .lang-btn:hover {
        background: var(--bg-light, #f3f5f7);
        border-color: rgba(95, 126, 153, 0.36);
    }

    .lang-btn .caret {
        font-size: 10px;
        color: #72828f;
        transition: transform 0.2s;
    }

    .lang-btn[aria-expanded="true"] .caret {
        transform: rotate(180deg);
    }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 76px;
    background: #fff;
    border: 1px solid rgba(129, 153, 171, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(20, 34, 48, 0.12);
    padding: 6px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1100;
}

    .lang-dropdown.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

@media (max-width: 1100px) {
    .lang-dropdown {
        right: auto;
        left: 0;
    }
}

.lang-opt {
    display: block;
    padding: 8px 14px;
    border-radius: 9px;
    font-family: var(--font-b, Inter, sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sec, #59514b);
    letter-spacing: 0.04em;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

    .lang-opt:hover {
        background: var(--bg-light, #f3f5f7);
        color: var(--text, #2f2f2f);
    }

    .lang-opt.active {
        color: var(--wine, #6b2737);
        background: rgba(107, 39, 55, 0.06);
    }

/* Mobile language strip */
.mob-lang {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.mob-lang-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: var(--font-b, Inter, sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #2f2f2f);
    border: 1px solid rgba(95, 126, 153, 0.2);
    background: transparent;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

    .mob-lang-opt:hover {
        background: var(--bg-light, #f3f5f7);
        border-color: rgba(95, 126, 153, 0.36);
    }

    .mob-lang-opt.active {
        border-color: var(--blue-3, #6f8596);
        color: var(--blue-3, #6f8596);
        background: rgba(111, 133, 150, 0.08);
    }

.mob-footer-text {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    text-align: center;
}


/* ===== COOKIE CONSENT BANNER ===== */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: #fff;
  border-top: 1px solid rgba(129, 153, 171, 0.18);
  box-shadow: 0 -4px 24px rgba(31, 49, 64, 0.1);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-bar.visible {
  transform: translateY(0);
}

.cookie-bar-text {
  flex: 1;
  min-width: 220px;
  font-size: 0.875rem;
  color: var(--text-sec, #59514b);
  line-height: 1.5;
}

.cookie-bar-text a {
  color: var(--blue-3, #6f8596);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--wine, #6b2737);
  color: #fff;
  font-family: var(--font-b, Inter, sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  background: var(--wine-dark, #4a1625);
}

.cookie-btn-more {
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-b, Inter, sans-serif);
}

.cookie-btn-more:hover {
  color: var(--text, #2f2f2f);
}

@media (max-width: 600px) {
  .cookie-bar {
    padding: 14px 20px;
    gap: 14px;
  }
  .cookie-bar-text {
    font-size: 0.8125rem;
  }
}
