:root {
  --bg: #ffffff;
  --bg-tint: #f7f7f5;
  --fg: #1a1a1a;
  --fg-muted: #5c5c5c;
  --border: #e6e6e3;
  --accent: #337ab7;
  --accent-dark: #286090;
  --accent-contrast: #ffffff;
  --font-head: 'Sora', sans-serif;
  --font-body: 'Figtree', sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--fg);
  background-color: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Header & Navigation */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.topnav a {
  margin-left: 1.75rem;
  font-weight: 600;
  color: var(--fg);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.topnav a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  background-color: var(--bg);
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.mark {
  color: var(--accent);
}

.lead {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.arrow-link {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background-color: var(--accent);
  color: var(--accent-contrast);
  border-radius: 999px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.arrow-link:hover {
  background-color: var(--accent-dark);
}

/* Clients / kvalitet-rad */
.clients {
  padding: 1.75rem 2rem;
  text-align: center;
  background-color: var(--bg-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.clients-row {
  max-width: 720px;
  margin: 0 auto;
  color: var(--fg-muted);
}

/* Generic section wrapper */
.section {
  padding: 4rem 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-tinted {
  background-color: var(--bg-tint);
  max-width: none;
}

.section-tinted > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: 1.9rem;
}

.section-head p {
  color: var(--fg-muted);
}

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

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.service {
  padding: 1.75rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.service h3 {
  color: var(--accent);
  font-size: 1.2rem;
}

.service p {
  color: var(--fg-muted);
}

.service ul {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
  color: var(--fg-muted);
}

.service li {
  margin-bottom: 0.3rem;
}

/* Work / referenser */
.work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Enskilda tumnaglar delar .thumb-basstilen; klasserna finns kvar
   som krokar ifall respektive kort ska särskiljas visuellt senare. */
.thumb-1,
.thumb-2,
.thumb-3,
.thumb-4 {
  object-position: center;
}

.work-card:hover .thumb {
  transform: scale(1.05);
}

.work-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
}

.work-meta h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.work-meta p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Quote */
.quote {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  font-size: 1.4rem;
  font-family: var(--font-head);
  font-style: normal;
  color: var(--fg);
  margin-bottom: 1rem;
}

.quote footer {
  color: var(--fg-muted);
  font-weight: 600;
}

/* Contact */
.contact {
  text-align: center;
}

.contact-map {
  max-width: 700px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}

.contact-map iframe {
  display: block;
  width: 100%;
  border: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-mail {
  font-size: 1.5rem;
  font-family: var(--font-head);
  display: inline-block;
  margin: 0.25rem auto 1rem;
  color: var(--fg);
}

.contact-mail:hover {
  color: var(--accent);
}

.contact-sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--fg-muted);
}

/* Footer */
.footer {
  padding: 2rem;
  background-color: var(--fg);
  color: #fff;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer-small {
  font-size: 0.85rem;
  margin-top: 0.75rem !important;
  color: rgba(255,255,255,0.7);
}

/* Livechatt-widget */
.chat-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  font-family: var(--font-body);
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.chat-toggle:hover {
  transform: scale(1.05);
  background-color: var(--accent-dark);
}

.chat-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 320px;
  max-width: calc(100vw - 2.5rem);
  height: 420px;
  max-height: calc(100vh - 8rem);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-widget.chat-open .chat-panel {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.95rem;
}

.chat-close {
  border: 0;
  background: transparent;
  color: var(--accent-contrast);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  background-color: var(--bg-tint);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-bubble {
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-size: 0.88rem;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-bubble-in {
  align-self: flex-start;
  background-color: #fff;
  border: 1px solid var(--border);
  color: var(--fg);
}

.chat-bubble-out {
  align-self: flex-end;
  background-color: var(--accent);
  color: var(--accent-contrast);
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
}

.chat-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: var(--font-body);
}

.chat-send {
  border: 0;
  background-color: var(--accent);
  color: var(--accent-contrast);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.chat-send:hover {
  background-color: var(--accent-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .topnav a {
    margin: 0 0.6rem;
  }

  .hero {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .chat-panel {
    width: calc(100vw - 2.5rem);
  }
}
