/* ================================================
   STYRCONTROL – app.css
   Ändra variabler här – gäller hela siten
================================================ */

/* ---- VARIABLER ---- */
:root {
  --bg:        #f2f7f7;
  --surface:   #ffffff;
  --primary:   #091b33;
  --accent:    #00B0AD;
  --text:      #091b33;
  --muted:     #8f8f8f;
  --border:    #ddeaeb;
  --light:     #ffffff;

  --grad-primary: linear-gradient(135deg, var(--primary), #1e3a5c);
  --grad-accent:  linear-gradient(135deg, var(--accent), #00d4d1);
  --grad-hero:    linear-gradient(135deg, var(--primary) 0%, #1e3a5c 60%, #0a6e6c 100%);

  --nav-h:   80px;
  --bot-h:   64px;
  --max-w:   1100px;
  --pad:     clamp(10px, 2.5vw, 32px);

  --radius:    12px;
  --radius-sm: 6px;

  --head: 'Outfit', sans-serif;
  --body: 'Inter', sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body   { font-family: var(--body); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100dvh; }
img, video { max-width: 100%; display: block; }
a      { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul     { list-style: none; }

/* ---- TYPOGRAFI ---- */
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 700; }
p  { font-size: clamp(.9rem, 1.8vw, 1rem); font-weight: 300; color: var(--text); line-height: 1.75; max-width: 65ch; }

.ingress   { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 500; color: var(--text); line-height: 1.5; max-width: 65ch; }
.highlight { font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 400; color: var(--text); line-height: 1.6; max-width: 65ch; }
.eyebrow   { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: .6rem; }
.lead      { font-size: clamp(1rem, 2.5vw, 1.15rem); color: var(--text); max-width: 60ch; line-height: 1.7; }

/* ---- LAYOUT ---- */
.main {
  padding-bottom: calc(var(--bot-h) + env(safe-area-inset-bottom) + 1rem);
}
@media (min-width: 768px) { .main { padding-bottom: 2rem; } }

/* Wrapper – max-bredd + responsiv padding på allt utom hero */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section { padding: 4rem 0; }

/* ---- GRID ---- */
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 600px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }

/* ---- KORT – flat ---- */
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: border-color .2s var(--ease); }
.card:hover { border-color: var(--muted); }

/* ---- KNAPPAR ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: var(--radius-sm);
  font-family: var(--body); font-size: .9rem; font-weight: 600;
  border: 1.5px solid transparent;
  transition: all .2s var(--ease); cursor: pointer;
}

/* Solid */
.btn-primary   { background: var(--primary); color: var(--light); border-color: var(--primary); }
.btn-primary:hover   { filter: brightness(1.2); }
.btn-accent    { background: var(--accent);  color: var(--light); border-color: var(--accent); }
.btn-accent:hover    { filter: brightness(1.1); }
.btn-muted     { background: var(--muted);   color: var(--primary); border-color: var(--muted); }
.btn-muted:hover     { filter: brightness(.95); }
.btn-light     { background: var(--light);   color: var(--primary); border-color: var(--light); }
.btn-light:hover     { background: transparent; color: var(--light);   border-color: var(--light);}

/* Outlined */
.btn-primary-o { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-primary-o:hover { background: var(--primary); color: var(--light); }
.btn-accent-o  { background: transparent; color: var(--accent);  border-color: var(--accent); }
.btn-accent-o:hover  { background: var(--accent);  color: var(--light); }
.btn-muted-o   { background: transparent; color: var(--muted);   border-color: var(--muted); }
.btn-muted-o:hover   { background: var(--muted);   color: var(--primary); }
.btn-light-o   { background: transparent; color: var(--light);   border-color: var(--light); }
.btn-light-o:hover   { background: var(--light);   color: var(--primary); }

/* ---- ANIMATIONER ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp .4s var(--ease) .05s both; }
.anim-2 { animation: fadeUp .4s var(--ease) .15s both; }
.anim-3 { animation: fadeUp .4s var(--ease) .25s both; }
.anim-4 { animation: fadeUp .4s var(--ease) .35s both; }

/* ---- UTILITIES ---- */
.txt-accent { color: var(--accent); }
.txt-muted  { color: var(--muted); }
.txt-light  { color: var(--light); }
.bg-primary { background: var(--primary); }
.bg-accent  { background: var(--accent); }
.bg-surface { background: var(--surface); }

.mt-1 { margin-top: .5rem;  } .mt-2 { margin-top: 1rem;   }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem;   }
.mb-1 { margin-bottom: .5rem;  } .mb-2 { margin-bottom: 1rem;   }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem;   }

/* ================================================
   NAV
================================================ */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(0);
  transition: transform .4s var(--ease);
}
.nav-wrap.hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad); height: 100%;
  display: flex; align-items: stretch; gap: .25rem;
}

