/* ══════════════════════════════════════════════
   FÖRENINGSHUSET — style.css
══════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --line: rgba(20, 20, 20, 0.08);
  --text: #1b201d;
  --muted: rgba(27, 32, 29, 0.72);
  --muted-2: rgba(27, 32, 29, 0.5);

  /* Brand */
  --teal: #1f5f4a;
  --teal-light: #2f7d63;
  --teal-deep: #0f2f24;
  --amber: #d9a441;
  --amber-light: #eac06a;
  --dark: #0d1512;
  --dark-2: #142019;

  --max: 1160px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  --shadow-dark: 0 12px 40px rgba(0, 0, 0, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ══════════════════════════════════════════════
   TOP NAV
══════════════════════════════════════════════ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 21, 18, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 10px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
}

.nav-brand svg { flex-shrink: 0; color: var(--amber); }

.nav-brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-top: 1px;
}

.nav-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}

.nav-pill:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
  color: #fff;
}

.nav-pill.is-active {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  border-color: rgba(255,255,255,0.20);
  color: #fff;
}

.nav-pill--cta {
  background: linear-gradient(135deg, var(--amber) 0%, #c1872f 100%);
  border-color: transparent;
  color: #241505;
}

.nav-pill--cta:hover {
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 100%);
  color: #241505;
}

.nav-pill--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.55);
}

@media (max-width: 720px) {
  .site-nav-inner { flex-wrap: wrap; min-height: unset; padding: 14px 0; gap: 12px; }
  .nav-pills-row { width: 100%; justify-content: flex-start; }
  .nav-pill { min-height: 36px; padding: 0 14px; font-size: 12.5px; }
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */

.hero-section {
  position: relative;
  padding: 96px 0 84px;
  background:
    radial-gradient(ellipse 900px 500px at 80% -10%, rgba(217,164,65,0.16) 0%, transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 45%, var(--teal-deep) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(31, 95, 74, 0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}

.hero-kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #ffffff;
  margin: 0 0 18px;
}

.hero-lede {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ══════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════ */

.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }

.section-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
  color: var(--teal);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-lede {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  line-height: 1.7;
}

.section.on-soft { background: var(--bg-soft); }

/* ══════════════════════════════════════════════
   CARDS / BENTO
══════════════════════════════════════════════ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(31, 95, 74, 0.10);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* Dark feature tile (för oss i huset / boka lokal callouts) */
.feature-tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(150deg, var(--dark) 0%, var(--teal-deep) 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-dark);
}

.feature-tile-tag {
  display: inline-flex;
  width: fit-content;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber-light);
  background: rgba(217,164,65,0.14);
  padding: 6px 14px;
  border-radius: 999px;
}

.feature-tile h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}

.feature-tile p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-amber {
  background: var(--amber);
  color: #241505;
}
.btn-amber:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 164, 65, 0.40);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}
.btn-teal:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 95, 74, 0.40);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-block { width: 100%; }

/* ══════════════════════════════════════════════
   FORMS (password gate + booking)
══════════════════════════════════════════════ */

.auth-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
  background:
    radial-gradient(ellipse 900px 500px at 20% 0%, rgba(217,164,65,0.10) 0%, transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 45%, var(--teal-deep) 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  backdrop-filter: blur(16px);
  text-align: center;
}

.auth-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(31,95,74,0.45);
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 8px;
}

.auth-card p.auth-lede {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.field {
  text-align: left;
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.field textarea {
  padding: 12px 16px;
  min-height: 96px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.30); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255,255,255,0.09);
}

.field select option { background: var(--dark-2); color: #fff; }

.auth-error {
  display: none;
  background: rgba(210, 70, 70, 0.14);
  border: 1px solid rgba(210, 70, 70, 0.30);
  color: #ffb3b3;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  text-align: left;
}

.auth-error.show { display: block; }

.auth-back {
  display: block;
  margin-top: 22px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.40);
  transition: color 0.2s;
}
.auth-back:hover { color: rgba(255,255,255,0.75); }

/* ══════════════════════════════════════════════
   LOKAL-VISARE (rums-kort)
══════════════════════════════════════════════ */

