:root {
  --bg: #f7efe8;
  --card: #fff;
  --muted: #7a6f66;
  --accent: #d9c8b8;
  --text: #111;
  --radius: 12px;
  --max-width: 1100px;
  font-family: Inter, system-ui, Arial, sans-serif;
}

/* Grundläggande struktur */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 0;
}

/* Header */
.site-header {
  padding: 20px 0;
  background: transparent;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.brand {
  font-weight: 600;
  font-size: 20px;
  flex: 1 1 auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1 1 100%;
  justify-content: flex-end;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
}
.main-nav a:hover {
  background: var(--accent);
  color: var(--text);
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: center;
}
.hero-text h1 {
  font-size: 48px;
  margin: 0 0 18px;
  line-height: 1.1;
}
.hero-text p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 18px;
}
.btn {
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.btn-outline {
  padding: 12px 20px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.hero-media img {
  width: auto;
  max-height: 384px;
  border-radius: var(--radius);
}

/* Video */
.video-wrapper {
  max-width: 800px;
  margin-top: 20px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
}

/* --- RESPONSIV DESIGN --- */

/* Mellanstora skärmar (t.ex. surfplattor) */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-media {
    order: -1;
  }
  .main-nav {
    justify-content: center;
  }
}

/* Små skärmar (mobiler) */
@media (max-width: 640px) {
  .brand {
    text-align: center;
    width: 90%;
  }

  .main-nav {
    flex-direction: column;
    align-items: center;
    width: 90%;
  }

  .main-nav a {
    display: block;
    width: 90%;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    margin: 2px 0;
    padding: 10px 0;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .btn, .btn-outline {
    display: block;
    width: 90%;
    text-align: center;
  }
}

/* Till toppen-bildikon */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: transform 0.3s ease;
}
#backToTop.visible {
  display: block;
}
#backToTop:hover {
  transform: scale(1.1);
}
.top-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}



/* Logotyp */
.logo {
  height: 150px;
  width: auto;
  display: block;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Justera för små skärmar */
@media (max-width: 640px) {
  .logo {
    height: 100px;
  }
  .brand {
    justify-content: center;
    width: 90%;
  }
}

/* Kontaktsektion */
.kontaktlista {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: center;
}

.kontaktlista li {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: #3a3a3a;
}

/* Länkar – harmoniserade med Godos färgprofil */
.kontaktlista a {
  color: #5FABB0; /* lugn grön ton #5b7a5f */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
  font-weight: 500;
}

.kontaktlista a:hover {
  color: #468B8E;
  border-bottom-color: #468B8E;
}

.kontaktlista a:visited {
  color: #708c72; /* mjukare grön */
}

.kontaktlista a:active {
  color: #2e3d31;
}

/* För bättre kontrast mot footerbakgrund */
.site-footer {
  background: #f7f7f3;
  color: #4a4a4a;
  padding: 40px 0;
}