.nav-logo { display: flex; align-items: center; padding-right: 1.5rem; flex-shrink: 0; }

.nav-links { display: none; align-items: stretch; position: relative; flex: 1; }

.nav-indicator {
  position: absolute; top: 0; bottom: 0;
  background: var(--bg);
  transition: left .3s var(--ease), width .3s var(--ease);
  pointer-events: none; z-index: 0;
}

.nav-link {
  display: flex; align-items: center; gap: .4rem;
  padding: 0 1.1rem; font-size: .88rem; font-weight: 500;
  color: var(--primary); position: relative; z-index: 1;
  white-space: nowrap; transition: color .2s var(--ease);
}
.nav-link:hover   { color: var(--accent); }
.nav-link--active { color: var(--accent); }

.nav-contact {
  display: none; align-items: center; gap: 1.25rem;
  padding-left: 1.5rem; margin-left: auto; flex-shrink: 0;
  border-left: 1px solid var(--border);
}
.nav-contact__tel,
.nav-contact__mail {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 500; color: var(--primary);
  transition: color .2s;
}
.nav-contact__tel:hover,
.nav-contact__mail:hover { color: var(--accent); }
.nav-contact__tel i,
.nav-contact__mail i { color: var(--accent); font-size: .85rem; }

.nav-contact-mobile {
  display: flex; align-items: center; gap: .5rem; margin-left: auto;
}
.nav-contact-mobile a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: .9rem; transition: background .2s;
}
.nav-contact-mobile a:hover { background: var(--border); }

@media (min-width: 768px) {
  .nav-links          { display: flex; }
  .nav-contact        { display: flex; }
  .nav-contact-mobile { display: none; }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .nav-contact__tel span,
    .nav-contact__mail span { display: none; }
}


/* ================================================
   BOTTOM NAV MOBIL
================================================ */
.bot-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: calc(var(--bot-h) + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
  display: flex; align-items: flex-start;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translate3d(0,0,0);
  -webkit-transform: translate3d(0,0,0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.bot-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .2rem;
  padding-top: .6rem; height: var(--bot-h);
  color: var(--primary); font-size: .68rem; font-weight: 500;
  transition: color .2s var(--ease);
}
.bot-nav a i      { font-size: 1.2rem; }
.bot-nav a.active { color: var(--accent); }

@media (min-width: 768px) { .bot-nav { display: none; } }

/* ================================================
   HERO – fullbredd, bryter ur wrap medvetet
================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: var(--grad-hero); z-index: 0;
}
.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .2;
}
.hero__orb--1 { width: 600px; height: 600px; background: var(--accent);  top: -150px; right: -150px; animation: drift 9s ease-in-out infinite; }
.hero__orb--2 { width: 400px; height: 400px; background: var(--primary); bottom: -100px; left: -100px; animation: drift 12s ease-in-out 2s infinite reverse; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* Hero-inner använder samma max-w och pad som .wrap */
.hero__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 8rem var(--pad) 4rem;
}
.hero__inner h1     { color: var(--light); max-width: 14ch; }
.hero__inner .lead  { color: rgba(255,255,255,.75); margin-top: 1rem; }
.hero__inner .eyebrow { color: rgba(255,255,255,.5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.06); }
  66%      { transform: translate(-30px,40px) scale(.96); }
}

