/* STF Bilservice: tillägg ovanpå AutoDetail (scheme-1). Palett: #E9021E på mörk bakgrund. */

[hidden] { display: none !important; }

/* Textlogga */
.stf-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oxanium', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.stf-logo:hover { color: #fff; }
.stf-logo-mark {
  background: #E9021E;
  color: #fff;
  padding: 0.3em 0.5em;
  border-radius: 4px;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.stf-logo-word {
  color: #fff;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.stf-logo-footer .stf-logo-mark { font-size: 20px; }
.stf-logo-footer .stf-logo-word { font-size: 22px; }
#logo { display: flex; align-items: center; }
#logo .stf-logo { margin: 4px 0; }
@media (max-width: 575px) {
  .stf-logo-mark { font-size: 18px; }
  .stf-logo-word { font-size: 19px; }
}

/* Hoppa till innehåll */
.stf-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #E9021E;
  color: #fff;
  padding: 10px 16px;
}
.stf-skip:focus { left: 0; color: #fff; }

/* Länkar i löptext */
.stf-link { color: #E9021E; text-decoration: underline; text-underline-offset: 3px; }
.stf-link:hover { color: #fff; }
.stf-muted { opacity: 0.65; }

/* Startsidans hero */
.stf-hero { padding: 190px 0 60px; }
.stf-h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.stf-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.stf-infostrip { margin-top: 56px; }
.stf-info {
  background: rgba(18, 18, 18, 0.82);
  border-left: 3px solid #E9021E;
  border-radius: 4px;
  padding: 18px 20px;
  height: 100%;
  color: rgba(255, 255, 255, 0.85);
}
.stf-info a { color: #fff; }
.stf-info-label {
  font-family: 'Oxanium', Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
@media (max-width: 767px) {
  .stf-hero { padding: 130px 0 40px; }
  .stf-infostrip { margin-top: 36px; }
}

/* Prisexempel */
.stf-price-big {
  font-family: 'Oxanium', Helvetica, Arial, sans-serif;
  font-size: 34px;
  font-weight: 600;
  color: #E9021E;
  line-height: 1.1;
  margin: 10px 0 8px;
}
.stf-price { color: #E9021E; font-weight: 700; }

/* Lokala länkar och kontaktlista */
.stf-local-links li { margin-bottom: 8px; }
.stf-contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.stf-contact-list li { margin-bottom: 10px; }

/* Formulär */
.stf-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.stf-req { color: #E9021E; }
.stf-form .form-control { width: 100%; margin-bottom: 0; }
.stf-form textarea.form-control { min-height: 140px; }
.stf-form select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2'><path d='M2 5l6 6 6-6'/></svg>");
}
.stf-form select option { background: #222; color: #fff; }
.stf-form input[type='file'].form-control { padding: 10px 12px; }
.stf-form [aria-invalid='true'] { border-color: #E9021E !important; }
.stf-error { display: block; min-height: 0; margin-top: 4px; font-size: 14px; color: #ff6b7a; }
.stf-error:empty { display: none; }
.stf-hint { display: block; margin-top: 4px; opacity: 0.65; }
.stf-consent { margin: 18px 0 14px; font-size: 14px; opacity: 0.75; }
.stf-submit { border: 0; cursor: pointer; }
.stf-submit[disabled] { opacity: 0.6; cursor: wait; }
.stf-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.stf-form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  background: rgba(233, 2, 30, 0.15);
  border-left: 3px solid #E9021E;
  color: #fff;
}
.stf-form-success {
  padding: 8px 0;
}
.stf-form-success h3 { color: #fff; }
.stf-form-noscript { color: #ff6b7a; }

/* ---------- Tjänstekort (columns-sektioner) ---------- */
.stf-card {
  display: flex; flex-direction: column;
  background: var(--bg-dark-2, #1c1c1c);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px; padding: 32px 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.stf-card:hover { transform: translateY(-4px); border-color: rgba(233, 2, 30, .55); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.stf-card h3 { margin-bottom: 16px; }
.stf-card .ul-check { margin-bottom: 18px; }
.stf-card-icon {
  width: 58px; height: 58px; border-radius: 10px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: #E9021E; color: #fff; font-size: 24px;
}
.stf-card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.stf-card-link i { color: #E9021E; transition: transform .2s ease; }
.stf-card-link:hover { color: #E9021E; }
.stf-card-link:hover i { transform: translateX(4px); }

/* ---------- Stegsektion: pil i höjd med ikonen, inte mitt i texten ---------- */
.de-step-arrow::after {
  content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: 18px; color: #E9021E !important;
  top: 60px; right: -9px; transform: translateY(-50%);
}
/* ---------- Subtitle: kompensera letter-spacing så linjerna blir symmetriska ---------- */
.subtitle { padding-left: 10px; }

/* ---------- Megameny ---------- */
#mainmenu li ul.mega .sb-menu { box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.stf-mega-card, .stf-mega-cta { height: 100%; border-radius: 8px; padding: 18px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
.stf-mega-card:hover { border-color: rgba(233, 2, 30, .5); }
#mainmenu .stf-mega-head { display: flex !important; gap: 14px; align-items: flex-start; padding: 0 !important; }
.stf-mega-icon { flex: 0 0 44px; height: 44px; border-radius: 8px; background: #E9021E; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.stf-mega-title { display: block; font-family: var(--heading-font); font-weight: 700; font-size: 16px; color: #fff; line-height: 1.3; }
.stf-mega-desc { display: block; font-size: 13px; line-height: 1.45; opacity: .7; margin-top: 4px; text-transform: none; letter-spacing: 0; font-weight: 400; }
#mainmenu ul.stf-mega-areas { position: static; visibility: visible; opacity: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0 58px; padding: 0; background: none; border: 0; box-shadow: none; width: auto; }
#mainmenu ul.stf-mega-areas li { width: auto !important; border: 0; }
#mainmenu ul.stf-mega-areas li a { padding: 3px 10px !important; font-size: 12px; border-radius: 20px; background: rgba(255, 255, 255, .07) !important; width: auto !important; }
#mainmenu ul.stf-mega-areas li a:hover { background: #E9021E !important; color: #fff; }
.stf-mega-cta { display: flex; flex-direction: column; gap: 10px; }
#mainmenu .stf-mega-cta a.btn-main { display: inline-block; width: auto; text-align: center; padding: 8px 18px; }
#mainmenu .stf-mega-cta a.stf-card-link { padding: 0; width: auto; }
header.header-mobile .stf-mega-card, header.header-mobile .stf-mega-cta { margin: 6px 0; }
header.header-mobile #mainmenu ul.stf-mega-areas { margin-left: 0; }

/* ---------- Flytande ringknapp ---------- */
.stf-call-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 1040;
  display: inline-flex; align-items: center; gap: 10px;
  background: #E9021E; color: #fff; font-weight: 700; font-family: var(--heading-font);
  padding: 13px 20px; border-radius: 40px; box-shadow: 0 10px 28px rgba(233, 2, 30, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stf-call-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(233, 2, 30, .6); }
.stf-call-fab i { animation: stf-ring 2.8s ease-in-out infinite; }
@keyframes stf-ring { 0%, 86%, 100% { transform: rotate(0); } 88%, 92%, 96% { transform: rotate(-16deg); } 90%, 94%, 98% { transform: rotate(16deg); } }
@media (max-width: 575.98px) { .stf-call-fab { left: 14px; bottom: 14px; padding: 12px 18px; } }
@media (prefers-reduced-motion: reduce) { .stf-call-fab i { animation: none; } }

/* ---------- Pop-up snabbokning ---------- */
.stf-popup { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.stf-popup[hidden] { display: none; }
.stf-popup.is-open { opacity: 1; }
.stf-popup-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); }
.stf-popup-box {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #181818 url('../images/background/1.webp') center / cover; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(16px) scale(.98); transition: transform .25s ease;
}
.stf-popup.is-open .stf-popup-box { transform: none; }
.stf-popup-body { padding: 36px 30px 26px; background: linear-gradient(180deg, rgba(18, 18, 18, .82), rgba(18, 18, 18, .97) 45%); border-radius: 12px; }
.stf-popup-body h2 { font-size: 30px; line-height: 1.15; margin-bottom: 10px; }
.stf-popup-body label { display: block; font-size: 13px; margin: 12px 0 5px; font-weight: 600; }
.stf-popup-body .form-control { width: 100%; }
.stf-popup-body select.form-control { background: #222; color: #fff; }
.stf-popup-body .btn-main { margin-top: 18px; border: 0; cursor: pointer; }
.stf-popup-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; cursor: pointer; }
.stf-popup-close:hover { background: #E9021E; }
.stf-popup-error { color: #ff6b7a; font-size: 14px; margin: 10px 0 0; }
.stf-popup .stf-consent { margin: 12px 0 0; font-size: 12px; }
.stf-popup .stf-consent a { color: #fff; text-decoration: underline; }
html.stf-popup-open { overflow: hidden; }

/* ---------- Rubriknivåer: semantisk nivå skild från visuell storlek ---------- */
h2.h3, .h3 { font-size: var(--h3-font-size); line-height: var(--h3-line-height); letter-spacing: var(--h3-letter-spacing); font-weight: var(--h3-font-weight); margin-bottom: var(--h3-margin-bottom); }
h2.h3 { text-transform: var(--heading-text-transform); }
.h4 { font-size: var(--h4-font-size); line-height: var(--h4-line-height); letter-spacing: var(--h4-letter-spacing); font-weight: var(--h4-font-weight); margin-bottom: var(--h4-margin-bottom); }
.h5 { font-size: var(--h5-font-size); line-height: var(--h5-line-height); letter-spacing: var(--h5-letter-spacing); font-weight: var(--h5-font-weight); margin-bottom: var(--h5-margin-bottom); }
footer .widget .h5 { font-size: 18px; margin-bottom: 20px; color: #fff; text-transform: none; }
#extra-content .h5 { color: #fff; }
.stf-card h2.h3 { margin-bottom: 16px; }
.stf-fact-value, .stf-card-nr { font-family: var(--heading-font); font-weight: var(--heading-font-weight); }
.stf-fact-value { color: #E9021E; }
.stf-card-nr { color: #fff; margin: 0; }

/* ---------- Hero på tjänste- och lokalsidor: riktig <img> i stället för JS-satt bakgrund ---------- */
.half-fluid .stf-hero-media { position: relative; overflow: hidden; }
.half-fluid .stf-hero-media .stf-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---------- Brödsmulor ---------- */
.stf-crumb-service { display: block; float: none; margin: 0 0 18px !important; padding: 0 !important; font-size: 13px; }
.stf-crumb-service a { color: rgba(255, 255, 255, .7); }
.stf-crumb-service a:hover { color: #E9021E; }
.stf-crumb-service li.active { color: #fff; }
.stf-updated { margin: 14px 0 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.stf-updated i { color: #E9021E; margin-right: 6px; }

/* ---------- Megameny: neutralisera mallens generella #mainmenu-regler för spans och länkar ---------- */
/* Mallen ger alla "#mainmenu a span" width 0 -> 100 %, 10 px versaler, vit understrykning och float,
   och alla undermenylänkar padding, kantlinje och röd hover-bakgrund. Det ska inte gälla korten. */
#mainmenu li ul.mega li a span:not(.badge) {
  width: auto; float: none; margin: 0; border-bottom: 0; line-height: inherit;
  font-size: inherit; text-transform: none; color: inherit; display: inline;
}
#mainmenu li ul.mega li a,
#mainmenu li ul.mega li a:hover {
  border-bottom: 0; background: none; width: auto; letter-spacing: 0;
}
#mainmenu li ul.mega li .stf-mega-head { display: flex !important; gap: 14px; align-items: flex-start; padding: 0 !important; color: #fff; }
#mainmenu li ul.mega li .stf-mega-head:hover .stf-mega-title { color: #E9021E; }
#mainmenu li ul.mega li a span.stf-mega-icon:not(.badge) {
  display: flex; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px;
  background: #E9021E; color: #fff; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
}
#mainmenu li ul.mega li a span.stf-mega-title:not(.badge) {
  display: block; font-family: var(--heading-font); font-weight: 700; font-size: 16px; line-height: 1.3; color: #fff;
}
#mainmenu li ul.mega li a span.stf-mega-desc:not(.badge),
#mainmenu li ul.mega .stf-mega-cta .stf-mega-desc {
  display: block; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .7); margin-top: 4px; font-weight: 400;
}
#mainmenu li ul.mega .stf-mega-cta .stf-mega-title { font-size: 18px; }
#mainmenu li ul.mega ul.stf-mega-areas:not(.ul-list) {
  position: static; visibility: visible; opacity: 1; width: auto; margin: 14px 0 0 58px; top: auto;
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0; background: none; border: 0; box-shadow: none;
}
#mainmenu li ul.mega ul.stf-mega-areas li { width: auto; border: 0; margin: 0; padding: 0; }
#mainmenu li ul.mega ul.stf-mega-areas li a {
  display: inline-block; padding: 4px 11px !important; font-size: 12px; line-height: 1.4; border-radius: 20px;
  background: rgba(255, 255, 255, .07) !important; color: #fff; width: auto !important;
}
#mainmenu li ul.mega ul.stf-mega-areas li a:hover { background: #E9021E !important; color: #fff; }
#mainmenu li ul.mega .stf-mega-cta a.btn-main { display: inline-flex; align-self: flex-start; padding: 8px 18px; background: #E9021E; }
#mainmenu li ul.mega .stf-mega-cta a.btn-main span:not(.badge) { font-size: 15px; font-weight: 700; display: inline; }
#mainmenu li ul.mega .stf-mega-cta a.stf-card-link { padding: 0; color: #fff; font-weight: 700; }
#mainmenu li ul.mega .stf-mega-cta a.stf-card-link:hover { color: #E9021E; }
/* Mobilmeny: korten staplas, ingen indragning av områdeslänkarna */
header.header-mobile #mainmenu li ul.mega ul.stf-mega-areas:not(.ul-list) { margin-left: 0; }
header.header-mobile #mainmenu li ul.mega .sb-menu { padding: 12px !important; }
header.header-mobile #mainmenu li ul.mega > li { padding: 0; }
header.header-mobile #mainmenu li ul.mega .container { padding: 0; max-width: none; }
header.header-mobile #mainmenu li ul.mega .sb-menu { border: 0; }

/* ---------- Pop-up: synliga fält även utan fokus ---------- */
.stf-popup-body .form-control,
.stf-popup-body select.form-control {
  background-color: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); color: #fff; border-radius: 6px;
}
.stf-popup-body .form-control:focus {
  background-color: rgba(255, 255, 255, .1); border-color: #E9021E; color: #fff; box-shadow: 0 0 0 3px rgba(233, 2, 30, .25);
}
.stf-popup-body select.form-control option { background: #222; color: #fff; }
nav.stf-crumbs { height: auto; } /* mallen sätter nav { height: 0 } i mobil */
nav.stf-crumbs .crumb { margin-bottom: 0; }

/* Innehållsbilder med width/height-attribut: behåll proportionerna (annars sträcks de till attributhöjden) */
img[width][height]:not(.jarallax-img):not(.stf-hero-img) { height: auto; max-width: 100%; }
