/* Viberö site theme */
/* --------------------------------------------------
   1. Base
-------------------------------------------------- */

:root {
  --bg-dark: #0b1220;
  --bg-dark-2: #101827;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --text-main: #eef2f7;
  --text-muted: rgba(226, 232, 240, 0.78);
  --text-soft: rgba(226, 232, 240, 0.58);
  --line-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.24);
  --radius-lg: 0.75rem;
}

html,
body {
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.05), transparent 24%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: #dbe4ff;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: #fff;
}

h1,
h2,
h3,
h4,
h5 {
  color: #f8fafc;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

p,
.text-light-emphasis,
.text-secondary,
.text-muted {
  color: var(--text-muted) !important;
}

small,
.small,
.text-secondary-emphasis {
  color: var(--text-soft) !important;
}

/* --------------------------------------------------
   2. Shared layout
-------------------------------------------------- */

.hero {
  position: relative;
  min-height: 30rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  padding-top: 5rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  margin-left: clamp(1.25rem, 5vw, 5rem);
  margin-right: 1.25rem;
  padding: 3.5rem 0 4rem;
}

.hero-content-right {
  margin-left: auto;
  margin-right: clamp(1.25rem, 5vw, 5rem);
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  margin: 0 0 1.2rem;
  max-width: 18ch;
  line-height: 1.1;
  text-wrap: balance;
}

.hero-content p {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  max-width: 38rem;
  margin: 0;
}

.hero .hero-content {
  background: linear-gradient(
    rgba(15, 23, 42, 0.26),
    rgba(15, 23, 42, 0.16)
  );
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.content {
  padding: 4.5rem 0 5rem;
}

.content .container {
  max-width: 54rem;
}

.content h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin: 0 0 1rem;
  padding-top: 0.25rem;
}

.content p {
  font-size: 1.08rem;
  margin-bottom: 1.15rem;
}

.content ul,
.clean-list {
  margin: 0 0 1.5rem;
  padding-left: 0;
  list-style: none;
}

.content li,
.clean-list li {
  position: relative;
  padding-left: 1.05rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.content li::before,
.clean-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------
   3. Shared components
-------------------------------------------------- */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: none !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.content img,
.content-image img,
.home-followup img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.content-image {
  margin: 4rem 0;
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

.content-image-side {
  max-width: 360px;
  width: 100%;
  margin-left: auto;
  display: block;
}

.tech-stack {
  margin: 3rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  opacity: 0.9;
}

.tech-stack span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(80, 120, 255, 0.08);
  border: 1px solid rgba(80, 120, 255, 0.18);
  color: rgba(180, 200, 255, 0.75);
  transition: all 0.2s ease;
}

.tech-stack span:hover {
  background: rgba(80, 120, 255, 0.15);
  border-color: rgba(80, 120, 255, 0.28);
  color: rgba(210, 220, 255, 0.95);
}

.app-loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 9999;
}

.loading-logo {
    width: 48px;
    opacity: 0.6;
    animation: fadePulse 1.5s ease-in-out infinite;
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10000;
}

/* --------------------------------------------------
   4. Home
-------------------------------------------------- */

.home-content .container {
  max-width: 72rem;
}

.home-intro {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.home-section-title {
  margin-bottom: 1.5rem;
}

.home-section-title-secondary {
  margin-top: 7rem;
  margin-bottom: 2rem;
}

.home-cards {
  margin-top: 1rem;
  justify-content: flex-start;
}

.home-cards a {
  display: block;
  height: 100%;
}

.home-cards .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cards .card-body {
  padding: 1.6rem;
}

.home-cards a:hover .card {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.home-followup {
  margin-top: 3rem;
}

.home-followup img {
  width: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-followup a:hover img {
  transform: translateY(-2px);
  opacity: 0.96;
}

.home-followup h3 a {
  color: inherit;
}

.home-followup h3 a:hover {
  opacity: 0.85;
}

.home-app-image {
  max-width: 360px;
  width: 100%;
  margin-left: auto;
  display: block;
}

/* --------------------------------------------------
   5. Page-specific hero backgrounds
-------------------------------------------------- */

.hero-home {
  background:
    linear-gradient(rgba(13, 17, 23, 0.54), rgba(13, 17, 23, 0.72)),
    url("../Pictures/home-hero.jpg") center / cover no-repeat;
}

.hero-agile {
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.60) 0%,
      rgba(0, 0, 0, 0.42) 40%,
      rgba(0, 0, 0, 0.16) 100%
    ),
    url("../Pictures/agile-hero.jpg") center / cover no-repeat;
}

.hero-dynamics {
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.32) 0%,
      rgba(0, 0, 0, 0.28) 35%,
      rgba(0, 0, 0, 0.14) 70%,
      rgba(0, 0, 0, 0.04) 100%
    ),
    url("../Pictures/dynamics-hero.jpg") center / cover no-repeat;
}

