/* Sundbybergs Stadsmuseum — V1 site replica stylesheet
   Recreated to match the original design: teal triangle header,
   Arial/Helvetica body type, light card panels, red/teal accents. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

a { color: #398C94; text-decoration: underline; }
a:hover { color: #26666C; }

img { max-width: 100%; height: auto; display: block; }

.cookie-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 16px;
  font-size: 13px;
  flex-wrap: wrap;
}
.cookie-bar button {
  background: #398C94;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
}

.site-wrap { max-width: 1200px; margin: 0 auto; }

/* Header */
header.masthead {
  background-image: url('../images/logo-header.png');
  background-repeat: repeat-x;
  background-position: center;
  background-color: #6BC0C4;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.masthead-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px;
  height: 118px;
}
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 3px;
}
.lang-switch .lang-btn {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 11px;
  border-radius: 16px;
  letter-spacing: 0.03em;
}
.lang-switch a.lang-btn:hover { background: rgba(255,255,255,0.28); }
.lang-switch .lang-btn.is-active { background: #fff; color: #398C94; }
.social-icons { display: flex; gap: 8px; }
.social-icons a {
  width: 30px; height: 30px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #398C94;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
}
.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.12);
  border: 2px solid #fff;
  border-radius: 4px;
  width: 40px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px; }

nav.mainnav {
  background: #398C94;
  border-bottom: 3px solid #2C6E74;
}
nav.mainnav ul {
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  padding: 0 20px;
}
nav.mainnav li { position: relative; }
nav.mainnav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 16px 18px;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.03em;
}
nav.mainnav li.current > a { color: #F2C230; }
nav.mainnav a:hover { background: #2C6E74; }
nav.mainnav .submenu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  min-width: 240px;
  z-index: 20;
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
nav.mainnav .submenu a { color: #333; padding: 10px 16px; font-weight: normal; font-size: 13px; }
nav.mainnav .submenu a:hover { background: #F2F2F2; }
@media (min-width: 861px) {
  nav.mainnav li:hover .submenu { display: block; }
}

/* Layout */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 30px;
  padding: 30px 20px 60px;
}
.content-wrap.single { grid-template-columns: 1fr; }
main { min-width: 0; }
aside { min-width: 0; }

.page-banner {
  background: #F0F0F0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 22px 26px;
  margin-bottom: 26px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.page-banner h1 { margin: 0 0 4px; font-size: 26px; }
.page-banner p { margin: 0; color: #555; }

h1, h2, h3 { font-family: Arial, Helvetica, sans-serif; color: #222; }
h2.section-title { font-size: 19px; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid #398C94; padding-bottom: 6px; margin-top: 34px; }

.alert-box {
  background: #FCEFEF;
  border: 1px solid #E3B7B7;
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.alert-box h3 { color: #C0392B; margin-top: 0; }

.open-box {
  background: #EAF5F6;
  border: 1px solid #B9DEE1;
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.open-box h3 { color: #398C94; margin-top: 0; }
.highlight { background: #FBD9B0; padding: 2px 4px; }

aside .box {
  background: #fafafa;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
aside .box h3 { margin-top: 0; font-size: 15px; color: #C0392B; }
aside .box.links h3 { color: #398C94; }

.figure { margin: 0 0 18px; }
.figure img { border-radius: 3px; border: 1px solid #ddd; }
.figure figcaption { font-size: 12px; color: #666; margin-top: 6px; font-style: italic; }

.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  margin: 10px 0 30px;
  align-items: start;
}
.three-col .three-col-item h2.section-title { font-size: 15px; margin-top: 0; }
.three-col .three-col-item .figure { margin-bottom: 12px; }
.three-col .three-col-item p { font-size: 13px; }

.news-item { border-bottom: 1px solid #eee; padding: 16px 0; }
.news-item .date { color: #398C94; font-weight: bold; font-size: 13px; }
.news-item h3 { margin: 4px 0 8px; }

.contact-form { background: #fafafa; border: 1px solid #e2e2e2; border-radius: 4px; padding: 20px; margin-top: 10px; }
.contact-form label { display: block; font-weight: bold; margin: 12px 0 4px; font-size: 13px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 3px; font-family: inherit; font-size: 14px;
}
.contact-form button {
  margin-top: 16px; background: #398C94; color: #fff; border: none; padding: 10px 22px;
  font-weight: bold; border-radius: 3px; cursor: pointer; font-size: 14px;
}
.contact-form button:hover { background: #2C6E74; }
.contact-form .note { font-size: 12px; color: #888; margin-top: 8px; }

.info-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.info-table td { padding: 6px 4px; border-bottom: 1px solid #eee; vertical-align: top; }
.info-table td:first-child { font-weight: bold; width: 42%; color: #444; }

.map-embed { border: 1px solid #ddd; border-radius: 4px; overflow: hidden; margin: 16px 0; }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

.people { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin: 14px 0; }
.people .person { background: #fafafa; border: 1px solid #eee; border-radius: 4px; padding: 12px 14px; }
.people .person strong { display: block; color: #222; }
.people .person span { font-size: 13px; color: #555; }

footer.site-footer {
  background: #2C2C2C;
  color: #ccc;
  padding: 30px 20px;
  margin-top: 40px;
  font-size: 13px;
}
footer.site-footer .site-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer.site-footer a { color: #9FD8DC; }
footer.site-footer .fine-print { width: 100%; border-top: 1px solid #444; margin-top: 18px; padding-top: 14px; color: #888; font-size: 12px; }
footer.site-footer .footer-social-icons { margin-top: 8px; }

/* ---------- Mobile responsive ---------- */
@media (max-width: 860px) {
  .content-wrap { grid-template-columns: 1fr; padding: 20px 16px 44px; gap: 20px; }
  .masthead-inner { justify-content: space-between; padding: 10px 16px; height: auto; min-height: 84px; gap: 10px; }
  header.masthead { min-height: 84px; background-size: auto 84px; }
  .nav-toggle { display: flex; order: 1; }
  .header-tools { order: 2; gap: 10px; }
  .social-icons a { width: 28px; height: 28px; font-size: 13px; }
  .lang-switch .lang-btn { font-size: 11px; padding: 4px 9px; }

  nav.mainnav { position: relative; }
  nav.mainnav ul {
    display: none;
    flex-direction: column;
    padding: 0;
    max-width: none;
  }
  nav.mainnav.nav-open > ul { display: flex; }
  nav.mainnav li { width: 100%; }
  nav.mainnav a { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,0.15); }
  nav.mainnav .submenu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    background: #2C6E74;
  }
  nav.mainnav li.submenu-open > .submenu { display: block; }
  nav.mainnav .submenu a { color: #fff; padding: 12px 34px; border-top: 1px solid rgba(255,255,255,0.12); }
  nav.mainnav .submenu a:hover { background: rgba(0,0,0,0.12); }

  .page-banner { padding: 18px 18px; }
  .page-banner h1 { font-size: 22px; }
  h2.section-title { font-size: 17px; }
  .people { grid-template-columns: 1fr; }
  .info-table td:first-child { width: 50%; }
  .map-embed iframe { height: 240px; }
  .contact-form { padding: 16px; }
  footer.site-footer .site-wrap { flex-direction: column; gap: 20px; }
}

@media (max-width: 420px) {
  body { font-size: 13px; }
  .page-banner h1 { font-size: 19px; }
  .masthead-inner { padding: 8px 12px; }
  .lang-switch .lang-btn { padding: 3px 7px; }
}
