/* ============================================================
   TT Service Solution — delat designsystem
   Grön, varm, lokal & personlig. Bricolage Grotesque + Source Sans 3.
   ============================================================ */

:root {
  --brand: #3FA535;
  --brand-dark: #0E6B36;
  --pine: #0B3D22;
  --pine-deep: #082E1A;
  --cream: #FAF8F3;
  --cream-2: #F3F0E8;
  --white: #FFFFFF;
  --ink: #1E2B22;
  --ink-soft: #4A5A4F;
  --line: #E4E1D7;
  --brand-tint: #EAF4E6;
  --radius: 18px;
  --radius-lg: 28px;
  --font-head: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", sans-serif;
  --shadow-sm: 0 1px 2px rgba(20, 40, 25, 0.06), 0 2px 8px rgba(20, 40, 25, 0.05);
  --shadow-md: 0 2px 6px rgba(20, 40, 25, 0.07), 0 12px 32px rgba(20, 40, 25, 0.10);
  --section-pad: clamp(64px, 9vw, 112px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 0.5em 0;
  color: var(--ink);
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: clamp(38px, 5.2vw, 64px); letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.015em; }
h3 { font-size: clamp(21px, 2vw, 24px); }
p { margin: 0 0 1em 0; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(30, 43, 34, 0.25); }
.btn-outline:hover { border-color: var(--brand-dark); color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--pine); }
.btn-light:hover { background: var(--brand-tint); }
.btn-lg { padding: 17px 34px; font-size: 18px; }

/* ---------- Etiketter ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-dark);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.on-dark .eyebrow { color: #9FD894; }
.on-dark .eyebrow::before { background: #9FD894; }

.lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink-soft); }

/* ---------- Tre-prick-motiv (ekar loggan) ---------- */
.dot-trio { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-tint); flex: none; }
.dot-trio svg { display: block; }