/* ================================================
   PAYOFF + TRUST
================================================ */
.payoff {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.payoff__text { max-width: 680px; margin-bottom: 2rem; }
.payoff__text h2 { margin: .5rem 0 1rem; }

.trust { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.trust__item  { flex: 1; min-width: 80px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; }
.trust__num   { font-family: var(--head); font-size: 2.2rem; font-weight: 900; color: var(--primary); line-height: 1; }
.trust__num em { font-style: normal; font-size: 1.1rem; color: var(--accent); }
.trust__label { font-size: .72rem; color: var(--text); font-weight: 500; }
.trust__sep   { width: 1px; height: 36px; background: var(--border); align-self: center; }

/* ================================================
   LEVERANSER
================================================ */
.delivery { padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.delivery__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--grad-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--light);
}
.delivery h3  { font-size: 1rem; margin-top: .25rem; }
.delivery p   { font-size: .88rem; flex: 1; max-width: 100%; }
.delivery__tag { font-size: .7rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }

/* ================================================
   FILTER
================================================ */
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .9rem; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--primary); font-size: .82rem; font-weight: 500;
  transition: all .2s var(--ease); cursor: pointer;
}
.filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--light); }

/* ================================================
   KONTAKTKORT
================================================ */
.cc__hero {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem; background: var(--grad-primary);
}
.cc__avatar {
    width: 52px; height: 52px; min-width: 52px; border-radius: 50%;
    background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--head); font-size: 1rem; font-weight: 800; color: var(--light);
    flex-shrink: 0;
}
.cc__info  { flex: 1; min-width: 0; }
.cc__name  { font-size: 1rem; font-weight: 700; color: var(--light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc__role  { font-size: .75rem; color: rgba(255,255,255,.75); margin: .1rem 0; }

.cc__details { padding: .25rem 0; }

.cc__row {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
    text-decoration: none;
    text-align: left;
}
.cc__row:last-child { border-bottom: none; }
.cc__row:hover      { background: var(--bg); }

.cc__row-icon {
    color: var(--accent);
    font-size: 1rem;
    width: 18px;
    flex-shrink: 0;
    text-align: center;
    align-self: center;
}
.cc__row > div {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    flex: 1;
    min-width: 0;
    text-align: left;
    align-items: flex-start;
}

.cc__label {
    font-size: .7rem; color: var(--text); opacity: .6;
}
.cc__val {
    font-size: .88rem; font-weight: 500; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ================================================
   SLIDER
================================================ */
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; transition: transform .45s var(--ease); cursor: grab; }
.slider__track:active { cursor: grabbing; }

.slide { min-width: 100%; display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .slide { grid-template-columns: 1fr 1fr; } }

.slide__img { min-height: 240px; display: flex; align-items: flex-end; padding: 1.25rem; position: relative; overflow: hidden; }
.slide__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__img--1 { background: var(--grad-hero); }
.slide__img--2 { background: linear-gradient(135deg, #0d2535, var(--primary)); }
.slide__img--3 { background: var(--grad-primary); }

.slide__client { font-family: var(--head); font-size: 1.4rem; font-weight: 800; color: var(--light); position: relative; z-index: 1; }
.slide__body   { padding: 1.75rem; display: flex; flex-direction: column; gap: .6rem; justify-content: center; }
.slide__tag    { font-size: .7rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.slide__body h3 { font-size: 1.05rem; }
.slide__body p  { font-size: .88rem; max-width: 100%; }
.slide__meta   { display: flex; gap: 1rem; font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.slide__meta i { color: var(--accent); }

.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: none; align-items: center; justify-content: center;
  color: var(--primary); font-size: .9rem; z-index: 10; transition: background .2s;
}
.slider__btn:hover { background: var(--bg); }
.slider__btn--prev { left: .75rem; }
.slider__btn--next { right: .75rem; }
@media (min-width: 768px) { .slider__btn { display: flex; } }

.slider__dots { display: flex; justify-content: center; gap: .4rem; padding: 1rem 0 .5rem; }
.slider__dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: background .2s, transform .2s; }
.slider__dot.active { background: var(--accent); transform: scale(1.3); }

/* ================================================
   CTA BAND
================================================ */
.cta { background: var(--grad-primary); border-radius: var(--radius); padding: 2.5rem; }
.cta__inner { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 600px) { .cta__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta h2    { color: var(--light); font-size: clamp(1.3rem,3vw,1.8rem); margin-bottom: .3rem; }
.cta .lead { color: rgba(255,255,255,.7); }

/* ================================================
   FOOTER
================================================ */
.footer {
    background: var(--primary);
    padding: 3.5rem var(--pad) 0;
    margin-top: 3rem;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
@media (min-width: 600px) {
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .footer-inner { grid-template-columns: 2fr 2fr 1fr; }
}

/* Brand – logga 30% / text 70% */
.footer-brand__top {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}
@media (max-width: 380px) {
    .footer-brand__top { grid-template-columns: 1fr; }
}
.footer-logo {
    max-width: 300px;
}

.footer-tagline { font-family: var(--head); font-size: 1.2rem; font-weight: 800; color: var(--accent); margin-bottom: .4rem; }
.footer-about   { font-size: .82rem; color: var(--light); line-height: 1.7; }

/* Tjänster + Företaget alltid sida vid sida */
.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-heading { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--light); margin-bottom: .9rem; }
.footer-list    { display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.9); }
.footer-list a  { color: rgba(255, 255, 255, 0.7); transition: color .2s; }
.footer-list a:hover { color: var(--muted); }
.footer-list i  { color: var(--accent); width: 16px; margin-right: .35rem; }

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .78rem;
    color: rgba(255,255,255,.35);
}
.footer-bottom a       { color: rgba(255,255,255,.35); transition: color .2s; }
.footer-bottom a:hover { color: var(--light); }

/* ================================================
   OM OSS
================================================ */
.tagline-band {
  background: var(--grad-primary); border-radius: var(--radius);
  padding: 1.25rem 1.75rem; margin-bottom: 2.5rem;
  overflow: hidden; position: relative;
}
.tagline-band::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,176,173,.2), transparent);
  animation: shimmer 3s infinite;
}
.tagline-band span { font-family: var(--head); font-size: clamp(1.1rem,3vw,1.6rem); font-weight: 800; color: var(--light); letter-spacing: -.02em; position: relative; }