.room-card p.room-placeholder {
  font-size: 13px;
  color: var(--muted-2);
  font-style: italic;
}

/* ══════════════════════════════════════════════
   EGEN KALENDERVISARE (boka lokal)
══════════════════════════════════════════════ */

.fh-cal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.fh-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.fh-cal-toolbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fh-cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  font-size: 16px;
}
.fh-cal-nav-btn:hover { background: #ececea; }

.fh-cal-range {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  min-width: 150px;
}

.fh-cal-today-btn {
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.fh-cal-today-btn:hover { background: var(--bg-soft); }

.fh-cal-status {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 10px;
  min-height: 18px;
}
.fh-cal-status.is-error { color: #b3413f; }

.fh-cal-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.fh-cal-table { min-width: 720px; }

.fh-cal-header-row {
  display: grid;
  grid-template-columns: 48px repeat(7, 1fr);
}

.fh-cal-day-head {
  padding: 6px 4px 10px;
  text-align: center;
  border-bottom: 2px solid var(--line);
}
.fh-cal-day-head.is-today { color: var(--teal); }

.fh-cal-day-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.fh-cal-day-head.is-today .fh-cal-day-name { color: var(--teal); }

.fh-cal-day-num {
  display: block;
  font-size: 17px;
  font-weight: 800;
  margin-top: 2px;
}

.fh-cal-body {
  display: grid;
  grid-template-columns: 48px repeat(7, 1fr);
}

.fh-cal-hour-label {
  font-size: 10.5px;
  color: var(--muted-2);
  text-align: right;
  padding-right: 8px;
  box-sizing: border-box;
  transform: translateY(-6px);
}

.fh-cal-day-col {
  position: relative;
  border-left: 1px solid var(--line);
}

.fh-cal-hour-cell {
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.15s;
}
.fh-cal-hour-cell:hover { background: rgba(31, 95, 74, 0.07); }

.fh-cal-event {
  position: absolute;
  left: 3px;
  right: 3px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  color: #fff;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(31, 95, 74, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1px;
  pointer-events: none;
}

.fh-cal-event--allday {
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  color: #241505;
}

.fh-cal-event-title {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fh-cal-event-loc {
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
}
.fh-cal-event-time { opacity: 0.75; font-size: 10px; }

.fh-cal-pick-note {
  display: none;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(31, 95, 74, 0.08);
  border: 1px solid rgba(31, 95, 74, 0.18);
  padding: 10px 14px;
  border-radius: 12px;
}
.fh-cal-pick-note.show { display: block; }

.fh-cal-legend {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted-2);
}

@media (max-width: 640px) {
  .fh-cal { padding: 16px; }
}

/* Light form variant (booking page on white background) */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-card .field label { color: var(--muted-2); }

.form-card .field input,
.form-card .field select,
.form-card .field textarea {
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
}

.form-card .field input::placeholder,
.form-card .field textarea::placeholder { color: var(--muted-2); }

.form-card .field input:focus,
.form-card .field select:focus,
.form-card .field textarea:focus {
  border-color: var(--teal);
  background: #fff;
}

.form-card .field select option { background: #fff; color: var(--text); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-note {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 18px;
  line-height: 1.6;
}

.form-success {
  display: none;
  background: rgba(31, 95, 74, 0.10);
  border: 1px solid rgba(31, 95, 74, 0.25);
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.form-success.show { display: block; }

/* ══════════════════════════════════════════════
   INTRANET LIST STYLES
══════════════════════════════════════════════ */

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rule-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.rule-item .num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(31, 95, 74, 0.10);
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rule-item h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 800;
}

.rule-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted-2);
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */

.site-footer {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 60%, #08100c 100%);
  color: #fff;
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-brand small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.42);
  margin-top: 2px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.58);
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 12.5px;
  color: rgba(255,255,255,0.32);
  margin: 0;
}

.footer-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.32);
  margin: 0;
}

.footer-sub a { color: rgba(255,255,255,0.5); }
.footer-sub a:hover { color: #fff; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-section { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-tile { padding: 32px 26px; }
  .auth-card { padding: 34px 26px; }
  .form-card { padding: 26px; }
  .footer-top { flex-direction: column; }
}
