:root {
  --bg-color: #f8f7f4;
  --card-bg: #ffffff;
  --text-color: #0a0a0a;
  --muted-color: rgba(10, 10, 10, 0.68);
  --border-color: rgba(10, 10, 10, 0.12);
  --accent-color: #63375b;
  --focus-color: rgba(99, 55, 91, 0.35);
  --font-main: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Urbanist", "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --desktop-max-width: 840px;
  --transition-smooth: 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  --max-width: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 10, 10, 0.08);
}

/* Local Fonts (matchar marketing-sajten) */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Rubrikfont (Urbanist Black) */
@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/urbanist-latin-ext-900.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/urbanist-latin-900.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.quote-page {
  padding-top: 22px;
}

.quote-hero-site {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.quote-hero-overlay-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 140px);
  pointer-events: none;
  z-index: 2;
}

.quote-hero-logo {
  position: absolute;
  top: 34px;
  left: 40px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
}

.quote-hero-logo img {
  height: 22px;
  width: auto;
  display: block;
}

.quote-hero-status {
  position: absolute;
  top: 34px;
  right: 40px;
  z-index: 3;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.quote-hero-center {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.quote-hero-title {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(34px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 2px 4px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(30px);
  animation: hero-fade-in 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  animation-delay: 0.8s;
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .quote-hero-logo {
    top: max(20px, env(safe-area-inset-top, 0px));
    left: 20px;
  }
  .quote-hero-logo img {
    height: 14px;
  }
  .quote-hero-status {
    top: max(20px, env(safe-area-inset-top, 0px));
    right: 20px;
    padding: 9px 10px;
  }
}

.quote-meta {
  max-width: var(--desktop-max-width);
  margin: 0 auto;
  padding: 18px 20px 8px 20px;
}

.quote-meta-project {
  margin: 0;
  font-size: clamp(20px, 3vw, 36px);
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-color);
}

.quote-meta-date {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--transition-smooth), transform 1.1s var(--transition-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand h1 {
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}

.admin .brand h1 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.admin .h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 22px;
}

.admin .badge {
  font-size: 11px;
}

.admin p {
  font-weight: 300;
}

.dialog {
  border: none;
  padding: 0;
  background: transparent;
}

.dialog::backdrop {
  background: rgba(10, 10, 10, 0.45);
}

.dialog-card {
  width: min(560px, calc(100vw - 28px));
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: #fff;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(10, 10, 10, 0.22);
}

.dialog-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dialog-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 22px;
  line-height: 1.1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  color: var(--muted-color);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(10, 10, 10, 0.06);
}

.card-pad {
  padding: 16px;
}

.muted {
  color: var(--muted-color);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.admin .button,
.admin button.button {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.1;
  padding: 8px 12px;
}

.admin .table td {
  vertical-align: middle;
}

.admin .table td .button {
  font-size: 12px;
  padding: 6px 10px;
}

.admin .button.primary,
.admin button.button.primary {
  border-color: rgba(99, 55, 91, 0.25);
}

.button:hover,
button.button:hover {
  transform: translateY(-1px);
}

.button.primary,
button.button.primary {
  background: var(--accent-color);
  border-color: rgba(99, 55, 91, 0.35);
  color: #fff;
}

.button:focus,
button.button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  background: #fff;
  color: var(--text-color);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
  .grid.editor {
    grid-template-columns: 440px 1fr;
    align-items: start;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nowrap {
  white-space: nowrap;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.table th {
  font-size: 12px;
  color: var(--muted-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin .table th {
  text-transform: none;
  letter-spacing: -0.01em;
  color: rgba(10, 10, 10, 0.72);
}

@media (max-width: 720px) {
  .col-customer,
  .col-valid {
    display: none;
  }
}

.kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-color);
  margin: 0 0 6px 0;
}

.admin .kicker {
  text-transform: none;
  letter-spacing: -0.01em;
  color: rgba(10, 10, 10, 0.82);
  font-weight: 500;
}

.h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.row.end {
  justify-content: flex-end;
}

.row.between {
  justify-content: space-between;
}

.row > * {
  flex: 1;
}

.row.no-grow > * {
  flex: 0 0 auto;
}

.row .shrink {
  flex: 0 0 auto;
}

.mt-10 {
  margin-top: 10px;
}

.mt-6 {
  margin-top: 6px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

.mb-0 {
  margin-bottom: 0;
}

.spacer-10 {
  height: 10px;
}

.spacer-14 {
  height: 14px;
}

.spacer-16 {
  height: 16px;
}

.hr {
  height: 1px;
  background: var(--border-color);
  margin: 14px 0;
}

.notice {
  border: 1px solid rgba(99, 55, 91, 0.25);
  background: rgba(99, 55, 91, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  color: rgba(10, 10, 10, 0.82);
}

.editor-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.block-controls {
  flex: 0 0 auto;
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #fff;
}

.pill strong {
  font-weight: 650;
}

.quote-render {
  padding: 28px 20px;
  max-width: var(--desktop-max-width);
  margin: 0 auto;
}

.quote-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  min-height: 280px;
}

.quote-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quote-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
}

.quote-hero-content {
  position: relative;
  padding: 34px 22px;
  color: #fff;
  max-width: var(--desktop-max-width);
}

.quote-hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1;
  margin: 0 0 10px 0;
}

.quote-hero-project {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(18px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 8px 0;
  opacity: 0.98;
}

.quote-hero-date {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: none;
  opacity: 0.7;
}

.quote-render .kicker {
  margin-bottom: 10px;
}

.quote-render .quote-title {
  margin-top: 0;
}

.quote-render .notice {
  margin: 14px 0;
}

.quote-render .section {
  padding: 22px 0;
  border-bottom: none;
}

.quote-render .section:last-child {
  border-bottom: none;
}

.quote-render .cols {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .quote-render .cols.two {
    grid-template-columns: 1fr 1fr;
  }
}

.quote-title {
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.15;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 12px 0;
}

.block-title {
  font-size: 22px;
  line-height: 1.2;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--text-color);
  margin: 0 0 12px 0;
}

/* Inga linjer i offerten. Använd luft i stället. */
.quote-render .hr {
  display: none;
}

.quote-render p {
  margin: 0 0 12px 0;
  color: var(--text-color);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.quote-render ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.quote-render li {
  margin: 0 0 6px 0;
}

.quote-render .attachments a {
  display: inline-block;
  margin: 0 10px 8px 0;
}

.quote-render .video-embed {
  border-radius: 0;
  border: 0;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.quote-render .video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.quote-render .image-block {
  margin: 0;
  margin-left: auto;
  margin-right: auto;
}

.quote-render .image-block.w-1-4 {
  max-width: 25%;
}

.quote-render .image-block.w-1-3 {
  max-width: 33.333%;
}

.quote-render .image-block.w-1-2 {
  max-width: 50%;
}

.quote-render .image-block.w-2-3 {
  max-width: 66.666%;
}

.quote-render .image-block.w-1-1 {
  max-width: 100%;
}

.quote-render .image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  border: 0;
}

.quote-render .image-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted-color);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 720px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.media-item {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.media-item img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #f0efec;
}

.media-meta {
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(10, 10, 10, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