@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.value-card { padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.value-card__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--grad-accent); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--light); }

.story-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .story-grid { grid-template-columns: 1fr 1fr; } }

.logo-ring { position: relative; width: 280px; height: 280px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.logo-ring__circle { position: absolute; border-radius: 50%; border: 1.5px solid var(--accent); }
.logo-ring__circle:nth-child(1) { width: 280px; height: 280px; opacity: .12; animation: pulse-ring 3s ease-in-out infinite; }
.logo-ring__circle:nth-child(2) { width: 210px; height: 210px; opacity: .2;  animation: pulse-ring 3s ease-in-out .5s infinite; }
.logo-ring__circle:nth-child(3) { width: 140px; height: 140px; opacity: .35; animation: pulse-ring 3s ease-in-out 1s infinite; }
.logo-ring__mark { width: 80px; height: 80px; object-fit: contain; position: relative; z-index: 1; }
@keyframes pulse-ring { 0%,100% { transform: scale(1); opacity: .2; } 50% { transform: scale(1.05); opacity: .4; } }

.chain { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.chain__step { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 1; min-width: 60px; }
.chain__step i { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--accent); transition: transform .2s; }
.chain__step:hover i { transform: scale(1.1); }
.chain__step.accent i { background: var(--accent); color: var(--light); border-color: var(--accent); }
.chain__step span { font-size: .72rem; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; }
.chain__arrow { color: var(--border); font-size: .8rem; flex-shrink: 0; }

.exp-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .exp-box { grid-template-columns: 1fr auto; } }
.exp-ring { width: 140px; height: 140px; border-radius: 50%; border: 2px solid var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; position: relative; }
.exp-ring::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--border); }
.exp-ring strong { font-family: var(--head); font-size: 1.5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.exp-ring span   { font-size: .7rem; color: var(--muted); text-align: center; padding: 0 .5rem; }

/* ================================================
   KONTAKTSIDA – formulärplatshållare
================================================ */
.form-placeholder { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 3rem; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted); font-size: .9rem; }
.form-placeholder i { font-size: 2rem; color: var(--accent); opacity: .4; }

/* ================================================
   POLICY – integritetspolicy & cookies
================================================ */
.policy { max-width: 1200px; }

.policy__block {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}
.policy__block:last-child { border-bottom: none; }
.policy__block h2 { margin-top: 2rem; }
.policy__block h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 1.5rem 0 .5rem; }
.policy__block p  { margin-bottom: .75rem; }
.policy__block a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.policy__block a:hover { color: var(--muted); }

