:root {
  color-scheme: light;
  --navy-950: #071a38;
  --navy-900: #0b2854;
  --navy-800: #123b72;
  --blue-600: #35628f;
  --blue-100: #e9f0f7;
  --blue-50: #f4f8fb;
  --ink: #172235;
  --muted: #5f6d80;
  --line: #dbe4ed;
  --surface: #ffffff;
  --canvas: #f8fafc;
  --warm: #f6f4ef;
  --danger: #9c2f2f;
  --shadow-sm: 0 10px 28px rgba(7, 26, 56, 0.08);
  --shadow-lg: 0 24px 70px rgba(7, 26, 56, 0.13);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  background: var(--canvas);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 10% 4%, rgba(53, 98, 143, 0.1), transparent 30rem),
    linear-gradient(180deg, #fff 0, var(--canvas) 38rem);
  content: "";
  pointer-events: none;
}

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

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

a:hover {
  color: var(--blue-600);
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(53, 98, 143, 0.45);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(219, 228, 237, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header.is-hidden {
  transform: translateY(-110%);
}

.header.is-scrolled {
  box-shadow: 0 8px 24px rgba(7, 26, 56, 0.08);
}

.header > .container {
  width: min(100%, var(--container));
}

.menu {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
}

.logotyp {
  width: 260px;
  height: 74px;
  object-fit: contain;
  object-position: left center;
}

.ulMenu {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 5px;
  list-style: none;
}

.ulMenu a {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 11px;
  align-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}

.ulMenu li:last-child a {
  padding-inline: 19px;
  background: var(--navy-900);
  color: #fff;
}

.ulMenu a:hover {
  background: var(--blue-100);
  color: var(--navy-900);
}

.ulMenu li:last-child a:hover {
  background: var(--navy-800);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
  font-size: 1.4rem;
}

.parents {
  display: flex;
  flex-direction: column;
}

.Home {
  display: grid;
  min-height: 650px;
  padding-block: 90px 80px;
  align-items: center;
  gap: 68px;
  grid-template-columns: 1.05fr 0.95fr;
  order: 1;
}

.Home .title {
  max-width: 680px;
}

.Home h1,
.blog-page-hero h1,
.blog-article-head h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.Home h2 {
  margin: 24px 0 14px;
  color: var(--blue-600);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.Home p {
  max-width: 62ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.Home > .img {
  position: relative;
}

.Home > .img::before {
  position: absolute;
  inset: 9% -7% -8% 8%;
  border-radius: 45% 55% 47% 53% / 42% 42% 58% 58%;
  background: linear-gradient(145deg, var(--blue-100), #dce7f0);
  content: "";
}

.Home > .img img {
  position: relative;
  width: 100%;
  max-height: 570px;
  border-radius: 48% 52% 42% 58% / 48% 42% 58% 52%;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.bContact,
.btn-download-cv,
.blog-read-link {
  display: inline-flex;
  min-height: 50px;
  margin: 5px 8px 5px 0;
  padding: 12px 22px;
  align-items: center;
  gap: 9px;
  justify-content: center;
  border: 1px solid var(--navy-900);
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bContact:hover,
.btn-download-cv:hover,
.blog-read-link:hover {
  background: var(--navy-800);
  box-shadow: 0 10px 24px rgba(11, 40, 84, 0.18);
  color: #fff;
  transform: translateY(-2px);
}

.Home .bContact + .bContact {
  border-color: var(--line);
  background: #fff;
  color: var(--navy-900);
}

.parents-container,
.Services {
  padding-block: 88px;
}

#services {
  order: 2;
}

#about {
  order: 3;
}

#portfolio {
  order: 4;
}

#Experience {
  order: 5;
}

#references {
  order: 6;
}

#booking,
#booking-blog {
  order: 7;
}

#contact {
  order: 8;
}

.special-title {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.special-title h2,
.footer h2,
.blog-related h2 {
  margin: 0 0 15px;
  color: var(--navy-950);
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.special-title p {
  margin: 0 auto;
  color: var(--muted);
}

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

.card,
.item {
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card > i,
.references .card > i {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--navy-800);
  font-size: 1.25rem;
}

.card h3,
.item h3 {
  margin: 0 0 12px;
  color: var(--navy-950);
  font-size: 1.3rem;
  line-height: 1.25;
}

.card p,
.item p {
  margin: 0 0 12px;
  color: var(--muted);
}

.about {
  width: min(calc(100% - 40px), var(--container));
}

.about-content {
  max-width: 950px;
  margin: 0 auto;
}

.about-content .card {
  display: grid;
  padding: 0;
  align-items: center;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.about-content .card > .img {
  height: 100%;
  min-height: 540px;
  grid-row: 1 / span 5;
}

.about-content .card > .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .card > h3,
.about-content .card > span,
.about-content .card > p,
.about-content .card > .link {
  margin-right: 38px;
  margin-left: 38px;
}

.about-content .card > h3 {
  margin-top: 36px;
  margin-bottom: 2px;
  font-size: 1.8rem;
}

.about-content .card > span {
  color: var(--blue-600);
  font-weight: 700;
}

.about-content .bio {
  margin-top: 20px;
}

.about-content .link {
  margin-bottom: 34px;
}

#portfolio {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--container)) / 2));
  background: var(--navy-950);
}

#portfolio .special-title h2,
#portfolio .item h3 {
  color: #fff;
}

#portfolio .flex {
  align-items: stretch;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
}

#portfolio .item {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

#portfolio .item p {
  color: #d4deea;
}

#portfolio .price {
  background: #fff;
}

#portfolio .price h3 {
  color: var(--navy-950);
}

.price-list {
  margin: 8px 0 24px;
}

