/* ══════════════════════════════════════════════════
   Birdiemaker Indoor Golf — felles stilark
   Brukes av alle undersider. Last opp én gang.
   ══════════════════════════════════════════════════ */

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

:root {
  --green-deep:   #1a2e1a;
  --green-mid:    #2d4a2d;
  --green-light:  #4a7c4a;
  --gold:         #c8a96e;
  --gold-light:   #e2c98a;
  --cream:        #f7f3eb;
  --cream-dark:   #ede6d8;
  --warm-white:   #faf8f3;
  --text-dark:    #1a1a18;
  --text-mid:     #4a4a42;
  --text-light:   #8a8a7e;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s, padding 0.5s, backdrop-filter 0.5s;
}
nav.scrolled {
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(16px);
  padding: 14px 48px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.2);
}
.nav-logo img {
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  transition: height 0.4s;
  display: block;
}
nav.scrolled .nav-logo img { height: 36px; }

.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-white);
  transition: color 0.3s;
  white-space: nowrap;
}
nav.scrolled .nav-links a { color: var(--text-mid); }
.nav-links a:hover { color: var(--gold); }
.nav-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Undermeny */
.nav-links > li { position: relative; }
.has-sub > a { display: inline-flex; align-items: center; gap: 5px; }
.caret {
  display: inline-block;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
  transition: transform 0.25s;
}
.has-sub:hover .caret { transform: rotate(180deg); }
/* usynlig bro så menyen ikke lukkes i gapet */
.has-sub::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }
.sub {
  position: absolute;
  top: calc(100% + 16px);
  left: -16px;
  min-width: 210px;
  padding: 7px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--warm-white);
  border: 1px solid rgba(200,169,110,0.35);
  border-radius: 2px;
  box-shadow: 0 14px 40px rgba(26,46,26,0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 20;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a {
  display: block;
  padding: 9px 18px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mid) !important;
}
.sub a:hover { background: rgba(200,169,110,0.15); color: var(--green-mid) !important; }

.nav-cta {
  background: var(--gold);
  color: var(--green-deep) !important;
  padding: 10px 24px;
  border-radius: 2px;
  font-weight: 500 !important;
  letter-spacing: 0.1em;
  transition: background 0.3s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--warm-white);
  margin: 5px auto;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}
nav.scrolled .nav-toggle span { background: var(--text-mid); }
nav.open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO (undersider) ─── */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-deep);
  padding: 165px 24px 105px;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,0.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--warm-white); }
.hero-tag {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.4s forwards;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 23px);
  font-weight: 300;
  color: rgba(250,248,243,0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s 0.6s forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ─── QUICK NAV ─── */
.quicknav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 243, 235, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200,169,110,0.25);
  padding: 14px 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.quicknav a {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid rgba(200,169,110,0.45);
  padding: 8px 18px;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.quicknav a:hover { background: rgba(200,169,110,0.15); }
.quicknav a.active {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--warm-white);
}

/* ─── SEKSJONER ─── */
section { position: relative; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
}
.section-title em { font-style: italic; color: var(--green-mid); }
.section-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
  color: var(--text-mid);
  font-weight: 300;
}

.block { padding: 100px 48px; }
.block-white { background: var(--warm-white); }
.block-cream { background: var(--cream-dark); }
.block-green { background: var(--green-deep); }
.block-green .section-title { color: var(--warm-white); }
.block-green .section-title em { color: var(--gold-light); }
.block-green .section-body { color: rgba(250,248,243,0.75); }
.inner { max-width: 1200px; margin: 0 auto; }
.inner-narrow { max-width: 820px; margin: 0 auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ─── KNAPPER ─── */
.btn-primary {
  background: var(--gold);
  color: var(--green-deep);
  padding: 15px 34px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  display: inline-block;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,169,110,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--green-mid);
  padding: 15px 34px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(45,74,45,0.35);
  border-radius: 2px;
  display: inline-block;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(200,169,110,0.1);
  transform: translateY(-2px);
}

/* ─── KORT ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--warm-white);
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 2px;
  padding: 34px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(26,46,26,0.09);
}
.card-icon { width: 36px; height: 36px; margin-bottom: 18px; }
.card-icon svg { width: 36px; height: 36px; stroke: var(--gold); fill: none; stroke-width: 1.4; }
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 10px;
}
.card-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ─── TRINN ─── */
.steps { display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }
.step { display: flex; gap: 22px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--green-mid);
}
.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.step-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
}
.step-body a { color: var(--green-mid); text-decoration: underline; text-underline-offset: 3px; }
.step-body a:hover { color: var(--gold); }

/* ─── NB-BOKS ─── */
.note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(200,169,110,0.12);
  border-left: 2px solid var(--gold);
  padding: 24px 28px;
  margin-top: 40px;
}
.note svg { flex-shrink: 0; width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; margin-top: 2px; }
.note-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
}
.note-text strong { font-weight: 500; color: var(--text-dark); }
.note-text a { color: var(--green-mid); text-decoration: underline; text-underline-offset: 3px; }

