/* Kullagatan Elektronik Service - gemensam stil för alla publika sidor.
   Sidspecifika regler ligger längst ned, grupperade per sida. */

/* ---------- Typsnitt ---------- */
@font-face {
  font-family: "Athiti-medium";
  src: url(../fonts/Athiti-Medium.woff2) format("woff2"), url(../fonts/Athiti-Medium.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Athiti-bold";
  src: url(../fonts/Athiti-Bold.woff2) format("woff2"), url(../fonts/Athiti-Bold.ttf) format("truetype");
  font-display: swap;
}

/* ---------- Grund ---------- */
:root {
  --text: #000;
  --muted: #696969;
  --grey-bg: #f3f3f3;
  --page-width: 1350px;
  --brand-gradient: linear-gradient(to right, #8a2387, #e94057, #f27121);
  --nav-gradient: linear-gradient(90deg, #020024 0%, #090979 35%, #00d4ff 100%);
  --font: "Athiti-medium", Arial, sans-serif;
  --font-bold: "Athiti-bold", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
  background: #fff;
}
img, video, iframe { max-width: 100%; }
picture { display: contents; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-bold); font-weight: 700; line-height: 1.2; }
h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
a { color: inherit; text-decoration: none; }
a:active { color: #999; }
hr { border: 0; border-top: 1px solid #ddd; margin: 20px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: #000; color: #fff; padding: 8px 14px; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid #00a0e0; outline-offset: 2px; }

/* ---------- Sidram (ersätter den gamla 1350 px-tabellen) ---------- */
.page {
  max-width: calc(var(--page-width) + 16px);
  margin: 0 auto;
  padding: 0 8px;
  background:
    url(../bilder/cellbg-l.jpg) left top / 8px auto repeat-y,
    url(../bilder/cellbg-r.jpg) right top / 8px auto repeat-y,
    #fff;
}

/* ---------- Sidhuvud och meny ---------- */
.site-header { border-top: 16px solid #000; background: #fff; }
.header-bar {
  display: flex; align-items: flex-start; justify-content: space-between;
  min-height: 80px;
}
.logo { display: block; line-height: 0; }
.logo img { width: 464px; height: 80px; }
.header-actions { display: flex; align-items: center; gap: 14px; margin: 22px; }
.header-phone { display: none; font-family: var(--font-bold); font-size: 18px; color: #000; }
/* "Spåra ditt ärende": färgad knapp med förstoringsglas, så den syns direkt */
.track-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 4px 24px 4px 18px;
  font-family: var(--font-bold); font-size: 18px; line-height: 1;
  color: #fff; background: var(--brand-gradient); border-radius: 50px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(233, 64, 87, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.track-btn::before {
  content: ""; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.6%27 stroke-linecap=%27round%27%3E%3Ccircle cx=%2710.5%27 cy=%2710.5%27 r=%276.5%27/%3E%3Cpath d=%27M15.5 15.5 21 21%27/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.6%27 stroke-linecap=%27round%27%3E%3Ccircle cx=%2710.5%27 cy=%2710.5%27 r=%276.5%27/%3E%3Cpath d=%27M15.5 15.5 21 21%27/%3E%3C/svg%3E") center / contain no-repeat;
}
.track-btn:hover, .track-btn:focus-visible {
  color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(233, 64, 87, .6);
}
.track-btn:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .track-btn { transition: none; } .track-btn:hover { transform: none; } }
.nav-toggle {
  display: none; border: 0; background: none; cursor: pointer;
  color: #fff; font-size: 32px; line-height: 1; padding: 10px 16px;
}

.main-nav { background: #000; }
.main-nav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
}
.main-nav a, .main-nav .dropbtn {
  display: block; padding: 14px 16px;
  font-family: var(--font); font-weight: 700; font-size: 18px; line-height: 29px;
  color: #fff; text-align: center; white-space: nowrap;
}
.main-nav .dropbtn { border: 0; background: none; cursor: pointer; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a:focus-visible,
.main-nav .dropdown:hover > .dropbtn, .main-nav .dropdown.open > .dropbtn,
.main-nav a[aria-current="page"] {
  background: var(--nav-gradient); color: #fff;
}
.main-nav a:active { color: #999; }
.dropdown { position: relative; }
.dropdown-content {
  display: none; position: absolute; left: 0; top: 100%; z-index: 10;
  min-width: 151px; background: #f9f9f9; box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
  list-style: none; margin: 0; padding: 0;
}
.dropdown-content a {
  color: #000; padding: 12px 16px; text-align: left;
  font-weight: 400; font-size: 16px; line-height: normal;
}
.dropdown-content a:hover, .dropdown-content a:focus-visible { background: #f1f1f1; color: #000; }
.dropdown:hover > .dropdown-content,
.dropdown:focus-within > .dropdown-content,
.dropdown.open > .dropdown-content { display: block; }

/* ---------- Sidfot ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  background: #000; color: #fff; padding: 8px 16px;
  font-family: var(--font-bold); font-size: 14px;
}
.site-footer p { margin: 0; }
.footer-trenob { display: block; line-height: 0; opacity: .9; margin-left: auto; }
.footer-trenob:hover, .footer-trenob:focus-visible { opacity: 1; }
.footer-trenob img { width: 126px; height: auto; }

/* ---------- Gemensamma byggblock ---------- */
.banner { display: block; width: 100%; height: auto; aspect-ratio: 1350 / 489; object-fit: fill; }
.banner--500 { aspect-ratio: 1350 / 500; }
.page-title { text-align: center; margin: 20px 10px; font-size: 28px; }
.page-title--big { font-size: 32px; }
.h3 { font-size: 22px; }
.h1-style { font-family: var(--font-bold); font-size: 32px; font-weight: 700; }
.prose { padding: 0 200px; }
.prose--narrow { padding: 0 50px; }
.prose--flush { padding: 0; }
.prose p, .text { color: var(--muted); font-size: 18px; line-height: 1.2; }
.prose--airy p { line-height: 1.4; }
.prose h3 { margin: 22px 0 8px; }
.prose h3 + p { margin-top: 0; }
.bullets { list-style: none; padding: 0; margin: 18px 0; color: var(--muted); }
.bullets li::before { content: "\00BB\00A0"; }
.polaroid {
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2), 0 6px 20px rgba(0, 0, 0, .19);
  border-radius: 150px 20px; text-align: center; overflow: hidden;
  width: fit-content; max-width: 100%; margin: 20px auto 40px; line-height: 0;
}
.btn-dark {
  display: inline-block; padding: 6px 24px; border-radius: 6px;
  background: #000; color: #fff; font-family: Arial, sans-serif; font-weight: 700; font-size: 15px;
}
.btn-dark:hover { color: #fff; opacity: .85; }
.cta-button {
  display: inline-block; margin-top: 30px; padding: 15px 30px; border-radius: 50px;
  background: var(--brand-gradient); color: #fff; font-size: 20px; text-align: center;
  transition: background .3s ease;
}
.cta-button:hover { background: linear-gradient(to right, #f27121, #e94057, #8a2387); color: #fff; }

/* Öppettider */
.hours { border-collapse: collapse; margin: 0 auto; font-size: 20px; color: var(--muted); }
.hours th { text-align: left; font-weight: 400; padding: 0 14px 0 0; }
.hours td { font-weight: 700; text-align: left; padding: 0; }
.hours .closed { color: #f00; }
.hours .lunch th { padding-top: 20px; font-weight: 700; }
.hours .lunch td { padding-top: 20px; color: #0033ff; }

/* Bildspel (ersätter Bootstrap-karusellen) */
.carousel { position: relative; overflow: hidden; margin: 50px auto; max-width: 100%; }
.carousel-track { display: flex; transition: transform .6s ease; }
.carousel-track > *, .carousel-track img { flex: 0 0 100%; min-width: 0; margin: 0; }
.carousel-track img { display: block; width: 100%; height: auto; }
.carousel-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none;
}
.carousel-dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid #fff; background: transparent;
}
.carousel-dots button[aria-current="true"] { background: #fff; }

/* Rutor med pris, frågor och paket (Batterier, Digitalisering) */
.faq-section {
  margin: 40px auto; padding: 30px; border-radius: 10px;
  background: #f9f9f9; box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
  color: var(--muted); font-size: 18px; line-height: 1.6;
}
.faq-section h3 { font-size: 26px; color: #000; margin: 30px 0 20px; }
.faq-section dt { font-weight: 700; color: #333; }
.faq-section dd { margin: 0 0 1.6em; }
.faq-section .small-print { font-size: 14px; font-weight: 700; }
.pricing, .business-package {
  width: 90%; margin: 50px auto; padding: 40px; border-radius: 12px;
  background: #f9f9f9; box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
}
.pricing h2, .business-package h2 { font-size: 32px; color: #333; margin: 0 0 20px; text-align: center; }
.pricing p, .business-package p { font-size: 18px; color: var(--muted); text-align: center; margin: 0 0 30px; }
.pricing-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 18px; }
.pricing-table th { background: #8a2387; color: #fff; font-size: 20px; padding: 15px 20px; text-align: left; }
.pricing-table td { background: #fff; padding: 20px; border-bottom: 1px solid #ddd; }
.pricing-table tbody tr:hover td { background: #f1f1f1; }
.package {
  background: #fff; padding: 25px; border-radius: 10px; margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05); text-align: center;
}
.package h3 { font-size: 24px; color: #8a2387; margin: 0 0 10px; }
.package p { margin-bottom: 0; }

/* Modellistor på servicesidorna (iPhone, iPad, Samsung, Sony, Huawei) */
.choose-model { margin: 0; padding: 18px 75px; font-size: 16px; font-weight: 700; }
.models { display: grid; grid-template-columns: repeat(3, 1fr); }
.model { padding: 18px 10px 18px 85px; }
.model:nth-child(6n+1), .model:nth-child(6n+2), .model:nth-child(6n+3) { background: var(--grey-bg); }
.model h3 { font-family: var(--font); font-size: 18px; margin: 0; scroll-margin-top: 10px; }
.model ul { list-style: none; margin: 0; padding: 0; line-height: 1.07; }
.not-found { text-align: center; padding: 20px 20px 40px; }
.not-found h2 { font-size: 24px; }

/* ---------- Mobil och surfplatta ---------- */
@media (max-width: 1100px) {
  .page { padding: 0; background: #fff; }
  .site-header { border-top-width: 10px; }
  .header-bar { flex-wrap: wrap; align-items: center; }
  .logo img { width: auto; height: 60px; margin: 6px 10px; }
  .header-actions { margin: 8px 12px; gap: 12px; }
  .header-phone { display: inline; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: flex; flex-wrap: wrap; }
  .main-nav > ul { display: none; flex-direction: column; width: 100%; }
  .main-nav.open > ul { display: flex; }
  .main-nav a, .main-nav .dropbtn { text-align: left; width: 100%; font-size: 17px; }
  .dropdown-content { position: static; box-shadow: none; }
  .dropdown:hover > .dropdown-content { display: none; }
  .dropdown.open > .dropdown-content { display: block; }

  .prose, .prose--narrow { padding: 0 16px; }
  .models { grid-template-columns: repeat(2, 1fr); }
  .model { padding: 16px; }
  .model:nth-child(n) { background: none; }
  .model:nth-child(4n+1), .model:nth-child(4n+2) { background: var(--grey-bg); }
  .choose-model { padding: 16px; }
  .pricing, .business-package { width: auto; margin: 30px 0; padding: 20px; }
  .faq-section { padding: 20px; }
}
@media (max-width: 600px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .logo img { height: 48px; }
  .track-btn { height: 40px; font-size: 15px; padding: 4px 16px 4px 12px; gap: 6px; }
  .track-btn::before { width: 17px; height: 17px; }
  .models { grid-template-columns: 1fr; }
  .model:nth-child(n) { background: none; }
  .model:nth-child(odd) { background: var(--grey-bg); }
  .pricing-table th, .pricing-table td { padding: 10px; font-size: 16px; }
  .polaroid { border-radius: 60px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

/* =================================================================
   Sidspecifikt
   ================================================================= */

/* ---------- Startsidan ---------- */
.hero-video { display: block; width: 100%; height: auto; aspect-ratio: 1350 / 306; object-fit: fill; }
.features { display: grid; grid-template-columns: 412fr 577fr 361fr; text-align: center; }
.features img { width: 160px; height: 181px; }
.features h2 { font-size: 30px; }
.feature-video { display: block; width: 800px; max-width: 100%; height: auto; margin: 0 auto; }
.parallax {
  background: url(../bilder/KES.jpg) center / cover no-repeat fixed;
  background-image: image-set(url(../img/KES.webp) type("image/webp"), url(../bilder/KES.jpg) type("image/jpeg"));
}
.intro-cols { display: grid; grid-template-columns: 412fr 577fr 361fr; text-align: center; padding-bottom: 10px; }
.intro-cols p { margin: 16px 29px; font-size: 20px; font-weight: 700; color: #fff; line-height: 1.2; }
.partners-title { text-align: center; color: #fff; font-size: 30px; margin: 20px 0; }
.partners { display: grid; grid-template-columns: 412fr 577fr 361fr; padding: 0 0 30px; }
.partners .card:nth-child(2) { grid-column: 3; }
/* Trenob IT: bred ordlogga, i mittkolumnen och i ett bredare kort så att texten går att läsa */
.partners .card-trenob { grid-column: 2; grid-row: 1; width: 220px; padding: 0 30px; display: flex; align-items: center; }
.card-trenob img { height: auto; border-radius: 0; }
.card {
  width: 150px; height: 150px; margin: 30px auto; padding: 0 20px; border-radius: 40px;
  background: #f0f1e5; opacity: .85; cursor: pointer; transition: .4s;
  box-shadow: 5px 5px 30px 7px rgb(0 0 0 / 99%), -5px -5px 30px 7px rgb(48 47 2);
}
.card img { width: 100%; height: 100%; object-fit: contain; border-radius: 40px; }
.card:hover {
  transform: scale(.9);
  box-shadow: 5px 5px 30px 15px rgba(0, 0, 0, .25), -5px -5px 30px 15px rgba(0, 0, 0, .22);
}
.brands { text-align: center; padding: 1px 10px 40px; }
.brands h2 { font-size: 34px; margin-top: 80px; color: #fff; }
.brands img { background: #fff; opacity: .7; border-radius: 60px; width: 580px; }
.visit { display: grid; grid-template-columns: 910fr 440fr; align-items: start; }
.parallax-circle { width: 769px; max-width: 100%; aspect-ratio: 769 / 600; border-radius: 50%; }
.visit-hours { text-align: center; }
.visit-hours h2 { font-size: 34px; margin-top: 100px; }
.visit-hours .welcome { font-family: var(--font-bold); font-size: 38px; margin: 40px 0; }
@media (max-width: 1100px) {
  .features, .intro-cols { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .partners .card:nth-child(2) { grid-column: 1; }
  .partners .card-trenob { grid-column: 1; grid-row: auto; }
  .visit { grid-template-columns: 1fr; }
  .parallax-circle { display: none; }
  .visit-hours h2 { margin-top: 30px; }
}
/* Fast bakgrund fungerar dåligt på mobiler (iOS stöder det inte) */
@media (max-width: 1100px), (hover: none) {
  .parallax { background-attachment: scroll; }
}

/* ---------- Om oss ---------- */
.about-photo { width: 400px; border-radius: 50%; display: block; margin: 10px auto 30px 300px; }
.about-video { display: block; width: 800px; max-width: 100%; height: auto; }
@media (max-width: 1100px) {
  .about-photo { margin: 0 auto 20px; width: 300px; }
  .about-video { margin: 0 auto; }
}

/* ---------- PCB ---------- */
.pcb-layout { display: grid; grid-template-columns: 624fr 450fr; gap: 0 60px; padding: 0 60px 40px 50px; align-items: start; }
.pcb-layout .carousel { margin: 0; border-radius: 10px 150px; }
@media (max-width: 1100px) {
  .pcb-layout { grid-template-columns: 1fr; padding: 0 16px 30px; }
}

/* ---------- Spelkonsoler / Batterier ---------- */
.carousel--console { width: 560px; border-radius: 10px 150px; }
.carousel--console .carousel-track img { height: 304px; object-fit: cover; }
.carousel--battery { width: 480px; border-radius: 10px; }
.carousel--battery .carousel-track img { height: 304px; object-fit: cover; }

/* ---------- Digitalisering ---------- */
.subtitle { color: var(--muted); font-size: 20px; text-align: center; margin-top: -10px; }
.media-icon-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin: 30px 0; padding: 0; list-style: none; }
.media-icon-box {
  min-width: 140px; padding: 20px 30px; border-radius: 12px; border-top: 4px solid #8a2387;
  background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  font-family: var(--font-bold); font-size: 16px; color: #333; text-align: center;
}
.media-icon-box .icon { display: block; font-size: 40px; margin-bottom: 10px; }

/* ---------- Utbildning ---------- */
.course { display: grid; grid-template-columns: 1fr 415px; }
.course-text { padding: 0 30px 0 50px; }
.course-prices { background: var(--grey-bg); padding: 20px 20px 10px 50px; font-weight: 700; }
.course-prices p { margin: 0 0 18px; }
.course-note { text-align: right; color: var(--muted); font-style: italic; padding: 0 30px; }
.course-apply { text-align: center; padding: 0 20px 20px; }
@media (max-width: 1100px) {
  .course { grid-template-columns: 1fr; }
  .course-text, .course-prices { padding: 0 16px 10px; }
  .course-prices { padding-top: 16px; }
  .course-note { text-align: left; padding: 0 16px; }
}

/* ---------- Skicka in ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 0 10px; margin: 0; list-style: none; }
.steps img { width: 277px; height: 180px; }
.steps h2 { font-size: 24px; }
.send-in { display: grid; grid-template-columns: 1fr 1fr; align-items: start; padding: 0 0 40px 75px; gap: 20px; }
.send-in .big { font-size: 48px; color: #42c223; margin: 0; }
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; }
  .send-in { grid-template-columns: 1fr; padding: 0 16px 30px; }
  .send-in .big { font-size: 36px; order: -1; }
}

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: auto 1fr auto; gap: 0 20px; padding: 20px 20px 0 0; align-items: start; }
.contact iframe { width: 555px; height: 380px; border: 0; border-radius: 10%; margin: 0 0 50px; display: block; }
.contact h3 { margin-top: 18px; }
.contact p { color: var(--muted); }
.contact address { font-style: normal; }
.contact .hours { font-size: 18px; margin: 0; }
.contact .hours td { font-family: var(--font-bold); }
@media (max-width: 1100px) {
  .contact { grid-template-columns: 1fr; padding: 16px; }
  .contact iframe { width: 100%; border-radius: 20px; }
}

/* ---------- Spåra ärende (track.php) ---------- */
.track { display: grid; grid-template-columns: 620px 1fr; gap: 40px; padding: 20px 40px 70px 200px; align-items: start; }
.track-form { border-top: 3px solid #000; }
.track-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.track-row input {
  width: 260px; height: 34px; padding: 4px 14px; border: 1px solid #ccc; border-radius: 20px;
  font-family: var(--font); font-size: 16px;
}
.track-row button {
  height: 34px; padding: 2px 20px; border: 0; border-radius: 50px; cursor: pointer;
  background: var(--nav-gradient); color: #fff; font-family: var(--font); font-weight: 700; font-size: 16px;
}
.track-photo { width: 100%; max-width: 420px; border-radius: 10px 50px; margin-top: 20px; }
@media (max-width: 1100px) {
  .track { grid-template-columns: 1fr; padding: 16px 16px 40px; }
  .track-row input { flex: 1 1 200px; }
}
