:root {
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-brand-navy: #1b4096;
  --color-brand-cyan: #38b6ff;
  --color-accent: #38b6ff;
  --color-accent-dark: #1b4096;
  --color-dark: #0f1e3d;
  --color-dark-soft: #1b4096;
  --color-header: #0a0a0a;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  color: var(--color-accent-dark);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 64, 150, 0.12);
  box-shadow: 0 2px 16px rgba(15, 30, 61, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover .logo-badge {
  box-shadow: 0 6px 24px rgba(27, 64, 150, 0.2);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 4px 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.logo-badge--footer {
  padding: 12px 20px;
  margin-bottom: 1rem;
}

.logo-img {
  height: 80px;
  width: auto;
  min-width: 180px;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.btn-nav {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
}

.btn-nav:hover {
  background: var(--color-accent-dark) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 30, 61, 0.92) 0%, rgba(27, 64, 150, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  color: #fff;
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-cyan);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-promo {
  font-size: 1rem;
  font-weight: 600;
  color: #a8dcff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.btn-full {
  width: 100%;
}

/* Location bar */
.location-bar {
  background: var(--color-dark);
  color: #fff;
  padding: 1.5rem 0;
}

.location-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.location-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.location-item strong {
  display: block;
  font-size: 0.95rem;
}

.location-item span,
.location-item a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.location-item a {
  color: var(--color-brand-cyan);
}

.location-item a:hover {
  color: #fff;
}

.location-link {
  color: #fff;
  text-decoration: none;
}

.location-link:hover {
  color: var(--color-brand-cyan);
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
}

.section-header--light .section-label,
.section-header--light h2 {
  color: #fff;
}

.section-header--light p {
  color: rgba(255, 255, 255, 0.8);
}

.why-intro {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.about-text p strong {
  color: var(--color-text);
}

.about-highlights {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.about-highlights li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.about-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--color-brand-navy);
  border-radius: 50%;
}

/* Bygg info */
.bygg-info {
  background: var(--color-surface);
  border-top: 1px solid rgba(27, 64, 150, 0.08);
  border-bottom: 1px solid rgba(27, 64, 150, 0.08);
}

.bygg-info-grid {
  display: grid;
  gap: 2.5rem;
}

.bygg-info-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.bygg-info-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.bygg-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.bygg-info-card {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-brand-cyan);
}

.bygg-info-card h3 {
  font-size: 1.05rem;
  color: var(--color-brand-navy);
  margin-bottom: 0.5rem;
}

.bygg-info-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* References */
.references {
  background: var(--color-bg);
}

.references-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.75rem 1rem;
}

.references-viewport {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  min-width: 0;
}

.carousel-btn--prev {
  grid-column: 1;
  grid-row: 1;
}

.carousel-btn--next {
  grid-column: 3;
  grid-row: 1;
}

.references-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s ease;
  will-change: transform;
}

.references-track .reference-card {
  flex: 0 0 calc((100% - 2.5rem) / 3);
  min-width: 0;
}

.reference-card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 64, 150, 0.06);
  display: flex;
  flex-direction: column;
}

.stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.reference-card blockquote {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text);
  font-style: italic;
}

.reference-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.reference-card footer strong {
  font-size: 0.9rem;
  color: var(--color-brand-navy);
}

.reference-card footer span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27, 64, 150, 0.15);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-brand-navy);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--color-brand-navy);
  color: #fff;
  border-color: var(--color-brand-navy);
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(27, 64, 150, 0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.is-active {
  background: var(--color-brand-navy);
  transform: scale(1.15);
}

.carousel-dot:hover {
  background: var(--color-brand-cyan);
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Services */
.services {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  width: 100%;
  height: 220px;
  min-height: 220px;
  object-fit: cover;
  display: block;
  background: #dce4ef;
}

.service-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Why */
.why {
  background: var(--color-dark);
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.why-card {
  background: var(--color-dark-soft);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.why-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-navy);
  color: #ffffff;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.why-icon svg {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
  color: #ffffff;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.why-card > p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.why-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.85rem;
}

.why-card-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.why-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-brand-cyan);
  border-radius: 50%;
}

.why-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.why-extra-block {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.why-extra-block--highlight {
  background: rgba(56, 182, 255, 0.1);
  border-color: rgba(56, 182, 255, 0.25);
}

.why-extra-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  color: var(--color-brand-cyan);
}

.why-extra-block p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.why-extra-block p strong {
  color: #fff;
}

.why-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: why-step;
}

.why-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.why-steps li:last-child {
  margin-bottom: 0;
}

.why-steps li span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-cyan);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
}

.why-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.why-tags li {
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
}

.promo-banner {
  text-align: center;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  border-radius: var(--radius);
}

.promo-banner strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.promo-banner span {
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100%;
}

.contact-info {
  flex: 0 0 auto;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.contact-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.contact-list li div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-list li strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.contact-list svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.contact-side-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 180px;
}

.contact-side-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.contact-side-image p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(15, 30, 61, 0.88));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  margin-bottom: 1.25rem;
}

.contact-form label span {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 88px;
  width: auto;
  min-width: 200px;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
}

.footer-meta {
  text-align: right;
}

.footer-copy {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.footer-credit a {
  color: var(--color-brand-cyan);
  text-decoration: none;
  font-weight: 500;
}

.footer-credit a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(27, 64, 150, 0.12);
    box-shadow: 0 8px 24px rgba(15, 30, 61, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-aside {
    order: 0;
  }

  .contact-side-image {
    max-height: 160px;
  }

  .references-track .reference-card {
    flex: 0 0 100%;
  }

  .about-image {
    order: -1;
  }

  .section {
    padding: 3.5rem 0;
  }

  .logo-img {
    height: 56px;
    min-width: 130px;
  }

  .logo-badge {
    padding: 8px 12px;
  }

  .nav {
    height: 88px;
  }

  .hero {
    padding-top: 88px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-meta {
    text-align: center;
  }
}