.policy__list { display: flex; flex-direction: column; gap: .4rem; padding-left: 1.25rem; }
.policy__list li { font-size: clamp(.9rem,1.8vw,1rem); font-weight: 300; color: var(--text); line-height: 1.75; list-style: disc; }
.policy__list a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.policy__table { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-top: .75rem; }
.policy__table-row { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 1rem; padding: .75rem 1rem; font-size: .85rem; border-bottom: 1px solid var(--border); }
.policy__table-row:last-child { border-bottom: none; }
.policy__table-row--head { background: var(--bg); font-weight: 600; color: var(--text); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

/* ================================================
   AUTH – login, register, lösenord
================================================ */
.auth-wrap {
    min-height: calc(100dvh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem var(--pad);
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}

.auth-card__head {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-card__head img { margin: 0 auto 1.25rem; }
.auth-card__head h1  { font-size: 1.5rem; margin-bottom: .4rem; }
.auth-card__head p   { font-size: .9rem; color: var(--text); max-width: 100%; }

/* Fält */
.field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1.1rem;
}
.field label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
}
.field input {
    font-family: var(--body);
    font-size: .9rem;
    padding: .65rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: border-color .2s var(--ease);
    width: 100%;
}
.field input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}
.field input.field__input--error { border-color: #ef4444; }
.field__error { font-size: .78rem; color: #ef4444; }

/* Rad med checkbox + glömt lösenord */
.auth-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.check {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--text);
    cursor: pointer;
}
.check input { width: auto; }

.auth-card__link {
    font-size: .82rem;
    color: var(--accent);
    font-weight: 500;
    transition: color .2s;
}
.auth-card__link:hover { color: var(--primary); }

/* Knapp */
.auth-card__submit {
    width: 100%;
    justify-content: center;
    padding: .75rem;
    font-size: .95rem;
    margin-top: .5rem;
}

/* Flera knappar */
.auth-card__actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* Footer-text */
.auth-card__footer {
    text-align: center;
    font-size: .82rem;
    color: var(--text);
    margin-top: 1.5rem;
    max-width: 100%;
}
.auth-card__footer a {
    color: var(--accent);
    font-weight: 500;
}

/* Alert */
.alert {
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    margin-bottom: 1.25rem;
}
.alert--success {
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.25);
    color: #065f46;
}
.alert--error {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.25);
    color: #991b1b;
}

/* ================================================
   PORTAL – dashboard och kundportal
================================================ */
.portal { padding: 7rem 0 4rem; }

.portal__head {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
@media (min-width: 600px) {
    .portal__head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}
.portal__head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: .25rem 0 .5rem; }

.portal__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2.5rem 0 1rem;
}
.portal__section-head h2 { font-size: 1.2rem; }
.portal__section-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: .3rem;
    transition: color .2s;
}
.portal__section-link:hover { color: var(--primary); }

/* ---- WIDGETS ---- */
.grid-4 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 2rem;
}
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color .2s var(--ease);
}
.widget:hover { border-color: var(--accent); }

