/* === CSS Variables === */
:root {
  --accent: #74a7fe;
  --text: #222;
  --text-light: #666;
  --bg: #f7f7f7;
  --white: #fff;
  --card-gradient: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --max-width: 1200px;
  --readable-width: 700px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

/* === Header === */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-title:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* === Hamburger === */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Hero === */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0 1.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
}

.hero-title-bar {
  width: 8px;
  background: #FFEA00;
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}

.hero-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-title-text {
  display: flex;
  flex-direction: column;
  font-size: 2.8rem;
  line-height: 1.15;
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* === Post Grid === */
.post-grid {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* === Post Card === */
.post-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.post-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--card-gradient);
}

.post-card-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  color: var(--white);
}

.post-card-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #000;
  background: #FFEA00;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.post-card-tag--link {
  text-decoration: none;
  position: relative;
  z-index: 4;
  cursor: pointer;
}

.post-card-tag--link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  text-decoration: none;
}

.post-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-card-meta {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.post-card-readmore {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--white);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  position: relative;
  z-index: 3;
}

.post-card-readmore:hover {
  background: var(--white);
  color: var(--text);
  text-decoration: none;
}

/* === Page Header (articles, boende, etc.) === */
.page-header {
  position: relative;
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.page-header-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.page-header-overlay {
  position: absolute;
  inset: 0 1.5rem;
  border-radius: 8px;
  background: var(--card-gradient);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-header-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-header-content {
  color: var(--white);
  text-align: center;
  padding: 2rem 1.5rem;
}

.page-header-title {
  font-size: 2.4rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.page-header-meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

.article-body {
  max-width: var(--readable-width);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.article-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
}

.article-body img {
  border-radius: 6px;
  margin: 1.5rem 0;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-style: italic;
}

.article-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* === Post Navigation === */
.post-nav {
  max-width: var(--readable-width);
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.post-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-decoration: none;
}

.post-nav a:hover {
  text-decoration: underline;
}

/* === List / Tag Pages === */
.list-header {
  text-align: center;
  padding: 3rem 1.5rem 1rem;
}

.list-header h1 {
  font-size: 2rem;
  color: var(--text);
}

/* === Boende Page === */
.boende-body {
  max-width: var(--readable-width);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.boende-body p {
  margin-bottom: 1.25rem;
}

.boende-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.boende-body a {
  color: var(--accent);
  text-decoration: underline;
}

.boende-body a.booking-button {
  display: inline-block;
  background: #FFEA00;
  color: #000;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin: 1rem 0;
}

.boende-body a.booking-button:hover {
  background: #000;
  color: #FFEA00;
  text-decoration: none;
}

.gallery {
  max-width: var(--max-width);
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* === 404 Page === */
.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.error-page a {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s;
}

.error-page a:hover {
  background: #5a93f0;
  text-decoration: none;
}

/* === Footer === */
.site-footer {
  background: var(--white);
  border-top: 1px solid #e6e6e6;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* === Responsive === */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    width: 100%;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .hero-image {
    aspect-ratio: 16 / 9;
  }

  .hero-title-text {
    font-size: 1.8rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    min-height: 300px;
  }

  .page-header-image {
    aspect-ratio: 16 / 9;
  }

  .page-header-title {
    font-size: 1.6rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-nav {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
