/* Landing-page-only sections. Tokens, header, and footer come from styles.css. */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cool);
  margin: 0 0 12px;
}

.hero h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero p.lead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 52ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); outline: none; }

.btn-primary { background: var(--accent); color: #1a1305; }
.btn-primary:hover { background: #f5b862; }

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent-cool); color: var(--accent-cool); }

/* dashed placeholder box standing in for a photo that will be added later */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px dashed var(--border-hover);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text-muted);
  min-height: 220px;
  text-align: center;
  padding: 20px;
}
.img-placeholder svg { width: 34px; height: 34px; opacity: 0.7; }

/* an actual photo, once one exists — same footprint as .img-placeholder */
.photo {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  min-height: 220px;
  overflow: hidden;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the drone photo is a tall flat-lay shot; on the cropped 16:9 mobile box the
   default centered crop clips the bottom of the Drammen patch, so bias the
   visible window down toward it */
#drone .group-feature-media img { object-position: center 60%; }

/* a mark/logo rather than a photo — contained, not cropped, with breathing room */
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.logo-box img { display: block; width: 100%; height: 100%; max-width: 260px; object-fit: contain; }

/* live map excerpt for the Samlingssted section */
.map-embed {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  min-height: 220px;
  overflow: hidden;
}
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 220px; border: 0; filter: grayscale(0.15) contrast(1.05); }

.img-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero .img-placeholder, .hero .photo { min-height: 280px; }

/* quick in-page navigation */
.quicknav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.quicknav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.quicknav a:hover, .quicknav a:focus-visible { border-color: var(--accent-cool); color: var(--accent-cool); outline: none; }

.landing-section {
  scroll-margin-top: 24px;
  padding: clamp(36px, 6vw, 64px) 0;
  border-top: 1px solid var(--border);
}

.section-head { margin-bottom: 28px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.section-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0;
}
.section-head p {
  margin: 10px 0 0;
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.55;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-grid p {
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.about-grid p:last-child { margin-bottom: 0; }

/* activity groups: Skyting, Samband, Drone, Feltsport — one full-focus
   section per group instead of a grid of small cards, so each gets room
   to breathe and a large image placeholder up front. */
.group-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: 82vh;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.group-feature.reverse { grid-template-columns: 1fr 1.05fr; }
.group-feature.reverse .group-feature-media { order: 2; }
.group-feature.reverse .group-feature-text { order: 1; }

.group-feature-media.img-placeholder,
.group-feature-media.photo {
  height: 100%;
  min-height: 320px;
  border-radius: 16px;
}
.group-feature-media svg { width: 46px; height: 46px; }

.group-feature-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.group-feature-index::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: middle;
}

.group-feature-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--accent-cool);
  margin-bottom: 20px;
}
.group-feature-icon svg { width: 28px; height: 28px; }

.group-feature h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin: 0 0 16px;
}

.group-feature p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 46ch;
}
.group-feature p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .group-feature, .group-feature.reverse {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 28px;
  }
  .group-feature.reverse .group-feature-media,
  .group-feature.reverse .group-feature-text { order: initial; }
  .group-feature-media.img-placeholder { min-height: 220px; }
  .group-feature-media.photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* membership benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}
.benefits li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

/* social / contact links */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.social-card:hover { border-color: var(--border-hover); background: var(--panel-hover); transform: translateY(-2px); }

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--accent-cool);
  flex-shrink: 0;
}
.social-icon svg { width: 21px; height: 21px; }

.social-card-text p.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.social-card-text p.handle {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .hero .img-placeholder, .hero .photo { min-height: 200px; }
}
