/* Livssamtal: plain CSS, no build step. All colors are HSL triplets used as hsl(var(--x) / alpha). */

:root {
  --background: 30 15% 96%;
  --foreground: 210 10% 25%;
  --card: 0 0% 100%;
  --card-foreground: 210 10% 25%;
  --primary: 210 15% 40%;
  --primary-foreground: 30 15% 96%;
  --muted-foreground: 210 8% 50%;
  --accent: 195 25% 55%;
  --accent-foreground: 0 0% 100%;
  --border: 30 15% 88%;
  --radius: 0.75rem;
  --shadow-soft: 0 4px 20px -4px hsl(210 10% 25% / 0.06);

  /* Sampled from the hero photo; the hero fades into it and the section below continues from it. */
  --photo-bottom: #b1a79c;

  --font-body: Lora, Georgia, serif;
  --font-heading: Comfortaa, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  line-height: 1.5;
}

main { flex: 1; }

h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-size: inherit; font-weight: inherit; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.container { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: 1rem; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border: 1px solid transparent;
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { background: hsl(var(--accent) / 0.9); }

.btn-secondary {
  background: transparent;
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}
.btn-secondary:hover { background: hsl(var(--primary) / 0.1); }

.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-lg:hover { transform: scale(1.05); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.btn-lg.btn-secondary { background: hsl(var(--background) / 0.8); }
.btn-lg.btn-secondary:hover { background: hsl(var(--background)); transform: none; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.textlink {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: hsl(var(--accent));
  transition: color 0.15s;
}
.textlink:hover { color: hsl(var(--foreground)); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-family: var(--font-heading);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.75rem;
}

.brand { font-size: 1.25rem; font-weight: 700; text-decoration: none; }

.nav-desktop { display: none; align-items: center; gap: 1.5rem; }
.nav-desktop a, .nav-mobile-links a { text-decoration: none; color: hsl(var(--muted-foreground)); transition: color 0.15s; }
.nav-desktop a { font-size: 0.875rem; white-space: nowrap; }
.nav-desktop a:hover, .nav-mobile-links a:hover { color: hsl(var(--foreground)); }
.nav-desktop a[aria-current], .nav-mobile-links a[aria-current] { color: hsl(var(--foreground)); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-cta { display: none; padding: 0.5rem 1.25rem; font-size: 0.875rem; white-space: nowrap; }

/* Mobile menu: a <details> element, so it needs no JavaScript. */
.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 0;
  color: hsl(var(--foreground));
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .icon-close { display: none; }
.mobile-menu[open] .icon-open { display: none; }
.mobile-menu[open] .icon-close { display: block; }

.mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}
.nav-mobile-links { display: flex; flex-direction: column; gap: 1rem; padding-block: 1rem; }
.nav-mobile-links a { font-size: 1rem; }
.nav-mobile-links .btn { text-align: center; padding: 0.75rem 1.25rem; color: hsl(var(--accent-foreground)); }
.nav-mobile-links .btn:hover { color: hsl(var(--accent-foreground)); }

@media (min-width: 640px) {
  .header-cta { display: inline-block; }
}
@media (min-width: 1360px) {
  .nav-desktop { display: flex; }
  .mobile-menu { display: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding-block: 2.5rem;
}
.footer-grid { display: grid; gap: 2rem; font-size: 0.875rem; }
.footer-grid > div > * + * { margin-top: 0.5rem; }
.footer-title { font-weight: 600; }
.footer-title-lg { font-size: 1.125rem; font-weight: 600; }
.site-footer a { text-decoration: none; opacity: 0.9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .quiet { opacity: 0.75; }
.site-footer .quiet:hover { opacity: 1; }
.footer-copy { font-size: 0.75rem; opacity: 0.75; padding-top: 2rem; text-align: center; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Page intro and prose ---------- */

/* Cloud photo with a fade to the page color. */
.cloud {
  background:
    linear-gradient(to bottom, hsl(var(--background) / 0.6), hsl(var(--background) / 0.75), hsl(var(--background))),
    url("/img/hero-image.jpg") center / cover no-repeat;
}

.intro { padding: 5rem 1rem 0.5rem; }
.intro-inner { max-width: 42rem; margin-inline: auto; }
.intro-inner > * + * { margin-top: 1.5rem; }
.intro h1 {
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.intro-text { font-size: 1.125rem; line-height: 1.8; color: hsl(var(--foreground) / 0.9); }
.intro-text > * + * { margin-top: 1rem; }

@media (min-width: 768px) {
  .intro { padding: 7rem 1rem 0.5rem; }
  .intro h1 { font-size: 3.75rem; }
}

.prose { padding: 1rem 1rem 5rem; }
.prose-inner {
  max-width: 42rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.85;
  color: hsl(var(--foreground) / 0.9);
}
.prose-inner > * + * { margin-top: 1.5rem; }
.prose-inner h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
  padding-top: 1rem;
}
.prose-inner h2:first-child { padding-top: 0; }
.prose-inner ul { list-style: disc; padding-left: 1.5rem; }
.prose-inner li + li { margin-top: 0.5rem; }
.prose-inner a:not(.btn) {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose-inner .btn-row { padding-top: 1rem; }

.notice {
  background: hsl(var(--accent) / 0.1);
  border: 1px solid hsl(var(--accent) / 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.prose-inner .notice h2 { font-size: 1.25rem; line-height: 1.75rem; padding-top: 0; margin-bottom: 0.5rem; }
.notice p { font-size: 1rem; line-height: 1.8; }

/* ---------- Start page ---------- */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: linear-gradient(to bottom, #c1c6ca 0%, #c7cbce 50%, #bcc0c3 70%, #b3a99e 90%, var(--photo-bottom) 100%);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: url("/img/parallax-image-mobile.jpg") center bottom / cover no-repeat;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(193 198 202 / 0.9), rgb(193 198 202 / 0.6), transparent);
}
.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 12rem;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--photo-bottom));
}
.hero-content { position: relative; z-index: 10; padding-block: 4rem; }
.hero-inner { max-width: 42rem; }
.hero-inner > * + * { margin-top: 1.5rem; }
.hero h1 { font-size: 3rem; font-weight: 300; line-height: 1.1; letter-spacing: -0.025em; }
.hero p { font-size: 1.125rem; line-height: 1.7; }
.hero .btn-row { padding-top: 0.5rem; }

@media (min-width: 768px) {
  .hero { min-height: 75vh; }
  .hero-photo {
    left: auto;
    width: 72%;
    background-image: url("/img/parallax-image.jpg");
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
  }
  .hero-photo::after { display: none; }
  .hero-fade { height: 16rem; }
  .hero-content { padding-block: 5rem; }
  .hero-inner { max-width: 36rem; }
  .hero p { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
  .hero-inner { max-width: 34rem; }
}

.entrances {
  padding: 7rem 1rem 4rem;
  background-image: linear-gradient(to bottom, var(--photo-bottom), hsl(var(--background) / 0) 24rem);
}
.entrances-grid { max-width: 72rem; margin-inline: auto; display: grid; gap: 1.5rem; }
.card-entrance {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.card-entrance h2, .pair h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 300; letter-spacing: -0.025em; }
.card-entrance p, .pair p { flex: 1; line-height: 1.8; color: hsl(var(--foreground) / 0.9); }

.pairs { padding: 2rem 1rem; }
.pairs-grid { max-width: 64rem; margin-inline: auto; display: grid; gap: 3rem; }
.pair { display: flex; flex-direction: column; gap: 0.75rem; }

.start-cta { padding: 4rem 1rem; }
.start-cta-box {
  max-width: 48rem;
  margin-inline: auto;
  background: hsl(var(--accent) / 0.1);
  border-radius: 1rem;
  padding: 2rem;
}
.start-cta-box > * + * { margin-top: 1.5rem; }
.start-cta-box h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 300; letter-spacing: -0.025em; }
.start-cta-box p { font-size: 1.125rem; line-height: 1.8; color: hsl(var(--foreground) / 0.9); }

@media (min-width: 768px) {
  .entrances-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .pairs-grid { grid-template-columns: repeat(2, 1fr); }
  .start-cta-box { padding: 3rem; }
  .start-cta-box h2 { font-size: 2.25rem; line-height: 2.5rem; }
}

/* ---------- Guides ---------- */

.portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.guides { padding: 3rem 1rem; }
.guide-card {
  max-width: 48rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.guide-card h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 300; letter-spacing: -0.025em; }
.guide-card p { line-height: 1.8; color: hsl(var(--card-foreground)); }
.guide-card-body > * + * { margin-top: 1rem; }
.guide-card .btn-row { gap: 0.75rem; }

@media (min-width: 640px) {
  .guide-card { flex-direction: row; }
  .guide-card .portrait { width: 12rem; flex-shrink: 0; align-self: flex-start; }
}

.profile-hero { padding: 4rem 1rem; }
.profile-grid { max-width: 56rem; margin-inline: auto; display: grid; gap: 2rem; align-items: center; }
.profile-grid .portrait { max-width: 20rem; margin-inline: auto; }
.profile-text { text-align: center; }
.profile-text > * + * { margin-top: 0.75rem; }
.profile-text h1 { font-size: 2.25rem; font-weight: 300; line-height: 1.1; letter-spacing: -0.025em; }
.profile-text p { font-size: 1.125rem; color: hsl(var(--foreground) / 0.9); }

@media (min-width: 768px) {
  .profile-grid { grid-template-columns: 16rem 1fr; }
  .profile-text { text-align: left; }
  .profile-text h1 { font-size: 3rem; }
}

/* ---------- Booking ---------- */

.booking { padding: 3rem 1rem; }
.booking-inner { max-width: 42rem; margin-inline: auto; }
.booking-inner > * + * { margin-top: 3.5rem; }

.offers { border-block: 1px solid hsl(var(--border)); }
.offer { padding-block: 1.5rem; display: grid; gap: 0.25rem 2rem; }
.offer + .offer { border-top: 1px solid hsl(var(--border)); }
.offer h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 400; letter-spacing: -0.025em; }
.offer-meta { font-size: 0.875rem; color: hsl(var(--accent)); }
.offer p { line-height: 1.8; color: hsl(var(--foreground) / 0.9); }

.contact-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.contact-card > * + * { margin-top: 1.5rem; }
.contact-card h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 400; letter-spacing: -0.025em; }
.contact-card p { color: hsl(var(--card-foreground) / 0.9); }
.contact-row { display: flex; align-items: flex-start; gap: 1rem; }
.contact-row svg { width: 1.5rem; height: 1.5rem; margin-top: 0.25rem; flex-shrink: 0; color: hsl(var(--accent)); }
.contact-row a { font-size: 1.125rem; text-decoration: none; color: hsl(var(--muted-foreground)); transition: color 0.15s; }
.contact-row a:hover { color: hsl(var(--accent)); }
.contact-card .small { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

@media (min-width: 640px) {
  .offer { grid-template-columns: 11rem 1fr; }
}
