/* Kværndrup B&B – ren og rolig styling */

:root {
  --bg: #f7f4ed;
  --paper: #fffdf8;
  --ink: #1f2a24;
  --muted: #657066;
  --line: rgba(31, 42, 36, .14);
  --green: #5d6f3f;
  --green-dark: #344522;
  --sage: #dfe6d2;
  --warm: #c5a46f;
  --shadow: 0 22px 70px rgba(29, 36, 30, .16);
  --radius: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(223, 230, 210, .7), transparent 34rem),
    var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

h1,
h2,
h3,
p { margin-top: 0; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: .8rem .9rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(255, 253, 248, .84);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .12);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.brand strong,
.brand small { display: block; }

.brand small {
  margin-top: -3px;
  color: var(--muted);
  font-size: .8rem;
}

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

.nav a {
  padding: .65rem .85rem;
  border-radius: 999px;
  color: #2f372f;
  font-size: .94rem;
  text-decoration: none;
}

.nav a:hover,
.nav-cta { background: var(--sage); }

/* Hero */

.hero-simple {
  padding: 8rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow,
.section-label {
  margin: 0 0 .75rem;
  color: var(--warm);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-copy p {
  max-width: 560px;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid rgba(255, 253, 248, .8);
  border-radius: calc(var(--radius) + 6px);
  filter: brightness(0.88) contrast(1.05);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, .25), rgba(0, 0, 0, .05));
  border-radius: inherit;
  pointer-events: none;
}

.image-note {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 22px;
  padding: .45rem .75rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 42, 36, .72);
  font-size: .86rem;
  backdrop-filter: blur(10px);
}

/* Image break */

.image-break {
  padding: 2rem 0 1rem;
}

.image-break img {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  transform: rotate(-1deg);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.button.primary:hover { background: var(--green-dark); }

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .12);
}

.button.secondary.dark {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.button.full { width: 100%; }

/* Sections */

.section { padding: 5.5rem 0; }

.soft { background: rgba(255, 253, 248, .72); }

.intro-grid,
.split,
.booking-grid,
.area-box {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.section-heading {
  max-width: 750px;
  margin-bottom: 2rem;
}

.section-heading p,
.intro p,
.booking p,
.feature p,
.room-content p,
.common-card p,
.location-card p { color: var(--muted); }

/* Rooms */

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.room-card,
.common-card,
.location-card,
.contact-box,
.contact-form {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(29, 36, 30, .08);
}

.room-card {
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
}

.room-slider {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #e9e4d9;
}

.room-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.4s ease, transform 6s ease;
}

.room-slider img.active {
  opacity: 1;
  transform: scale(1);
}

.room-slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .25));
  pointer-events: none;
}

.room-content {
  padding: 1.35rem 1.45rem 1.55rem;
}

.room-content h3 {
  margin-bottom: .35rem;
  font-size: 1.28rem;
}

/* Common areas */

.common-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.common-card {
  overflow: hidden;
  border-radius: 20px;
}

.common-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.common-card h3 {
  margin: .8rem 1rem .3rem;
}

.common-card p {
  margin: 0 1rem 1rem;
}

/* Facilities */

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.feature span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--sage);
  font-size: 1.35rem;
}

/* Area */

.area { padding: 0; }

.area-box {
  align-items: center;
  padding: 3rem;
  border-radius: calc(var(--radius) + 10px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(52, 69, 34, .96), rgba(93, 111, 63, .88)),
    radial-gradient(circle at right, rgba(255, 255, 255, .22), transparent 18rem);
  box-shadow: var(--shadow);
}

.area-box p { color: rgba(255, 255, 255, .82); }

/* Location */

.location { background: rgba(255, 253, 248, .55); }

.location-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.location-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
}

.location-card img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.location-card h3 {
  margin: 1rem 1rem .35rem;
  font-size: 1.08rem;
}

.location-card p {
  margin: 0 1rem 1.2rem;
  font-size: .94rem;
}

/* Booking */

.booking-grid { align-items: stretch; }

.contact-box,
.contact-form { border-radius: var(--radius); }

.contact-box {
  margin-top: 1.5rem;
  padding: 1.2rem;
}

.contact-box p { margin: 0; }

.contact-box p + p { margin-top: .45rem; }

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
}

label {
  display: grid;
  gap: .35rem;
  color: var(--green-dark);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .95rem 1rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea { resize: vertical; }

input:focus,
textarea:focus {
  outline: 3px solid rgba(93, 111, 63, .18);
  border-color: var(--green);
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.site-footer p { margin: 0; }

/* Responsive */

@media (prefers-reduced-motion: reduce) {
  .room-slider img {
    transition: none;
    transform: none;
  }

  .image-break img {
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    top: 12px;
    border-radius: 26px;
    align-items: flex-start;
  }

  .nav { display: none; }

  .hero-simple { padding-top: 7rem; }

  .hero-grid,
  .intro-grid,
  .split,
  .booking-grid,
  .area-box,
  .room-grid {
    grid-template-columns: 1fr;
  }

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

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

  .area-box { padding: 2rem; }

  .room-slider { height: 290px; }

  .site-footer { display: grid; }
}

@media (max-width: 520px) {
  .hero-copy h1 { font-size: 3rem; }

  .hero-actions .button { width: 100%; }

  .room-slider { height: 240px; }

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

.map-card iframe {
  display: block;
  width: 100%;
  height: 170px;
  border: 0;
}