/* ---------- Topbar ---------- */
.topbar { background: var(--pine); color: #DCEAD6; font-size: 15px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar .muted { white-space: nowrap; }
.topbar a:hover { color: #9FD894; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar .muted { color: #9DBCA4; }

/* ---------- Header / nav ---------- */
.navbar { position: sticky; top: 0; z-index: 60; background: rgba(250, 248, 243, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 98px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 16.5px;
  color: var(--ink); text-decoration: none; padding: 10px 16px; border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.main-nav a.active { background: var(--brand-tint); color: var(--brand-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-family: var(--font-head); font-weight: 600; color: var(--ink); text-decoration: none; font-size: 16.5px; white-space: nowrap; }
.nav-phone:hover { color: var(--brand-dark); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  padding: 10px; cursor: pointer; border-radius: 10px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Sektioner ---------- */
.section { padding: var(--section-pad) 0; }
.section-tight { padding: calc(var(--section-pad) * 0.6) 0; }
.section-white { background: var(--white); }
.section-cream2 { background: var(--cream-2); }
.section-pine { background: var(--pine); color: #E8F1E4; }
.section-pine h2, .section-pine h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Kort ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}

/* ---------- Tjänstekort ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBE3C2; }
.service-card h3 { margin: 0; }
.service-card p { color: var(--ink-soft); font-size: 16.5px; margin: 0; }
.service-card .more { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--brand-dark); display: inline-flex; align-items: center; gap: 6px; }
.service-card:hover .more { text-decoration: underline; }

/* ---------- Citat ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 22px; }
.quote-card blockquote { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 20px; line-height: 1.45; color: #fff; }
.quote-person { display: flex; align-items: center; gap: 14px; }
.quote-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; }
.quote-person .name { font-weight: 700; color: #fff; font-size: 16px; }
.quote-person .role { color: #A7C7AB; font-size: 15px; }

/* ---------- Award-rad ---------- */
.award-row { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.award-row img { height: 86px; width: auto; object-fit: contain; }
.award-row img.tall { height: 104px; }

/* ---------- Logo-rad (partners) ---------- */
.logo-row { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.logo-row img { height: 64px; width: auto; object-fit: contain; filter: grayscale(1) opacity(0.65); transition: filter 0.2s ease; }
.logo-row img:hover { filter: none; }

/* ---------- Formulär ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field textarea, .field select {
  font-family: var(--font-body); font-size: 17px; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream);
  transition: border-color 0.15s ease, background 0.15s ease; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.segmented { display: flex; gap: 8px; }
.segmented label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; background: var(--cream);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.segmented input { accent-color: var(--brand-dark); margin: 0; }
.segmented label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; color: var(--ink-soft); }
.check-line input { accent-color: var(--brand-dark); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form-success { display: none; text-align: center; padding: 40px 12px; }
.form-success .dot-trio { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px auto; }
form.sent .form-success { display: block; }
form.sent .form-body { display: none; }
.form-paused { margin: 0 0 14px 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; }
.form-paused a { color: var(--brand-dark); font-weight: 700; }
.form-card button[disabled], .form-card input[disabled] { cursor: not-allowed; opacity: 0.72; }
.form-note { margin: 0 0 14px 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; }
.form-note a { color: var(--brand-dark); font-weight: 700; }
.form-status { margin-top: 12px; font-size: 15.5px; color: var(--brand-dark); }
.form-status.error { color: #9B1C1C; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Checklistor ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 17.5px; }
.check-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-tint);
  display: inline-grid; place-items: center; margin-top: 3px;
  color: var(--brand-dark); font-weight: 700; font-size: 13px; font-family: var(--font-head);
}
.on-dark .check-list .tick { background: rgba(255, 255, 255, 0.14); color: #9FD894; }

/* ---------- Chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 9px 18px;
}
.chip.green { background: var(--brand-tint); border-color: #CBE3C2; color: var(--brand-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--pine); color: #C9DCC6; }
.footer a { color: #E8F1E4; text-decoration: none; }
.footer a:hover { color: #9FD894; text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding: 64px 0 48px 0; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16.5px; }
.footer .brand-chip { background: #fff; border-radius: 16px; padding: 12px; display: inline-block; margin-bottom: 16px; }
.footer .brand-chip img { height: 64px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; color: #9DBCA4; }
.footer-bottom .soc { display: flex; gap: 18px; }
.footer-certs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 22px 0; font-size: 14.5px; color: #A7C7AB; }
.footer-certs .lbl { margin-right: 6px; }
.footer-certs .cert { background: #fff; border-radius: 10px; padding: 7px 12px; display: inline-flex; align-items: center; }
.footer-certs .cert img { height: 24px; width: auto; display: block; }
.footer-certs .cert.hrf img { height: 38px; }

/* ---------- Sido-hero (undersidor) ---------- */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0; }
.page-hero .lead { max-width: 680px; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ---------- Responsivt ---------- */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1120px) {
  .nav-phone { display: none; }
}
@media (max-width: 1000px) {
  .topbar-inner { justify-content: center; }
  .topbar .hide-m { display: none; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px 20px; box-shadow: var(--shadow-md);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 16px; font-size: 18px; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .btn { max-width: 100%; white-space: normal; text-align: center; }
  .service-grid { grid-template-columns: 1fr; }
  .form-card { max-width: 100%; min-width: 0; padding: 24px 18px; overflow: hidden; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid > *, .field, .field label, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select, .check-line { min-width: 0; max-width: 100%; }
  .form-paused, .form-paused a { overflow-wrap: anywhere; }
  .footer-main { grid-template-columns: 1fr; }
  .brand img { height: 70px; }
  .nav-actions .btn { padding: 11px 18px; font-size: 15px; }
  .award-row img { height: 64px; }
  .award-row img.tall { height: 80px; }
}


/* Customer preview: static Instagram tiles (no Claude edit controls) */
.ig-card { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--cream-2); box-shadow: var(--shadow-sm); }
.ig-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.ig-card:hover img { transform: scale(1.04); }
