/* Koadic public-site visual system. Keep page markup compatible with the existing templates. */
:root {
  --site-ink: #0d1b2a;
  --site-ink-soft: #24364b;
  --site-muted: #617189;
  --site-line: #dbe5f0;
  --site-surface: #ffffff;
  --site-canvas: #f3f7fb;
  --site-blue: #155eef;
  --site-blue-deep: #0b3b8f;
  --site-lime: #c5f56a;
  --site-shadow: 0 18px 50px rgba(13, 27, 42, .09);
  --site-shadow-soft: 0 8px 24px rgba(13, 27, 42, .07);
  --site-radius: 18px;
}

html {
  background: var(--site-canvas);
}

body {
  background:
    radial-gradient(circle at 84% 0%, rgba(21, 94, 239, .08), transparent 34rem),
    linear-gradient(180deg, var(--site-canvas) 0%, #fff 42rem);
  color: var(--site-ink-soft);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--site-ink);
  letter-spacing: -.035em;
}

.container {
  max-width: 1240px;
  padding-inline: 28px;
}

.nav {
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(219, 229, 240, .86);
  background: rgba(243, 247, 251, .88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  backdrop-filter: blur(18px);
}

.nav__inner {
  min-height: 76px;
  gap: 28px;
}

.nav__logo {
  color: var(--site-ink);
  font-size: 1.08rem;
  letter-spacing: -.025em;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--site-blue);
  box-shadow: 0 8px 18px rgba(21, 94, 239, .25);
}

.nav__logo-icon {
  display: block;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}

.nav__links {
  gap: 6px;
}

.nav__links a {
  border-radius: 9px;
  color: var(--site-muted);
  padding: 9px 12px;
  font-size: .88rem;
  font-weight: 600;
  transition: color .18s ease, background .18s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--site-ink);
  background: rgba(21, 94, 239, .08);
}

.nav__cta .btn--outline {
  border-color: var(--site-line);
  color: var(--site-ink-soft);
  background: var(--site-surface);
}

.nav__cta .btn--primary,
.nav__cta .btn--cta,
.btn--primary,
.btn--cta {
  background: var(--site-blue);
  box-shadow: 0 10px 24px rgba(21, 94, 239, .2);
}

.nav__cta .btn--primary:hover,
.nav__cta .btn--cta:hover,
.btn--primary:hover,
.btn--cta:hover {
  background: var(--site-blue-deep);
  box-shadow: 0 14px 28px rgba(21, 94, 239, .24);
}

.hero {
  min-height: 660px;
  display: grid;
  align-items: center;
  padding: 108px 0 92px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(243, 247, 251, .96) 0%, rgba(255, 255, 255, .78) 54%, rgba(226, 237, 255, .8) 100%);
}

.hero__bg {
  opacity: .55;
  background:
    radial-gradient(circle at 72% 34%, rgba(21, 94, 239, .22), transparent 22rem),
    radial-gradient(circle at 92% 76%, rgba(197, 245, 106, .2), transparent 14rem);
}

.hero__grid {
  opacity: .32;
  background-image: linear-gradient(rgba(21, 94, 239, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 94, 239, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, black, transparent 74%);
}

.hero__content {
  max-width: 760px;
}

.hero__pre-title,
.section-eyebrow {
  color: var(--site-blue-deep);
  background: rgba(21, 94, 239, .08);
  border: 1px solid rgba(21, 94, 239, .16);
  border-radius: 999px;
}

.hero__pre-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero__pre-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--site-lime);
  box-shadow: 0 0 0 4px rgba(197, 245, 106, .2);
}

.hero__title {
  max-width: 780px;
  margin-top: 0;
  font-size: clamp(2.7rem, 5.3vw, 5rem);
  line-height: 1.02;
  color: var(--site-ink);
}

.hero__title .text-gradient,
.text-gradient {
  background: none;
  color: var(--site-blue);
  -webkit-text-fill-color: currentColor;
}