.hero-dynamics .hero-content {
  background: linear-gradient(
    rgba(15, 23, 42, 0.55),
    rgba(15, 23, 42, 0.38)
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero-maritime {
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.38) 42%,
      rgba(0, 0, 0, 0.12) 72%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("../Pictures/maritime-hero.jpg") center / cover no-repeat;
}

.hero-entreprenad {
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.40) 38%,
      rgba(0, 0, 0, 0.16) 72%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("../Pictures/entreprenad-excavator.jpg") left center / cover no-repeat;
}

.hero-vaxholmspendeln {
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.68) 0%,
      rgba(0, 0, 0, 0.48) 35%,
      rgba(0, 0, 0, 0.22) 68%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("../Pictures/vaxholmspendeln-hero.jpg") center left / cover no-repeat;
}

/* --------------------------------------------------
   6. Page-specific content
-------------------------------------------------- */

.hero-vaxholmspendeln + .content .container {
  max-width: 64rem;
}

.app-icon {
  width: 104px;
  height: 104px;
  display: block;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  background: none;
  padding: 0;
}

.app-icon-inline {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 1.5rem;
}

.app-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.store-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.store-svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  flex-shrink: 0;
}

.subtle-link {
  color: rgba(226, 232, 240, 0.58);
}

.subtle-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------
   7. Bootstrap overrides
-------------------------------------------------- */

.btn {
  border-radius: 0.6rem;
  font-weight: 500;
  box-shadow: none !important;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

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

.btn:focus,
.btn:active:focus,
button:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: none !important;
  outline: none !important;
}

.btn-light {
  background: #fff;
  color: #0f172a;
  border: none !important;
}

.btn-light:hover {
  background: #f3f4f6;
  color: #0b1220;
}

.btn-outline-light,
.btn-outline-dark {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.btn-outline-light:hover,
.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff;
}

.border,
.border-light,
.border-secondary,
.border-secondary-subtle {
  border-color: transparent !important;
}

/* --------------------------------------------------
   8. Responsive
-------------------------------------------------- */

@media (max-width: 991.98px) {
  .hero {
    min-height: 26rem;
  }

  .hero-content {
    width: min(100%, 34rem);
    padding: 3.5rem 0;
  }

  .content {
    padding: 3.5rem 0 4rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 23rem;
    background-position: center center !important;
    padding-top: 4.5rem;
  }

  .hero-content {
    margin-left: 1rem;
    margin-right: 1rem;
    width: auto;
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    max-width: 12ch;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .content {
    padding: 3rem 0 3.25rem;
  }

  .content .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-intro {
    margin-bottom: 1.5rem;
  }

  .home-followup {
    margin-top: 2rem;
  }

  .app-icon-inline {
    margin: 1.25rem 0 1.5rem;
  }
}

@media (min-width: 992px) {
  .home-section-title-secondary {
    margin-top: 6rem;
  }

  .home-followup {
    margin-top: 4rem;
  }

  .app-icon {
    width: 120px;
    height: 120px;
  }
}