/* =========================================================
   HL EVENT & CATERING — Design tokens
   Samma palett som HL Dryckesagentur för visuell koppling:
   Forest = djup flaskgrön, Cream = varm elfenben, Brass = mässing
   ========================================================= */
:root {
  --forest: #16281f;
  --forest-deep: #0e1913;
  --cream: #f3eee3;
  --cream-deep: #ece4d4;
  --brass: #b08d57;
  --brass-light: #d3b788;
  --white: #fbfaf6;
  --ink: #16281f;
  --line-on-dark: rgba(251, 250, 246, 0.18);
  --line-on-light: rgba(22, 40, 31, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1180px;
  --space-5: 7rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brass); color: var(--forest-deep);
  padding: 0.75rem 1.25rem; z-index: 200; font-family: var(--font-body);
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(22, 40, 31, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-on-dark);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}

.brand {
  display: flex; align-items: center;
  text-decoration: none; color: var(--white);
}
.brand-stamp-img {
  height: 35px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.brand:hover .brand-stamp-img { opacity: 0.85; }

.brand-logo--footer {
  height: 180px;
}

.site-nav { display: flex; align-items: center; }
.nav-list {
  list-style: none; display: flex; align-items: center;
  gap: 2rem; margin: 0; padding: 0;
}
.nav-list a {
  text-decoration: none; color: var(--white); font-size: 0.92rem;
  letter-spacing: 0.01em; opacity: 0.88; transition: opacity 0.2s;
}
.nav-list a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid var(--brass-light) !important;
  padding: 0.5rem 1.1rem; border-radius: 2px;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--brass-light); color: var(--forest-deep); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 4px; width: 32px; height: 32px; background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.9rem 1.8rem; border-radius: 2px; letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: none; cursor: pointer;
}
.btn--primary {
  background: var(--brass); color: var(--forest-deep);
}
.btn--primary:hover { background: var(--brass-light); transform: translateY(-1px); }

.btn--ghost {
  background: transparent; color: inherit;
  border: 1px solid currentColor;
}
.btn--ghost:hover { background: rgba(0,0,0,0.05); }

.hero .btn--ghost { color: var(--white); }
.hero .btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin: 0 0 1.25rem;
}
.eyebrow--light { color: var(--brass-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--forest);
  color: var(--white);
  padding: 9.5rem 1.5rem 0;
  overflow: hidden;
}
.hero-inner {
  max-width: 780px; margin: 0 auto; text-align: center;
  padding-bottom: 5rem;
}
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.05; margin: 0 0 1.5rem; letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: var(--brass-light); }
.hero-lead {
  font-size: 1.15rem; color: rgba(251,250,246,0.82);
  max-width: 560px; margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* Signature element: scrolling event-type ticker */
.ticker {
  border-top: 1px solid var(--line-on-dark);
  overflow: hidden;
  padding: 1.4rem 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 1rem;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; color: var(--brass-light);
}
.ticker-dot { color: var(--brass); font-size: 0.7rem; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-5) 1.5rem; }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest); color: var(--white); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-inner--narrow { max-width: 760px; text-align: center; }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15; margin: 0 0 1.5rem; letter-spacing: -0.01em;
}
.section-title--light { color: var(--white); }
.section-lead { font-size: 1.05rem; max-width: 620px; opacity: 0.85; margin: 0 auto 3rem; }
.section-lead--light { opacity: 0.75; }
#verksamheten .eyebrow,
#verksamheten .section-title,
#verksamheten .section-lead {
  text-align: center;
}
.section-inner--narrow .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Process (verksamheten) ---------- */
.process {
  list-style: none; margin: 3.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.process-step { border-top: 1px solid var(--line-on-dark); padding-top: 1.5rem; }
.process-num {
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  color: var(--brass-light); display: block; margin-bottom: 0.75rem;
}
.process-step h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.35rem;
  margin: 0 0 0.6rem; color: var(--white);
}
.process-step p { margin: 0; opacity: 0.78; font-size: 0.98rem; }

