/*
Theme Name: Krögarnätverket
Theme URI: https://krogarnatverket.se
Author: Krögarnätverket
Description: Anpassat tema för Krögarnätverket
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: krogarnatverket
*/

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #111;
  color: #f0ede8;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --yellow: #f5c800;
  --bg:    #111;
  --bg2:   #1a1a1a;
  --white: #f0ede8;
  --dim:   rgba(240,237,232,0.55);
  --line:  rgba(240,237,232,0.1);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 68px;
  background: #1c1c1c;
  border-bottom: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.7);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-top {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--white); display: block; line-height: 1;
}
.nav-logo-bottom {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(240,237,232,0.45); display: block;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(240,237,232,0.9); transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow); }
.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg); background: var(--yellow);
  padding: 10px 22px; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  height: 100vh; min-height: 600px;
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  position: relative; padding-top: 68px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 60%, rgba(10,10,10,0.6) 100%);
}
.hero-logo { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.hero-logo-top {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 900; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--white); line-height: 0.88;
}
.hero-logo-bottom {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(16px, 3vw, 40px);
  font-weight: 400; letter-spacing: 0.5em;
  text-transform: uppercase; color: rgba(240,237,232,0.4); margin-top: 8px;
}
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(240,237,232,0.25); z-index: 2;
}
.hero-scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(240,237,232,0.25), transparent); }

/* ── SECTIONS ── */
.section { padding: 80px 40px; border-bottom: 1px solid var(--line); }
.section-intro { margin-bottom: 56px; }
.section-intro.center { text-align: center; max-width: 800px; margin: 0 auto 56px; }
.section-h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 900; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--yellow);
  line-height: 0.95; margin-bottom: 20px;
}
.section-body { font-size: 15px; line-height: 1.85; color: var(--dim); font-weight: 400; max-width: 680px; }

/* ── CARDS ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px; max-width: 1200px; margin: 0 auto;
}
.card { position: relative; overflow: hidden; cursor: pointer; }
.card-img { aspect-ratio: 3/4; overflow: hidden; position: relative; background: #1a1a1a; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(240,237,232,0.12);
}
.ca { background: linear-gradient(160deg, #2a1a06 0%, #111 100%); }
.cb { background: linear-gradient(160deg, #061428 0%, #111 100%); }
.cc { background: linear-gradient(160deg, #220e06 0%, #111 100%); }
.card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.card-label-type {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--yellow); display: block; margin-bottom: 4px;
}
.card-label-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px); font-weight: 900;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--white); line-height: 1;
}

/* ── TICKER ── */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: #0e0e0e; padding: 16px 0; }
.ticker-track { display: flex; animation: ticker-left 24s linear infinite; width: max-content; }
@keyframes ticker-left { to { transform: translateX(-50%); } }
.ticker-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(240,237,232,0.2); padding: 0 40px; border-right: 1px solid var(--line);
  white-space: nowrap; display: flex; align-items: center; height: 28px;
}

/* ── TEAM JOIN ── */
.team-join {
  margin-top: 40px; padding: 36px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.team-join h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
}
.team-join p { font-size: 14px; color: var(--dim); margin-top: 4px; }

/* ── BUTTONS ── */
.btn-yellow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--yellow); color: var(--bg); border: none; padding: 14px 32px;
  cursor: pointer; transition: opacity 0.2s; display: inline-block; white-space: nowrap;
}
.btn-yellow:hover { opacity: 0.85; }
.btn-outline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--white); border: 1px solid var(--line);
  padding: 14px 32px; cursor: pointer; transition: border-color 0.2s; display: inline-block;
}
.btn-outline:hover { border-color: var(--white); }

/* ── KONTAKT ── */
.kontakt-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.kontakt-left h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(48px, 6vw, 80px); font-weight: 900;
  text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--yellow); line-height: 0.95; margin-bottom: 24px;
}
.kontakt-left p { font-size: 15px; line-height: 1.75; color: var(--dim); margin-bottom: 28px; }
.kontakt-links { display: flex; flex-direction: column; gap: 14px; }
.kontakt-link { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--dim); transition: color 0.2s; }
.kontakt-link:hover { color: var(--white); }
.form { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-field { display: flex; flex-direction: column; }
.form-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--white); padding: 20px 0 8px;
}
.form-input {
  background: transparent; border: none; border-bottom: 1.5px solid var(--yellow);
  color: var(--white); padding: 10px 0;
  font-family: 'Barlow', sans-serif; font-size: 14px; outline: none; width: 100%;
}
.form-input::placeholder { color: rgba(240,237,232,0.25); }
.form-input:focus { border-color: #fff; }
select.form-input { cursor: pointer; background: #111; }
select.form-input option { background: #1a1a1a; }
textarea.form-input { resize: vertical; min-height: 80px; border-bottom: 1.5px solid var(--yellow); }
.form-check {
  display: flex; align-items: center; gap: 10px;
  padding: 24px 0 16px; font-size: 13px; color: var(--dim); cursor: pointer;
}
.form-check input { accent-color: var(--yellow); width: 16px; height: 16px; }
.form-check a { color: var(--yellow); }
.form-submit {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--yellow); color: var(--bg); border: none; padding: 16px 40px;
  cursor: pointer; transition: opacity 0.2s; align-self: flex-start; margin-top: 4px;
}
.form-submit:hover { opacity: 0.85; }

/* ── INSTAGRAM ── */
.section-instagram { padding: 80px 40px; border-bottom: 1px solid var(--line); text-align: center; }
.section-instagram p { font-size: 15px; color: var(--dim); margin-bottom: 32px; }
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: 40px; }
.insta-cell {
  aspect-ratio: 1; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(240,237,232,0.1);
  cursor: pointer; transition: background 0.2s;
}
.insta-cell:hover { background: #222; }

/* ── FOOTER ── */
footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 40px 36px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer-logo-top {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px; font-weight: 900; text-transform: uppercase;
  color: var(--white); display: block; line-height: 1;
}
.footer-logo-bottom {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 400; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(240,237,232,0.35); display: block; margin-bottom: 14px;
}
.footer-desc { font-size: 13px; line-height: 1.75; color: rgba(240,237,232,0.35); max-width: 240px; }
.footer-col h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(240,237,232,0.35); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(240,237,232,0.55); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(240,237,232,0.25); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 12px; color: rgba(240,237,232,0.25); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(240,237,232,0.6); }

/* ── MOBILE ── */
@media (max-width: 860px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 64px 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .kontakt-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  footer { padding: 48px 20px 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .team-join { flex-direction: column; align-items: flex-start; }
  .section-instagram { padding: 64px 20px; }
}