.hero__subtitle {
  max-width: 610px;
  margin-top: 26px;
  color: var(--site-muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.site-answer {
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid var(--site-line);
}

.site-answer__inner {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
}

.site-answer h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.site-answer p {
  max-width: 720px;
  color: var(--site-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.site-answer__byline {
  margin-top: 18px;
  color: var(--site-blue-deep);
  font-size: .82rem;
  font-weight: 700;
}

.hero__actions {
  margin-top: 34px;
}

.section {
  padding: 112px 0;
}

.section--sm {
  padding: 76px 0;
}

.section--alt {
  border-block: 1px solid var(--site-line);
  background: rgba(255, 255, 255, .58);
}

.section-header {
  margin-bottom: 64px;
}

.section-header p,
.page-header p {
  color: var(--site-muted);
}

.card,
.browser-mockup,
.testimonial-card,
.feature-item,
.faq-item,
.legal-box,
.booking-grid > div > .card {
  border-color: var(--site-line);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow-soft);
}

.card,
.legal-box {
  background: var(--site-surface);
}

.feature-item {
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, .7);
}

.feature-item__icon {
  border-radius: 12px;
  background: rgba(21, 94, 239, .1);
  color: var(--site-blue);
}

.page-header {
  padding: 106px 0 78px;
  border-bottom: 1px solid var(--site-line);
  background:
    radial-gradient(circle at 78% 20%, rgba(21, 94, 239, .15), transparent 22rem),
    linear-gradient(140deg, #f3f7fb, #fff 72%);
}

.page-header h1 {
  max-width: 880px;
  margin-inline: auto;
  font-size: clamp(2.35rem, 4vw, 4.1rem);
  line-height: 1.04;
  color: var(--site-ink);
}

.page-header .section-eyebrow {
  color: var(--site-blue-deep);
  background: rgba(21, 94, 239, .08);
  border-color: rgba(21, 94, 239, .16);
}

.page-header p {
  max-width: 660px;
  margin: 18px auto 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

.page-intro-strip {
  border-bottom: 1px solid var(--site-line);
  background: var(--site-ink);
}

.page-intro-strip__grid {
  gap: 0;
}

.page-intro-strip__item {
  min-height: 118px;
  padding: 26px 30px;
  border-color: rgba(255, 255, 255, .12);
}

.page-intro-strip__num {
  color: var(--site-lime);
}

.page-intro-strip__label {
  color: #a7b7ca;
}

.form-control,
input.form-control,
textarea.form-control,
select.form-control {
  min-height: 50px;
  border: 1px solid var(--site-line);
  border-radius: 11px;
  background: #fbfdff;
  color: var(--site-ink);
  box-shadow: inset 0 1px 2px rgba(13, 27, 42, .03);
}

.form-control:focus {
  border-color: var(--site-blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, .11);
}

.btn {
  border-radius: 10px;
  font-weight: 750;
}

.btn--outline {
  border-color: var(--site-line);
  color: var(--site-ink-soft);
  background: rgba(255, 255, 255, .72);
}

.btn--outline:hover {
  border-color: var(--site-blue);
  color: var(--site-blue);
  background: #fff;
}

.btn--white {
  color: var(--site-ink);
  background: #fff;
}

.cta-section {
  border: 1px solid rgba(197, 245, 106, .2);
  border-radius: 28px;
  background: linear-gradient(130deg, #0d1b2a, #123d76);
  box-shadow: 0 26px 70px rgba(13, 27, 42, .18);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: #0d1b2a;
}

.footer__brand > a div {
  background: var(--site-blue) !important;
  border-radius: 11px !important;
}

.footer__brand > a img {
  object-fit: contain;
  background: #fff;
}

.footer__brand p {
  color: #a7b7ca;
}

.footer__col-title {
  color: #f5f8fc;
}

.footer__col a,
.footer__legal-link,
.footer__email-link {
  color: #a7b7ca;
}

.footer__col a:hover,
.footer__legal-link:hover,
.footer__email-link:hover {
  color: var(--site-lime);
}

.chat-window {
  border: 1px solid rgba(219, 229, 240, .9);
  box-shadow: 0 24px 70px rgba(13, 27, 42, .2);
}

.footer__col ul li a,
.footer__consent-btn,
.footer__bottom {
  color: #a7b7ca;
}

.footer__col ul li a:hover,
.footer__consent-btn:hover {
  color: var(--site-lime);
}

/* Keep supporting copy readable on the site's intentionally dark surfaces. */
.hero--dark .hero__stat-label,
.dark-mid__card > div:last-child > div:last-child,
.dark-mid > .container > div > div:first-child > p,
.dark-portfolio > .container > div:first-child > p,
.pf-card__tag,
.pf-card__desc {
  color: #b7c5d6 !important;
}

.dark-mid,
.dark-portfolio,
.our-products,
.hero--dark {
  color: #e8eef7;
}

.dark-mid p,
.dark-portfolio p,
.our-products p,
.hero--dark p {
  color: #b7c5d6;
}

@media (max-width: 900px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: inline-flex;
  }

  .hero {
    min-height: 590px;
    padding: 84px 0 70px;
  }

  .hero__title {
    font-size: clamp(2.45rem, 10vw, 4.2rem);
  }

  .section {
    padding: 82px 0;
  }

  .showcase-grid,
  .two-col-grid,
  .booking-grid,
  .grid-2,
  .grid-3,
  .site-answer__inner {
    grid-template-columns: 1fr !important;
  }

  .container > div[style*="grid-template-columns"],
  #hjemmesider > div[style*="grid-template-columns"],
  #systemer > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .container > div[style*="grid-template-columns"] > *,
  #hjemmesider > div[style*="grid-template-columns"] > *,
  #systemer > div[style*="grid-template-columns"] > * {
    min-width: 0;
    max-width: 100%;
  }

  .container > div[style*="grid-template-columns"] .card {
    width: auto !important;
    max-width: 100%;
  }

  .card > div[style*="grid-template-columns"],
  .budget-feature {
    min-width: 0;
  }

  .card > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .budget-feature {
    width: 100%;
  }

  .budget-feature__label {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 20px;
  }

  .nav__inner {
    min-height: 68px;
  }

  .hero__title {
    font-size: clamp(2.3rem, 10vw, 3.3rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .site-answer p {
    font-size: .98rem;
    line-height: 1.65;
  }

  .hero__actions,
  .hero__actions .btn {
    width: 100%;
  }

  .hero__actions {
    display: grid;
    gap: 10px;
  }

  .section,
  .section--sm {
    padding: 66px 0;
  }

  .page-header {
    padding: 74px 0 58px;
  }

  .page-header h1 {
    font-size: clamp(2.15rem, 10vw, 3.1rem);
  }

  .legal-page table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .page-intro-strip__grid {
    grid-template-columns: 1fr;
  }

  .page-intro-strip__item {
    min-height: 0;
    padding: 22px 20px;
  }

  .cta-section {
    padding: 38px 22px !important;
  }

  .chat-window {
    inset: auto 12px 80px 12px !important;
    width: auto !important;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