.price-row {
  display: flex;
  padding: 13px 0;
  align-items: baseline;
  gap: 16px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.price-row span {
  color: var(--ink);
}

.price-row strong {
  flex: 0 0 auto;
  color: var(--navy-900);
  font-size: 1.06rem;
}

#portfolio .obs {
  margin-top: 34px;
  margin-bottom: 0;
}

#portfolio .obs p {
  color: #d4deea;
  font-size: 0.9rem;
}

.Experience .flex {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.Experience .card h3 {
  color: var(--blue-600);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.Experience .card span {
  display: inline-block;
  margin: 2px 0;
  color: var(--blue-600);
  font-size: 0.83rem;
  font-weight: 700;
}

.Experience .card h4 {
  margin: 8px 0 12px;
  color: var(--navy-950);
  font-size: 1.15rem;
}

.references {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - var(--container)) / 2));
  background: var(--warm);
}

.references .flex {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#booking .special-title {
  max-width: 900px;
  padding: 54px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  box-shadow: var(--shadow-lg);
}

#booking h2,
#booking p {
  color: #fff;
}

#booking .bContact {
  border-color: #fff;
  background: #fff;
  color: var(--navy-900);
}

.contact .flex {
  align-items: start;
  grid-template-columns: 0.8fr 1.2fr;
}

.contact .special-title {
  margin: 0;
  text-align: left;
}

form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 16px;
}

input,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #cbd6e1;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

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

input:focus,
textarea:focus {
  border-color: var(--blue-600);
  outline: 3px solid rgba(53, 98, 143, 0.14);
}

.error-message {
  display: none;
  padding: 5px 2px 0;
  color: var(--danger);
  font-size: 0.88rem;
}

.error-message.visible {
  display: block;
}

.obs {
  color: var(--danger);
}

.footer {
  width: 100%;
  max-width: none;
  padding: 70px max(20px, calc((100% - var(--container)) / 2));
  background: #edf2f7;
}

.footer > .container {
  width: 100%;
}

.footer .content {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer .content > div {
  display: flex;
  min-height: 150px;
  padding: 24px;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.footer .content i {
  margin-top: 4px;
  color: var(--blue-600);
}

.footer .social-media {
  min-height: auto;
  grid-column: 1 / -1;
  justify-content: center;
}

.footer-logo {
  display: flex;
  margin-top: 44px;
  justify-content: center;
}

.footer-logo .logotyp {
  width: min(460px, 82vw);
  height: auto;
}

.made {
  padding: 19px 20px;
  background: var(--navy-950);
  color: #cbd6e1;
  text-align: center;
}

.made-line {
  margin: 0;
  font-size: 0.86rem;
}

.made-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px 3px;
  border-radius: 50%;
  background: var(--blue-600);
}

.made a {
  color: #fff;
}

.blog-index-view,
.blog-article-view {
  padding-block: 80px;
}

.blog-page-hero {
  max-width: 800px;
  margin-bottom: 56px;
}

.blog-eyebrow,
.blog-meta-date {
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-page-intro {
  color: var(--muted);
  font-size: 1.1rem;
}

.blog-featured {
  display: grid;
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  grid-template-columns: 1.15fr 0.85fr;
}

.blog-featured-media img,
.blog-article-cover {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.blog-featured-body,
.blog-article-head,
.blog-article-content {
  padding: 40px;
}

.blog-featured h2 {
  color: var(--navy-950);
  font-size: 2rem;
}

.blog-row,
.blog-related-item {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.blog-row h2,
.blog-related-item h3 {
  margin: 0 0 8px;
}

.blog-article-shell {
  max-width: 900px;
  margin: auto;
}

.blog-article {
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.blog-article-content {
  padding-top: 0;
  color: var(--muted);
}

.blog-back-link {
  font-weight: 700;
}

.blog-image-fallback {
  min-height: 300px;
  background: linear-gradient(135deg, var(--blue-100), #d6e1eb);
}

.blog-empty-state {
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    order: 3;
  }

  .ulMenu {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-lg);
  }

  .ulMenu.active {
    display: grid;
  }

  .ulMenu a {
    width: 100%;
    padding: 12px 15px;
  }

  .Experience .flex,
  .footer .content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .Home {
    min-height: auto;
    padding-block: 64px;
    gap: 46px;
    grid-template-columns: 1fr;
  }

  .Home > .img {
    max-width: 620px;
  }

  .cards,
  .flex,
  #portfolio .flex,
  .contact .flex {
    grid-template-columns: 1fr;
  }

  .about-content .card {
    grid-template-columns: 1fr;
  }

  .about-content .card > .img {
    min-height: 430px;
    grid-row: auto;
  }

  .about-content .card > h3,
  .about-content .card > span,
  .about-content .card > p,
  .about-content .card > .link {
    margin-right: 28px;
    margin-left: 28px;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .menu {
    min-height: 76px;
  }

  .logotyp {
    width: 210px;
    height: 62px;
  }

  .Home h1 {
    font-size: clamp(2.5rem, 13vw, 3.65rem);
  }

  .parents-container,
  .Services {
    padding-block: 64px;
  }

  .card,
  .item,
  form {
    padding: 24px;
  }

  .Experience .flex,
  .references .flex,
  .footer .content {
    grid-template-columns: 1fr;
  }

  #booking .special-title {
    padding: 34px 22px;
  }

  .price-row {
    gap: 10px;
  }

  .price-row span {
    font-size: 0.92rem;
  }

  .footer .content > div {
    min-height: auto;
  }

  .blog-featured-body,
  .blog-article-head,
  .blog-article-content {
    padding: 26px;
  }
}

/* Professionell scroll-reveal: låg rörelse, kort varaktighet och endast med JS. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
