/* ============================================
   GEOOSLO – STYLESHEET
   Geocaching club – adventure, maps, treasure
   ============================================ */

:root {
  /* Colours – lilla palett matchet til logoens bakgrunn (#504a6c) */
  --geo-green:  #17b13a;   /* vivid "Geo" green (i logoen)  */
  --geo-dark:   #141414;   /* thick black outline  */
  --geo-orange: #fd7a03;   /* location-pin orange  */
  --geo-cream:  #fdf3e9;   /* "Oslo" letter fill   */
  --geo-tree:   #1f7a2e;   /* spruce trees         */

  /* Site palette – lilla */
  --navy:       #3a3550;   /* dyp lilla for header/hero */
  --slate:      #504a6c;   /* logoens bakgrunnslilla   */
  --steel:      #6c6191;   /* mellomlilla              */
  --sky:        #9d92c4;   /* lys lavendel             */
  --ice:        #e8e4f2;
  --cream:      #f4f2f8;
  --warm-white: #fdfcff;
  --earth:      #7a6248;
  --accent:     #fd7a03;   /* logo orange (beholdes)   */
  --accent-lt:  #ffe9d2;
  --green:      #17b13a;   /* logo-grønn (aksent)      */
  --border:     #e0dcec;
  --stone:      #6b6580;
  --dark:       #241f33;

  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  --shadow-sm: 0 1px 3px rgba(40,30,60,0.06), 0 4px 14px rgba(40,30,60,0.07);
  --shadow-md: 0 4px 10px rgba(40,30,60,0.09), 0 16px 40px rgba(40,30,60,0.14);
  --radius:    14px;
  --nav-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body { font-family: var(--font-body); color: var(--dark); background: var(--warm-white); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--navy); }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(58,53,80,0.97);
  backdrop-filter: blur(10px);
  height: var(--nav-height);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo img {
  height: 58px;
  width: auto !important;
  max-width: none;
  display: block !important;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
  transition: opacity 0.18s;
}
.logo:hover img { opacity: 0.85; }
.logo-icon { display: none; }
.logo-geo  { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 0.2rem; }
.nav-link {
  color: rgba(255,255,255,0.82); font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.45rem 0.85rem; border-radius: 6px;
  transition: background 0.18s, color 0.18s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.13); color: #fff; }
.nav-login {
  background: var(--accent); color: #fff !important;
  margin-left: 0.5rem; font-weight: 700;
  border-radius: 100px;
  padding-left: 1.1rem; padding-right: 1.1rem;
}
.nav-login:hover { background: #b8720f; }

.nav-toggle {
  display: none; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28); color: #fff;
  padding: 0.5rem 1rem; border-radius: 6px;
  font-size: 1rem; cursor: pointer; font-family: var(--font-display); font-weight: 600;
}

/* ---- HERO ---- */
.hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--navy);
}
/* Topographic contour lines – the geocacher's landscape */
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(165deg, rgba(58,53,80,0.88) 0%, rgba(58,53,80,0.55) 100%),
    url("data:image/svg+xml,%3Csvg width='900' height='560' viewBox='0 0 900 560' xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Cg stroke='%239d92c4' stroke-width='1.2' opacity='0.35'%3E%3Cpath d='M-50 480 Q150 380 320 430 Q520 490 700 400 Q820 340 950 390'/%3E%3Cpath d='M-50 440 Q160 340 330 390 Q530 450 710 360 Q830 300 950 350'/%3E%3Cpath d='M-50 400 Q170 305 340 350 Q540 410 720 320 Q840 262 950 310'/%3E%3Cpath d='M-50 360 Q180 270 350 312 Q550 370 730 282 Q850 226 950 272'/%3E%3Cpath d='M-50 322 Q195 238 362 276 Q558 330 738 246 Q858 192 950 236'/%3E%3C/g%3E%3Cg stroke='%23c4bce0' stroke-width='1' opacity='0.16'%3E%3Cpath d='M-50 285 Q210 208 375 242 Q566 292 746 212 Q864 160 950 202'/%3E%3Cpath d='M-50 250 Q225 178 388 210 Q574 256 754 180 Q870 130 950 170'/%3E%3C/g%3E%3Cpath d='M120 120 Q260 80 380 130 T640 110 T900 150' stroke='%23fd7a03' stroke-width='2.5' stroke-dasharray='2 14' stroke-linecap='round' opacity='0.55'/%3E%3Ccircle cx='120' cy='120' r='5' fill='%23fd7a03' opacity='0.7'/%3E%3Ccircle cx='640' cy='110' r='5' fill='%23fd7a03' opacity='0.7'/%3E%3C/svg%3E")
    center/cover no-repeat;
}
.hero-content {
  position: relative; text-align: center;
  padding: 4.5rem 1.5rem 5rem; max-width: 760px;
  animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero-content::before {
  content: '59°58′N · 10°45′E · Oslos midtpunkt';
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--sky);
  margin-bottom: 1.4rem;
  opacity: 0.9;
}
.hero-eyebrow {
  color: var(--accent); font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 0.6rem; font-weight: 700;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.2rem); color: #fff;
  line-height: 1.05; margin-bottom: 0.3rem; letter-spacing: -0.02em;
}
.hero-title span { color: var(--accent); }
.hero-tagline {
  font-family: var(--font-display); color: var(--ice); font-size: 1.02rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600;
}
.hero-sub {
  color: rgba(255,255,255,0.78); font-size: 1.12rem;
  margin-bottom: 2.4rem; font-weight: 300; line-height: 1.75;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.35); font-size: 1.3rem; animation: bounce 2.4s infinite;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.78rem 1.7rem;
  border-radius: 100px; font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 700; letter-spacing: 0.02em; cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.18s, background 0.18s;
  white-space: nowrap; border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c96830; color: #fff; }
