/* BRF Drömkåken 2 - Stylesheet */
/* Inspired by Stadsmuseet factsheet warm parchment tone */

:root {
  --warm-bg: #f7f0e3;
  --warm-bg-dark: #ede2cc;
  --warm-accent: #c49a52;
  --warm-accent-dark: #a07a38;
  --text-dark: #2c2418;
  --text-medium: #5a4a35;
  --text-light: #8a7a65;
  --white: #ffffff;
  --border: #d9cbb0;
  --shadow: rgba(44, 36, 24, 0.08);
  --green-class: #5a7a3a;
  --yellow-class: #c4a444;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--warm-bg);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  font-weight: normal;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: 2.2rem; margin-bottom: 0.5em; }
h2 { font-size: 1.6rem; margin-bottom: 0.6em; margin-top: 1.5em; border-bottom: 2px solid var(--warm-accent); padding-bottom: 0.3em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; margin-top: 1.2em; color: var(--warm-accent-dark); }
h4 { font-size: 1.05rem; margin-bottom: 0.3em; margin-top: 1em; }

p { margin-bottom: 1em; }

a {
  color: var(--warm-accent-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
a:hover { border-bottom-color: var(--warm-accent-dark); }

ul, ol { margin: 0.5em 0 1em 1.5em; }
li { margin-bottom: 0.3em; }

/* Header / Navigation */
.site-header {
  background: var(--text-dark);
  color: var(--warm-bg);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.site-logo {
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  color: var(--warm-bg);
  padding: 1rem 0;
  text-decoration: none;
  border-bottom: none;
  white-space: nowrap;
}
.site-logo:hover { border-bottom: none; }
.site-logo span { color: var(--warm-accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-bg);
  margin: 5px 0;
  transition: 0.3s;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  color: var(--warm-bg);
  padding: 1.1rem 1rem;
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  border-bottom: none;
  transition: background 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(196, 154, 82, 0.2);
  border-bottom: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: flex-end;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,24,0.85) 0%, rgba(44,36,24,0.3) 50%, transparent 100%);
}
.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  color: var(--warm-bg);
  width: 100%;
}
.hero-content h1 {
  color: var(--warm-bg);
  font-size: 2.8rem;
  margin-bottom: 0.3em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-content p {
  font-size: 1.15rem;
  color: var(--warm-bg-dark);
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Main content */
.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.main-content { min-width: 0; }

/* Sidebar */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-box {
  background: var(--warm-bg-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h3 {
  color: var(--text-dark);
  margin-top: 0;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4em;
  margin-bottom: 0.8em;
}
.sidebar-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-box li { margin-bottom: 0.4em; }
.sidebar-box a { font-size: 0.92rem; }

/* Info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.info-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px);
}
.info-card h3 {
  margin-top: 0;
  color: var(--text-dark);
  border-bottom: 1px solid var(--warm-accent);
  padding-bottom: 0.3em;
}
.info-card a.card-link {
  display: inline-block;
  margin-top: 0.5em;
  font-size: 0.9rem;
  color: var(--warm-accent-dark);
  font-weight: bold;
}

/* Image with caption */
.figure {
  margin: 1.5rem 0;
}
.figure img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.figure figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.4em;
  font-style: italic;
}

/* Image gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery img:hover {
  transform: scale(1.03);
}

/* Renovation timeline */
.timeline {
  border-left: 3px solid var(--warm-accent);
  margin: 1.5rem 0 1.5rem 0.5rem;
  padding-left: 1.5rem;
}
.timeline-item {
  margin-bottom: 1rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm-accent);
}
.timeline-year {
  font-weight: bold;
  color: var(--warm-accent-dark);
  font-size: 0.95rem;
}

/* Contact box */
.contact-box {
  background: var(--white);
  border: 2px solid var(--warm-accent);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}
.contact-box h3 { margin-top: 0; }

/* News archive */
.news-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
}
.news-item .news-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.3em;
}
.news-item h3 { margin-top: 0; }

/* Collapsible sections */
details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
details summary {
  padding: 1rem 1.3rem;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-dark);
  font-family: 'Georgia', serif;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
details summary::before {
  content: '\25B6';
  font-size: 0.7em;
  transition: transform 0.2s;
  color: var(--warm-accent);
}
details[open] summary::before {
  transform: rotate(90deg);
}
details summary::-webkit-details-marker { display: none; }
details .details-content {
  padding: 0 1.3rem 1.2rem;
}

/* Cultural badge */
.culture-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: #faf5e4;
  border: 1px solid var(--yellow-class);
  color: var(--text-dark);
  padding: 0.4em 0.8em;
  border-radius: 4px;
  font-size: 0.88rem;
  margin: 0.5em 0;
}
.culture-badge .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow-class);
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: var(--warm-bg-dark);
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-col h4 {
  color: var(--warm-accent);
  margin-bottom: 0.6em;
  font-size: 1rem;
}
.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: var(--warm-bg-dark);
}
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196,154,82,0.3);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Language switcher */
.lang-switch {
  color: var(--warm-bg-dark);
  font-size: 0.85rem;
  font-family: 'Georgia', serif;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(196,154,82,0.4);
  border-radius: 4px;
  margin-left: 0.8rem;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.lang-switch:hover {
  background: rgba(196,154,82,0.2);
  border-color: var(--warm-accent);
  border-bottom-color: var(--warm-accent);
}

/* Responsive */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-content h1 { font-size: 2rem; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .lang-switch { margin-left: auto; margin-right: 0.5rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--text-dark);
    box-shadow: 0 4px 12px var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
  }
  .main-nav a { padding: 0.9rem 1.5rem; }
  .hero { min-height: 280px; }
  .hero-content h1 { font-size: 1.6rem; }
  .info-cards { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
}
