/* Rørvig Minigolf stylesheet */

/* Skrifttyperne ligger lokalt i mappen fonts, så der ikke sendes data til Google */
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/baloo-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }

:root {
  --green: #1f6b4a;
  --green-dark: #144a33;
  --green-light: #e7f3ec;
  --sand: #fbf6ec;
  --sun: #f5b82e;
  --sea: #2f7fa8;
  --ink: #1d2a24;
  --muted: #5b6a62;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20, 74, 51, 0.10);
  --heading: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
}

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

h1, h2, h3 {
  font-family: var(--heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--green-dark);
}
h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--green); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 20px;
}

.small { font-size: 0.92rem; color: var(--muted); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 74, 51, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green-dark);
  text-decoration: none;
}
.logo-ball {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 30%, #e8ece9 31% 100%);
  box-shadow: 0 0 0 3px var(--green);
}
.menu {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}
.menu a:hover, .menu a:focus-visible { background: var(--green-light); color: var(--green-dark); }

@media (max-width: 560px) {
  .topbar-inner { justify-content: center; padding-block: 8px; min-height: 0; }
  .menu { width: 100%; justify-content: space-between; }
  .menu a { padding: 6px 8px; font-size: 0.95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(82vh, 680px);
  display: flex;
  /* Billedet ligger i billeder/forside.jpg, og gradienten vises, hvis billedet mangler */
  background:
    url("billeder/forside.jpg") center / cover no-repeat,
    linear-gradient(160deg, var(--sea) 0%, #4fa37a 55%, var(--green) 100%);
}
.hero-overlay {
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(10, 35, 25, 0.72) 100%);
}
.hero-content { padding-block: 64px 56px; color: var(--white); }
.hero h1 { color: var(--white); max-width: 14ch; text-shadow: 0 2px 16px rgba(0,0,0,0.25); }
.eyebrow {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lead { font-size: 1.2rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sun); color: var(--ink); }
.btn-primary:hover { background: #ffc94d; }
.btn-ghost { border: 2px solid rgba(255,255,255,0.85); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 96px); }
.section.alt { background: var(--green-light); }

.welcome-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.facts li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.facts strong {
  font-family: var(--heading);
  font-size: 2rem;
  color: var(--green);
  min-width: 3.2ch;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; margin-block: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--green);
}
.card-highlight { border-top-color: var(--sun); }
.card .note { color: var(--muted); margin: 0; }
.time {
  font-family: var(--heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.season { font-size: 1.15rem; }

.price {
  font-family: var(--heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 4px;
}
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }

/* ---------- Map ---------- */
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}
.address {
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1em;
}
.map-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18) 0 60px, transparent 61px),
    linear-gradient(135deg, var(--green) 0%, var(--sea) 100%);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.map-card:hover, .map-card:focus-visible { transform: translateY(-3px); }
.map-pin {
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 12px solid var(--sun);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin-bottom: 14px;
}
.map-title { font-family: var(--heading); font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.map-text { font-weight: 600; opacity: 0.92; }

/* ---------- Contact ---------- */
.contact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: transform 0.15s ease;
}
.contact-item:hover { transform: translateY(-2px); }
.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.contact-fb { background: #1877f2; color: var(--white); }
.contact-fb .contact-label { color: rgba(255,255,255,0.8); }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-dark);
  color: var(--white);
  padding-block: 36px;
  text-align: center;
}
.footer p { margin: 0 0 4px; }
.footer .small { color: rgba(255,255,255,0.75); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .cards-3, .contact-list { grid-template-columns: 1fr; }
  .welcome-grid, .map-grid { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { flex-direction: column; align-items: flex-start; gap: 0; padding: 14px; }
  .facts strong { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .contact-item { transition: none; }
}