.btn-outline { background: rgba(255,255,255,0.06); color: #fff; border: 1.5px solid rgba(255,255,255,0.45); backdrop-filter: blur(4px); }
.btn-outline:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--slate); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream); color: var(--navy); }
.btn-steel { background: var(--steel); color: #fff; }
.btn-steel:hover { background: var(--slate); color: #fff; }

/* ---- STAT STRIP ---- */
.stat-strip { background: var(--slate); padding: 1.1rem 1.5rem; }
.stat-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.6rem 2rem;
}
.stat-item { display: flex; align-items: center; gap: 0.55rem; color: rgba(255,255,255,0.88); font-size: 0.97rem; }
.stat-icon { font-size: 1.2rem; }
.stat-num { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.stat-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.18); }

/* ---- LAYOUT ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section-padded { padding: 3.5rem 0; }
.section-alt { background: var(--cream); }
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem); color: var(--navy); margin-bottom: 1.8rem;
  letter-spacing: -0.015em;
  position: relative;
  padding-left: 1.15rem;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0.32em;
  width: 10px; height: 10px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent);
}
.section-header-row {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem;
}
.section-header-row .section-title { margin-bottom: 0; }
.link-arrow { color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }
.link-arrow:hover { color: var(--navy); }

/* ---- NEXT EVENT ---- */
.next-event-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 2rem; position: relative; overflow: hidden;
}
.next-event-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 10px, transparent 10px 20px);
  border-radius: 3px;
}
.event-badge {
  display: inline-block; background: var(--accent-lt); color: var(--accent);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.2rem 0.7rem; border-radius: 20px; margin-bottom: 1rem;
}
.next-event-info { display: flex; gap: 2rem; align-items: flex-start; }
.next-event-date {
  display: flex; flex-direction: column; align-items: center;
  background: var(--navy); color: #fff;
  border-radius: 8px; padding: 0.8rem 1.2rem; min-width: 70px; flex-shrink: 0;
}
.date-day { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-weight: 700; }
.date-month { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; opacity: 0.8; }
.next-event-details h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); margin-bottom: 0.4rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.8rem; font-size: 0.88rem; color: var(--stone); }

/* ---- NEWS CARDS ---- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s cubic-bezier(0.2,0.7,0.3,1), transform 0.22s cubic-bezier(0.2,0.7,0.3,1), border-color 0.22s;
  position: relative;
  overflow: hidden;
}
.news-card::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 18px);
  opacity: 0;
  transition: opacity 0.22s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--sky); }
.news-card:hover::after { opacity: 1; }
.news-date { font-size: 0.78rem; color: var(--stone); margin-bottom: 0.45rem; text-transform: uppercase; letter-spacing: 0.07em; font-family: var(--font-display); }
.news-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: 0.45rem; }
.news-card p { font-size: 0.93rem; color: #444; line-height: 1.65; }
.read-more { display: inline-block; margin-top: 0.8rem; color: var(--accent); font-weight: 700; font-size: 0.88rem; font-family: var(--font-display); }
.read-more:hover { color: var(--navy); }

/* ---- CACHE STAT CARDS ---- */
.cache-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.cache-card {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 1.6rem; text-align: center; box-shadow: var(--shadow-sm);
}
.cache-card .cc-icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.cache-card .cc-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.cache-card .cc-label { font-size: 0.88rem; opacity: 0.75; margin-top: 0.3rem; font-family: var(--font-display); letter-spacing: 0.05em; }

