:root {
  --blue: #156a8a;
  --navy: #102f44;
  --ink: #17384a;
  --muted: #4d6573;
  --paper: #f2f7fa;
  --line: #d5e3eb;
  --pale: #deeff7;
}
[hidden] { display: none !important; }
body { font-family: Inter, "Segoe UI", Arial, sans-serif; }
main :is(h1, h2, h3) { text-wrap: balance; overflow-wrap: anywhere; hyphens: none; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.site-nav {
  min-height: 80px;
  height: auto;
  gap: clamp(14px, 2.6vw, 36px);
}
.header { background: #fff; border-bottom-color: var(--line); }
.site-nav .brand-logo { width: clamp(138px, 17vw, 208px); height: auto; display: block; }
.site-links {
  display: flex;
  position: static;
  background: none;
  border: 0;
  padding: 0;
  gap: clamp(14px, 2.2vw, 32px);
}
.site-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration-color: var(--blue);
}
.site-links a:hover,
.site-links a[aria-current] { color: var(--blue); text-decoration: underline; text-underline-offset: 7px; }
.button {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  gap: 14px;
}
.button:hover { background: var(--navy); border-color: var(--navy); }
.button.outline { background: white; color: var(--blue); border-color: #aec9d9; }
.button.outline:hover { background: var(--pale); border-color: var(--blue); }
.nav-contact { flex-shrink: 0; padding: 12px 17px; white-space: nowrap; }

.site-hero {
  padding: clamp(50px, 7.4vw, 112px) 0;
  background: radial-gradient(ellipse at 85% 35%, #d9edf6, transparent 67%), var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-hero h1 { font-size: clamp(32px, 4.8vw, 70px); letter-spacing: -.055em; white-space: pre-line; }
.page-start .site-hero h1 { font-size: clamp(36px, 4vw, 56px); overflow-wrap: normal; text-wrap: wrap; }
.site-hero .eyebrow, .contact-aside .eyebrow, .text-link { color: var(--blue); }
.eyebrow::before { background: var(--blue); }
.site-hero .actions { margin-bottom: 0; }
.site-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 66px); }
.site-hero .hero-grid.copy-only { grid-template-columns: minmax(0, 790px); }
.copy-only .hero-media { display: none; }
.site-hero .hero-grid.copy-only:has(.hero-media img:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.copy-only:has(.hero-media img:not([hidden])) .hero-media { display: block; }
.hero-media { min-width: 0; }
.hero-copy { min-width: 0; }
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 530px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px #123d5626;
}
.page-aldawave .hero-media img { aspect-ratio: 4 / 3; object-fit: cover; object-position: right center; }
.page-wdoc .hero-media {
  padding: 12px;
  border-radius: 18px;
  background: #ffffff80;
  border: 1px solid #fff;
}
.page-start .site-hero {
  background: radial-gradient(ellipse at 72% 15%, #1a5069, transparent 72%), var(--navy);
  border-color: #285167;
  color: white;
}
.page-start .site-hero .lead { color: #daeaf2; }
.page-start .site-hero .eyebrow { color: #b7e7f7; }
.page-start .site-hero .eyebrow::before { background: #9fe0f6; }
.page-start .site-hero .button:not(.outline) { color: var(--navy); background: #c8eaf7; border-color: #c8eaf7; }
.page-start .site-hero .button:hover { background: white; border-color: white; }
.page-start .hero-media img,
.page-tjanster .hero-media img,
.page-3d .hero-media img,
.page-natverk-it .hero-media img {
  aspect-ratio: 6 / 5;
  object-fit: cover;
}
.page-bakgrund .hero-media { width: min(100%, 460px); justify-self: center; }
.page-bakgrund .hero-media img { aspect-ratio: 1; object-fit: cover; }
.page-start .hero-media img { border-color: #ffffff48; }
.hero-mark, .section-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px; }
.hero-mark span {
  color: var(--ink);
  background: var(--pale);
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 650;
}
.product-mark { width: auto; max-width: 100%; height: auto; display: block; }
.hero-mark .product-mark-wdoc { width: 135px; }
.hero-mark .product-mark-aldawave { width: 180px; }
.section-mark .product-mark-wdoc { width: 102px; }
.section-mark .product-mark-aldawave { width: 146px; }

.site-highlights { background: #e8f2f7; }
.site-highlights dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 36px;
  padding-block: 26px;
}
.site-highlights dl > div { border-left: 2px solid #8fb9ce; padding: 2px 0 2px 15px; }
.site-highlights dt { font-size: 16px; font-weight: 700; color: var(--ink); }
.site-highlights dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

.page-overview { background: white; border-bottom: 1px solid var(--line); }
.page-overview .wrap { display: flex; flex-wrap: wrap; gap: 0 24px; }
.page-overview a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 54px;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 650;
  color: var(--blue);
}
.page-overview a:hover { background: var(--paper); text-decoration: underline; text-underline-offset: 4px; }

.section { padding: clamp(50px, 7vw, 96px) 0; }
.service-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.service-card > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.service-card > div { flex: 1; display: flex; flex-direction: column; padding: clamp(19px, 2.7vw, 31px); }
.service-card h3 { margin-bottom: 10px; }
.service-card .section-copy { margin-bottom: 16px; }
.service-card .text-link { align-self: flex-start; margin-top: auto; }
.section-copy { white-space: pre-line; color: var(--muted); margin-bottom: 0; }
.section-list { margin: 18px 0 0; padding-left: 1.4em; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.section-list li + li { margin-top: 7px; }
.section-list:not(:has(li)) { display: none; }
.text-link { margin-top: 20px; }
.text-link:hover, .footer-columns a:hover { text-decoration: underline; text-underline-offset: 4px; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-card { overflow: hidden; border-radius: 14px; background: white; border: 1px solid var(--line); }
.product-card > img {
  width: 100%;
  height: clamp(180px, 22vw, 300px);
  object-fit: cover;
  display: block;
  background: var(--pale);
}
.product-card > img[src*="wdoc-register"] { object-fit: contain; padding: 12px; }
.product-card > div { padding: clamp(20px, 3vw, 36px); }
.product-card h3 { font-size: clamp(22px, 2.9vw, 34px); }
.product-showcase { background: #e8f2f7; }
.home-about { background: white; }
.home-about .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-about p { max-width: 65ch; margin-bottom: 0; color: var(--muted); }
.home-about .button { flex-shrink: 0; }

.story-band { padding: clamp(38px, 6.5vw, 90px) 0; background: white; }
.story-band.tinted { background: var(--paper); }
.story-band.story-feature { background: var(--navy); color: white; }
.story-pair-band { background: var(--paper); padding-block: clamp(30px, 5vw, 70px); }
.story-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vw, 56px); }
.story-pair section { min-width: 0; padding: 22px 0 0; border-top: 2px solid var(--line); }
.story-pair h2 { font-size: clamp(25px, 3.2vw, 40px); }
.story-pair img { max-width: 100%; height: auto; margin-top: 20px; border-radius: 10px; }
.story-feature .section-copy, .story-feature figcaption { color: #d6e8f1; }
.story-feature .text-link { color: #b9e6f6; }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: center;
}
.story-grid.reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.story-grid.reverse > figure { grid-column: 1; grid-row: 1; }
.story-grid.reverse > div { grid-column: 2; grid-row: 1; }
.story-grid h2 { font-size: clamp(30px, 3.6vw, 50px); }
.story-grid figure { margin: 0; }
.story-grid figure img {
  max-height: 470px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px #123d5617;
}
.story-grid figcaption { font-size: 13px; color: var(--muted); margin-top: 11px; }
.page-bakgrund #erfarenhet .story-grid figure img {
  max-height: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.story-feature .story-grid figcaption { color: #d6e8f1; }
.story-portrait .story-grid img { width: min(100%, 360px); }
.story-portrait figure { justify-self: center; }
.story-grid.story-copy-only:not(:has(figure img:not([hidden]))) {
  grid-template-columns: minmax(0, 790px);
}
.story-copy-only:not(:has(figure img:not([hidden]))) figure { display: none; }
.story-copy-only.reverse:not(:has(figure img:not([hidden]))) > div { grid-column: 1; }
.story-diagram {
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf6fa;
  color: var(--ink);
}
figure > img:not([hidden]) ~ .story-diagram { display: none; }
.diagram-title { margin: 0 0 16px; color: var(--blue); font-size: 15px; font-weight: 700; }
.diagram-hub, .story-diagram li {
  padding: 12px 14px;
  border: 1px solid #bcd4df;
  border-radius: 8px;
  background: white;
}
.diagram-hub { position: relative; margin-bottom: 16px; text-align: center; color: white; background: var(--blue); border-color: var(--blue); }
.story-diagram ul, .story-diagram ol { padding: 0; margin: 0; list-style: none; }
.diagram-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 10px; }
.diagram-hub::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  height: 16px;
  border-left: 2px solid #7aafc7;
}
.story-diagram li span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.diagram-flow { display: grid; gap: 16px; }
.diagram-flow li { position: relative; }
.diagram-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 100%;
  height: 16px;
  border-left: 2px solid #7aafc7;
}

.site-cta { padding: clamp(36px, 6vw, 78px) 0; background: var(--pale); }
.site-cta .cta-box { background: transparent; border: 0; padding: 0; }
.site-cta p { color: var(--muted); }

.site-footer { background: #f1f7fa; border-top: 1px solid var(--line); padding: 56px 0 26px; color: var(--ink); }
.footer-columns { display: grid; grid-template-columns: 1.45fr 1fr .8fr 1.25fr; gap: 28px; }
.footer-columns h2 { color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: 0; margin-bottom: 15px; }
.footer-columns p, .footer-columns a, .footer-columns address {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.footer-columns a { display: block; margin-bottom: 8px; }
.footer-columns a:hover, .site-footer a:hover { color: var(--blue); }
.footer-columns .footer-brand { display: inline-block; }
.footer-brand img { max-width: 100%; height: auto; display: block; }
.cookie-settings {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.cookie-settings:hover, .cookie-settings:focus-visible { text-decoration: underline; }
.cookie-consent {
  position: fixed;
  z-index: 100;
  inset-inline-end: 16px;
  inset-block-end: 16px;
  width: min(calc(100% - 32px), 460px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(16px, 4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 35px #123d5626;
}
.cookie-consent[hidden], .cookie-settings[hidden] { display: none; }
.cookie-consent h2 { margin: 0 0 8px; font-size: 20px; }
.cookie-consent p { margin: 0 0 16px; font-size: 14px; }
.cookie-consent p a { text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .button { flex: 1 1 130px; justify-content: center; text-align: center; }
.cookie-actions [data-consent="denied"] { background: #536773; border-color: #536773; }
.cookie-actions [data-consent="denied"]:hover { background: #384b56; border-color: #384b56; }
.footer-columns .footer-product { display: flex; align-items: center; gap: 7px; }
.footer-columns p { max-width: 30ch; margin: 10px 0 0; }
.footer-columns address { font-style: normal; }
.site-footer .footer-bottom { color: var(--muted); border-color: var(--line); font-size: 13px; }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 10px 22px; }

.contact-page { background: linear-gradient(125deg, #e6f2f8 0%, var(--paper) 62%); }
.contact-grid {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(28px, 7vw, 96px);
  padding-block: clamp(45px, 7.5vw, 105px);
}
.contact-grid h1 { font-size: clamp(40px, 5.8vw, 70px); letter-spacing: -.055em; }
.contact-aside p.eyebrow { font-size: 11px; }
.contact-grid .contact-aside > p:not(.eyebrow) { font-size: 17px; max-width: 39ch; }
.contact-details { margin: 30px 0 0; padding: 0; }
.contact-details > div { padding: 16px 0; border-top: 1px solid #c5dbe7; }
.contact-details dt { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.contact-details dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.contact-details a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.contact-details address { font-size: 15px; font-style: normal; line-height: 1.7; }
.phone-toggle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.phone-toggle-button {
  padding: 6px 11px;
  border: 1px solid #aec9d9;
  border-radius: 6px;
  color: var(--blue);
  background: white;
  font-size: 14px;
}
.phone-toggle-button:hover:not(:disabled) { background: var(--pale); }
.contact-grid .form {
  min-width: 0;
  padding: clamp(21px, 3.8vw, 42px);
  border-top: 4px solid var(--blue);
  border-radius: 14px;
  box-shadow: 0 16px 55px #123d5617;
}
.contact-grid .form h2 { font-size: clamp(25px, 3vw, 33px); }
.contact-grid .field { font-size: 14px; }
.contact-grid .field :is(input, select, textarea) {
  min-width: 0;
  min-height: 45px;
  background: #f7fafc;
  border-color: #b5cbd8;
  border-radius: 7px;
}
.contact-grid .field textarea { min-height: 132px; }
.contact-grid .check { font-size: 14px; align-items: flex-start; }
.contact-grid .check input { margin-top: 4px; accent-color: var(--blue); }
.contact-grid details { margin-top: 22px; font-size: 14px; color: var(--muted); }
.contact-grid summary { cursor: pointer; color: var(--blue); }
.contact-grid details p { margin-top: 10px; }
.form-status:empty { display: none; }
.field small { font-weight: 400; color: var(--muted); line-height: 1.5; }
.contact-brief { background: white; }
.contact-brief dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.contact-brief dl > div { padding: 20px 0 0; border-top: 2px solid #a5c5d7; }
.contact-brief dt { font-size: 20px; font-weight: 680; margin-bottom: 8px; }
.contact-brief dd { margin: 0; color: var(--muted); line-height: 1.65; }
.page-integritet .site-hero { padding-block: clamp(35px, 6vw, 70px); }
.page-integritet .site-hero h1, .page-foretagsinformation .site-hero h1 { font-size: clamp(32px, 4vw, 58px); }
.policy-copy { padding-block: clamp(35px, 6vw, 75px); }
.policy-copy section { max-width: 72ch; padding-block: 22px; border-bottom: 1px solid var(--line); }
.policy-copy h2 { font-size: clamp(23px, 3vw, 32px); letter-spacing: -.02em; margin-bottom: 10px; }
.company-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-block: clamp(32px, 6vw, 72px);
}
.company-heading { border-bottom: 0; padding-block: clamp(30px, 5vw, 66px); }
.company-heading h1 { margin-bottom: 0; }
.company-details section { padding: clamp(18px, 3vw, 32px); background: white; border: 1px solid var(--line); border-radius: 12px; }
.company-details h2 { margin: 0 0 16px; font-size: clamp(23px, 3vw, 32px); letter-spacing: -.02em; }
.company-details dl, .company-details dd, .company-details p { margin: 0; }
.company-details dl > div + div { margin-top: 12px; }
.company-details dt { font-weight: 650; }
.company-details :is(dd, address, p) { color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; }
.company-details address { font-style: normal; }
.company-details a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1020px) {
  .site-nav { min-height: 72px; flex-wrap: wrap; padding: 12px 0 0; gap: 4px 12px; }
  .site-links { order: 3; width: 100%; justify-content: flex-start; margin: 0; gap: 4px 22px; flex-wrap: wrap; }
  .site-nav .nav-contact { margin-left: auto; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cards, .contact-brief dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html { scroll-padding-top: 137px; }
}
@media (max-width: 860px) {
  .site-hero .hero-grid,
  .site-hero .hero-grid.copy-only:has(.hero-media img:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .story-grid, .story-grid.reverse, .story-pair, .product-grid, .contact-grid, .company-details { grid-template-columns: minmax(0, 1fr); }
  .story-grid.reverse > figure, .story-grid.reverse > div { grid-column: auto; grid-row: auto; }
  .site-links { font-size: 13px; }
  .page-overview .wrap { gap: 0 15px; }
  .page-overview a { font-size: 13px; min-height: 43px; padding: 6px 0; }
  .home-about .wrap { flex-direction: column; align-items: flex-start; }
  .site-highlights dl, .contact-brief dl { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 480px) {
  .page-start .site-hero h1 { font-size: clamp(28px, 8.3vw, 36px); }
  .service-cards, .contact-grid .fields, .footer-columns { grid-template-columns: 1fr; }
  .site-nav .nav-contact { font-size: 12px; padding: 9px 11px; gap: 7px; }
  .site-links { gap: 0 9px; font-size: 12px; }
  .site-links a { min-height: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