/* ─── LØPENDE TEKST (juridisk / artikkel) ─── */
.prose { font-family: 'Cormorant Garamond', serif; color: var(--text-mid); }
.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 27px;
  font-weight: 400;
  color: var(--text-dark);
  margin: 56px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200,169,110,0.35);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--green-mid);
  margin: 28px 0 8px;
}
.prose p { font-size: 18px; line-height: 1.8; margin-bottom: 16px; }
.prose ul { list-style: none; margin: 12px 0 20px; }
.prose li {
  font-size: 18px;
  line-height: 1.75;
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.prose li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.prose a { color: var(--green-mid); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.prose a:hover { color: var(--gold); }
.prose strong { font-weight: 500; color: var(--text-dark); }

.meta-line {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* ─── FAKTABOKS ─── */
.factbox {
  background: var(--cream-dark);
  border: 1px solid rgba(200,169,110,0.35);
  border-radius: 2px;
  padding: 28px 32px;
  margin: 32px 0;
}
.factbox dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; }
.factbox dt {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-top: 4px;
  white-space: nowrap;
}
.factbox dd { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--text-dark); }
.factbox dd a { color: var(--green-mid); text-decoration: underline; text-underline-offset: 3px; }

/* ─── ADRESSE-BANNER ─── */
.address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--green-mid);
  padding: 40px 48px;
  border-radius: 2px;
  margin-top: 56px;
}
.address-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.address-value {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--warm-white);
}

/* ─── KONTAKTKORT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.contact-grid.contact-3 { grid-template-columns: repeat(3, 1fr); }
.contact-card {
  border: 1px solid rgba(200,169,110,0.3);
  padding: 34px 30px;
  border-radius: 2px;
  transition: background 0.3s;
}
.contact-card:hover { background: rgba(200,169,110,0.07); }
.contact-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--warm-white);
  margin-bottom: 14px;
}
.contact-phone {
  font-size: 17px;
  color: rgba(250,248,243,0.75);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
}
.contact-phone:hover { color: var(--gold); }

/* ─── FOOTER ─── */
footer {
  background: var(--green-deep);
  padding: 80px 48px 40px;
  color: rgba(250,248,243,0.6);
  border-top: 1px solid rgba(200,169,110,0.2);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(200,169,110,0.2);
  margin-bottom: 40px;
}
.footer-logo img { height: 48px; object-fit: contain; margin-bottom: 20px; display: block; }
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.7;
  max-width: 260px;
}
.footer-col-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(250,248,243,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-contact p { font-size: 14px; line-height: 2; }
.footer-contact a { color: rgba(250,248,243,0.6); text-decoration: none; transition: color 0.3s; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span { color: rgba(250,248,243,0.35); }
.footer-bottom a { color: rgba(250,248,243,0.35); text-decoration: none; font-size: 13px; }
.footer-bottom a:hover { color: var(--gold); }

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-tag, .hero-title, .hero-sub { animation: none; opacity: 1; transform: none; }
}

/* ─── RESPONSIV ─── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; flex-wrap: wrap; }
  nav.scrolled { padding: 12px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    padding: 24px 0 12px;
  }
  nav.open .nav-links { display: flex; }
  nav.open { background: rgba(247, 243, 235, 0.97); backdrop-filter: blur(16px); }
  nav.open .nav-links a { color: var(--text-mid); }
  nav.open .nav-toggle span { background: var(--text-mid); }

  /* Undermenyene brettes ut som innrykket liste på mobil */
  .nav-links > li { width: 100%; }
  .caret { display: none; }
  .has-sub::after { display: none; }
  .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 4px 0 0;
    padding: 0 0 0 16px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(200,169,110,0.4);
    border-radius: 0;
    box-shadow: none;
  }
  .sub a { padding: 12px 0; font-size: 11px; }
  .sub a:hover { background: transparent; }

  /* Trykkflater: minst 44px på berøringsskjerm */
  .nav-toggle { width: 44px; height: 44px; }
  .nav-links > li > a,
  .sub a,
  .quicknav a,
  .footer-col a,
  .footer-contact a,
  .footer-bottom a,
  .contact-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-col ul { gap: 0; }

  .page-hero { padding: 140px 24px 80px; }
  .block { padding: 68px 24px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .cards, .cards-2 { grid-template-columns: 1fr; }
  .address { padding: 32px 26px; }
  .contact-grid,
  .contact-grid.contact-3 { grid-template-columns: 1fr; }
  .factbox { padding: 24px 22px; }
  .factbox dl { grid-template-columns: 1fr; gap: 4px 0; }
  .factbox dt { padding-top: 12px; }
  footer { padding: 60px 24px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .quicknav { padding: 12px 16px; gap: 8px; }
  .quicknav a { padding: 13px 14px; letter-spacing: 0.12em; }
  /* Én scrollbar rad i stedet for tre — den sticky linjen stjeler ellers
     over 130px av skjermhøyden på telefon. */
  .quicknav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .quicknav::-webkit-scrollbar { display: none; }
  .quicknav a { flex-shrink: 0; }
  .prose h2 { font-size: 23px; }
}

/* Sponsorbånd - vises over footer på alle sider */
.sponsor-band {
  background: var(--cream-dark);
  border-top: 1px solid rgba(26,46,26,0.08);
  padding: 36px 24px;
}
.sponsor-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.sponsor-band-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}
.sponsor-band-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.sponsor-band-logos img {
  height: 44px;
  width: auto;
  filter: grayscale(60%);
  opacity: 1;
  transition: filter 0.3s, opacity 0.3s;
}
.sponsor-band-logos img:hover { filter: grayscale(0%); opacity: 1; }
.sponsor-band-more {
  font-size: 12px;
  color: var(--green-mid);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.sponsor-band-more:hover { border-color: var(--green-mid); }
@media (max-width: 640px) {
  .sponsor-band-inner { flex-direction: column; gap: 18px; }
  .sponsor-band-logos { gap: 22px; }
  .sponsor-band-logos img { height: 36px; }
}