.widget__icon {
    width: 44px; height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.widget__icon--accent  { background: rgba(0,176,173,.1);  color: var(--accent); }
.widget__icon--warn    { background: rgba(245,158,11,.1);  color: #f59e0b; }
.widget__icon--primary { background: rgba(9,27,51,.08);    color: var(--primary); }
.widget__icon--muted   { background: rgba(152,218,217,.2); color: var(--primary); }

.widget__body { display: flex; flex-direction: column; gap: .15rem; }
.widget__num  { font-family: var(--head); font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.widget__label { font-size: .75rem; color: var(--muted); font-weight: 500; }

/* ---- NOTISER ---- */
.notice-list { display: flex; flex-direction: column; gap: .6rem; }

.notice {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.notice--info    { background: rgba(0,176,173,.06); border-color: rgba(0,176,173,.2); }
.notice--warn    { background: rgba(245,158,11,.06); border-color: rgba(245,158,11,.2); }
.notice--success { background: rgba(16,185,129,.06); border-color: rgba(16,185,129,.2); }
.notice--error   { background: rgba(239,68,68,.06);  border-color: rgba(239,68,68,.2); }

.notice > i { color: var(--accent); font-size: 1rem; margin-top: .1rem; flex-shrink: 0; }
.notice--warn > i    { color: #f59e0b; }
.notice--success > i { color: #10b981; }
.notice--error > i   { color: #ef4444; }

.notice > div { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.notice__title { font-size: .88rem; font-weight: 600; color: var(--text); }
.notice__text  { font-size: .8rem; color: var(--muted); max-width: 100%; }
.notice__time  { font-size: .72rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* ---- PROJEKTKORT ---- */
.projekt-card { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }

.projekt-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.projekt-card__nr { font-size: .72rem; font-weight: 600; color: var(--muted); }

.projekt-card__status {
    font-size: .7rem; font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.projekt-card__status--active  { background: rgba(0,176,173,.1); color: var(--accent); }
.projekt-card__status--done    { background: rgba(16,185,129,.1); color: #059669; }
.projekt-card__status--paused  { background: rgba(245,158,11,.1); color: #d97706; }

.projekt-card__title { font-size: .95rem; font-weight: 700; color: var(--text); line-height: 1.3; }

.projekt-card__meta {
    display: flex; flex-wrap: wrap; gap: .5rem 1rem;
    font-size: .75rem; color: var(--muted);
}
.projekt-card__meta i { color: var(--accent); }

.progress { height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress__bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width .6s var(--ease); }
.progress__label { font-size: .72rem; color: var(--muted); }
.projekt-card__progress { display: flex; flex-direction: column; gap: .35rem; }

.projekt-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .5rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.projekt-card__team { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.projekt-card__team i { color: var(--accent); }

.projekt-card--empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; gap: .75rem;
    min-height: 180px;
    border-style: dashed;
}
.projekt-card--empty i { font-size: 1.75rem; color: var(--muted); opacity: .4; }
.projekt-card--empty p { font-size: .82rem; max-width: 100%; }

/* ---- FAVORIT-KNAPP ---- */
.projekt-card__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--border);
    font-size: 1rem;
    padding: .2rem;
    transition: color .2s, transform .2s;
    line-height: 1;
    position: relative;
    z-index: 10;
}
.fav-btn:hover   { color: #e2a034; transform: scale(1.2); }
.fav-btn--active { color: #e2a034; }

/* ---- KNAPP SM ---- */
.btn-sm { padding: .4rem .85rem; font-size: .78rem; }

/* ---- NAV-ANVÄNDARINFO ---- */
.nav-user {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; font-weight: 500; color: var(--primary);
    transition: color .2s;
}
.nav-user:hover { color: var(--accent); }
.nav-user__avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent); color: var(--light);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--head); font-size: .85rem; font-weight: 800;
    flex-shrink: 0;
}
.nav-logout {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: .85rem;
    cursor: pointer; transition: all .2s;
}
.nav-logout:hover { background: #fee2e2; border-color: #ef4444; color: #ef4444; }

/* ================================================
   COOKIE CONSENT
================================================ */
.cookie-backdrop {
    position: fixed; inset: 0; z-index: 998;
    background: rgba(9,27,51,.5);
    backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .3s var(--ease);
}
.cookie-modal {
    position: fixed; z-index: 999;
    top: 50%; left: 50%;
    transform: translate(-50%, -48%);
    width: calc(100% - 2rem);
    max-width: 480px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    opacity: 0;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
#cookieModal.cookie-modal--visible .cookie-backdrop { opacity: 1; }
#cookieModal.cookie-modal--visible .cookie-modal {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.cookie-modal__head { margin-bottom: 1.5rem; }
.cookie-modal__head h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.cookie-modal__head p  { font-size: .85rem; color: var(--muted); max-width: 100%; }

.cookie-modal__cats { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }

.cookie-cat {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .9rem 1rem;
    background: var(--bg); border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.cookie-cat__info { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.cookie-cat__info strong { font-size: .88rem; font-weight: 600; color: var(--text); }
.cookie-cat__info span   { font-size: .78rem; color: var(--muted); }

/* Toggle switch */
.cookie-toggle {
    position: relative; flex-shrink: 0;
    width: 44px; height: 24px; cursor: pointer;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle__track {
    position: absolute; inset: 0;
    background: var(--border); border-radius: 999px;
    transition: background .2s var(--ease);
}
.cookie-toggle__track::after {
    content: ''; position: absolute;
    width: 18px; height: 18px; border-radius: 50%;
    background: white; top: 3px; left: 3px;
    transition: transform .2s var(--ease);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.cookie-toggle input:checked + .cookie-toggle__track { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle__track::after { transform: translateX(20px); }

.cookie-toggle--locked {
    width: 44px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: .85rem;
}

.cookie-modal__actions {
    display: flex; gap: .75rem;
    margin-bottom: 1rem;
}
.cookie-modal__actions .btn { flex: 1; justify-content: center; }

.cookie-modal__policy {
    text-align: center; font-size: .75rem;
    color: var(--muted); max-width: 100%;
}
.cookie-modal__policy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ================================================
   SLIDE-IN PROJEKT-PANEL
================================================ */
.projekt-panel {
    display: none;
    position: fixed; inset: 0; z-index: 300;
}
.projekt-panel.active { display: block; }

.projekt-panel__backdrop {
    position: absolute; inset: 0;
    background: rgba(9,27,51,.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn .25s var(--ease);
}

.projekt-panel__drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: calc(100% - 2rem);
    max-width: 680px;
    max-height: 85vh;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    opacity: 0;
    overflow: hidden;
    z-index: 301;
}

@media (min-width: 768px) {
    .projekt-panel__drawer { width: 60%; }
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.projekt-panel__head {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.projekt-panel__close {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 1rem;
    cursor: pointer; flex-shrink: 0;
    transition: background .2s;
}
.projekt-panel__close:hover { background: var(--border); }
.projekt-panel__head .eyebrow { margin-bottom: .2rem; }
.projekt-panel__head h2 { font-size: 1.2rem; margin: 0; }

.projekt-panel__body {
    flex: 1; overflow-y: auto;
    padding: 1.5rem;
}

/* Loader */
.panel-loader {
    display: flex; align-items: center; justify-content: center;
    padding: 4rem;
    color: var(--accent); font-size: 1.5rem;
}

/* Sektioner i panelen */
.panel-section { margin-bottom: 2rem; }
.panel-section__title {
    font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--muted); margin-bottom: .75rem;
}

/* Meta-grid */
.panel-meta-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
.panel-meta {
    background: var(--bg); border-radius: var(--radius-sm);
    padding: .6rem .9rem; display: flex; flex-direction: column; gap: .15rem;
}
.panel-meta span   { font-size: .72rem; color: var(--muted); }
.panel-meta strong { font-size: .9rem; font-weight: 600; color: var(--text); }

/* Betalningsplan */
.panel-payment-list { display: flex; flex-direction: column; gap: .5rem; }
.panel-payment-row {
    display: flex; align-items: center; gap: 1rem;
    padding: .6rem .9rem; background: var(--bg);
    border-radius: var(--radius-sm); font-size: .85rem;
}
.panel-payment-row span:first-child { flex: 1; color: var(--text); }
.panel-payment-row span:nth-child(2) { color: var(--muted); font-size: .78rem; }
.panel-payment-row strong { color: var(--text); font-weight: 600; }

.panel-badge {
    font-size: .68rem; font-weight: 600;
    padding: .2rem .55rem; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .06em;
}
.panel-badge--done    { background: rgba(0,176,173,.1); color: var(--accent); }
.panel-badge--pending { background: rgba(245,158,11,.1); color: #d97706; }

/* Uppgifter */
.panel-task-list { display: flex; flex-direction: column; gap: .4rem; }
.panel-task {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem .75rem; font-size: .88rem; color: var(--text);
    background: var(--bg); border-radius: var(--radius-sm);
}

/* Kommentarer */
.panel-comment-list { display: flex; flex-direction: column; gap: 1rem; }
.panel-comment { display: flex; gap: .75rem; align-items: flex-start; }
.panel-comment__avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: var(--light);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--head); font-size: .85rem; font-weight: 800;
    flex-shrink: 0;
}
.panel-comment__author {
    font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: .2rem;
}
.panel-comment__author span { font-weight: 400; color: var(--muted); margin-left: .4rem; }
.panel-comment__text { font-size: .88rem; color: var(--text); max-width: 100%; }