/* =============================================================
   layout.css — Navbar, footer, shared containers
   Based on upplandsparkapital.se nav pattern
   ============================================================= */

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  flex-shrink: 0;
}
.nav-logo img {
  height: 24px;
  width: auto;
  display: block;
}

/* Nav links (desktop) */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-end;
}
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: #71ae30; }
.nav-links a.active {
  color: #71ae30;
  font-weight: 600;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: #71ae30;
  border-radius: 2px;
}

/* Nav actions (desktop CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Primary button */
.btn-primary {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #71ae30;
  border: none;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #5e9030;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(113,174,48,0.3);
}

/* Hamburger — hidden desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #374151;
  -webkit-tap-highlight-color: transparent;
}
.hamburger .icon-close { display: none; }

/* ── Mobile menu (fixed, slides down from navbar) ── */
.mob-menu {
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  z-index: 99;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 20px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
  visibility: hidden;
}
.mob-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}
.mob-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: fit-content;
  margin: 0 auto;
  align-items: stretch;
}
.mob-menu a {
  display: block;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  position: relative;
  text-align: center;
}
.mob-menu a:hover {
  background: #f3f4f6;
  color: #1a1d16;
}
.mob-menu a.active {
  color: #71ae30;
  font-weight: 600;
}
.mob-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 9px;
  left: 16px; right: 16px;
  height: 2px;
  background: #71ae30;
  border-radius: 2px;
}
.mob-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}
.mob-menu a.mob-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #71ae30;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 20px;
  margin-top: 4px;
  transition: background 0.2s;
}
.mob-menu a.mob-cta:hover {
  background: #5e9030;
  color: #fff;
}

/* ── Shared containers ── */
.content-wrapper      { max-width: 1100px; margin: 0 auto; }
.main-content-wrapper { max-width: 1100px; margin: 0 auto; }

/* ── Footer ── */
.footer-section {
  padding: 60px 24px 48px;
  background-color: #1a1a1a;
  color: rgba(255,255,255,0.65);
  border-top: 3px solid #71ae30;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1.2fr 0.9fr 0.9fr;
  gap: 48px;
}
.footer-block h4 {
  font-family: 'Encode Sans', Helvetica, sans-serif;
  color: #fff;
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 12px;
}
.footer-logo {
  height: 20px;
  width: auto;
  margin-bottom: 18px;
  display: block;
  filter: brightness(0) invert(1);
}
.footer-p {
  font-size: 13px;
  line-height: 22px;
  color: rgba(255,255,255,0.58);
  margin: 0 0 3px;
}
.footer-p--muted {
  color: rgba(255,255,255,0.38);
  font-size: 12px;
  margin-bottom: 14px;
}
.footer-block--brand {
  padding-right: 8px;
}
.footer-p--label {
  display: block;
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 3px;
}
.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.footer-contact-icon { color: #71ae30; flex-shrink: 0; }
.footer-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 22px;
  transition: color 0.15s;
}
.footer-link--inline {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
}
.footer-link:hover { color: #71ae30; }
.footer-hours {
  margin-top: 14px;
  font-size: 12px;
  line-height: 20px;
  color: rgba(255,255,255,0.42);
}
.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.32);
}
.footer-bottom a { color: rgba(255,255,255,0.42); text-decoration: none; transition: color 0.15s; }
.footer-bottom a:hover { color: #fff; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
  /* Hide desktop nav elements */
  .nav-actions { display: none; }
  .nav-links    { display: none; }

  /* Show hamburger */
  .hamburger { display: flex; }

  .nav-inner { padding: 0 20px; }
}

@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-section { padding: 44px 20px 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