/* ---- GALLERY ---- */
.photo-teaser-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 175px 175px; gap: 0.75rem;
}
.photo-slot {
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: opacity 0.2s; cursor: pointer;
}
.photo-slot:hover { opacity: 0.82; }
.photo-tall { grid-row: 1 / 3; }
.photo-placeholder { font-size: 3rem; opacity: 0.35; }
.photo-note { margin-top: 0.9rem; font-size: 0.88rem; color: var(--stone); text-align: center; }
.photo-note a { color: var(--accent); font-weight: 700; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.gallery-item {
  aspect-ratio: 4/3; border-radius: 8px; overflow: hidden;
  background: var(--ice); display: flex; align-items: center;
  justify-content: center; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.gallery-item .gi-icon { font-size: 2.5rem; opacity: 0.35; }
.gallery-upload-box {
  border: 2px dashed var(--steel); border-radius: var(--radius);
  padding: 2.5rem; text-align: center; margin-top: 2rem; background: #f0f6fa;
}
.gallery-upload-box p { color: var(--stone); margin-bottom: 0.6rem; }

/* ---- EVENT LIST (calendar) ---- */
.event-list { display: flex; flex-direction: column; gap: 1.1rem; }
.event-row {
  display: flex; gap: 1.5rem; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
  align-items: flex-start; transition: box-shadow 0.2s;
}
.event-row:hover { box-shadow: var(--shadow-md); }
.event-row-date {
  background: var(--navy); color: #fff; border-radius: 8px;
  padding: 0.6rem 0.9rem; text-align: center; min-width: 60px; flex-shrink: 0;
}
.event-row-date .day { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; font-weight: 700; }
.event-row-date .mon { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.event-row-body h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.12rem; margin-bottom: 0.3rem; }
.event-row-body p { font-size: 0.92rem; color: #444; }
.event-tag {
  display: inline-block; font-size: 0.72rem; padding: 0.15rem 0.6rem;
  border-radius: 20px; font-weight: 700; margin-top: 0.5rem; margin-right: 0.4rem;
  font-family: var(--font-display); letter-spacing: 0.05em;
}
.tag-blue   { background: #d4e8f4; color: #1a3a6a; }
.tag-orange { background: var(--accent-lt); color: #8a4a0a; }
.tag-green  { background: #d4edd4; color: #1a5a1a; }
.tag-grey   { background: #eaeaea; color: #555; }

/* ---- FILTER BUTTONS ---- */
.filter-btn {
  padding: 0.48rem 1.1rem; border-radius: 20px;
  border: 1.5px solid var(--border); background: #fff; color: var(--stone);
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn:hover { border-color: var(--steel); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- NEWS FULL ---- */
.news-full-list { display: flex; flex-direction: column; gap: 2rem; }
.news-full-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.news-full-card h2 { font-family: var(--font-display); color: var(--navy); font-size: 1.38rem; margin-bottom: 0.3rem; }
.news-full-card .meta { font-size: 0.78rem; color: var(--stone); margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; font-family: var(--font-display); }
.news-full-card p { color: #333; font-size: 0.95rem; line-height: 1.72; }

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-text h2 { font-family: var(--font-display); color: var(--navy); font-size: 1.45rem; margin: 1.5rem 0 0.5rem; }
.about-text p { color: #333; font-size: 0.95rem; line-height: 1.75; margin-bottom: 0.8rem; }
.board-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; margin-top: 0.5rem; }
.board-list li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; }
.board-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ice); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }

/* ---- CONTACT FORM ---- */
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-card h2 { font-family: var(--font-display); color: var(--navy); margin-bottom: 1.2rem; font-size: 1.4rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1.1rem; }
.form-group label { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.72rem 0.95rem; border: 1.5px solid var(--border);
  border-radius: 7px; font-family: var(--font-body); font-size: 1rem;
  color: var(--dark); background: var(--warm-white); transition: border-color 0.15s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--steel); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ---- PAGE BANNER ---- */
.page-banner {
  background:
    linear-gradient(165deg, rgba(58,53,80,0.92) 0%, rgba(58,53,80,0.72) 100%),
    var(--navy)
    url("data:image/svg+xml,%3Csvg width='900' height='240' viewBox='0 0 900 240' xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Cg stroke='%239d92c4' stroke-width='1' opacity='0.3'%3E%3Cpath d='M-50 200 Q150 140 320 175 Q520 215 700 155 Q820 115 950 150'/%3E%3Cpath d='M-50 165 Q160 110 330 142 Q530 182 710 125 Q830 88 950 122'/%3E%3Cpath d='M-50 132 Q170 82 340 112 Q540 150 720 95 Q840 62 950 92'/%3E%3C/g%3E%3Cpath d='M100 60 Q260 30 420 62 T740 52' stroke='%23fd7a03' stroke-width='2' stroke-dasharray='2 12' stroke-linecap='round' opacity='0.45'/%3E%3C/svg%3E") center/cover no-repeat;
  color: #fff; padding: 3.2rem 1.5rem 2.7rem; text-align: center;
}
.page-banner h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 0.4rem; }
.page-banner p { opacity: 0.75; font-size: 1rem; font-family: var(--font-display); letter-spacing: 0.04em; }

/* ---- MEMBER CTA ---- */
.member-cta {
  background:
    linear-gradient(150deg, rgba(80,74,108,0.94) 0%, rgba(58,53,80,0.9) 100%),
    var(--slate)
    url("data:image/svg+xml,%3Csvg width='900' height='300' viewBox='0 0 900 300' xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Cg stroke='%23c4bce0' stroke-width='1' opacity='0.14'%3E%3Cpath d='M-50 250 Q200 180 400 220 Q600 260 950 190'/%3E%3Cpath d='M-50 210 Q210 145 410 182 Q610 222 950 152'/%3E%3Cpath d='M-50 172 Q220 112 420 146 Q620 186 950 118'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
  color: #fff; text-align: center; padding: 4rem 1.5rem;
}
.member-cta h2 { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 0.8rem; }
.member-cta p { max-width: 580px; margin: 0 auto 1.8rem; opacity: 0.82; font-size: 1.02rem; }

/* ---- LOGIN ---- */
.login-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: var(--cream); }
.login-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem 2.2rem; max-width: 420px; width: 100%; box-shadow: var(--shadow-md); }
.login-logo { text-align: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.login-logo span { color: var(--accent); }
.login-card h1 { font-family: var(--font-display); color: var(--navy); font-size: 1.5rem; margin-bottom: 0.25rem; text-align: center; }
.login-card .sub { text-align: center; color: var(--stone); font-size: 0.88rem; margin-bottom: 1.8rem; }
.login-note { text-align: center; margin-top: 1.2rem; font-size: 0.88rem; color: var(--stone); }
.login-note a { color: var(--accent); font-weight: 700; }
.alert-error { background: #fce8e8; border-radius: 8px; padding: 0.8rem 1rem; color: #8a1a1a; margin-bottom: 1rem; font-size: 0.92rem; font-family: var(--font-display); }
.alert-success { background: #d4edd4; border-radius: 8px; padding: 0.8rem 1rem; color: #1a5a1a; margin-bottom: 1rem; font-size: 0.92rem; font-family: var(--font-display); }

/* ---- MEMBER AREA TILES ---- */
.member-area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.member-tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s; cursor: pointer;
}
.member-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.member-tile .mt-icon { font-size: 2.5rem; margin-bottom: 0.6rem; }
.member-tile h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.08rem; font-weight: 700; }
.member-tile p { font-size: 0.85rem; color: var(--stone); margin-top: 0.3rem; }

/* ---- FOOTER ---- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.72); padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.09); }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col strong { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.3rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.footer-col a:hover { color: var(--ice); }
.footer-col p { font-size: 0.88rem; line-height: 1.6; }
.footer-bottom { max-width: 1100px; margin: 1.2rem auto 0; font-size: 0.78rem; text-align: center; opacity: 0.38; font-family: var(--font-display); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes bounce { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(8px); } }

/* ---- ACCESSIBILITY ---- */
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  html { font-size: 17px; }
  .hero-logo { height: 130px; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--navy); padding: 1rem; gap: 0.3rem; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .next-event-info { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .photo-teaser-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .photo-tall { grid-row: auto; }
  .stat-divider { display: none; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .photo-teaser-grid { grid-template-columns: 1fr; }
  .login-card { padding: 1.8rem 1.2rem; }
  .cache-cards { grid-template-columns: 1fr 1fr; }
}


/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2,0.7,0.3,1), transform 0.6s cubic-bezier(0.2,0.7,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---- LANGUAGE DROPDOWN (i menylinjen) ---- */
.lang-dropdown { position: relative; display: inline-block; margin-left: 0.5rem; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  padding: 0.5rem 0.9rem; border-radius: 100px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lang-toggle:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); }
.lang-globe { font-size: 1rem; }
.lang-caret { font-size: 0.7rem; opacity: 0.8; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  min-width: 170px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 300;
}
.lang-menu.open { display: flex; animation: langFade 0.15s ease both; }
@keyframes langFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.lang-menu button {
  display: flex; align-items: center; gap: 0.6rem;
  background: transparent; border: none; text-align: left;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--dark);
  padding: 0.55rem 0.8rem; border-radius: 8px; cursor: pointer;
  transition: background 0.12s;
}
.lang-menu button:hover { background: var(--cream); }
.lm-flag { font-size: 1.1rem; }

/* Skjul Google Translate sitt topp-banner */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

@media (max-width: 768px) {
  .lang-bar {
    top: auto; bottom: 0; left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    border-radius: 16px 16px 0 0;
    border-left: 1px solid rgba(99,196,111,0.25);
    border-bottom: none;
    padding: 7px 10px;
    gap: 5px;
    box-shadow: 0 -5px 24px rgba(0,0,0,0.25);
  }
  .lang-bar-title { display: none; }
  .lang-flag { flex-direction: row; gap: 4px; padding: 5px 9px; min-width: auto; }
  .lang-flag:hover { transform: scale(1.05); }
}

/* ---- REDIGERBART SIDEINNHOLD (WYSIWYG-output) ---- */
.side-innhold { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; color: #333; }
.side-innhold h1 { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--navy); margin: 1.6rem 0 1rem; letter-spacing: -.01em; }
.side-innhold h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--navy); margin: 1.5rem 0 1rem; letter-spacing: -.01em; }
.side-innhold h2:first-child, .side-innhold h1:first-child { margin-top: 0; }
.side-innhold h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--slate); margin: 1.4rem 0 .7rem; }
.side-innhold p { margin-bottom: 1rem; }
.side-innhold ul, .side-innhold ol { margin: 0 0 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.side-innhold a { color: var(--accent); font-weight: 600; }
.side-innhold strong { color: var(--navy); }
.side-innhold em { font-style: italic; }
.side-innhold u { text-decoration: underline; }
.side-innhold blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1rem 0; color: var(--stone); font-style: italic; }
/* Quill-justering og skriftstørrelser */
.side-innhold .ql-align-center { text-align: center; }
.side-innhold .ql-align-right { text-align: right; }
.side-innhold .ql-align-justify { text-align: justify; }
.side-innhold .ql-size-small { font-size: 0.82em; }
.side-innhold .ql-size-large { font-size: 1.4em; }
.side-innhold .ql-size-huge { font-size: 2em; }
.side-innhold img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---- QUILL EDITOR (admin) ---- */
#editorToolbar {
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: var(--cream);
}
#editor {
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
}
.ql-editor h2 { font-family: var(--font-display); font-weight: 800; color: var(--navy); }
.ql-editor h3 { font-family: var(--font-display); font-weight: 700; color: var(--slate); }
.ql-toolbar.ql-snow { border-color: var(--border); border-radius: 10px 10px 0 0; }
.ql-container.ql-snow { border-color: var(--border); border-radius: 0 0 10px 10px; }

/* ---- LOGO: alltid synlig, også under Google Translate ---- */
.site-header .logo img,
html.translated-ltr .logo img,
html.translated-rtl .logo img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: 58px !important;
  width: auto !important;
}
/* Hindre at Translate skjuler logo-lenken */
.logo, .logo * { display: revert; }
.logo { display: flex !important; }

/* Fullbredde-knapper skal ha sentrert innhold */
.btn[style*="width:100%"], .btn.btn-block { justify-content: center; }

/* ---- BILDER I REDIGERBART INNHOLD (med flyt/plassering) ---- */
.side-innhold img { max-width: 100%; height: auto; border-radius: 8px; }
.side-innhold::after { content: ""; display: table; clear: both; } /* rydder floats */
.side-innhold p { overflow: visible; }
