/* ===========================
   JFEJ AB — Global Styles
   =========================== */

:root {
  --bg: #0b0b0b;
  --bg-2: #111111;
  --bg-3: #181818;
  --border: rgba(255,255,255,0.07);
  --text: #f0ede8;
  --text-muted: rgba(240,237,232,0.45);
  --text-subtle: rgba(240,237,232,0.25);
  --teal: #5DCAA5;
  --teal-dim: rgba(93,202,165,0.12);
  --teal-border: rgba(93,202,165,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAV ===== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.logo-link { display: flex; align-items: center; }

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.2px;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--teal);
  color: #0b0b0b;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.88; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: 0.2s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-2);
  border-bottom: 0.5px solid var(--border);
  padding: 1rem 2rem 1.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 15px;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-bottom: 0.5px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-cta {
  margin-top: 0.5rem;
  color: var(--teal) !important;
  border-bottom: none !important;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: #0b0b0b;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
  border: 0.5px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
  min-height: 88vh;
  padding: 0 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero > .hero-inner > p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

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

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-card {
  background: var(--bg-2);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 280px;
}

.vc-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}

.vc-bar-wrap {
  margin-bottom: 1rem;
}

.vc-bar-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.vc-bar {
  background: var(--bg-3);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.vc-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--teal);
  animation: growBar 1.5s ease-out forwards;
}

.vc-fill.low { width: 18%; opacity: 0.35; animation: none; }
.vc-fill.high { width: 0%; animation: growHigh 1.8s 0.3s ease-out forwards; }

@keyframes growHigh {
  to { width: 87%; }
}

/* ===== MARQUEE ===== */
.marquee-section {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  overflow: hidden;
  padding: 1rem 0;
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: 13px;
  color: var(--text-subtle);
  letter-spacing: 0.5px;
}

.marquee-track .dot { color: var(--teal); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SERVICE CARDS ===== */
.services-preview {
  padding: 6rem 0;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 2rem;
  transition: background 0.2s;
  position: relative;
}

.service-card:hover { background: var(--bg-2); }

.sc-num {
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.sc-arrow {
  margin-top: 1.5rem;
  font-size: 18px;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}

.service-card:hover .sc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== PROCESS ===== */
.process-section {
  padding: 6rem 0;
  border-top: 0.5px solid var(--border);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.ps-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 0.5px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
  flex-shrink: 0;
}

.ps-content h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.ps-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.process-connector {
  flex-shrink: 0;
  width: 60px;
  height: 0.5px;
  background: var(--border);
  margin-top: 18px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 6rem 0;
  border-top: 0.5px solid var(--border);
}

.cta-inner {
  background: var(--bg-2);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 4rem;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.cta-inner p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
footer {
  border-top: 0.5px solid var(--border);
  padding: 3rem 2.5rem 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-left .logo {
  font-size: 17px;
  margin-bottom: 6px;
}

.footer-left p {
  font-size: 12px;
  color: var(--text-subtle);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-right a {
  font-size: 13px;
  color: var(--teal);
}

.footer-right p {
  font-size: 12px;
  color: var(--text-subtle);
}

.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding-top: 1.25rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-subtle);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 5rem 0 3rem;
  border-bottom: 0.5px solid var(--border);
}

.page-hero .section-tag { margin-bottom: 1rem; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.page-hero p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
}

/* ===== TJÄNSTER PAGE ===== */
.tjanster-grid {
  padding: 5rem 0;
}

.tjanst-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 0.5px solid var(--border);
  align-items: start;
}

.tjanst-item:first-child { border-top: 0.5px solid var(--border); }

.tjanst-num {
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 1px;
  padding-top: 4px;
  font-weight: 500;
}

.tjanst-content h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text);
}

.tjanst-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.tjanst-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--teal-dim);
  border: 0.5px solid var(--teal-border);
  color: var(--teal);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

/* ===== OM OSS PAGE ===== */
.om-content {
  padding: 5rem 0;
}

.om-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: start;
}

.om-text h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.om-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.om-text p:last-child { margin-bottom: 0; }

.om-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.om-stat {
  background: var(--bg-2);
  padding: 1.5rem;
}

.om-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--teal);
  margin-bottom: 4px;
}

.om-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.om-values {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 0.5px solid var(--border);
}

.om-values h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 2rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.value-item {
  background: var(--bg);
  padding: 1.5rem;
}

.value-item h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.value-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== KONTAKT PAGE ===== */
.kontakt-content {
  padding: 5rem 0;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 5rem;
  align-items: start;
}

.kontakt-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 1rem;
}

.kontakt-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kontakt-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kd-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.kd-value {
  font-size: 14px;
  color: var(--text);
}

.kd-value a { color: var(--teal); }

/* Form */
.contact-form {
  background: var(--bg-2);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-3);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-subtle); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--teal); }

.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: #181818; color: var(--text); }

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

.hidden { display: none; }

.submit-btn {
  width: 100%;
  background: var(--teal);
  color: #0b0b0b;
  border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  margin-top: 4px;
  transition: opacity 0.2s;
}

.submit-btn:hover { opacity: 0.88; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 1.5rem;
    gap: 3rem;
  }

  .hero-visual { display: none; }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
    gap: 2rem;
  }

  .process-connector {
    width: 0.5px;
    height: 24px;
    margin: 0 0 0 17px;
  }

  .om-grid { grid-template-columns: 1fr; gap: 3rem; }
  .values-grid { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }
  .cta-inner { padding: 2.5rem 1.5rem; }
  .tjanst-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .kontakt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 1.5rem; }
}
