/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: 32px;
  background: transparent;
  transition: height 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled,
.site-header.is-solid {
  height: var(--header-h-scrolled);
  background: #fff;
  box-shadow: var(--shadow-header);
}
.site-header .logo-img { width: 128px; height: auto; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
  min-width: 0;
  flex-wrap: wrap;
}
@media (max-width: 1100px) {
  .header-nav { gap: 12px; }
  .header-nav a { font-size: 13px; }
}
@media (max-width: 1023px) {
  .header-nav { display: none; }
  .site-header {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
  }
  .header-menu-start {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }
  .site-header .logo { justify-self: start; }
}
.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  position: relative;
  padding-block: 4px;
}
.site-header:not(.is-scrolled):not(.is-solid) .header-nav a,
.site-header:not(.is-scrolled):not(.is-solid) .header-actions .btn-icon {
  color: #fff;
}
.header-nav a.active,
.header-nav a[aria-current="page"] { color: var(--primary); }
.header-nav a.active::after,
.header-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-menu-start, .header-mobile-saved { display: none; }
.lang-dropdown { position: relative; }
.lang-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--border-default);
  border-radius: 12px; padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.lang-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  background: #fff; border: 1px solid var(--border-default); border-radius: 12px;
  box-shadow: var(--shadow-card); min-width: 140px; padding: 6px; z-index: 20;
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-dropdown-menu li {
  list-style: none; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.lang-dropdown-menu li:hover { background: var(--primary-soft); }

@media (max-width: 767px) {
  .site-header {
    height: 60px;
    padding-inline: 12px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    background: #fff !important;
    box-shadow: var(--shadow-header);
  }
  .site-header:not(.is-scrolled):not(.is-solid) .header-nav a,
  .site-header:not(.is-scrolled):not(.is-solid) .header-actions .btn-icon {
    color: var(--text-heading) !important;
  }
  .header-menu-start {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; background: transparent;
    color: var(--text-heading);
  }
  .header-menu-start span { background: var(--text-heading); }
  .site-header .logo { justify-self: center; }
  .header-mobile-saved {
    display: inline-flex !important;
    justify-self: end;
    color: var(--text-heading) !important;
  }
  .header-nav, .header-actions .lang-dropdown,
  .header-actions .header-contact-btn,
  .header-actions .header-desktop-saved,
  .header-actions .header-search-btn,
  .header-actions .menu-toggle,
  #menu-toggle { display: none !important; }
  .header-actions { display: contents; }
}

/* Drawer */
.side-panel {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-start: 0;
  width: min(88vw, 360px);
  max-width: 100%;
  background: #fff;
  z-index: 9000;
  transform: translateX(-105%);
  transition: transform 220ms ease, visibility 220ms ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  visibility: hidden;
  pointer-events: none;
}
html[dir="rtl"] .side-panel { transform: translateX(105%); }
.side-panel.open {
  transform: translateX(0) !important;
  visibility: visible;
  pointer-events: auto;
}
.side-panel-overlay {
  position: fixed; inset: 0; background: rgba(16,24,40,0.4);
  z-index: 8999; opacity: 0; pointer-events: none; transition: opacity 220ms ease;
}
.side-panel-overlay.open { opacity: 1; pointer-events: auto; }
.side-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-bottom: 1px solid var(--border-light);
}
.side-panel-close {
  width: 40px; height: 40px; border: 0; background: transparent;
  font-size: 24px; cursor: pointer;
}
.side-panel-nav {
  padding: 12px 16px 32px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-heading);
}
.side-nav-link:hover { background: var(--primary-soft); }
.side-panel-lang { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.side-lang-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.side-lang-btn {
  border: 1px solid var(--border-default); background: #fff;
  border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 12px; cursor: pointer;
}
.side-lang-btn.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.side-panel-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.side-panel-social a { font-size: 13px; font-weight: 600; color: var(--primary-dark); }

/* Bottom nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--border-light);
  z-index: 1200;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}
@media (max-width: 767px) {
  .mobile-bottom-nav { display: grid; }
}
.mobile-bottom-nav a, .mobile-bottom-nav button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: transparent; border: 0; color: var(--text-secondary);
  font-size: 10px; font-weight: 600; cursor: pointer; padding: 8px 4px;
}
.mobile-bottom-nav a.active, .mobile-bottom-nav a[aria-current="page"] {
  color: var(--primary-dark);
}
.mobile-bottom-nav a.active svg,
.mobile-bottom-nav a[aria-current="page"] svg {
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 4px;
  box-sizing: content-box;
}
.mobile-bottom-nav-ai { color: var(--primary) !important; }

/* Footer */
.site-footer {
  background: #0B2421;
  color: #fff;
  margin-top: auto;
  padding-block: 64px 0;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 48px;
  width: 100%;
  max-width: 100%;
}
.footer-logo-img { width: 120px; height: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-tagline, .footer-office-line { color: rgba(255,255,255,0.72); font-size: 14px; margin: 0 0 8px; }
.footer-heading { font-size: 14px; font-weight: 700; margin: 0 0 16px; color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.footer-social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.72); }
.footer-lang { display: inline-flex; gap: 4px; }
.footer-lang-btn {
  border: 1px solid rgba(255,255,255,0.25); background: transparent;
  color: rgba(255,255,255,0.75); border-radius: 8px; padding: 4px 10px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.footer-lang-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 767px) {
  .footer-top { grid-template-columns: 1fr; gap: 0; }
  .footer-col:not(.footer-col-brand) .footer-links { display: none; }
  .footer-col.is-open .footer-links { display: flex; padding-bottom: 16px; }
  .footer-col:not(.footer-col-brand) .footer-heading {
    cursor: pointer; padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between;
  }
  .footer-col:not(.footer-col-brand) .footer-heading::after { content: "+"; }
  .footer-col.is-open .footer-heading::after { content: "−"; }
}

/* Hamburger */
.menu-toggle {
  width: 44px; height: 44px; border: 0; background: transparent;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; padding: 0;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: var(--text-heading); border-radius: 2px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; inset-inline: 16px; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 5000; background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-panel); box-shadow: var(--shadow-modal); padding: 16px 20px;
  max-width: 560px;
}
@media (min-width: 768px) {
  .cookie-banner { bottom: 24px; inset-inline-start: 24px; inset-inline-end: auto; }
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner { display: flex; flex-direction: column; gap: 12px; }
.cookie-banner-text { margin: 0; font-size: 14px; color: var(--text-secondary); }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn {
  min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border-default);
  font-weight: 700; font-size: 13px; cursor: pointer; background: #fff;
}
.cookie-btn-accept { background: var(--primary); color: #fff; border-color: var(--primary); }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  inset-inline-end: 20px;
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 1100;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}
@media (min-width: 768px) {
  .whatsapp-fab { bottom: 24px; width: auto; padding: 0 18px; border-radius: 999px; gap: 8px; }
  .whatsapp-fab-label { display: inline; font-weight: 700; font-size: 14px; }
}
.whatsapp-fab-label { display: none; }

/* Back to top */
.back-to-top {
  position: fixed;
  inset-inline-end: 20px;
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 88px);
  z-index: 1090;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-default); background: #fff;
  box-shadow: var(--shadow-card); cursor: pointer; font-size: 18px;
  opacity: 0; pointer-events: none; transition: opacity 180ms ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
@media (min-width: 768px) {
  .back-to-top { bottom: 96px; }
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
#main-content { flex: 1; }