/* ---------- Partner ---------- */
.partner-header { text-align: center; }
.partner-header .section-lead { margin-left: auto; margin-right: auto; }

.partner-showcase {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 3rem;
}
.partner-tile {
  flex: 1 1 320px; max-width: 380px; margin: 0;
  aspect-ratio: 16 / 10;
  background: var(--forest-deep);
  border: 1px solid var(--line-on-dark);
  border-radius: 20px;
  box-shadow: 0 38px 60px -14px rgba(0, 0, 0, 0.45), 0 14px 24px -8px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}
.partner-logo {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain;
}
.partner-cross { flex: 0 0 auto; width: clamp(2.25rem, 4vw, 3rem); height: clamp(2.25rem, 4vw, 3rem); }
.partner-cross svg { width: 100%; height: 100%; }
.partner-cross line { stroke: var(--brass-light); stroke-width: 1; stroke-linecap: round; }

/* ---------- Section seam (delare mellan sektioner i samma färg) ---------- */
.section-seam {
  background: var(--forest);
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 0.5rem 1.5rem;
}
.seam-line { width: 64px; height: 1px; background: var(--line-on-dark); }
.seam-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brass-light); flex-shrink: 0; }

/* Variant: övergång från mörk till ljus sektion (t.ex. Om oss -> Kontakt) */
.section-seam--transition {
  background: var(--forest);
}

/* ---------- About ---------- */
.section-inner--split {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: center;
}
.about-photo img { border-radius: 2px; }
.about-copy p { opacity: 0.85; font-size: 1.02rem; }

/* ---------- Team duo ---------- */
.team-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  margin-top: 4rem; padding-top: 3rem;
  border-top: 1px solid var(--line-on-dark);
}
.team-label {
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem;
  margin: 0 0 1rem; color: var(--white);
}
.team-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact / booking form ---------- */
.contact-form { text-align: left; margin-top: 2.5rem; }
.botcheck { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-row { margin-bottom: 1.25rem; }
.form-row-label {
  display: block; font-size: 0.85rem; letter-spacing: 0.04em;
  margin-bottom: 0.6rem; font-weight: 600;
}
.form-row label {
  display: block; font-size: 0.85rem; letter-spacing: 0.04em;
  margin-bottom: 0.4rem; font-weight: 600;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.75rem 0.9rem; font-family: var(--font-body);
  font-size: 1rem; border: 1px solid var(--line-on-light);
  background: var(--white); border-radius: 2px; color: var(--ink);
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem;
}
.form-note { margin-top: 1rem; font-size: 0.9rem; color: var(--forest); min-height: 1.2em; }

/* Segmented toggle: Privatperson / Företag */
.toggle-group {
  position: relative;
  display: inline-flex; border: 1px solid var(--line-on-light);
  border-radius: 2px; overflow: hidden;
}
.toggle-group input {
  position: absolute; opacity: 0; pointer-events: none;
  width: auto; height: auto;
}
.toggle-group label {
  padding: 0.7rem 1.6rem; cursor: pointer; font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.toggle-group input:checked + label {
  background: var(--brass); color: var(--forest-deep);
}
.toggle-group label:not(:last-child) { border-right: 1px solid var(--line-on-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(251,250,246,0.75); padding: 3rem 1.5rem; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand--footer { color: var(--white); }
.footer-meta { font-size: 0.85rem; opacity: 0.7; margin: 0; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.9rem; }
.footer-links a { text-decoration: none; opacity: 0.8; }
.footer-links a:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .section-inner--split { grid-template-columns: 1fr; }
  .partner-showcase { flex-direction: column; }
  .partner-tile { max-width: 420px; width: 100%; }
  .partner-cross { transform: rotate(90deg); }
  .process { grid-template-columns: 1fr; }
  .team-duo { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--forest); border-bottom: 1px solid var(--line-on-dark);
    padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-list.is-open { max-height: 320px; padding: 0.5rem 0; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: 0.9rem 1.5rem; width: 100%; }
  .nav-cta { border: none !important; }

  .hero { padding: 7.5rem 1.25rem 0; }
  .hero-inner { padding-bottom: 3.5rem; }
}
